/*! For license information please see babel.js.LICENSE.txt */ (()=>{var __webpack_modules__={"./node_modules/@babel/core/lib/config/cache-contexts.js":()=>{},"./node_modules/@babel/core/lib/config/caching.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertSimpleType=assertSimpleType,exports.makeStrongCache=makeStrongCache,exports.makeStrongCacheSync=function(handler){return synchronize(makeStrongCache(handler))},exports.makeWeakCache=makeWeakCache,exports.makeWeakCacheSync=function(handler){return synchronize(makeWeakCache(handler))};var _async=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/async.js"),_util=__webpack_require__("./node_modules/@babel/core/lib/config/util.js");const synchronize=gen=>_gensync()(gen).sync;function*genTrue(){return!0}function makeWeakCache(handler){return makeCachedFunction(WeakMap,handler)}function makeStrongCache(handler){return makeCachedFunction(Map,handler)}function makeCachedFunction(CallCache,handler){const callCacheSync=new CallCache,callCacheAsync=new CallCache,futureCache=new CallCache;return function*(arg,data){const asyncContext=yield*(0,_async.isAsync)(),callCache=asyncContext?callCacheAsync:callCacheSync,cached=yield*function*(asyncContext,callCache,futureCache,arg,data){const cached=yield*getCachedValue(callCache,arg,data);if(cached.valid)return cached;if(asyncContext){const cached=yield*getCachedValue(futureCache,arg,data);if(cached.valid){return{valid:!0,value:yield*(0,_async.waitFor)(cached.value.promise)}}}return{valid:!1,value:null}}(asyncContext,callCache,futureCache,arg,data);if(cached.valid)return cached.value;const cache=new CacheConfigurator(data),handlerResult=handler(arg,cache);let finishLock,value;if((0,_util.isIterableIterator)(handlerResult)){const gen=handlerResult;value=yield*(0,_async.onFirstPause)(gen,(()=>{finishLock=function(config,futureCache,arg){const finishLock=new Lock;return updateFunctionCache(futureCache,config,arg,finishLock),finishLock}(cache,futureCache,arg)}))}else value=handlerResult;return updateFunctionCache(callCache,cache,arg,value),finishLock&&(futureCache.delete(arg),finishLock.release(value)),value}}function*getCachedValue(cache,arg,data){const cachedValue=cache.get(arg);if(cachedValue)for(const{value,valid}of cachedValue)if(yield*valid(data))return{valid:!0,value};return{valid:!1,value:null}}function updateFunctionCache(cache,config,arg,value){config.configured()||config.forever();let cachedValue=cache.get(arg);switch(config.deactivate(),config.mode()){case"forever":cachedValue=[{value,valid:genTrue}],cache.set(arg,cachedValue);break;case"invalidate":cachedValue=[{value,valid:config.validator()}],cache.set(arg,cachedValue);break;case"valid":cachedValue?cachedValue.push({value,valid:config.validator()}):(cachedValue=[{value,valid:config.validator()}],cache.set(arg,cachedValue))}}class CacheConfigurator{constructor(data){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=data}simple(){return function(cache){function cacheFn(val){if("boolean"!=typeof val)return cache.using((()=>assertSimpleType(val())));val?cache.forever():cache.never()}return cacheFn.forever=()=>cache.forever(),cacheFn.never=()=>cache.never(),cacheFn.using=cb=>cache.using((()=>assertSimpleType(cb()))),cacheFn.invalidate=cb=>cache.invalidate((()=>assertSimpleType(cb()))),cacheFn}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}using(handler){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;const key=handler(this._data),fn=(0,_async.maybeAsync)(handler,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,_async.isThenable)(key)?key.then((key=>(this._pairs.push([key,fn]),key))):(this._pairs.push([key,fn]),key)}invalidate(handler){return this._invalidate=!0,this.using(handler)}validator(){const pairs=this._pairs;return function*(data){for(const[key,fn]of pairs)if(key!==(yield*fn(data)))return!1;return!0}}deactivate(){this._active=!1}configured(){return this._configured}}function assertSimpleType(value){if((0,_async.isThenable)(value))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=value&&"string"!=typeof value&&"boolean"!=typeof value&&"number"!=typeof value)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return value}class Lock{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise((resolve=>{this._resolve=resolve}))}release(value){this.released=!0,this._resolve(value)}}},"./node_modules/@babel/core/lib/config/config-chain.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _debug(){const data=__webpack_require__("./node_modules/debug/src/index.js");return _debug=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildPresetChain=function*(arg,context){const chain=yield*buildPresetChainWalker(arg,context);return chain?{plugins:dedupDescriptors(chain.plugins),presets:dedupDescriptors(chain.presets),options:chain.options.map((o=>normalizeOptions(o))),files:new Set}:null},exports.buildPresetChainWalker=void 0,exports.buildRootChain=function*(opts,context){let configReport,babelRcReport;const programmaticLogger=new _printer.ConfigPrinter,programmaticChain=yield*loadProgrammaticChain({options:opts,dirname:context.cwd},context,void 0,programmaticLogger);if(!programmaticChain)return null;const programmaticReport=yield*programmaticLogger.output();let configFile;"string"==typeof opts.configFile?configFile=yield*(0,_files.loadConfig)(opts.configFile,context.cwd,context.envName,context.caller):!1!==opts.configFile&&(configFile=yield*(0,_files.findRootConfig)(context.root,context.envName,context.caller));let{babelrc,babelrcRoots}=opts,babelrcRootsDirectory=context.cwd;const configFileChain=emptyChain(),configFileLogger=new _printer.ConfigPrinter;if(configFile){const validatedFile=validateConfigFile(configFile),result=yield*loadFileChain(validatedFile,context,void 0,configFileLogger);if(!result)return null;configReport=yield*configFileLogger.output(),void 0===babelrc&&(babelrc=validatedFile.options.babelrc),void 0===babelrcRoots&&(babelrcRootsDirectory=validatedFile.dirname,babelrcRoots=validatedFile.options.babelrcRoots),mergeChain(configFileChain,result)}let ignoreFile,babelrcFile,isIgnored=!1;const fileChain=emptyChain();if((!0===babelrc||void 0===babelrc)&&"string"==typeof context.filename){const pkgData=yield*(0,_files.findPackageData)(context.filename);if(pkgData&&function(context,pkgData,babelrcRoots,babelrcRootsDirectory){if("boolean"==typeof babelrcRoots)return babelrcRoots;const absoluteRoot=context.root;if(void 0===babelrcRoots)return-1!==pkgData.directories.indexOf(absoluteRoot);let babelrcPatterns=babelrcRoots;Array.isArray(babelrcPatterns)||(babelrcPatterns=[babelrcPatterns]);if(babelrcPatterns=babelrcPatterns.map((pat=>"string"==typeof pat?_path().resolve(babelrcRootsDirectory,pat):pat)),1===babelrcPatterns.length&&babelrcPatterns[0]===absoluteRoot)return-1!==pkgData.directories.indexOf(absoluteRoot);return babelrcPatterns.some((pat=>("string"==typeof pat&&(pat=(0,_patternToRegex.default)(pat,babelrcRootsDirectory)),pkgData.directories.some((directory=>matchPattern(pat,babelrcRootsDirectory,directory,context))))))}(context,pkgData,babelrcRoots,babelrcRootsDirectory)){if(({ignore:ignoreFile,config:babelrcFile}=yield*(0,_files.findRelativeConfig)(pkgData,context.envName,context.caller)),ignoreFile&&fileChain.files.add(ignoreFile.filepath),ignoreFile&&shouldIgnore(context,ignoreFile.ignore,null,ignoreFile.dirname)&&(isIgnored=!0),babelrcFile&&!isIgnored){const validatedFile=validateBabelrcFile(babelrcFile),babelrcLogger=new _printer.ConfigPrinter,result=yield*loadFileChain(validatedFile,context,void 0,babelrcLogger);result?(babelRcReport=yield*babelrcLogger.output(),mergeChain(fileChain,result)):isIgnored=!0}babelrcFile&&isIgnored&&fileChain.files.add(babelrcFile.filepath)}}context.showConfig&&console.log(`Babel configs on "${context.filename}" (ascending priority):\n`+[configReport,babelRcReport,programmaticReport].filter((x=>!!x)).join("\n\n")+"\n-----End Babel configs-----");const chain=mergeChain(mergeChain(mergeChain(emptyChain(),configFileChain),fileChain),programmaticChain);return{plugins:isIgnored?[]:dedupDescriptors(chain.plugins),presets:isIgnored?[]:dedupDescriptors(chain.presets),options:isIgnored?[]:chain.options.map((o=>normalizeOptions(o))),fileHandling:isIgnored?"ignored":"transpile",ignore:ignoreFile||void 0,babelrc:babelrcFile||void 0,config:configFile||void 0,files:chain.files}};var _options=__webpack_require__("./node_modules/@babel/core/lib/config/validation/options.js"),_patternToRegex=__webpack_require__("./node_modules/@babel/core/lib/config/pattern-to-regex.js"),_printer=__webpack_require__("./node_modules/@babel/core/lib/config/printer.js"),_files=__webpack_require__("./node_modules/@babel/core/lib/config/files/index.js"),_caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js"),_configDescriptors=__webpack_require__("./node_modules/@babel/core/lib/config/config-descriptors.js");const debug=_debug()("babel:config:config-chain");const buildPresetChainWalker=makeChainWalker({root:preset=>loadPresetDescriptors(preset),env:(preset,envName)=>loadPresetEnvDescriptors(preset)(envName),overrides:(preset,index)=>loadPresetOverridesDescriptors(preset)(index),overridesEnv:(preset,index,envName)=>loadPresetOverridesEnvDescriptors(preset)(index)(envName),createLogger:()=>()=>{}});exports.buildPresetChainWalker=buildPresetChainWalker;const loadPresetDescriptors=(0,_caching.makeWeakCacheSync)((preset=>buildRootDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors))),loadPresetEnvDescriptors=(0,_caching.makeWeakCacheSync)((preset=>(0,_caching.makeStrongCacheSync)((envName=>buildEnvDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,envName))))),loadPresetOverridesDescriptors=(0,_caching.makeWeakCacheSync)((preset=>(0,_caching.makeStrongCacheSync)((index=>buildOverrideDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,index))))),loadPresetOverridesEnvDescriptors=(0,_caching.makeWeakCacheSync)((preset=>(0,_caching.makeStrongCacheSync)((index=>(0,_caching.makeStrongCacheSync)((envName=>buildOverrideEnvDescriptors(preset,preset.alias,_configDescriptors.createUncachedDescriptors,index,envName)))))));const validateConfigFile=(0,_caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0,_options.validate)("configfile",file.options)}))),validateBabelrcFile=(0,_caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0,_options.validate)("babelrcfile",file.options)}))),validateExtendFile=(0,_caching.makeWeakCacheSync)((file=>({filepath:file.filepath,dirname:file.dirname,options:(0,_options.validate)("extendsfile",file.options)}))),loadProgrammaticChain=makeChainWalker({root:input=>buildRootDescriptors(input,"base",_configDescriptors.createCachedDescriptors),env:(input,envName)=>buildEnvDescriptors(input,"base",_configDescriptors.createCachedDescriptors,envName),overrides:(input,index)=>buildOverrideDescriptors(input,"base",_configDescriptors.createCachedDescriptors,index),overridesEnv:(input,index,envName)=>buildOverrideEnvDescriptors(input,"base",_configDescriptors.createCachedDescriptors,index,envName),createLogger:(input,context,baseLogger)=>function(_,context,baseLogger){var _context$caller;if(!baseLogger)return()=>{};return baseLogger.configure(context.showConfig,_printer.ChainFormatter.Programmatic,{callerName:null==(_context$caller=context.caller)?void 0:_context$caller.name})}(0,context,baseLogger)}),loadFileChainWalker=makeChainWalker({root:file=>loadFileDescriptors(file),env:(file,envName)=>loadFileEnvDescriptors(file)(envName),overrides:(file,index)=>loadFileOverridesDescriptors(file)(index),overridesEnv:(file,index,envName)=>loadFileOverridesEnvDescriptors(file)(index)(envName),createLogger:(file,context,baseLogger)=>function(filepath,context,baseLogger){if(!baseLogger)return()=>{};return baseLogger.configure(context.showConfig,_printer.ChainFormatter.Config,{filepath})}(file.filepath,context,baseLogger)});function*loadFileChain(input,context,files,baseLogger){const chain=yield*loadFileChainWalker(input,context,files,baseLogger);return chain&&chain.files.add(input.filepath),chain}const loadFileDescriptors=(0,_caching.makeWeakCacheSync)((file=>buildRootDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors))),loadFileEnvDescriptors=(0,_caching.makeWeakCacheSync)((file=>(0,_caching.makeStrongCacheSync)((envName=>buildEnvDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,envName))))),loadFileOverridesDescriptors=(0,_caching.makeWeakCacheSync)((file=>(0,_caching.makeStrongCacheSync)((index=>buildOverrideDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,index))))),loadFileOverridesEnvDescriptors=(0,_caching.makeWeakCacheSync)((file=>(0,_caching.makeStrongCacheSync)((index=>(0,_caching.makeStrongCacheSync)((envName=>buildOverrideEnvDescriptors(file,file.filepath,_configDescriptors.createUncachedDescriptors,index,envName)))))));function buildRootDescriptors({dirname,options},alias,descriptors){return descriptors(dirname,options,alias)}function buildEnvDescriptors({dirname,options},alias,descriptors,envName){const opts=options.env&&options.env[envName];return opts?descriptors(dirname,opts,`${alias}.env["${envName}"]`):null}function buildOverrideDescriptors({dirname,options},alias,descriptors,index){const opts=options.overrides&&options.overrides[index];if(!opts)throw new Error("Assertion failure - missing override");return descriptors(dirname,opts,`${alias}.overrides[${index}]`)}function buildOverrideEnvDescriptors({dirname,options},alias,descriptors,index,envName){const override=options.overrides&&options.overrides[index];if(!override)throw new Error("Assertion failure - missing override");const opts=override.env&&override.env[envName];return opts?descriptors(dirname,opts,`${alias}.overrides[${index}].env["${envName}"]`):null}function makeChainWalker({root,env,overrides,overridesEnv,createLogger}){return function*(input,context,files=new Set,baseLogger){const{dirname}=input,flattenedConfigs=[],rootOpts=root(input);if(configIsApplicable(rootOpts,dirname,context)){flattenedConfigs.push({config:rootOpts,envName:void 0,index:void 0});const envOpts=env(input,context.envName);envOpts&&configIsApplicable(envOpts,dirname,context)&&flattenedConfigs.push({config:envOpts,envName:context.envName,index:void 0}),(rootOpts.options.overrides||[]).forEach(((_,index)=>{const overrideOps=overrides(input,index);if(configIsApplicable(overrideOps,dirname,context)){flattenedConfigs.push({config:overrideOps,index,envName:void 0});const overrideEnvOpts=overridesEnv(input,index,context.envName);overrideEnvOpts&&configIsApplicable(overrideEnvOpts,dirname,context)&&flattenedConfigs.push({config:overrideEnvOpts,index,envName:context.envName})}}))}if(flattenedConfigs.some((({config:{options:{ignore,only}}})=>shouldIgnore(context,ignore,only,dirname))))return null;const chain=emptyChain(),logger=createLogger(input,context,baseLogger);for(const{config,index,envName}of flattenedConfigs){if(!(yield*mergeExtendsChain(chain,config.options,dirname,context,files,baseLogger)))return null;logger(config,index,envName),yield*mergeChainOpts(chain,config)}return chain}}function*mergeExtendsChain(chain,opts,dirname,context,files,baseLogger){if(void 0===opts.extends)return!0;const file=yield*(0,_files.loadConfig)(opts.extends,dirname,context.envName,context.caller);if(files.has(file))throw new Error(`Configuration cycle detected loading ${file.filepath}.\nFile already loaded following the config chain:\n`+Array.from(files,(file=>` - ${file.filepath}`)).join("\n"));files.add(file);const fileChain=yield*loadFileChain(validateExtendFile(file),context,files,baseLogger);return files.delete(file),!!fileChain&&(mergeChain(chain,fileChain),!0)}function mergeChain(target,source){target.options.push(...source.options),target.plugins.push(...source.plugins),target.presets.push(...source.presets);for(const file of source.files)target.files.add(file);return target}function*mergeChainOpts(target,{options,plugins,presets}){return target.options.push(options),target.plugins.push(...yield*plugins()),target.presets.push(...yield*presets()),target}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(opts){const options=Object.assign({},opts);return delete options.extends,delete options.env,delete options.overrides,delete options.plugins,delete options.presets,delete options.passPerPreset,delete options.ignore,delete options.only,delete options.test,delete options.include,delete options.exclude,Object.prototype.hasOwnProperty.call(options,"sourceMap")&&(options.sourceMaps=options.sourceMap,delete options.sourceMap),options}function dedupDescriptors(items){const map=new Map,descriptors=[];for(const item of items)if("function"==typeof item.value){const fnKey=item.value;let nameMap=map.get(fnKey);nameMap||(nameMap=new Map,map.set(fnKey,nameMap));let desc=nameMap.get(item.name);desc?desc.value=item:(desc={value:item},descriptors.push(desc),item.ownPass||nameMap.set(item.name,desc))}else descriptors.push({value:item});return descriptors.reduce(((acc,desc)=>(acc.push(desc.value),acc)),[])}function configIsApplicable({options},dirname,context){return(void 0===options.test||configFieldIsApplicable(context,options.test,dirname))&&(void 0===options.include||configFieldIsApplicable(context,options.include,dirname))&&(void 0===options.exclude||!configFieldIsApplicable(context,options.exclude,dirname))}function configFieldIsApplicable(context,test,dirname){return matchesPatterns(context,Array.isArray(test)?test:[test],dirname)}function ignoreListReplacer(_key,value){return value instanceof RegExp?String(value):value}function shouldIgnore(context,ignore,only,dirname){if(ignore&&matchesPatterns(context,ignore,dirname)){var _context$filename;const message=`No config is applied to "${null!=(_context$filename=context.filename)?_context$filename:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore,ignoreListReplacer)}\` from "${dirname}"`;return debug(message),context.showConfig&&console.log(message),!0}if(only&&!matchesPatterns(context,only,dirname)){var _context$filename2;const message=`No config is applied to "${null!=(_context$filename2=context.filename)?_context$filename2:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only,ignoreListReplacer)}\` from "${dirname}"`;return debug(message),context.showConfig&&console.log(message),!0}return!1}function matchesPatterns(context,patterns,dirname){return patterns.some((pattern=>matchPattern(pattern,dirname,context.filename,context)))}function matchPattern(pattern,dirname,pathToTest,context){if("function"==typeof pattern)return!!pattern(pathToTest,{dirname,envName:context.envName,caller:context.caller});if("string"!=typeof pathToTest)throw new Error("Configuration contains string/RegExp pattern, but no filename was passed to Babel");return"string"==typeof pattern&&(pattern=(0,_patternToRegex.default)(pattern,dirname)),pattern.test(pathToTest)}},"./node_modules/@babel/core/lib/config/config-descriptors.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createCachedDescriptors=function(dirname,options,alias){const{plugins,presets,passPerPreset}=options;return{options:optionsWithResolvedBrowserslistConfigFile(options,dirname),plugins:plugins?()=>createCachedPluginDescriptors(plugins,dirname)(alias):()=>handlerOf([]),presets:presets?()=>createCachedPresetDescriptors(presets,dirname)(alias)(!!passPerPreset):()=>handlerOf([])}},exports.createDescriptor=createDescriptor,exports.createUncachedDescriptors=function(dirname,options,alias){let plugins,presets;return{options:optionsWithResolvedBrowserslistConfigFile(options,dirname),*plugins(){return plugins||(plugins=yield*createPluginDescriptors(options.plugins||[],dirname,alias)),plugins},*presets(){return presets||(presets=yield*createPresetDescriptors(options.presets||[],dirname,alias,!!options.passPerPreset)),presets}}};var _files=__webpack_require__("./node_modules/@babel/core/lib/config/files/index.js"),_item=__webpack_require__("./node_modules/@babel/core/lib/config/item.js"),_caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js"),_resolveTargets=__webpack_require__("./node_modules/@babel/core/lib/config/resolve-targets.js");function*handlerOf(value){return value}function optionsWithResolvedBrowserslistConfigFile(options,dirname){return"string"==typeof options.browserslistConfigFile&&(options.browserslistConfigFile=(0,_resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile,dirname)),options}const PRESET_DESCRIPTOR_CACHE=new WeakMap,createCachedPresetDescriptors=(0,_caching.makeWeakCacheSync)(((items,cache)=>{const dirname=cache.using((dir=>dir));return(0,_caching.makeStrongCacheSync)((alias=>(0,_caching.makeStrongCache)((function*(passPerPreset){return(yield*createPresetDescriptors(items,dirname,alias,passPerPreset)).map((desc=>loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE,desc)))}))))})),PLUGIN_DESCRIPTOR_CACHE=new WeakMap,createCachedPluginDescriptors=(0,_caching.makeWeakCacheSync)(((items,cache)=>{const dirname=cache.using((dir=>dir));return(0,_caching.makeStrongCache)((function*(alias){return(yield*createPluginDescriptors(items,dirname,alias)).map((desc=>loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE,desc)))}))})),DEFAULT_OPTIONS={};function loadCachedDescriptor(cache,desc){const{value,options=DEFAULT_OPTIONS}=desc;if(!1===options)return desc;let cacheByOptions=cache.get(value);cacheByOptions||(cacheByOptions=new WeakMap,cache.set(value,cacheByOptions));let possibilities=cacheByOptions.get(options);if(possibilities||(possibilities=[],cacheByOptions.set(options,possibilities)),-1===possibilities.indexOf(desc)){const matches=possibilities.filter((possibility=>{return b=desc,(a=possibility).name===b.name&&a.value===b.value&&a.options===b.options&&a.dirname===b.dirname&&a.alias===b.alias&&a.ownPass===b.ownPass&&(a.file&&a.file.request)===(b.file&&b.file.request)&&(a.file&&a.file.resolved)===(b.file&&b.file.resolved);var a,b}));if(matches.length>0)return matches[0];possibilities.push(desc)}return desc}function*createPresetDescriptors(items,dirname,alias,passPerPreset){return yield*createDescriptors("preset",items,dirname,alias,passPerPreset)}function*createPluginDescriptors(items,dirname,alias){return yield*createDescriptors("plugin",items,dirname,alias)}function*createDescriptors(type,items,dirname,alias,ownPass){const descriptors=yield*_gensync().all(items.map(((item,index)=>createDescriptor(item,dirname,{type,alias:`${alias}$${index}`,ownPass:!!ownPass}))));return function(items){const map=new Map;for(const item of items){if("function"!=typeof item.value)continue;let nameMap=map.get(item.value);if(nameMap||(nameMap=new Set,map.set(item.value,nameMap)),nameMap.has(item.name)){const conflicts=items.filter((i=>i.value===item.value));throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",`${JSON.stringify(conflicts,null,2)}`].join("\n"))}nameMap.add(item.name)}}(descriptors),descriptors}function*createDescriptor(pair,dirname,{type,alias,ownPass}){const desc=(0,_item.getItemDescriptor)(pair);if(desc)return desc;let name,options,file,value=pair;Array.isArray(value)&&(3===value.length?[value,options,name]=value:[value,options]=value);let filepath=null;if("string"==typeof value){if("string"!=typeof type)throw new Error("To resolve a string-based item, the type of item must be given");const resolver="plugin"===type?_files.loadPlugin:_files.loadPreset,request=value;({filepath,value}=yield*resolver(value,dirname)),file={request,resolved:filepath}}if(!value)throw new Error(`Unexpected falsy value: ${String(value)}`);if("object"==typeof value&&value.__esModule){if(!value.default)throw new Error("Must export a default export when using ES6 modules.");value=value.default}if("object"!=typeof value&&"function"!=typeof value)throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`);if(null!==filepath&&"object"==typeof value&&value)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);return{name,alias:filepath||alias,value,options,dirname,ownPass,file}}},"./node_modules/@babel/core/lib/config/files/configuration.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _debug(){const data=__webpack_require__("./node_modules/debug/src/index.js");return _debug=function(){return data},data}function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _json(){const data=__webpack_require__("./node_modules/json5/dist/index.mjs");return _json=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ROOT_CONFIG_FILENAMES=void 0,exports.findConfigUpwards=function(rootDir){let dirname=rootDir;for(;;){for(const filename of ROOT_CONFIG_FILENAMES)if(_fs().existsSync(_path().join(dirname,filename)))return dirname;const nextDir=_path().dirname(dirname);if(dirname===nextDir)break;dirname=nextDir}return null},exports.findRelativeConfig=function*(packageData,envName,caller){let config=null,ignore=null;const dirname=_path().dirname(packageData.filepath);for(const loc of packageData.directories){var _packageData$pkg;if(!config)config=yield*loadOneConfig(RELATIVE_CONFIG_FILENAMES,loc,envName,caller,(null==(_packageData$pkg=packageData.pkg)?void 0:_packageData$pkg.dirname)===loc?packageToBabelConfig(packageData.pkg):null);if(!ignore){const ignoreLoc=_path().join(loc,".babelignore");ignore=yield*readIgnoreConfig(ignoreLoc),ignore&&debug("Found ignore %o from %o.",ignore.filepath,dirname)}}return{config,ignore}},exports.findRootConfig=function(dirname,envName,caller){return loadOneConfig(ROOT_CONFIG_FILENAMES,dirname,envName,caller)},exports.loadConfig=function*(name,dirname,envName,caller){const filepath=(v=process.versions.node,w="8.9",v=v.split("."),w=w.split("."),+v[0]>+w[0]||v[0]==w[0]&&+v[1]>=+w[1]?__webpack_require__("./node_modules/@babel/core/lib/config/files sync recursive").resolve:(r,{paths:[b]},M=__webpack_require__("module"))=>{let f=M._findPath(r,M._nodeModulePaths(b).concat(b));if(f)return f;throw f=new Error(`Cannot resolve module '${r}'`),f.code="MODULE_NOT_FOUND",f})(name,{paths:[dirname]}),conf=yield*readConfig(filepath,envName,caller);var v,w;if(!conf)throw new Error(`Config file ${filepath} contains no configuration data`);return debug("Loaded config %o from %o.",name,dirname),conf},exports.resolveShowConfigPath=function*(dirname){const targetPath=process.env.BABEL_SHOW_CONFIG_FOR;if(null!=targetPath){const absolutePath=_path().resolve(dirname,targetPath);if(!(yield*fs.stat(absolutePath)).isFile())throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return absolutePath}return null};var _caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js"),_configApi=__webpack_require__("./node_modules/@babel/core/lib/config/helpers/config-api.js"),_utils=__webpack_require__("./node_modules/@babel/core/lib/config/files/utils.js"),_moduleTypes=__webpack_require__("./node_modules/@babel/core/lib/config/files/module-types.js"),_patternToRegex=__webpack_require__("./node_modules/@babel/core/lib/config/pattern-to-regex.js"),fs=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/fs.js");const debug=_debug()("babel:config:loading:files:configuration"),ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json"];exports.ROOT_CONFIG_FILENAMES=ROOT_CONFIG_FILENAMES;const RELATIVE_CONFIG_FILENAMES=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json"];function*loadOneConfig(names,dirname,envName,caller,previousConfig=null){const config=(yield*_gensync().all(names.map((filename=>readConfig(_path().join(dirname,filename),envName,caller))))).reduce(((previousConfig,config)=>{if(config&&previousConfig)throw new Error(`Multiple configuration files found. Please remove one:\n - ${_path().basename(previousConfig.filepath)}\n - ${config.filepath}\nfrom ${dirname}`);return config||previousConfig}),previousConfig);return config&&debug("Found configuration %o from %o.",config.filepath,dirname),config}function readConfig(filepath,envName,caller){const ext=_path().extname(filepath);return".js"===ext||".cjs"===ext||".mjs"===ext?readConfigJS(filepath,{envName,caller}):readConfigJSON5(filepath)}const LOADING_CONFIGS=new Set,readConfigJS=(0,_caching.makeStrongCache)((function*(filepath,cache){if(!_fs().existsSync(filepath))return cache.never(),null;if(LOADING_CONFIGS.has(filepath))return cache.never(),debug("Auto-ignoring usage of config %o.",filepath),{filepath,dirname:_path().dirname(filepath),options:{}};let options;try{LOADING_CONFIGS.add(filepath),options=yield*(0,_moduleTypes.default)(filepath,"You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.")}catch(err){throw err.message=`${filepath}: Error while loading config - ${err.message}`,err}finally{LOADING_CONFIGS.delete(filepath)}let assertCache=!1;if("function"==typeof options&&(yield*[],options=options((0,_configApi.makeConfigAPI)(cache)),assertCache=!0),!options||"object"!=typeof options||Array.isArray(options))throw new Error(`${filepath}: Configuration should be an exported JavaScript object.`);if("function"==typeof options.then)throw new Error("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.");return assertCache&&!cache.configured()&&function(){throw new Error('Caching was left unconfigured. Babel\'s plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don\'t call this function again.\n api.cache(true);\n\n // Don\'t cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};')}(),{filepath,dirname:_path().dirname(filepath),options}})),packageToBabelConfig=(0,_caching.makeWeakCacheSync)((file=>{const babel=file.options.babel;if(void 0===babel)return null;if("object"!=typeof babel||Array.isArray(babel)||null===babel)throw new Error(`${file.filepath}: .babel property must be an object`);return{filepath:file.filepath,dirname:file.dirname,options:babel}})),readConfigJSON5=(0,_utils.makeStaticFileCache)(((filepath,content)=>{let options;try{options=_json().parse(content)}catch(err){throw err.message=`${filepath}: Error while parsing config - ${err.message}`,err}if(!options)throw new Error(`${filepath}: No config detected`);if("object"!=typeof options)throw new Error(`${filepath}: Config returned typeof ${typeof options}`);if(Array.isArray(options))throw new Error(`${filepath}: Expected config object but found array`);return delete options.$schema,{filepath,dirname:_path().dirname(filepath),options}})),readIgnoreConfig=(0,_utils.makeStaticFileCache)(((filepath,content)=>{const ignoreDir=_path().dirname(filepath),ignorePatterns=content.split("\n").map((line=>line.replace(/#(.*?)$/,"").trim())).filter((line=>!!line));for(const pattern of ignorePatterns)if("!"===pattern[0])throw new Error("Negation of file paths is not supported.");return{filepath,dirname:_path().dirname(filepath),ignore:ignorePatterns.map((pattern=>(0,_patternToRegex.default)(pattern,ignoreDir)))}}))},"./node_modules/@babel/core/lib/config/files/import-meta-resolve.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(_x,_x2){return _resolve.apply(this,arguments)};var _importMetaResolve=__webpack_require__("./node_modules/@babel/core/lib/vendor/import-meta-resolve.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}let import_;try{import_=__webpack_require__("./node_modules/@babel/core/lib/config/files/import.js").Z}catch(_unused){}const importMetaResolveP=import_&&process.execArgv.includes("--experimental-import-meta-resolve")?import_("data:text/javascript,export default import.meta.resolve").then((m=>m.default||_importMetaResolve.resolve),(()=>_importMetaResolve.resolve)):Promise.resolve(_importMetaResolve.resolve);function _resolve(){return(_resolve=_asyncToGenerator((function*(specifier,parent){return(yield importMetaResolveP)(specifier,parent)}))).apply(this,arguments)}},"./node_modules/@babel/core/lib/config/files/import.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";exports.Z=function(filepath){return __webpack_require__("./node_modules/@babel/core/lib/config/files lazy recursive")(filepath)}},"./node_modules/@babel/core/lib/config/files/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return _configuration.ROOT_CONFIG_FILENAMES}}),Object.defineProperty(exports,"findConfigUpwards",{enumerable:!0,get:function(){return _configuration.findConfigUpwards}}),Object.defineProperty(exports,"findPackageData",{enumerable:!0,get:function(){return _package.findPackageData}}),Object.defineProperty(exports,"findRelativeConfig",{enumerable:!0,get:function(){return _configuration.findRelativeConfig}}),Object.defineProperty(exports,"findRootConfig",{enumerable:!0,get:function(){return _configuration.findRootConfig}}),Object.defineProperty(exports,"loadConfig",{enumerable:!0,get:function(){return _configuration.loadConfig}}),Object.defineProperty(exports,"loadPlugin",{enumerable:!0,get:function(){return plugins.loadPlugin}}),Object.defineProperty(exports,"loadPreset",{enumerable:!0,get:function(){return plugins.loadPreset}}),exports.resolvePreset=exports.resolvePlugin=void 0,Object.defineProperty(exports,"resolveShowConfigPath",{enumerable:!0,get:function(){return _configuration.resolveShowConfigPath}});var _package=__webpack_require__("./node_modules/@babel/core/lib/config/files/package.js"),_configuration=__webpack_require__("./node_modules/@babel/core/lib/config/files/configuration.js"),plugins=__webpack_require__("./node_modules/@babel/core/lib/config/files/plugins.js");function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}const resolvePlugin=_gensync()(plugins.resolvePlugin).sync;exports.resolvePlugin=resolvePlugin;const resolvePreset=_gensync()(plugins.resolvePreset).sync;exports.resolvePreset=resolvePreset},"./node_modules/@babel/core/lib/config/files/module-types.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(filepath,asyncError,fallbackToTranspiledModule=!1){switch(function(filename){switch(_path().extname(filename)){case".cjs":return"cjs";case".mjs":return"mjs";default:return"unknown"}}(filepath)){case"cjs":return loadCjsDefault(filepath,fallbackToTranspiledModule);case"unknown":try{return loadCjsDefault(filepath,fallbackToTranspiledModule)}catch(e){if("ERR_REQUIRE_ESM"!==e.code)throw e}case"mjs":if(yield*(0,_async.isAsync)())return yield*(0,_async.waitFor)(function(_x){return _loadMjsDefault.apply(this,arguments)}(filepath));throw new Error(asyncError)}},exports.supportsESM=void 0;var _async=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/async.js");function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}let import_;try{import_=__webpack_require__("./node_modules/@babel/core/lib/config/files/import.js").Z}catch(_unused){}const supportsESM=!!import_;function loadCjsDefault(filepath,fallbackToTranspiledModule){const module=__webpack_require__("./node_modules/@babel/core/lib/config/files sync recursive")(filepath);return null!=module&&module.__esModule?module.default||(fallbackToTranspiledModule?module:void 0):module}function _loadMjsDefault(){return(_loadMjsDefault=_asyncToGenerator((function*(filepath){if(!import_)throw new Error("Internal error: Native ECMAScript modules aren't supported by this platform.\n");return(yield import_((0,_url().pathToFileURL)(filepath))).default}))).apply(this,arguments)}exports.supportsESM=supportsESM},"./node_modules/@babel/core/lib/config/files/package.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.findPackageData=function*(filepath){let pkg=null;const directories=[];let isPackage=!0,dirname=_path().dirname(filepath);for(;!pkg&&"node_modules"!==_path().basename(dirname);){directories.push(dirname),pkg=yield*readConfigPackage(_path().join(dirname,"package.json"));const nextLoc=_path().dirname(dirname);if(dirname===nextLoc){isPackage=!1;break}dirname=nextLoc}return{filepath,directories,pkg,isPackage}};var _utils=__webpack_require__("./node_modules/@babel/core/lib/config/files/utils.js");const readConfigPackage=(0,_utils.makeStaticFileCache)(((filepath,content)=>{let options;try{options=JSON.parse(content)}catch(err){throw err.message=`${filepath}: Error while parsing JSON - ${err.message}`,err}if(!options)throw new Error(`${filepath}: No config detected`);if("object"!=typeof options)throw new Error(`${filepath}: Config returned typeof ${typeof options}`);if(Array.isArray(options))throw new Error(`${filepath}: Expected config object but found array`);return{filepath,dirname:_path().dirname(filepath),options}}))},"./node_modules/@babel/core/lib/config/files/plugins.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _debug(){const data=__webpack_require__("./node_modules/debug/src/index.js");return _debug=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadPlugin=function*(name,dirname){const filepath=yield*resolvePlugin(name,dirname),value=yield*requireModule("plugin",filepath);return debug("Loaded plugin %o from %o.",name,dirname),{filepath,value}},exports.loadPreset=function*(name,dirname){const filepath=yield*resolvePreset(name,dirname),value=yield*requireModule("preset",filepath);return debug("Loaded preset %o from %o.",name,dirname),{filepath,value}},exports.resolvePlugin=resolvePlugin,exports.resolvePreset=resolvePreset;var _async=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/async.js"),_moduleTypes=__webpack_require__("./node_modules/@babel/core/lib/config/files/module-types.js");function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}var _importMetaResolve=__webpack_require__("./node_modules/@babel/core/lib/config/files/import-meta-resolve.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}const debug=_debug()("babel:config:loading:files:plugins"),EXACT_RE=/^module:/,BABEL_PLUGIN_PREFIX_RE=/^(?!@|module:|[^/]+\/|babel-plugin-)/,BABEL_PRESET_PREFIX_RE=/^(?!@|module:|[^/]+\/|babel-preset-)/,BABEL_PLUGIN_ORG_RE=/^(@babel\/)(?!plugin-|[^/]+\/)/,BABEL_PRESET_ORG_RE=/^(@babel\/)(?!preset-|[^/]+\/)/,OTHER_PLUGIN_ORG_RE=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,OTHER_PRESET_ORG_RE=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,OTHER_ORG_DEFAULT_RE=/^(@(?!babel$)[^/]+)$/;function*resolvePlugin(name,dirname){return yield*resolveStandardizedName("plugin",name,dirname)}function*resolvePreset(name,dirname){return yield*resolveStandardizedName("preset",name,dirname)}function standardizeName(type,name){if(_path().isAbsolute(name))return name;const isPreset="preset"===type;return name.replace(isPreset?BABEL_PRESET_PREFIX_RE:BABEL_PLUGIN_PREFIX_RE,`babel-${type}-`).replace(isPreset?BABEL_PRESET_ORG_RE:BABEL_PLUGIN_ORG_RE,`$1${type}-`).replace(isPreset?OTHER_PRESET_ORG_RE:OTHER_PLUGIN_ORG_RE,`$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE,`$1/babel-${type}`).replace(EXACT_RE,"")}function*resolveAlternativesHelper(type,name){const standardizedName=standardizeName(type,name),{error,value}=yield standardizedName;if(!error)return value;if("MODULE_NOT_FOUND"!==error.code)throw error;standardizedName===name||(yield name).error||(error.message+=`\n- If you want to resolve "${name}", use "module:${name}"`),(yield standardizeName(type,"@babel/"+name)).error||(error.message+=`\n- Did you mean "@babel/${name}"?`);const oppositeType="preset"===type?"plugin":"preset";throw(yield standardizeName(oppositeType,name)).error||(error.message+=`\n- Did you accidentally pass a ${oppositeType} as a ${type}?`),error}function tryRequireResolve(id,{paths:[dirname]}){try{return{error:null,value:(v=process.versions.node,w="8.9",v=v.split("."),w=w.split("."),+v[0]>+w[0]||v[0]==w[0]&&+v[1]>=+w[1]?__webpack_require__("./node_modules/@babel/core/lib/config/files sync recursive").resolve:(r,{paths:[b]},M=__webpack_require__("module"))=>{let f=M._findPath(r,M._nodeModulePaths(b).concat(b));if(f)return f;throw f=new Error(`Cannot resolve module '${r}'`),f.code="MODULE_NOT_FOUND",f})(id,{paths:[dirname]})}}catch(error){return{error,value:null}}var v,w}function tryImportMetaResolve(_x,_x2){return _tryImportMetaResolve.apply(this,arguments)}function _tryImportMetaResolve(){return(_tryImportMetaResolve=_asyncToGenerator((function*(id,options){try{return{error:null,value:yield(0,_importMetaResolve.default)(id,options)}}catch(error){return{error,value:null}}}))).apply(this,arguments)}function resolveStandardizedNameForRequrie(type,name,dirname){const it=resolveAlternativesHelper(type,name);let res=it.next();for(;!res.done;)res=it.next(tryRequireResolve(res.value,{paths:[dirname]}));return res.value}function _resolveStandardizedNameForImport(){return(_resolveStandardizedNameForImport=_asyncToGenerator((function*(type,name,dirname){const parentUrl=(0,_url().pathToFileURL)(_path().join(dirname,"./babel-virtual-resolve-base.js")).href,it=resolveAlternativesHelper(type,name);let res=it.next();for(;!res.done;)res=it.next(yield tryImportMetaResolve(res.value,parentUrl));return(0,_url().fileURLToPath)(res.value)}))).apply(this,arguments)}const resolveStandardizedName=_gensync()({sync:(type,name,dirname=process.cwd())=>resolveStandardizedNameForRequrie(type,name,dirname),async:(type,name,dirname=process.cwd())=>_asyncToGenerator((function*(){if(!_moduleTypes.supportsESM)return resolveStandardizedNameForRequrie(type,name,dirname);try{return yield function(_x3,_x4,_x5){return _resolveStandardizedNameForImport.apply(this,arguments)}(type,name,dirname)}catch(e){try{return resolveStandardizedNameForRequrie(type,name,dirname)}catch(e2){if("MODULE_NOT_FOUND"===e.type)throw e;if("MODULE_NOT_FOUND"===e2.type)throw e2;throw e}}}))()});var LOADING_MODULES=new Set;function*requireModule(type,name){if(!(yield*(0,_async.isAsync)())&&LOADING_MODULES.has(name))throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return LOADING_MODULES.add(name),yield*(0,_moduleTypes.default)(name,`You appear to be using a native ECMAScript module ${type}, which is only supported when running Babel asynchronously.`,!0)}catch(err){throw err.message=`[BABEL]: ${err.message} (While processing: ${name})`,err}finally{LOADING_MODULES.delete(name)}}},"./node_modules/@babel/core/lib/config/files/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeStaticFileCache=function(fn){return(0,_caching.makeStrongCache)((function*(filepath,cache){const cached=cache.invalidate((()=>function(filepath){if(!_fs2().existsSync(filepath))return null;try{return+_fs2().statSync(filepath).mtime}catch(e){if("ENOENT"!==e.code&&"ENOTDIR"!==e.code)throw e}return null}(filepath)));return null===cached?null:fn(filepath,yield*fs.readFile(filepath,"utf8"))}))};var _caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js"),fs=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/fs.js");function _fs2(){const data=__webpack_require__("fs");return _fs2=function(){return data},data}},"./node_modules/@babel/core/lib/config/files lazy recursive":module=>{function webpackEmptyAsyncContext(req){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/@babel/core/lib/config/files lazy recursive",module.exports=webpackEmptyAsyncContext},"./node_modules/@babel/core/lib/config/files sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@babel/core/lib/config/files sync recursive",module.exports=webpackEmptyContext},"./node_modules/@babel/core/lib/config/full.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _async=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/async.js"),_util=__webpack_require__("./node_modules/@babel/core/lib/config/util.js"),context=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_plugin=__webpack_require__("./node_modules/@babel/core/lib/config/plugin.js"),_item=__webpack_require__("./node_modules/@babel/core/lib/config/item.js"),_configChain=__webpack_require__("./node_modules/@babel/core/lib/config/config-chain.js");function _traverse(){const data=__webpack_require__("./node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}var _caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js"),_options=__webpack_require__("./node_modules/@babel/core/lib/config/validation/options.js"),_plugins=__webpack_require__("./node_modules/@babel/core/lib/config/validation/plugins.js"),_configApi=__webpack_require__("./node_modules/@babel/core/lib/config/helpers/config-api.js"),_partial=__webpack_require__("./node_modules/@babel/core/lib/config/partial.js"),_default=(__webpack_require__("./node_modules/@babel/core/lib/config/cache-contexts.js"),_gensync()((function*(inputOpts){var _opts$assumptions;const result=yield*(0,_partial.default)(inputOpts);if(!result)return null;const{options,context,fileHandling}=result;if("ignored"===fileHandling)return null;const optionDefaults={},{plugins,presets}=options;if(!plugins||!presets)throw new Error("Assertion failure - plugins and presets exist");const presetContext=Object.assign({},context,{targets:options.targets}),toDescriptor=item=>{const desc=(0,_item.getItemDescriptor)(item);if(!desc)throw new Error("Assertion failure - must be config item");return desc},presetsDescriptors=presets.map(toDescriptor),initialPluginsDescriptors=plugins.map(toDescriptor),pluginDescriptorsByPass=[[]],passes=[],ignored=yield*enhanceError(context,(function*recursePresetDescriptors(rawPresets,pluginDescriptorsPass){const presets=[];for(let i=0;i0){pluginDescriptorsByPass.splice(1,0,...presets.map((o=>o.pass)).filter((p=>p!==pluginDescriptorsPass)));for(const{preset,pass}of presets){if(!preset)return!0;pass.push(...preset.plugins);if(yield*recursePresetDescriptors(preset.presets,pass))return!0;preset.options.forEach((opts=>{(0,_util.mergeOptions)(optionDefaults,opts)}))}}}))(presetsDescriptors,pluginDescriptorsByPass[0]);if(ignored)return null;const opts=optionDefaults;(0,_util.mergeOptions)(opts,options);const pluginContext=Object.assign({},presetContext,{assumptions:null!=(_opts$assumptions=opts.assumptions)?_opts$assumptions:{}});return yield*enhanceError(context,(function*(){pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);for(const descs of pluginDescriptorsByPass){const pass=[];passes.push(pass);for(let i=0;iplugins.length>0)).map((plugins=>({plugins}))),opts.passPerPreset=opts.presets.length>0,{options:opts,passes}})));function enhanceError(context,fn){return function*(arg1,arg2){try{return yield*fn(arg1,arg2)}catch(e){throw/^\[BABEL\]/.test(e.message)||(e.message=`[BABEL] ${context.filename||"unknown"}: ${e.message}`),e}}}exports.default=_default;const makeDescriptorLoader=apiFactory=>(0,_caching.makeWeakCache)((function*({value,options,dirname,alias},cache){if(!1===options)throw new Error("Assertion failure");options=options||{};let item=value;if("function"==typeof value){const factory=(0,_async.maybeAsync)(value,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),api=Object.assign({},context,apiFactory(cache));try{item=yield*factory(api,options,dirname)}catch(e){throw alias&&(e.message+=` (While processing: ${JSON.stringify(alias)})`),e}}if(!item||"object"!=typeof item)throw new Error("Plugin/Preset did not return an object.");if((0,_async.isThenable)(item))throw yield*[],new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(alias)})`);return{value:item,options,dirname,alias}})),pluginDescriptorLoader=makeDescriptorLoader(_configApi.makePluginAPI),presetDescriptorLoader=makeDescriptorLoader(_configApi.makePresetAPI);function*loadPluginDescriptor(descriptor,context){if(descriptor.value instanceof _plugin.default){if(descriptor.options)throw new Error("Passed options to an existing Plugin instance will not work.");return descriptor.value}return yield*instantiatePlugin(yield*pluginDescriptorLoader(descriptor,context),context)}const instantiatePlugin=(0,_caching.makeWeakCache)((function*({value,options,dirname,alias},cache){const pluginObj=(0,_plugins.validatePluginObject)(value),plugin=Object.assign({},pluginObj);if(plugin.visitor&&(plugin.visitor=_traverse().default.explode(Object.assign({},plugin.visitor))),plugin.inherits){const inheritsDescriptor={name:void 0,alias:`${alias}$inherits`,value:plugin.inherits,options,dirname},inherits=yield*(0,_async.forwardAsync)(loadPluginDescriptor,(run=>cache.invalidate((data=>run(inheritsDescriptor,data)))));plugin.pre=chain(inherits.pre,plugin.pre),plugin.post=chain(inherits.post,plugin.post),plugin.manipulateOptions=chain(inherits.manipulateOptions,plugin.manipulateOptions),plugin.visitor=_traverse().default.visitors.merge([inherits.visitor||{},plugin.visitor||{}])}return new _plugin.default(plugin,options,alias)})),validateIfOptionNeedsFilename=(options,descriptor)=>{if(options.test||options.include||options.exclude){const formattedPresetName=descriptor.name?`"${descriptor.name}"`:"/* your preset */";throw new Error([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`,"```",`babel.transform(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}};function*loadPresetDescriptor(descriptor,context){const preset=instantiatePreset(yield*presetDescriptorLoader(descriptor,context));return((preset,context,descriptor)=>{if(!context.filename){const{options}=preset;validateIfOptionNeedsFilename(options,descriptor),options.overrides&&options.overrides.forEach((overrideOptions=>validateIfOptionNeedsFilename(overrideOptions,descriptor)))}})(preset,context,descriptor),yield*(0,_configChain.buildPresetChain)(preset,context)}const instantiatePreset=(0,_caching.makeWeakCacheSync)((({value,dirname,alias})=>({options:(0,_options.validate)("preset",value),alias,dirname})));function chain(a,b){const fns=[a,b].filter(Boolean);return fns.length<=1?fns[0]:function(...args){for(const fn of fns)fn.apply(this,args)}}},"./node_modules/@babel/core/lib/config/helpers/config-api.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _semver(){const data=__webpack_require__("./node_modules/@babel/core/node_modules/semver/semver.js");return _semver=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeConfigAPI=makeConfigAPI,exports.makePluginAPI=function(cache){return Object.assign({},makePresetAPI(cache),{assumption:name=>cache.using((data=>data.assumptions[name]))})},exports.makePresetAPI=makePresetAPI;var _=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_caching=__webpack_require__("./node_modules/@babel/core/lib/config/caching.js");__webpack_require__("./node_modules/@babel/core/lib/config/cache-contexts.js");function makeConfigAPI(cache){return{version:_.version,cache:cache.simple(),env:value=>cache.using((data=>void 0===value?data.envName:"function"==typeof value?(0,_caching.assertSimpleType)(value(data.envName)):(Array.isArray(value)||(value=[value]),value.some((entry=>{if("string"!=typeof entry)throw new Error("Unexpected non-string value");return entry===data.envName}))))),async:()=>!1,caller:cb=>cache.using((data=>(0,_caching.assertSimpleType)(cb(data.caller)))),assertVersion}}function makePresetAPI(cache){return Object.assign({},makeConfigAPI(cache),{targets:()=>JSON.parse(cache.using((data=>JSON.stringify(data.targets))))})}function assertVersion(range){if("number"==typeof range){if(!Number.isInteger(range))throw new Error("Expected string or integer value.");range=`^${range}.0.0-0`}if("string"!=typeof range)throw new Error("Expected string or integer value.");if(_semver().satisfies(_.version,range))return;const limit=Error.stackTraceLimit;"number"==typeof limit&&limit<25&&(Error.stackTraceLimit=25);const err=new Error(`Requires Babel "${range}", but was loaded with "${_.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw"number"==typeof limit&&(Error.stackTraceLimit=limit),Object.assign(err,{code:"BABEL_VERSION_UNSUPPORTED",version:_.version,range})}},"./node_modules/@babel/core/lib/config/helpers/environment.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEnv=function(defaultValue="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||defaultValue}},"./node_modules/@babel/core/lib/config/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createConfigItem=function(target,options,callback){return void 0!==callback?createConfigItemRunner.errback(target,options,callback):"function"==typeof options?createConfigItemRunner.errback(target,void 0,callback):createConfigItemRunner.sync(target,options)},exports.createConfigItemSync=exports.createConfigItemAsync=void 0,Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _full.default}}),exports.loadPartialConfigSync=exports.loadPartialConfigAsync=exports.loadPartialConfig=exports.loadOptionsSync=exports.loadOptionsAsync=exports.loadOptions=void 0;var _full=__webpack_require__("./node_modules/@babel/core/lib/config/full.js"),_partial=__webpack_require__("./node_modules/@babel/core/lib/config/partial.js"),_item=__webpack_require__("./node_modules/@babel/core/lib/config/item.js");const loadOptionsRunner=_gensync()((function*(opts){var _config$options;const config=yield*(0,_full.default)(opts);return null!=(_config$options=null==config?void 0:config.options)?_config$options:null})),createConfigItemRunner=_gensync()(_item.createConfigItem),maybeErrback=runner=>(opts,callback)=>(void 0===callback&&"function"==typeof opts&&(callback=opts,opts=void 0),callback?runner.errback(opts,callback):runner.sync(opts)),loadPartialConfig=maybeErrback(_partial.loadPartialConfig);exports.loadPartialConfig=loadPartialConfig;const loadPartialConfigSync=_partial.loadPartialConfig.sync;exports.loadPartialConfigSync=loadPartialConfigSync;const loadPartialConfigAsync=_partial.loadPartialConfig.async;exports.loadPartialConfigAsync=loadPartialConfigAsync;const loadOptions=maybeErrback(loadOptionsRunner);exports.loadOptions=loadOptions;const loadOptionsSync=loadOptionsRunner.sync;exports.loadOptionsSync=loadOptionsSync;const loadOptionsAsync=loadOptionsRunner.async;exports.loadOptionsAsync=loadOptionsAsync;const createConfigItemSync=createConfigItemRunner.sync;exports.createConfigItemSync=createConfigItemSync;const createConfigItemAsync=createConfigItemRunner.async;exports.createConfigItemAsync=createConfigItemAsync},"./node_modules/@babel/core/lib/config/item.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createConfigItem=function*(value,{dirname=".",type}={}){return createItemFromDescriptor(yield*(0,_configDescriptors.createDescriptor)(value,_path().resolve(dirname),{type,alias:"programmatic item"}))},exports.createItemFromDescriptor=createItemFromDescriptor,exports.getItemDescriptor=function(item){if(null!=item&&item[CONFIG_ITEM_BRAND])return item._descriptor;return};var _configDescriptors=__webpack_require__("./node_modules/@babel/core/lib/config/config-descriptors.js");function createItemFromDescriptor(desc){return new ConfigItem(desc)}const CONFIG_ITEM_BRAND=Symbol.for("@babel/core@7 - ConfigItem");class ConfigItem{constructor(descriptor){this._descriptor=void 0,this[CONFIG_ITEM_BRAND]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=descriptor,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,CONFIG_ITEM_BRAND,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}}Object.freeze(ConfigItem.prototype)},"./node_modules/@babel/core/lib/config/partial.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=loadPrivatePartialConfig,exports.loadPartialConfig=void 0;var _plugin=__webpack_require__("./node_modules/@babel/core/lib/config/plugin.js"),_util=__webpack_require__("./node_modules/@babel/core/lib/config/util.js"),_item=__webpack_require__("./node_modules/@babel/core/lib/config/item.js"),_configChain=__webpack_require__("./node_modules/@babel/core/lib/config/config-chain.js"),_environment=__webpack_require__("./node_modules/@babel/core/lib/config/helpers/environment.js"),_options=__webpack_require__("./node_modules/@babel/core/lib/config/validation/options.js"),_files=__webpack_require__("./node_modules/@babel/core/lib/config/files/index.js"),_resolveTargets=__webpack_require__("./node_modules/@babel/core/lib/config/resolve-targets.js");const _excluded=["showIgnoredFiles"];function*loadPrivatePartialConfig(inputOpts){if(null!=inputOpts&&("object"!=typeof inputOpts||Array.isArray(inputOpts)))throw new Error("Babel options must be an object, null, or undefined");const args=inputOpts?(0,_options.validate)("arguments",inputOpts):{},{envName=(0,_environment.getEnv)(),cwd=".",root:rootDir=".",rootMode="root",caller,cloneInputAst=!0}=args,absoluteCwd=_path().resolve(cwd),absoluteRootDir=function(rootDir,rootMode){switch(rootMode){case"root":return rootDir;case"upward-optional":{const upwardRootDir=(0,_files.findConfigUpwards)(rootDir);return null===upwardRootDir?rootDir:upwardRootDir}case"upward":{const upwardRootDir=(0,_files.findConfigUpwards)(rootDir);if(null!==upwardRootDir)return upwardRootDir;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${rootDir}".\nOne of the following config files must be in the directory tree: "${_files.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:rootDir})}default:throw new Error("Assertion failure - unknown rootMode value.")}}(_path().resolve(absoluteCwd,rootDir),rootMode),filename="string"==typeof args.filename?_path().resolve(cwd,args.filename):void 0,context={filename,cwd:absoluteCwd,root:absoluteRootDir,envName,caller,showConfig:(yield*(0,_files.resolveShowConfigPath)(absoluteCwd))===filename},configChain=yield*(0,_configChain.buildRootChain)(args,context);if(!configChain)return null;const merged={assumptions:{}};configChain.options.forEach((opts=>{(0,_util.mergeOptions)(merged,opts)}));return{options:Object.assign({},merged,{targets:(0,_resolveTargets.resolveTargets)(merged,absoluteRootDir),cloneInputAst,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:context.envName,cwd:context.cwd,root:context.root,rootMode:"root",filename:"string"==typeof context.filename?context.filename:void 0,plugins:configChain.plugins.map((descriptor=>(0,_item.createItemFromDescriptor)(descriptor))),presets:configChain.presets.map((descriptor=>(0,_item.createItemFromDescriptor)(descriptor)))}),context,fileHandling:configChain.fileHandling,ignore:configChain.ignore,babelrc:configChain.babelrc,config:configChain.config,files:configChain.files}}const loadPartialConfig=_gensync()((function*(opts){let showIgnoredFiles=!1;if("object"==typeof opts&&null!==opts&&!Array.isArray(opts)){var _opts=opts;({showIgnoredFiles}=_opts),opts=function(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(_opts,_excluded)}const result=yield*loadPrivatePartialConfig(opts);if(!result)return null;const{options,babelrc,ignore,config,fileHandling,files}=result;return"ignored"!==fileHandling||showIgnoredFiles?((options.plugins||[]).forEach((item=>{if(item.value instanceof _plugin.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")})),new PartialConfig(options,babelrc?babelrc.filepath:void 0,ignore?ignore.filepath:void 0,config?config.filepath:void 0,fileHandling,files)):null}));exports.loadPartialConfig=loadPartialConfig;class PartialConfig{constructor(options,babelrc,ignore,config,fileHandling,files){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=options,this.babelignore=ignore,this.babelrc=babelrc,this.config=config,this.fileHandling=fileHandling,this.files=files,Object.freeze(this)}hasFilesystemConfig(){return void 0!==this.babelrc||void 0!==this.config}}Object.freeze(PartialConfig.prototype)},"./node_modules/@babel/core/lib/config/pattern-to-regex.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pattern,dirname){const parts=_path().resolve(dirname,pattern).split(_path().sep);return new RegExp(["^",...parts.map(((part,i)=>{const last=i===parts.length-1;return"**"===part?last?starStarPatLast:starStarPat:"*"===part?last?starPatLast:starPat:0===part.indexOf("*.")?substitution+escapeRegExp(part.slice(1))+(last?endSep:sep):escapeRegExp(part)+(last?endSep:sep)}))].join(""))};const sep=`\\${_path().sep}`,endSep=`(?:${sep}|$)`,substitution=`[^${sep}]+`,starPat=`(?:${substitution}${sep})`,starPatLast=`(?:${substitution}${endSep})`,starStarPat=`${starPat}*?`,starStarPatLast=`${starPat}*?${starPatLast}?`;function escapeRegExp(string){return string.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}},"./node_modules/@babel/core/lib/config/plugin.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{constructor(plugin,options,key){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.key=plugin.name||key,this.manipulateOptions=plugin.manipulateOptions,this.post=plugin.post,this.pre=plugin.pre,this.visitor=plugin.visitor||{},this.parserOverride=plugin.parserOverride,this.generatorOverride=plugin.generatorOverride,this.options=options}}},"./node_modules/@babel/core/lib/config/printer.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfigPrinter=exports.ChainFormatter=void 0;const ChainFormatter={Programmatic:0,Config:1};exports.ChainFormatter=ChainFormatter;const Formatter={title(type,callerName,filepath){let title="";return type===ChainFormatter.Programmatic?(title="programmatic options",callerName&&(title+=" from "+callerName)):title="config "+filepath,title},loc(index,envName){let loc="";return null!=index&&(loc+=`.overrides[${index}]`),null!=envName&&(loc+=`.env["${envName}"]`),loc},*optionsAndDescriptors(opt){const content=Object.assign({},opt.options);delete content.overrides,delete content.env;const pluginDescriptors=[...yield*opt.plugins()];pluginDescriptors.length&&(content.plugins=pluginDescriptors.map((d=>descriptorToConfig(d))));const presetDescriptors=[...yield*opt.presets()];return presetDescriptors.length&&(content.presets=[...presetDescriptors].map((d=>descriptorToConfig(d)))),JSON.stringify(content,void 0,2)}};function descriptorToConfig(d){var _d$file;let name=null==(_d$file=d.file)?void 0:_d$file.request;return null==name&&("object"==typeof d.value?name=d.value:"function"==typeof d.value&&(name=`[Function: ${d.value.toString().substr(0,50)} ... ]`)),null==name&&(name="[Unknown]"),void 0===d.options?name:null==d.name?[name,d.options]:[name,d.options,d.name]}class ConfigPrinter{constructor(){this._stack=[]}configure(enabled,type,{callerName,filepath}){return enabled?(content,index,envName)=>{this._stack.push({type,callerName,filepath,content,index,envName})}:()=>{}}static*format(config){let title=Formatter.title(config.type,config.callerName,config.filepath);const loc=Formatter.loc(config.index,config.envName);loc&&(title+=` ${loc}`);return`${title}\n${yield*Formatter.optionsAndDescriptors(config.content)}`}*output(){if(0===this._stack.length)return"";return(yield*_gensync().all(this._stack.map((s=>ConfigPrinter.format(s))))).join("\n\n")}}exports.ConfigPrinter=ConfigPrinter},"./node_modules/@babel/core/lib/config/resolve-targets.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _helperCompilationTargets(){const data=__webpack_require__("./stubs/helper_compilation_targets.js");return _helperCompilationTargets=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveBrowserslistConfigFile=function(browserslistConfigFile,configFileDir){return _path().resolve(configFileDir,browserslistConfigFile)},exports.resolveTargets=function(options,root){let targets=options.targets;("string"==typeof targets||Array.isArray(targets))&&(targets={browsers:targets});targets&&targets.esmodules&&(targets=Object.assign({},targets,{esmodules:"intersect"}));const{browserslistConfigFile}=options;let configFile,ignoreBrowserslistConfig=!1;"string"==typeof browserslistConfigFile?configFile=browserslistConfigFile:ignoreBrowserslistConfig=!1===browserslistConfigFile;return(0,_helperCompilationTargets().default)(targets,{ignoreBrowserslistConfig,configFile,configPath:root,browserslistEnv:options.browserslistEnv})}},"./node_modules/@babel/core/lib/config/util.js":(__unused_webpack_module,exports)=>{"use strict";function mergeDefaultFields(target,source){for(const k of Object.keys(source)){const val=source[k];void 0!==val&&(target[k]=val)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIterableIterator=function(value){return!!value&&"function"==typeof value.next&&"function"==typeof value[Symbol.iterator]},exports.mergeOptions=function(target,source){for(const k of Object.keys(source))if("parserOpts"!==k&&"generatorOpts"!==k&&"assumptions"!==k||!source[k]){const val=source[k];void 0!==val&&(target[k]=val)}else{const parserOpts=source[k];mergeDefaultFields(target[k]||(target[k]={}),parserOpts)}}},"./node_modules/@babel/core/lib/config/validation/option-assertions.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _helperCompilationTargets(){const data=__webpack_require__("./stubs/helper_compilation_targets.js");return _helperCompilationTargets=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.access=access,exports.assertArray=assertArray,exports.assertAssumptions=function(loc,value){if(void 0===value)return;if("object"!=typeof value||null===value)throw new Error(`${msg(loc)} must be an object or undefined.`);let root=loc;do{root=root.parent}while("root"!==root.type);const inPreset="preset"===root.source;for(const name of Object.keys(value)){const subLoc=access(loc,name);if(!_options.assumptionsNames.has(name))throw new Error(`${msg(subLoc)} is not a supported assumption.`);if("boolean"!=typeof value[name])throw new Error(`${msg(subLoc)} must be a boolean.`);if(inPreset&&!1===value[name])throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`)}return value},exports.assertBabelrcSearch=function(loc,value){if(void 0===value||"boolean"==typeof value)return value;if(Array.isArray(value))value.forEach(((item,i)=>{if(!checkValidTest(item))throw new Error(`${msg(access(loc,i))} must be a string/Function/RegExp.`)}));else if(!checkValidTest(value))throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(value)}`);return value},exports.assertBoolean=assertBoolean,exports.assertCallerMetadata=function(loc,value){const obj=assertObject(loc,value);if(obj){if("string"!=typeof obj.name)throw new Error(`${msg(loc)} set but does not contain "name" property string`);for(const prop of Object.keys(obj)){const propLoc=access(loc,prop),value=obj[prop];if(null!=value&&"boolean"!=typeof value&&"string"!=typeof value&&"number"!=typeof value)throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`)}}return value},exports.assertCompact=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"auto"!==value)throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`);return value},exports.assertConfigApplicableTest=function(loc,value){if(void 0===value)return value;if(Array.isArray(value))value.forEach(((item,i)=>{if(!checkValidTest(item))throw new Error(`${msg(access(loc,i))} must be a string/Function/RegExp.`)}));else if(!checkValidTest(value))throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`);return value},exports.assertConfigFileSearch=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, got ${JSON.stringify(value)}`);return value},exports.assertFunction=function(loc,value){if(void 0!==value&&"function"!=typeof value)throw new Error(`${msg(loc)} must be a function, or undefined`);return value},exports.assertIgnoreList=function(loc,value){const arr=assertArray(loc,value);arr&&arr.forEach(((item,i)=>function(loc,value){if("string"!=typeof value&&"function"!=typeof value&&!(value instanceof RegExp))throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`);return value}(access(loc,i),item)));return arr},exports.assertInputSourceMap=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&("object"!=typeof value||!value))throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);return value},exports.assertObject=assertObject,exports.assertPluginList=function(loc,value){const arr=assertArray(loc,value);arr&&arr.forEach(((item,i)=>function(loc,value){if(Array.isArray(value)){if(0===value.length)throw new Error(`${msg(loc)} must include an object`);if(value.length>3)throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`);if(assertPluginTarget(access(loc,0),value[0]),value.length>1){const opts=value[1];if(void 0!==opts&&!1!==opts&&("object"!=typeof opts||Array.isArray(opts)||null===opts))throw new Error(`${msg(access(loc,1))} must be an object, false, or undefined`)}if(3===value.length){const name=value[2];if(void 0!==name&&"string"!=typeof name)throw new Error(`${msg(access(loc,2))} must be a string, or undefined`)}}else assertPluginTarget(loc,value);return value}(access(loc,i),item)));return arr},exports.assertRootMode=function(loc,value){if(void 0!==value&&"root"!==value&&"upward"!==value&&"upward-optional"!==value)throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`);return value},exports.assertSourceMaps=function(loc,value){if(void 0!==value&&"boolean"!=typeof value&&"inline"!==value&&"both"!==value)throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`);return value},exports.assertSourceType=function(loc,value){if(void 0!==value&&"module"!==value&&"script"!==value&&"unambiguous"!==value)throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`);return value},exports.assertString=function(loc,value){if(void 0!==value&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a string, or undefined`);return value},exports.assertTargets=function(loc,value){if((0,_helperCompilationTargets().isBrowsersQueryValid)(value))return value;if("object"!=typeof value||!value||Array.isArray(value))throw new Error(`${msg(loc)} must be a string, an array of strings or an object`);const browsersLoc=access(loc,"browsers"),esmodulesLoc=access(loc,"esmodules");assertBrowsersList(browsersLoc,value.browsers),assertBoolean(esmodulesLoc,value.esmodules);for(const key of Object.keys(value)){const val=value[key],subLoc=access(loc,key);if("esmodules"===key)assertBoolean(subLoc,val);else if("browsers"===key)assertBrowsersList(subLoc,val);else{if(!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames,key)){const validTargets=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`)}assertBrowserVersion(subLoc,val)}}return value},exports.msg=msg;var _options=__webpack_require__("./node_modules/@babel/core/lib/config/validation/options.js");function msg(loc){switch(loc.type){case"root":return"";case"env":return`${msg(loc.parent)}.env["${loc.name}"]`;case"overrides":return`${msg(loc.parent)}.overrides[${loc.index}]`;case"option":return`${msg(loc.parent)}.${loc.name}`;case"access":return`${msg(loc.parent)}[${JSON.stringify(loc.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${loc.type}`)}}function access(loc,name){return{type:"access",name,parent:loc}}function assertBoolean(loc,value){if(void 0!==value&&"boolean"!=typeof value)throw new Error(`${msg(loc)} must be a boolean, or undefined`);return value}function assertObject(loc,value){if(void 0!==value&&("object"!=typeof value||Array.isArray(value)||!value))throw new Error(`${msg(loc)} must be an object, or undefined`);return value}function assertArray(loc,value){if(null!=value&&!Array.isArray(value))throw new Error(`${msg(loc)} must be an array, or undefined`);return value}function checkValidTest(value){return"string"==typeof value||"function"==typeof value||value instanceof RegExp}function assertPluginTarget(loc,value){if(("object"!=typeof value||!value)&&"string"!=typeof value&&"function"!=typeof value)throw new Error(`${msg(loc)} must be a string, object, function`);return value}function assertBrowsersList(loc,value){if(void 0!==value&&!(0,_helperCompilationTargets().isBrowsersQueryValid)(value))throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`)}function assertBrowserVersion(loc,value){if(("number"!=typeof value||Math.round(value)!==value)&&"string"!=typeof value)throw new Error(`${msg(loc)} must be a string or an integer number`)}},"./node_modules/@babel/core/lib/config/validation/options.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.assumptionsNames=void 0,exports.checkNoUnwrappedItemOptionPairs=function(items,index,type,e){if(0===index)return;const lastItem=items[index-1],thisItem=items[index];lastItem.file&&void 0===lastItem.options&&"object"==typeof thisItem.value&&(e.message+=`\n- Maybe you meant to use\n"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value,void 0,2)}]\n]\nTo be a valid ${type}, its name and options should be wrapped in a pair of brackets`)},exports.validate=function(type,opts){return validateNested({type:"root",source:type},opts)};__webpack_require__("./node_modules/@babel/core/lib/config/plugin.js");var _removed=__webpack_require__("./node_modules/@babel/core/lib/config/validation/removed.js"),_optionAssertions=__webpack_require__("./node_modules/@babel/core/lib/config/validation/option-assertions.js");const ROOT_VALIDATORS={cwd:_optionAssertions.assertString,root:_optionAssertions.assertString,rootMode:_optionAssertions.assertRootMode,configFile:_optionAssertions.assertConfigFileSearch,caller:_optionAssertions.assertCallerMetadata,filename:_optionAssertions.assertString,filenameRelative:_optionAssertions.assertString,code:_optionAssertions.assertBoolean,ast:_optionAssertions.assertBoolean,cloneInputAst:_optionAssertions.assertBoolean,envName:_optionAssertions.assertString},BABELRC_VALIDATORS={babelrc:_optionAssertions.assertBoolean,babelrcRoots:_optionAssertions.assertBabelrcSearch},NONPRESET_VALIDATORS={extends:_optionAssertions.assertString,ignore:_optionAssertions.assertIgnoreList,only:_optionAssertions.assertIgnoreList,targets:_optionAssertions.assertTargets,browserslistConfigFile:_optionAssertions.assertConfigFileSearch,browserslistEnv:_optionAssertions.assertString},COMMON_VALIDATORS={inputSourceMap:_optionAssertions.assertInputSourceMap,presets:_optionAssertions.assertPluginList,plugins:_optionAssertions.assertPluginList,passPerPreset:_optionAssertions.assertBoolean,assumptions:_optionAssertions.assertAssumptions,env:function(loc,value){if("env"===loc.parent.type)throw new Error(`${(0,_optionAssertions.msg)(loc)} is not allowed inside of another .env block`);const parent=loc.parent,obj=(0,_optionAssertions.assertObject)(loc,value);if(obj)for(const envName of Object.keys(obj)){const env=(0,_optionAssertions.assertObject)((0,_optionAssertions.access)(loc,envName),obj[envName]);if(!env)continue;validateNested({type:"env",name:envName,parent},env)}return obj},overrides:function(loc,value){if("env"===loc.parent.type)throw new Error(`${(0,_optionAssertions.msg)(loc)} is not allowed inside an .env block`);if("overrides"===loc.parent.type)throw new Error(`${(0,_optionAssertions.msg)(loc)} is not allowed inside an .overrides block`);const parent=loc.parent,arr=(0,_optionAssertions.assertArray)(loc,value);if(arr)for(const[index,item]of arr.entries()){const objLoc=(0,_optionAssertions.access)(loc,index),env=(0,_optionAssertions.assertObject)(objLoc,item);if(!env)throw new Error(`${(0,_optionAssertions.msg)(objLoc)} must be an object`);validateNested({type:"overrides",index,parent},env)}return arr},test:_optionAssertions.assertConfigApplicableTest,include:_optionAssertions.assertConfigApplicableTest,exclude:_optionAssertions.assertConfigApplicableTest,retainLines:_optionAssertions.assertBoolean,comments:_optionAssertions.assertBoolean,shouldPrintComment:_optionAssertions.assertFunction,compact:_optionAssertions.assertCompact,minified:_optionAssertions.assertBoolean,auxiliaryCommentBefore:_optionAssertions.assertString,auxiliaryCommentAfter:_optionAssertions.assertString,sourceType:_optionAssertions.assertSourceType,wrapPluginVisitorMethod:_optionAssertions.assertFunction,highlightCode:_optionAssertions.assertBoolean,sourceMaps:_optionAssertions.assertSourceMaps,sourceMap:_optionAssertions.assertSourceMaps,sourceFileName:_optionAssertions.assertString,sourceRoot:_optionAssertions.assertString,parserOpts:_optionAssertions.assertObject,generatorOpts:_optionAssertions.assertObject};Object.assign(COMMON_VALIDATORS,{getModuleId:_optionAssertions.assertFunction,moduleRoot:_optionAssertions.assertString,moduleIds:_optionAssertions.assertBoolean,moduleId:_optionAssertions.assertString});const assumptionsNames=new Set(["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","objectRestNoSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"]);function getSource(loc){return"root"===loc.type?loc.source:getSource(loc.parent)}function validateNested(loc,opts){const type=getSource(loc);return function(opts){if(has(opts,"sourceMap")&&has(opts,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}(opts),Object.keys(opts).forEach((key=>{const optLoc={type:"option",name:key,parent:loc};if("preset"===type&&NONPRESET_VALIDATORS[key])throw new Error(`${(0,_optionAssertions.msg)(optLoc)} is not allowed in preset options`);if("arguments"!==type&&ROOT_VALIDATORS[key])throw new Error(`${(0,_optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`);if("arguments"!==type&&"configfile"!==type&&BABELRC_VALIDATORS[key]){if("babelrcfile"===type||"extendsfile"===type)throw new Error(`${(0,_optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options`);throw new Error(`${(0,_optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`)}(COMMON_VALIDATORS[key]||NONPRESET_VALIDATORS[key]||BABELRC_VALIDATORS[key]||ROOT_VALIDATORS[key]||throwUnknownError)(optLoc,opts[key])})),opts}function throwUnknownError(loc){const key=loc.name;if(_removed.default[key]){const{message,version=5}=_removed.default[key];throw new Error(`Using removed Babel ${version} option: ${(0,_optionAssertions.msg)(loc)} - ${message}`)}{const unknownOptErr=new Error(`Unknown option: ${(0,_optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);throw unknownOptErr.code="BABEL_UNKNOWN_OPTION",unknownOptErr}}function has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}exports.assumptionsNames=assumptionsNames},"./node_modules/@babel/core/lib/config/validation/plugins.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.validatePluginObject=function(obj){const rootPath={type:"root",source:"plugin"};return Object.keys(obj).forEach((key=>{const validator=VALIDATORS[key];if(!validator){const invalidPluginPropertyError=new Error(`.${key} is not a valid Plugin property`);throw invalidPluginPropertyError.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",invalidPluginPropertyError}validator({type:"option",name:key,parent:rootPath},obj[key])})),obj};var _optionAssertions=__webpack_require__("./node_modules/@babel/core/lib/config/validation/option-assertions.js");const VALIDATORS={name:_optionAssertions.assertString,manipulateOptions:_optionAssertions.assertFunction,pre:_optionAssertions.assertFunction,post:_optionAssertions.assertFunction,inherits:_optionAssertions.assertFunction,visitor:function(loc,value){const obj=(0,_optionAssertions.assertObject)(loc,value);if(obj&&(Object.keys(obj).forEach((prop=>function(key,value){if(value&&"object"==typeof value)Object.keys(value).forEach((handler=>{if("enter"!==handler&&"exit"!==handler)throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`)}));else if("function"!=typeof value)throw new Error(`.visitor["${key}"] must be a function`);return value}(prop,obj[prop]))),obj.enter||obj.exit))throw new Error(`${(0,_optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return obj},parserOverride:_optionAssertions.assertFunction,generatorOverride:_optionAssertions.assertFunction}},"./node_modules/@babel/core/lib/config/validation/removed.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}},"./node_modules/@babel/core/lib/gensync-utils/async.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.forwardAsync=function(action,cb){const g=_gensync()(action);return withKind((kind=>{const adapted=g[kind];return cb(adapted)}))},exports.isAsync=void 0,exports.isThenable=isThenable,exports.maybeAsync=function(fn,message){return _gensync()({sync(...args){const result=fn.apply(this,args);if(isThenable(result))throw new Error(message);return result},async(...args){return Promise.resolve(fn.apply(this,args))}})},exports.waitFor=exports.onFirstPause=void 0;const id=x=>x,runGenerator=_gensync()((function*(item){return yield*item})),isAsync=_gensync()({sync:()=>!1,errback:cb=>cb(null,!0)});exports.isAsync=isAsync;const withKind=_gensync()({sync:cb=>cb("sync"),async:cb=>cb("async")});const onFirstPause=_gensync()({name:"onFirstPause",arity:2,sync:function(item){return runGenerator.sync(item)},errback:function(item,firstPause,cb){let completed=!1;runGenerator.errback(item,((err,value)=>{completed=!0,cb(err,value)})),completed||firstPause()}});exports.onFirstPause=onFirstPause;const waitFor=_gensync()({sync:id,async:id});function isThenable(val){return!(!val||"object"!=typeof val&&"function"!=typeof val||!val.then||"function"!=typeof val.then)}exports.waitFor=waitFor},"./node_modules/@babel/core/lib/gensync-utils/fs.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stat=exports.readFile=void 0;const readFile=_gensync()({sync:_fs().readFileSync,errback:_fs().readFile});exports.readFile=readFile;const stat=_gensync()({sync:_fs().statSync,errback:_fs().stat});exports.stat=stat},"./node_modules/@babel/core/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(exports,"File",{enumerable:!0,get:function(){return _file.default}}),exports.OptionManager=void 0,exports.Plugin=function(alias){throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`)},Object.defineProperty(exports,"buildExternalHelpers",{enumerable:!0,get:function(){return _buildExternalHelpers.default}}),Object.defineProperty(exports,"createConfigItem",{enumerable:!0,get:function(){return _config.createConfigItem}}),Object.defineProperty(exports,"createConfigItemAsync",{enumerable:!0,get:function(){return _config.createConfigItemAsync}}),Object.defineProperty(exports,"createConfigItemSync",{enumerable:!0,get:function(){return _config.createConfigItemSync}}),Object.defineProperty(exports,"getEnv",{enumerable:!0,get:function(){return _environment.getEnv}}),Object.defineProperty(exports,"loadOptions",{enumerable:!0,get:function(){return _config.loadOptions}}),Object.defineProperty(exports,"loadOptionsAsync",{enumerable:!0,get:function(){return _config.loadOptionsAsync}}),Object.defineProperty(exports,"loadOptionsSync",{enumerable:!0,get:function(){return _config.loadOptionsSync}}),Object.defineProperty(exports,"loadPartialConfig",{enumerable:!0,get:function(){return _config.loadPartialConfig}}),Object.defineProperty(exports,"loadPartialConfigAsync",{enumerable:!0,get:function(){return _config.loadPartialConfigAsync}}),Object.defineProperty(exports,"loadPartialConfigSync",{enumerable:!0,get:function(){return _config.loadPartialConfigSync}}),Object.defineProperty(exports,"parse",{enumerable:!0,get:function(){return _parse.parse}}),Object.defineProperty(exports,"parseAsync",{enumerable:!0,get:function(){return _parse.parseAsync}}),Object.defineProperty(exports,"parseSync",{enumerable:!0,get:function(){return _parse.parseSync}}),Object.defineProperty(exports,"resolvePlugin",{enumerable:!0,get:function(){return _files.resolvePlugin}}),Object.defineProperty(exports,"resolvePreset",{enumerable:!0,get:function(){return _files.resolvePreset}}),Object.defineProperty(exports,"template",{enumerable:!0,get:function(){return _template().default}}),Object.defineProperty(exports,"tokTypes",{enumerable:!0,get:function(){return _parser().tokTypes}}),Object.defineProperty(exports,"transform",{enumerable:!0,get:function(){return _transform.transform}}),Object.defineProperty(exports,"transformAsync",{enumerable:!0,get:function(){return _transform.transformAsync}}),Object.defineProperty(exports,"transformFile",{enumerable:!0,get:function(){return _transformFile.transformFile}}),Object.defineProperty(exports,"transformFileAsync",{enumerable:!0,get:function(){return _transformFile.transformFileAsync}}),Object.defineProperty(exports,"transformFileSync",{enumerable:!0,get:function(){return _transformFile.transformFileSync}}),Object.defineProperty(exports,"transformFromAst",{enumerable:!0,get:function(){return _transformAst.transformFromAst}}),Object.defineProperty(exports,"transformFromAstAsync",{enumerable:!0,get:function(){return _transformAst.transformFromAstAsync}}),Object.defineProperty(exports,"transformFromAstSync",{enumerable:!0,get:function(){return _transformAst.transformFromAstSync}}),Object.defineProperty(exports,"transformSync",{enumerable:!0,get:function(){return _transform.transformSync}}),Object.defineProperty(exports,"traverse",{enumerable:!0,get:function(){return _traverse().default}}),exports.version=exports.types=void 0;var _file=__webpack_require__("./node_modules/@babel/core/lib/transformation/file/file.js"),_buildExternalHelpers=__webpack_require__("./node_modules/@babel/core/lib/tools/build-external-helpers.js"),_files=__webpack_require__("./node_modules/@babel/core/lib/config/files/index.js"),_environment=__webpack_require__("./node_modules/@babel/core/lib/config/helpers/environment.js");function _types(){const data=__webpack_require__("./node_modules/@babel/types/lib/index.js");return _types=function(){return data},data}function _parser(){const data=__webpack_require__("./node_modules/@babel/parser/lib/index.js");return _parser=function(){return data},data}function _traverse(){const data=__webpack_require__("./node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}function _template(){const data=__webpack_require__("./node_modules/@babel/template/lib/index.js");return _template=function(){return data},data}Object.defineProperty(exports,"types",{enumerable:!0,get:function(){return _types()}});var _config=__webpack_require__("./node_modules/@babel/core/lib/config/index.js"),_transform=__webpack_require__("./node_modules/@babel/core/lib/transform.js"),_transformFile=__webpack_require__("./node_modules/@babel/core/lib/transform-file.js"),_transformAst=__webpack_require__("./node_modules/@babel/core/lib/transform-ast.js"),_parse=__webpack_require__("./node_modules/@babel/core/lib/parse.js");exports.version="7.16.12";const DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);exports.DEFAULT_EXTENSIONS=DEFAULT_EXTENSIONS;exports.OptionManager=class{init(opts){return(0,_config.loadOptions)(opts)}}},"./node_modules/@babel/core/lib/parse.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseSync=exports.parseAsync=exports.parse=void 0;var _config=__webpack_require__("./node_modules/@babel/core/lib/config/index.js"),_parser=__webpack_require__("./node_modules/@babel/core/lib/parser/index.js"),_normalizeOpts=__webpack_require__("./node_modules/@babel/core/lib/transformation/normalize-opts.js");const parseRunner=_gensync()((function*(code,opts){const config=yield*(0,_config.default)(opts);return null===config?null:yield*(0,_parser.default)(config.passes,(0,_normalizeOpts.default)(config),code)}));exports.parse=function(code,opts,callback){if("function"==typeof opts&&(callback=opts,opts=void 0),void 0===callback)return parseRunner.sync(code,opts);parseRunner.errback(code,opts,callback)};const parseSync=parseRunner.sync;exports.parseSync=parseSync;const parseAsync=parseRunner.async;exports.parseAsync=parseAsync},"./node_modules/@babel/core/lib/parser/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _parser(){const data=__webpack_require__("./node_modules/@babel/parser/lib/index.js");return _parser=function(){return data},data}function _codeFrame(){const data=__webpack_require__("./stubs/babel_codeframe.js");return _codeFrame=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(pluginPasses,{parserOpts,highlightCode=!0,filename="unknown"},code){try{const results=[];for(const plugins of pluginPasses)for(const plugin of plugins){const{parserOverride}=plugin;if(parserOverride){const ast=parserOverride(code,parserOpts,_parser().parse);void 0!==ast&&results.push(ast)}}if(0===results.length)return(0,_parser().parse)(code,parserOpts);if(1===results.length){if(yield*[],"function"==typeof results[0].then)throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return results[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(err){"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"===err.code&&(err.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.");const{loc,missingPlugin}=err;if(loc){const codeFrame=(0,_codeFrame().codeFrameColumns)(code,{start:{line:loc.line,column:loc.column+1}},{highlightCode});err.message=missingPlugin?`${filename}: `+(0,_missingPluginHelper.default)(missingPlugin[0],loc,codeFrame):`${filename}: ${err.message}\n\n`+codeFrame,err.code="BABEL_PARSE_ERROR"}throw err}};var _missingPluginHelper=__webpack_require__("./node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js")},"./node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(missingPluginName,loc,codeFrame){let helpMessage=`Support for the experimental syntax '${missingPluginName}' isn't currently enabled (${loc.line}:${loc.column+1}):\n\n`+codeFrame;const pluginInfo=pluginNameMap[missingPluginName];if(pluginInfo){const{syntax:syntaxPlugin,transform:transformPlugin}=pluginInfo;if(syntaxPlugin){const syntaxPluginInfo=getNameURLCombination(syntaxPlugin);if(transformPlugin){const transformPluginInfo=getNameURLCombination(transformPlugin),sectionType=transformPlugin.name.startsWith("@babel/plugin")?"plugins":"presets";helpMessage+=`\n\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`}else helpMessage+=`\n\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable parsing.`}}return helpMessage};const pluginNameMap={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://git.io/JYer8"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-private-methods",url:"https://git.io/JvpRG"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://git.io/JTLB6"},transform:{name:"@babel/plugin-proposal-class-static-block",url:"https://git.io/JTLBP"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://git.io/JfKOH"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://git.io/vb4y9"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://git.io/vb4ST"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://git.io/vb4yh"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://git.io/vb4S3"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://git.io/vb4Sv"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://git.io/vb4SO"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://git.io/vb4yH"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://git.io/vb4Sf"},transform:{name:"@babel/plugin-proposal-export-namespace-from",url:"https://git.io/vb4SG"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://git.io/vb4yb"},transform:{name:"@babel/preset-flow",url:"https://git.io/JfeDn"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://git.io/vb4y7"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://git.io/vb4St"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://git.io/vb4yN"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://git.io/vb4SZ"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://git.io/vbKK6"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://git.io/vb4yA"},transform:{name:"@babel/preset-react",url:"https://git.io/JfeDR"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://git.io/JUbkv"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://git.io/JTL8G"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://git.io/vb4Sq"},transform:{name:"@babel/plugin-proposal-numeric-separator",url:"https://git.io/vb4yS"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://git.io/vb4Sc"},transform:{name:"@babel/plugin-proposal-optional-chaining",url:"https://git.io/vb4Sk"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://git.io/vb4yj"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://git.io/vb4SU"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://git.io/JfK3q"},transform:{name:"@babel/plugin-proposal-private-property-in-object",url:"https://git.io/JfK3O"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://git.io/JvKp3"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://git.io/vb4SJ"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://git.io/vb4yF"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://git.io/vb4SC"},transform:{name:"@babel/preset-typescript",url:"https://git.io/JfeDz"}},asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://git.io/vb4SY"},transform:{name:"@babel/plugin-proposal-async-generator-functions",url:"https://git.io/vb4yp"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://git.io/vAlBp"},transform:{name:"@babel/plugin-proposal-logical-assignment-operators",url:"https://git.io/vAlRe"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://git.io/vb4yx"},transform:{name:"@babel/plugin-proposal-nullish-coalescing-operator",url:"https://git.io/vb4Se"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://git.io/vb4y5"},transform:{name:"@babel/plugin-proposal-object-rest-spread",url:"https://git.io/vb4Ss"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://git.io/vb4Sn"},transform:{name:"@babel/plugin-proposal-optional-catch-binding",url:"https://git.io/vb4SI"}}};pluginNameMap.privateIn.syntax=pluginNameMap.privateIn.transform;const getNameURLCombination=({name,url})=>`${name} (${url})`},"./node_modules/@babel/core/lib/tools/build-external-helpers.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function helpers(){const data=__webpack_require__("./node_modules/@babel/helpers/lib/index.js");return helpers=function(){return data},data}function _generator(){const data=__webpack_require__("./node_modules/@babel/generator/lib/index.js");return _generator=function(){return data},data}function _template(){const data=__webpack_require__("./node_modules/@babel/template/lib/index.js");return _template=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(allowlist,outputType="global"){let tree;const build={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[outputType];if(!build)throw new Error(`Unsupported output type ${outputType}`);tree=build(allowlist);return(0,_generator().default)(tree).code};var _file=__webpack_require__("./node_modules/@babel/core/lib/transformation/file/file.js");const{arrayExpression,assignmentExpression,binaryExpression,blockStatement,callExpression,cloneNode,conditionalExpression,exportNamedDeclaration,exportSpecifier,expressionStatement,functionExpression,identifier,memberExpression,objectExpression,program,stringLiteral,unaryExpression,variableDeclaration,variableDeclarator}=_t();function buildGlobal(allowlist){const namespace=identifier("babelHelpers"),body=[],container=functionExpression(null,[identifier("global")],blockStatement(body)),tree=program([expressionStatement(callExpression(container,[conditionalExpression(binaryExpression("===",unaryExpression("typeof",identifier("global")),stringLiteral("undefined")),identifier("self"),identifier("global"))]))]);return body.push(variableDeclaration("var",[variableDeclarator(namespace,assignmentExpression("=",memberExpression(identifier("global"),namespace),objectExpression([])))])),buildHelpers(body,namespace,allowlist),tree}function buildModule(allowlist){const body=[],refs=buildHelpers(body,null,allowlist);return body.unshift(exportNamedDeclaration(null,Object.keys(refs).map((name=>exportSpecifier(cloneNode(refs[name]),identifier(name)))))),program(body,[],"module")}function buildUmd(allowlist){const namespace=identifier("babelHelpers"),body=[];return body.push(variableDeclaration("var",[variableDeclarator(namespace,identifier("global"))])),buildHelpers(body,namespace,allowlist),program([(replacements={FACTORY_PARAMETERS:identifier("global"),BROWSER_ARGUMENTS:assignmentExpression("=",memberExpression(identifier("root"),namespace),objectExpression([])),COMMON_ARGUMENTS:identifier("exports"),AMD_ARGUMENTS:arrayExpression([stringLiteral("exports")]),FACTORY_BODY:body,UMD_ROOT:identifier("this")},_template().default.statement` (function (root, factory) { if (typeof define === "function" && define.amd) { define(AMD_ARGUMENTS, factory); } else if (typeof exports === "object") { factory(COMMON_ARGUMENTS); } else { factory(BROWSER_ARGUMENTS); } })(UMD_ROOT, function (FACTORY_PARAMETERS) { FACTORY_BODY }); `(replacements))]);var replacements}function buildVar(allowlist){const namespace=identifier("babelHelpers"),body=[];body.push(variableDeclaration("var",[variableDeclarator(namespace,objectExpression([]))]));const tree=program(body);return buildHelpers(body,namespace,allowlist),body.push(expressionStatement(namespace)),tree}function buildHelpers(body,namespace,allowlist){const getHelperReference=name=>namespace?memberExpression(namespace,identifier(name)):identifier(`_${name}`),refs={};return helpers().list.forEach((function(name){if(allowlist&&allowlist.indexOf(name)<0)return;const ref=refs[name]=getHelperReference(name);helpers().ensure(name,_file.default);const{nodes}=helpers().get(name,getHelperReference,ref);body.push(...nodes)})),refs}},"./node_modules/@babel/core/lib/transform-ast.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformFromAstSync=exports.transformFromAstAsync=exports.transformFromAst=void 0;var _config=__webpack_require__("./node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/@babel/core/lib/transformation/index.js");const transformFromAstRunner=_gensync()((function*(ast,code,opts){const config=yield*(0,_config.default)(opts);if(null===config)return null;if(!ast)throw new Error("No AST given");return yield*(0,_transformation.run)(config,code,ast)}));exports.transformFromAst=function(ast,code,opts,callback){if("function"==typeof opts&&(callback=opts,opts=void 0),void 0===callback)return transformFromAstRunner.sync(ast,code,opts);transformFromAstRunner.errback(ast,code,opts,callback)};const transformFromAstSync=transformFromAstRunner.sync;exports.transformFromAstSync=transformFromAstSync;const transformFromAstAsync=transformFromAstRunner.async;exports.transformFromAstAsync=transformFromAstAsync},"./node_modules/@babel/core/lib/transform-file.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformFileSync=exports.transformFileAsync=exports.transformFile=void 0;var _config=__webpack_require__("./node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/@babel/core/lib/transformation/index.js"),fs=__webpack_require__("./node_modules/@babel/core/lib/gensync-utils/fs.js");const transformFileRunner=_gensync()((function*(filename,opts){const options=Object.assign({},opts,{filename}),config=yield*(0,_config.default)(options);if(null===config)return null;const code=yield*fs.readFile(filename,"utf8");return yield*(0,_transformation.run)(config,code)})),transformFile=transformFileRunner.errback;exports.transformFile=transformFile;const transformFileSync=transformFileRunner.sync;exports.transformFileSync=transformFileSync;const transformFileAsync=transformFileRunner.async;exports.transformFileAsync=transformFileAsync},"./node_modules/@babel/core/lib/transform.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _gensync(){const data=__webpack_require__("./node_modules/gensync/index.js");return _gensync=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformSync=exports.transformAsync=exports.transform=void 0;var _config=__webpack_require__("./node_modules/@babel/core/lib/config/index.js"),_transformation=__webpack_require__("./node_modules/@babel/core/lib/transformation/index.js");const transformRunner=_gensync()((function*(code,opts){const config=yield*(0,_config.default)(opts);return null===config?null:yield*(0,_transformation.run)(config,code)}));exports.transform=function(code,opts,callback){if("function"==typeof opts&&(callback=opts,opts=void 0),void 0===callback)return transformRunner.sync(code,opts);transformRunner.errback(code,opts,callback)};const transformSync=transformRunner.sync;exports.transformSync=transformSync;const transformAsync=transformRunner.async;exports.transformAsync=transformAsync},"./node_modules/@babel/core/lib/transformation/block-hoist-plugin.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _traverse(){const data=__webpack_require__("./node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){LOADED_PLUGIN||(LOADED_PLUGIN=new _plugin.default(Object.assign({},blockHoistPlugin,{visitor:_traverse().default.explode(blockHoistPlugin.visitor)}),{}));return LOADED_PLUGIN};var _plugin=__webpack_require__("./node_modules/@babel/core/lib/config/plugin.js");let LOADED_PLUGIN;function priority(bodyNode){const priority=null==bodyNode?void 0:bodyNode._blockHoist;return null==priority?1:!0===priority?2:priority}const blockHoistPlugin={name:"internal.blockHoist",visitor:{Block:{exit({node}){const{body}=node;let max=Math.pow(2,30)-1,hasChange=!1;for(let i=0;imax){hasChange=!0;break}max=p}hasChange&&(node.body=function(body){const buckets=Object.create(null);for(let i=0;i+k)).sort(((a,b)=>b-a));let index=0;for(const key of keys){const bucket=buckets[key];for(const n of bucket)body[index++]=n}return body}(body.slice()))}}}}},"./node_modules/@babel/core/lib/transformation/file/file.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function helpers(){const data=__webpack_require__("./node_modules/@babel/helpers/lib/index.js");return helpers=function(){return data},data}function _traverse(){const data=__webpack_require__("./node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}function _codeFrame(){const data=__webpack_require__("./stubs/babel_codeframe.js");return _codeFrame=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}function _helperModuleTransforms(){const data=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/index.js");return _helperModuleTransforms=function(){return data},data}function _semver(){const data=__webpack_require__("./node_modules/@babel/core/node_modules/semver/semver.js");return _semver=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const{cloneNode,interpreterDirective}=_t(),errorVisitor={enter(path,state){const loc=path.node.loc;loc&&(state.loc=loc,path.stop())}};class File{constructor(options,{code,ast,inputMap}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=null,this.ast={},this.scope=void 0,this.metadata={},this.code="",this.inputMap=null,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=options,this.code=code,this.ast=ast,this.inputMap=inputMap,this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){const{interpreter}=this.path.node;return interpreter?interpreter.value:""}set shebang(value){value?this.path.get("interpreter").replaceWith(interpreterDirective(value)):this.path.get("interpreter").remove()}set(key,val){if("helpersNamespace"===key)throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(key,val)}get(key){return this._map.get(key)}has(key){return this._map.has(key)}getModuleName(){return(0,_helperModuleTransforms().getModuleName)(this.opts,this.opts)}addImport(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")}availableHelper(name,versionRange){let minVersion;try{minVersion=helpers().minVersion(name)}catch(err){if("BABEL_HELPER_UNKNOWN"!==err.code)throw err;return!1}return"string"!=typeof versionRange||(_semver().valid(versionRange)&&(versionRange=`^${versionRange}`),!_semver().intersects(`<${minVersion}`,versionRange)&&!_semver().intersects(">=8.0.0",versionRange))}addHelper(name){const declar=this.declarations[name];if(declar)return cloneNode(declar);const generator=this.get("helperGenerator");if(generator){const res=generator(name);if(res)return res}helpers().ensure(name,File);const uid=this.declarations[name]=this.scope.generateUidIdentifier(name),dependencies={};for(const dep of helpers().getDependencies(name))dependencies[dep]=this.addHelper(dep);const{nodes,globals}=helpers().get(name,(dep=>dependencies[dep]),uid,Object.keys(this.scope.getAllBindings()));return globals.forEach((name=>{this.path.scope.hasBinding(name,!0)&&this.path.scope.rename(name)})),nodes.forEach((node=>{node._compact=!0})),this.path.unshiftContainer("body",nodes),this.path.get("body").forEach((path=>{-1!==nodes.indexOf(path.node)&&path.isVariableDeclaration()&&this.scope.registerDeclaration(path)})),uid}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(node,msg,_Error=SyntaxError){let loc=node&&(node.loc||node._loc);if(!loc&&node){const state={loc:null};(0,_traverse().default)(node,errorVisitor,this.scope,state),loc=state.loc;let txt="This is an error on an internal node. Probably an internal error.";loc&&(txt+=" Location has been estimated."),msg+=` (${txt})`}if(loc){const{highlightCode=!0}=this.opts;msg+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:loc.start.line,column:loc.start.column+1},end:loc.end&&loc.start.line===loc.end.line?{line:loc.end.line,column:loc.end.column+1}:void 0},{highlightCode})}return new _Error(msg)}}exports.default=File},"./node_modules/@babel/core/lib/transformation/file/generate.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _convertSourceMap(){const data=__webpack_require__("./node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return data},data}function _generator(){const data=__webpack_require__("./node_modules/@babel/generator/lib/index.js");return _generator=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pluginPasses,file){const{opts,ast,code,inputMap}=file,results=[];for(const plugins of pluginPasses)for(const plugin of plugins){const{generatorOverride}=plugin;if(generatorOverride){const result=generatorOverride(ast,opts.generatorOpts,code,_generator().default);void 0!==result&&results.push(result)}}let result;if(0===results.length)result=(0,_generator().default)(ast,opts.generatorOpts,code);else{if(1!==results.length)throw new Error("More than one plugin attempted to override codegen.");if(result=results[0],"function"==typeof result.then)throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:outputCode,map:outputMap}=result;outputMap&&inputMap&&(outputMap=(0,_mergeMap.default)(inputMap.toObject(),outputMap));"inline"!==opts.sourceMaps&&"both"!==opts.sourceMaps||(outputCode+="\n"+_convertSourceMap().fromObject(outputMap).toComment());"inline"===opts.sourceMaps&&(outputMap=null);return{outputCode,outputMap}};var _mergeMap=__webpack_require__("./node_modules/@babel/core/lib/transformation/file/merge-map.js")},"./node_modules/@babel/core/lib/transformation/file/merge-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _sourceMap(){const data=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/source-map.js");return _sourceMap=function(){return data},data}function makeMappingKey(item){return`${item.line}/${item.columnStart}`}function buildMappingData(map){const consumer=new(_sourceMap().SourceMapConsumer)(Object.assign({},map,{sourceRoot:null})),sources=new Map,mappings=new Map;let last=null;return consumer.computeColumnSpans(),consumer.eachMapping((m=>{if(null===m.originalLine)return;let source=sources.get(m.source);source||(source={path:m.source,content:consumer.sourceContentFor(m.source,!0)},sources.set(m.source,source));let sourceData=mappings.get(source);sourceData||(sourceData={source,mappings:[]},mappings.set(source,sourceData));const obj={line:m.originalLine,columnStart:m.originalColumn,columnEnd:1/0,name:m.name};last&&last.source===source&&last.mapping.line===m.originalLine&&(last.mapping.columnEnd=m.originalColumn),last={source,mapping:obj},sourceData.mappings.push({original:obj,generated:consumer.allGeneratedPositionsFor({source:m.source,line:m.originalLine,column:m.originalColumn}).map((item=>({line:item.line,columnStart:item.column,columnEnd:item.lastColumn+1})))})}),null,_sourceMap().SourceMapConsumer.ORIGINAL_ORDER),{file:map.file,sourceRoot:map.sourceRoot,sources:Array.from(mappings.values())}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(inputMap,map){const input=buildMappingData(inputMap),output=buildMappingData(map),mergedGenerator=new(_sourceMap().SourceMapGenerator);for(const{source}of input.sources)"string"==typeof source.content&&mergedGenerator.setSourceContent(source.path,source.content);if(1===output.sources.length){const defaultSource=output.sources[0],insertedMappings=new Map;!function(map,callback){for(const{source,mappings}of map.sources)for(const{original,generated}of mappings)for(const item of generated)callback(item,original,source)}(input,((generated,original,source)=>{!function(outputFile,inputGeneratedRange,callback){const overlappingOriginal=function({mappings},{line,columnStart,columnEnd}){return function(array,callback){const start=function(array,callback){let left=0,right=array.length;for(;left=0?right=mid:left=mid+1}let i=left;if(i=0&&callback(array[i])>=0;)i--;return i+1}return i}(array,callback),results=[];for(let i=start;iline>outOriginal.line?-1:line=outOriginal.columnEnd?-1:columnEnd<=outOriginal.columnStart?1:0))}(outputFile,inputGeneratedRange);for(const{generated}of overlappingOriginal)for(const item of generated)callback(item)}(defaultSource,generated,(item=>{const key=makeMappingKey(item);insertedMappings.has(key)||(insertedMappings.set(key,item),mergedGenerator.addMapping({source:source.path,original:{line:original.line,column:original.columnStart},generated:{line:item.line,column:item.columnStart},name:original.name}))}))}));for(const item of insertedMappings.values()){if(item.columnEnd===1/0)continue;const clearItem={line:item.line,columnStart:item.columnEnd},key=makeMappingKey(clearItem);insertedMappings.has(key)||mergedGenerator.addMapping({generated:{line:clearItem.line,column:clearItem.columnStart}})}}const result=mergedGenerator.toJSON();"string"==typeof input.sourceRoot&&(result.sourceRoot=input.sourceRoot);return result}},"./node_modules/@babel/core/lib/transformation/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _traverse(){const data=__webpack_require__("./node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.run=function*(config,code,ast){const file=yield*(0,_normalizeFile.default)(config.passes,(0,_normalizeOpts.default)(config),code,ast),opts=file.opts;try{yield*function*(file,pluginPasses){for(const pluginPairs of pluginPasses){const passPairs=[],passes=[],visitors=[];for(const plugin of pluginPairs.concat([(0,_blockHoistPlugin.default)()])){const pass=new _pluginPass.default(file,plugin.key,plugin.options);passPairs.push([plugin,pass]),passes.push(pass),visitors.push(plugin.visitor)}for(const[plugin,pass]of passPairs){const fn=plugin.pre;if(fn){const result=fn.call(pass,file);if(yield*[],isThenable(result))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}const visitor=_traverse().default.visitors.merge(visitors,passes,file.opts.wrapPluginVisitorMethod);(0,_traverse().default)(file.ast,visitor,file.scope);for(const[plugin,pass]of passPairs){const fn=plugin.post;if(fn){const result=fn.call(pass,file);if(yield*[],isThenable(result))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}(file,config.passes)}catch(e){var _opts$filename;throw e.message=`${null!=(_opts$filename=opts.filename)?_opts$filename:"unknown"}: ${e.message}`,e.code||(e.code="BABEL_TRANSFORM_ERROR"),e}let outputCode,outputMap;try{!1!==opts.code&&({outputCode,outputMap}=(0,_generate.default)(config.passes,file))}catch(e){var _opts$filename2;throw e.message=`${null!=(_opts$filename2=opts.filename)?_opts$filename2:"unknown"}: ${e.message}`,e.code||(e.code="BABEL_GENERATE_ERROR"),e}return{metadata:file.metadata,options:opts,ast:!0===opts.ast?file.ast:null,code:void 0===outputCode?null:outputCode,map:void 0===outputMap?null:outputMap,sourceType:file.ast.program.sourceType}};var _pluginPass=__webpack_require__("./node_modules/@babel/core/lib/transformation/plugin-pass.js"),_blockHoistPlugin=__webpack_require__("./node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),_normalizeOpts=__webpack_require__("./node_modules/@babel/core/lib/transformation/normalize-opts.js"),_normalizeFile=__webpack_require__("./node_modules/@babel/core/lib/transformation/normalize-file.js"),_generate=__webpack_require__("./node_modules/@babel/core/lib/transformation/file/generate.js");function isThenable(val){return!(!val||"object"!=typeof val&&"function"!=typeof val||!val.then||"function"!=typeof val.then)}},"./node_modules/@babel/core/lib/transformation/normalize-file.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _fs(){const data=__webpack_require__("fs");return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _debug(){const data=__webpack_require__("./node_modules/debug/src/index.js");return _debug=function(){return data},data}function _t(){const data=__webpack_require__("./node_modules/@babel/types/lib/index.js");return _t=function(){return data},data}function _convertSourceMap(){const data=__webpack_require__("./node_modules/convert-source-map/index.js");return _convertSourceMap=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function*(pluginPasses,options,code,ast){if(code=`${code||""}`,ast){if("Program"===ast.type)ast=file(ast,[],[]);else if("File"!==ast.type)throw new Error("AST root must be a Program or File node");options.cloneInputAst&&(ast=(0,_cloneDeep.default)(ast))}else ast=yield*(0,_parser.default)(pluginPasses,options,code);let inputMap=null;if(!1!==options.inputSourceMap){if("object"==typeof options.inputSourceMap&&(inputMap=_convertSourceMap().fromObject(options.inputSourceMap)),!inputMap){const lastComment=extractComments(INLINE_SOURCEMAP_REGEX,ast);if(lastComment)try{inputMap=_convertSourceMap().fromComment(lastComment)}catch(err){debug("discarding unknown inline input sourcemap",err)}}if(!inputMap){const lastComment=extractComments(EXTERNAL_SOURCEMAP_REGEX,ast);if("string"==typeof options.filename&&lastComment)try{const match=EXTERNAL_SOURCEMAP_REGEX.exec(lastComment),inputMapContent=_fs().readFileSync(_path().resolve(_path().dirname(options.filename),match[1]));inputMapContent.length>1e6?debug("skip merging input map > 1 MB"):inputMap=_convertSourceMap().fromJSON(inputMapContent)}catch(err){debug("discarding unknown file input sourcemap",err)}else lastComment&&debug("discarding un-loadable file input sourcemap")}}return new _file.default(options,{code,ast,inputMap})};var _file=__webpack_require__("./node_modules/@babel/core/lib/transformation/file/file.js"),_parser=__webpack_require__("./node_modules/@babel/core/lib/parser/index.js"),_cloneDeep=__webpack_require__("./node_modules/@babel/core/lib/transformation/util/clone-deep.js");const{file,traverseFast}=_t(),debug=_debug()("babel:transform:file");const INLINE_SOURCEMAP_REGEX=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,EXTERNAL_SOURCEMAP_REGEX=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function extractCommentsFromList(regex,comments,lastComment){return comments&&(comments=comments.filter((({value})=>!regex.test(value)||(lastComment=value,!1)))),[comments,lastComment]}function extractComments(regex,ast){let lastComment=null;return traverseFast(ast,(node=>{[node.leadingComments,lastComment]=extractCommentsFromList(regex,node.leadingComments,lastComment),[node.innerComments,lastComment]=extractCommentsFromList(regex,node.innerComments,lastComment),[node.trailingComments,lastComment]=extractCommentsFromList(regex,node.trailingComments,lastComment)})),lastComment}},"./node_modules/@babel/core/lib/transformation/normalize-opts.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(config){const{filename,cwd,filenameRelative="string"==typeof filename?_path().relative(cwd,filename):"unknown",sourceType="module",inputSourceMap,sourceMaps=!!inputSourceMap,sourceRoot=config.options.moduleRoot,sourceFileName=_path().basename(filenameRelative),comments=!0,compact="auto"}=config.options,opts=config.options,options=Object.assign({},opts,{parserOpts:Object.assign({sourceType:".mjs"===_path().extname(filenameRelative)?"module":sourceType,sourceFileName:filename,plugins:[]},opts.parserOpts),generatorOpts:Object.assign({filename,auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,retainLines:opts.retainLines,comments,shouldPrintComment:opts.shouldPrintComment,compact,minified:opts.minified,sourceMaps,sourceRoot,sourceFileName},opts.generatorOpts)});for(const plugins of config.passes)for(const plugin of plugins)plugin.manipulateOptions&&plugin.manipulateOptions(options,options.parserOpts);return options}},"./node_modules/@babel/core/lib/transformation/plugin-pass.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;class PluginPass{constructor(file,key,options){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=key,this.file=file,this.opts=options||{},this.cwd=file.opts.cwd,this.filename=file.opts.filename}set(key,val){this._map.set(key,val)}get(key){return this._map.get(key)}availableHelper(name,versionRange){return this.file.availableHelper(name,versionRange)}addHelper(name){return this.file.addHelper(name)}addImport(){return this.file.addImport()}buildCodeFrameError(node,msg,_Error){return this.file.buildCodeFrameError(node,msg,_Error)}}exports.default=PluginPass,PluginPass.prototype.getModuleName=function(){return this.file.getModuleName()}},"./node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(value){return JSON.parse(JSON.stringify(value,serialize),revive)};const serialized="$$ babel internal serialized type"+Math.random();function serialize(key,value){return"bigint"!=typeof value?value:{[serialized]:"BigInt",value:value.toString()}}function revive(key,value){return value&&"object"==typeof value?"BigInt"!==value[serialized]?value:BigInt(value.value):value}},"./node_modules/@babel/core/lib/transformation/util/clone-deep.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _v(){const data=__webpack_require__("v8");return _v=function(){return data},data}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(value){if(_v().deserialize&&_v().serialize)return _v().deserialize(_v().serialize(value));return(0,_cloneDeepBrowser.default)(value)};var _cloneDeepBrowser=__webpack_require__("./node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js")},"./node_modules/@babel/core/lib/vendor/import-meta-resolve.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _url(){const data=__webpack_require__("url");return _url=function(){return data},data}function _fs(){const data=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("fs"),!0);return _fs=function(){return data},data}function _path(){const data=__webpack_require__("path");return _path=function(){return data},data}function _assert(){const data=__webpack_require__("assert");return _assert=function(){return data},data}function _util(){const data=__webpack_require__("util");return _util=function(){return data},data}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.moduleResolve=moduleResolve,exports.resolve=function(_x,_x2){return _resolve.apply(this,arguments)};var constants={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var debug_1="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{},re_1=function(fn){var module={exports:{}};return fn(module,module.exports),module.exports}((function(module,exports){const{MAX_SAFE_COMPONENT_LENGTH}=constants,re=(exports=module.exports={}).re=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const index=R++;debug_1(index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const opts=["includePrerelease","loose","rtl"];var parseOptions_1=options=>options?"object"!=typeof options?{loose:!0}:opts.filter((k=>options[k])).reduce(((options,k)=>(options[k]=!0,options)),{}):{};const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:acompareIdentifiers$1(b,a)};const{MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_INTEGER}=constants,{re:re$4,t:t$4}=re_1,{compareIdentifiers}=identifiers;class SemVer{constructor(version,options){if(options=parseOptions_1(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if("string"!=typeof version)throw new TypeError(`Invalid Version: ${version}`);if(version.length>MAX_LENGTH$1)throw new TypeError(`version is longer than ${MAX_LENGTH$1} characters`);debug_1("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re$4[t$4.LOOSE]:re$4[t$4.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error(`invalid increment argument: ${release}`)}return this.format(),this.raw=this.version,this}}var semver$1=SemVer;const{MAX_LENGTH}=constants,{re:re$3,t:t$3}=re_1;var parse_1=(version,options)=>{if(options=parseOptions_1(options),version instanceof semver$1)return version;if("string"!=typeof version)return null;if(version.length>MAX_LENGTH)return null;if(!(options.loose?re$3[t$3.LOOSE]:re$3[t$3.FULL]).test(version))return null;try{return new semver$1(version,options)}catch(er){return null}};var valid_1=(version,options)=>{const v=parse_1(version,options);return v?v.version:null};var clean_1=(version,options)=>{const s=parse_1(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};var inc_1=(version,release,options,identifier)=>{"string"==typeof options&&(identifier=options,options=void 0);try{return new semver$1(version,options).inc(release,identifier).version}catch(er){return null}};var compare_1=(a,b,loose)=>new semver$1(a,loose).compare(new semver$1(b,loose));var eq_1=(a,b,loose)=>0===compare_1(a,b,loose);var diff_1=(version1,version2)=>{if(eq_1(version1,version2))return null;{const v1=parse_1(version1),v2=parse_1(version2),hasPre=v1.prerelease.length||v2.prerelease.length,prefix=hasPre?"pre":"",defaultResult=hasPre?"prerelease":"";for(const key in v1)if(("major"===key||"minor"===key||"patch"===key)&&v1[key]!==v2[key])return prefix+key;return defaultResult}};var major_1=(a,loose)=>new semver$1(a,loose).major;var minor_1=(a,loose)=>new semver$1(a,loose).minor;var patch_1=(a,loose)=>new semver$1(a,loose).patch;var prerelease_1=(version,options)=>{const parsed=parse_1(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};var rcompare_1=(a,b,loose)=>compare_1(b,a,loose);var compareLoose_1=(a,b)=>compare_1(a,b,!0);var compareBuild_1=(a,b,loose)=>{const versionA=new semver$1(a,loose),versionB=new semver$1(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};var sort_1=(list,loose)=>list.sort(((a,b)=>compareBuild_1(a,b,loose)));var rsort_1=(list,loose)=>list.sort(((a,b)=>compareBuild_1(b,a,loose)));var gt_1=(a,b,loose)=>compare_1(a,b,loose)>0;var lt_1=(a,b,loose)=>compare_1(a,b,loose)<0;var neq_1=(a,b,loose)=>0!==compare_1(a,b,loose);var gte_1=(a,b,loose)=>compare_1(a,b,loose)>=0;var lte_1=(a,b,loose)=>compare_1(a,b,loose)<=0;var cmp_1=(a,op,b,loose)=>{switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq_1(a,b,loose);case"!=":return neq_1(a,b,loose);case">":return gt_1(a,b,loose);case">=":return gte_1(a,b,loose);case"<":return lt_1(a,b,loose);case"<=":return lte_1(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};const{re:re$2,t:t$2}=re_1;var coerce_1=(version,options)=>{if(version instanceof semver$1)return version;if("number"==typeof version&&(version=String(version)),"string"!=typeof version)return null;let match=null;if((options=options||{}).rtl){let next;for(;(next=re$2[t$2.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),re$2[t$2.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re$2[t$2.COERCERTL].lastIndex=-1}else match=version.match(re$2[t$2.COERCE]);return null===match?null:parse_1(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)},yallist=Yallist;function Yallist(list){var self=this;if(self instanceof Yallist||(self=new Yallist),self.tail=null,self.head=null,self.length=0,list&&"function"==typeof list.forEach)list.forEach((function(item){self.push(item)}));else if(arguments.length>0)for(var i=0,l=arguments.length;i1)acc=initial;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");walker=this.head.next,acc=this.head.value}for(var i=0;null!==walker;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");walker=this.tail.prev,acc=this.tail.value}for(var i=this.length-1;null!==walker;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;null!==walker;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;null!==walker;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist;if(tothis.length&&(to=this.length);for(var i=0,walker=this.head;null!==walker&&ithis.length&&(to=this.length);for(var i=this.length,walker=this.tail;null!==walker&&i>to;i--)walker=walker.prev;for(;null!==walker&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;null!==walker&&i1;const get=(self,key,doUse)=>{const node=self[CACHE].get(key);if(node){const hit=node.value;if(isStale(self,hit)){if(del(self,node),!self[ALLOW_STALE])return}else doUse&&(self[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self,hit)=>{if(!hit||!hit.maxAge&&!self[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self[MAX_AGE]&&diff>self[MAX_AGE]},trim=self=>{if(self[LENGTH]>self[MAX])for(let walker=self[LRU_LIST].tail;self[LENGTH]>self[MAX]&&null!==walker;){const prev=walker.prev;del(self,walker),walker=prev}},del=(self,node)=>{if(node){const hit=node.value;self[DISPOSE]&&self[DISPOSE](hit.key,hit.value),self[LENGTH]-=hit.length,self[CACHE].delete(hit.key),self[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self,fn,node,thisp)=>{let hit=node.value;isStale(self,hit)&&(del(self,node),self[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self)};var lruCache=class{constructor(options){if("number"==typeof options&&(options={max:options}),options||(options={}),options.max&&("number"!=typeof options.max||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;const lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]="function"!=typeof lc?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&"number"!=typeof options.maxAge)throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if("number"!=typeof mL||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if("number"!=typeof mA)throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){"function"!=typeof lC&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach((hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length}))),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;null!==walker;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;null!==walker;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map((k=>k.key))}values(){return this[LRU_LIST].toArray().map((k=>k.value))}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach((hit=>this[DISPOSE](hit.key,hit.value))),this[CACHE]=new Map,this[LRU_LIST]=new yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map((hit=>!isStale(this,hit)&&{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)})).toArray().filter((h=>h))}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if((maxAge=maxAge||this[MAX_AGE])&&"number"!=typeof maxAge)throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(0===expiresAt)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach(((value,key)=>get(this,key,!1)))}};class Range{constructor(range,options){if(options=parseOptions_1(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split(/\s*\|\|\s*/).map((range=>this.parseRange(range.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${range}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(const c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.format()}format(){return this.range=this.set.map((comps=>comps.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(range){range=range.trim();const memoKey=`parseRange:${Object.keys(this.options).join(",")}:${range}`,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re$1[t$1.HYPHENRANGELOOSE]:re$1[t$1.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug_1("hyphen replace",range),range=range.replace(re$1[t$1.COMPARATORTRIM],comparatorTrimReplace),debug_1("comparator trim",range,re$1[t$1.COMPARATORTRIM]),range=(range=(range=range.replace(re$1[t$1.TILDETRIM],tildeTrimReplace)).replace(re$1[t$1.CARETTRIM],caretTrimReplace)).split(/\s+/).join(" ");const compRe=loose?re$1[t$1.COMPARATORLOOSE]:re$1[t$1.COMPARATOR],rangeList=range.split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options))).filter(this.options.loose?comp=>!!comp.match(compRe):()=>!0).map((comp=>new comparator(comp,this.options)));rangeList.length;const rangeMap=new Map;for(const comp of rangeList){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version){if(!version)return!1;if("string"==typeof version)try{version=new semver$1(version,this.options)}catch(er){return!1}for(let i=0;i"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug_1("comp",comp,options),comp=replaceCarets(comp,options),debug_1("caret",comp),comp=replaceTildes(comp,options),debug_1("tildes",comp),comp=replaceXRanges(comp,options),debug_1("xrange",comp),comp=replaceStars(comp,options),debug_1("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((comp=>replaceTilde(comp,options))).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re$1[t$1.TILDELOOSE]:re$1[t$1.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug_1("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug_1("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug_1("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((comp=>replaceCaret(comp,options))).join(" "),replaceCaret=(comp,options)=>{debug_1("caret",comp,options);const r=options.loose?re$1[t$1.CARETLOOSE]:re$1[t$1.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug_1("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug_1("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug_1("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug_1("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug_1("replaceXRanges",comp,options),comp.split(/\s+/).map((comp=>replaceXRange(comp,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re$1[t$1.XRANGELOOSE]:re$1[t$1.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug_1("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug_1("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug_1("replaceStars",comp,options),comp.trim().replace(re$1[t$1.STAR],"")),replaceGTE0=(comp,options)=>(debug_1("replaceGTE0",comp,options),comp.trim().replace(re$1[options.includePrerelease?t$1.GTE0PRE:t$1.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version,options)=>{for(let i=0;i0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0},ANY$2=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY$2}constructor(comp,options){if(options=parseOptions_1(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}debug_1("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY$2?this.value="":this.value=this.operator+this.semver.version,debug_1("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new semver$1(m[2],this.options.loose):this.semver=ANY$2}toString(){return this.value}test(version){if(debug_1("Comparator.test",version,this.options.loose),this.semver===ANY$2||version===ANY$2)return!0;if("string"==typeof version)try{version=new semver$1(version,this.options)}catch(er){return!1}return cmp_1(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),""===this.operator)return""===this.value||new range(comp.value,options).test(this.value);if(""===comp.operator)return""===comp.value||new range(this.value,options).test(comp.semver);const sameDirectionIncreasing=!(">="!==this.operator&&">"!==this.operator||">="!==comp.operator&&">"!==comp.operator),sameDirectionDecreasing=!("<="!==this.operator&&"<"!==this.operator||"<="!==comp.operator&&"<"!==comp.operator),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=!(">="!==this.operator&&"<="!==this.operator||">="!==comp.operator&&"<="!==comp.operator),oppositeDirectionsLessThan=cmp_1(this.semver,"<",comp.semver,options)&&(">="===this.operator||">"===this.operator)&&("<="===comp.operator||"<"===comp.operator),oppositeDirectionsGreaterThan=cmp_1(this.semver,">",comp.semver,options)&&("<="===this.operator||"<"===this.operator)&&(">="===comp.operator||">"===comp.operator);return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan}}var comparator=Comparator;const{re,t}=re_1;var satisfies_1=(version,range$1,options)=>{try{range$1=new range(range$1,options)}catch(er){return!1}return range$1.test(version)};var toComparators_1=(range$1,options)=>new range(range$1,options).set.map((comp=>comp.map((c=>c.value)).join(" ").trim().split(" ")));var maxSatisfying_1=(versions,range$1,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new range(range$1,options)}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(max&&-1!==maxSV.compare(v)||(max=v,maxSV=new semver$1(max,options)))})),max};var minSatisfying_1=(versions,range$1,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new range(range$1,options)}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(min&&1!==minSV.compare(v)||(min=v,minSV=new semver$1(min,options)))})),min};var minVersion_1=(range$1,loose)=>{range$1=new range(range$1,loose);let minver=new semver$1("0.0.0");if(range$1.test(minver))return minver;if(minver=new semver$1("0.0.0-0"),range$1.test(minver))return minver;minver=null;for(let i=0;i{const compver=new semver$1(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":setMin&&!gt_1(compver,setMin)||(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}})),!setMin||minver&&!gt_1(minver,setMin)||(minver=setMin)}return minver&&range$1.test(minver)?minver:null};var valid=(range$1,options)=>{try{return new range(range$1,options).range||"*"}catch(er){return null}};const{ANY:ANY$1}=comparator;var outside_1=(version,range$1,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version=new semver$1(version,options),range$1=new range(range$1,options),hilo){case">":gtfn=gt_1,ltefn=lte_1,ltfn=lt_1,comp=">",ecomp=">=";break;case"<":gtfn=lt_1,ltefn=gte_1,ltfn=gt_1,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies_1(version,range$1,options))return!1;for(let i=0;i{comparator$1.semver===ANY$1&&(comparator$1=new comparator(">=0.0.0")),high=high||comparator$1,low=low||comparator$1,gtfn(comparator$1.semver,high.semver,options)?high=comparator$1:ltfn(comparator$1.semver,low.semver,options)&&(low=comparator$1)})),high.operator===comp||high.operator===ecomp)return!1;if((!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};var gtr_1=(version,range,options)=>outside_1(version,range,">",options);var ltr_1=(version,range,options)=>outside_1(version,range,"<",options);var intersects_1=(r1,r2,options)=>(r1=new range(r1,options),r2=new range(r2,options),r1.intersects(r2));const{ANY}=comparator,simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?[new comparator(">=0.0.0-0")]:[new comparator(">=0.0.0")]}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=[new comparator(">=0.0.0")]}const eqSet=new Set;let gt,lt,gtltComp,higher,lower,hasDomLT,hasDomGT;for(const c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&<){if(gtltComp=compare_1(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(const eq of eqSet){if(gt&&!satisfies_1(eq,String(gt),options))return null;if(lt&&!satisfies_1(eq,String(lt),options))return null;for(const c of dom)if(!satisfies_1(eq,String(c),options))return!1;return!0}let needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&<.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&>.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(">="===gt.operator&&!satisfies_1(gt.semver,String(c),options))return!1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if("<="===lt.operator&&!satisfies_1(lt.semver,String(c),options))return!1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return!1}return!(gt&&hasDomLT&&!lt&&0!==gtltComp)&&(!(lt&&hasDomGT&&!gt&&0!==gtltComp)&&(!needDomGTPre&&!needDomLTPre))},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare_1(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare_1(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};var subset_1=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new range(sub,options),dom=new range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return!1}return!0},semver={re:re_1.re,src:re_1.src,tokens:re_1.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,SemVer:semver$1,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers,parse:parse_1,valid:valid_1,clean:clean_1,inc:inc_1,diff:diff_1,major:major_1,minor:minor_1,patch:patch_1,prerelease:prerelease_1,compare:compare_1,rcompare:rcompare_1,compareLoose:compareLoose_1,compareBuild:compareBuild_1,sort:sort_1,rsort:rsort_1,gt:gt_1,lt:lt_1,eq:eq_1,neq:neq_1,gte:gte_1,lte:lte_1,cmp:cmp_1,coerce:coerce_1,Comparator:comparator,Range:range,satisfies:satisfies_1,toComparators:toComparators_1,maxSatisfying:maxSatisfying_1,minSatisfying:minSatisfying_1,minVersion:minVersion_1,validRange:valid,outside:outside_1,gtr:gtr_1,ltr:ltr_1,intersects:intersects_1,simplifyRange:(versions,range,options)=>{const set=[];let min=null,prev=null;const v=versions.sort(((a,b)=>compare_1(a,b,options)));for(const version of v){satisfies_1(version,range,options)?(prev=version,min||(min=version)):(prev&&set.push([min,prev]),prev=null,min=null)}min&&set.push([min,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");const simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length`Invalid module "${request}" ${reason}${base?` imported from ${base}`:""}`),TypeError),codes.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((path,base,message)=>`Invalid package config ${path}${base?` while importing ${base}`:""}${message?`. ${message}`:""}`),Error),codes.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((pkgPath,key,target,isImport=!1,base)=>{const relError="string"==typeof target&&!isImport&&target.length>0&&!target.startsWith("./");return"."===key?(_assert()(!1===isImport),`Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`):`Invalid "${isImport?"imports":"exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${pkgPath}package.json${base?` imported from ${base}`:""}${relError?'; targets must start with "./"':""}`}),Error),codes.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((path,base,type="package")=>`Cannot find ${type} '${path}' imported from ${base}`),Error),codes.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((specifier,packagePath,base)=>`Package import specifier "${specifier}" is not defined${packagePath?` in package ${packagePath}package.json`:""} imported from ${base}`),TypeError),codes.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((pkgPath,subpath,base)=>"."===subpath?`No "exports" main defined in ${pkgPath}package.json${base?` imported from ${base}`:""}`:`Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base?` imported from ${base}`:""}`),Error),codes.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),codes.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",'Unknown file extension "%s" for %s',TypeError),codes.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((name,value,reason="is invalid")=>{let inspected=(0,_util().inspect)(value);inspected.length>128&&(inspected=`${inspected.slice(0,128)}...`);return`The ${name.includes(".")?"property":"argument"} '${name}' ${reason}. Received ${inspected}`}),TypeError),codes.ERR_UNSUPPORTED_ESM_URL_SCHEME=createError("ERR_UNSUPPORTED_ESM_URL_SCHEME",(url=>{let message="Only file and data URLs are supported by the default ESM loader";return isWindows&&2===url.protocol.length&&(message+=". On Windows, absolute paths must be valid file:// URLs"),message+=`. Received protocol '${url.protocol}'`,message}),Error);const addCodeToName=hideStackFrames((function(error,name,code){(error=captureLargerStackTrace(error)).name=`${name} [${code}]`,error.stack,"SystemError"===name?Object.defineProperty(error,"name",{value:name,enumerable:!1,writable:!0,configurable:!0}):delete error.name}));function isErrorStackTraceLimitWritable(){const desc=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===desc?Object.isExtensible(Error):own$1.call(desc,"writable")?desc.writable:void 0!==desc.set}function hideStackFrames(fn){const hidden="__node_internal_"+fn.name;return Object.defineProperty(fn,"name",{value:hidden}),fn}const captureLargerStackTrace=hideStackFrames((function(error){const stackTraceLimitIsWritable=isErrorStackTraceLimitWritable();return stackTraceLimitIsWritable&&(userStackTraceLimit=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(error),stackTraceLimitIsWritable&&(Error.stackTraceLimit=userStackTraceLimit),error}));const{ERR_UNKNOWN_FILE_EXTENSION}=codes,extensionFormatMap={__proto__:null,".cjs":"commonjs",".js":"module",".mjs":"module"};function defaultGetFormat(url){if(url.startsWith("node:"))return{format:"builtin"};const parsed=new(_url().URL)(url);if("data:"===parsed.protocol){const{1:mime}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname)||[null,null];return{format:"text/javascript"===mime?"module":null}}if("file:"===parsed.protocol){const ext=_path().extname(parsed.pathname);let format;if(format=".js"===ext?"module"===function(url){return getPackageScopeConfig(url).type}(parsed.href)?"module":"commonjs":extensionFormatMap[ext],!format)throw new ERR_UNKNOWN_FILE_EXTENSION(ext,(0,_url().fileURLToPath)(url));return{format:format||null}}return{format:null}}const listOfBuiltins=function({version=process.version,experimental=!1}={}){var coreModules=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"];return semver.lt(version,"6.0.0")&&coreModules.push("freelist"),semver.gte(version,"1.0.0")&&coreModules.push("v8"),semver.gte(version,"1.1.0")&&coreModules.push("process"),semver.gte(version,"8.0.0")&&coreModules.push("inspector"),semver.gte(version,"8.1.0")&&coreModules.push("async_hooks"),semver.gte(version,"8.4.0")&&coreModules.push("http2"),semver.gte(version,"8.5.0")&&coreModules.push("perf_hooks"),semver.gte(version,"10.0.0")&&coreModules.push("trace_events"),semver.gte(version,"10.5.0")&&(experimental||semver.gte(version,"12.0.0"))&&coreModules.push("worker_threads"),semver.gte(version,"12.16.0")&&experimental&&coreModules.push("wasi"),coreModules}(),{ERR_INVALID_MODULE_SPECIFIER,ERR_INVALID_PACKAGE_CONFIG,ERR_INVALID_PACKAGE_TARGET,ERR_MODULE_NOT_FOUND,ERR_PACKAGE_IMPORT_NOT_DEFINED,ERR_PACKAGE_PATH_NOT_EXPORTED,ERR_UNSUPPORTED_DIR_IMPORT,ERR_UNSUPPORTED_ESM_URL_SCHEME,ERR_INVALID_ARG_VALUE}=codes,own={}.hasOwnProperty,DEFAULT_CONDITIONS=Object.freeze(["node","import"]),DEFAULT_CONDITIONS_SET=new Set(DEFAULT_CONDITIONS),invalidSegmentRegEx=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,patternRegEx=/\*/g,encodedSepRegEx=/%2f|%2c/i,emittedPackageWarnings=new Set,packageJsonCache=new Map;function emitFolderMapDeprecation(match,pjsonUrl,isExports,base){const pjsonPath=(0,_url().fileURLToPath)(pjsonUrl);emittedPackageWarnings.has(pjsonPath+"|"+match)||(emittedPackageWarnings.add(pjsonPath+"|"+match),process.emitWarning(`Use of deprecated folder mapping "${match}" in the ${isExports?'"exports"':'"imports"'} field module resolution of the package at ${pjsonPath}${base?` imported from ${(0,_url().fileURLToPath)(base)}`:""}.\nUpdate this package.json to use a subpath pattern like "${match}*".`,"DeprecationWarning","DEP0148"))}function emitLegacyIndexDeprecation(url,packageJsonUrl,base,main){const{format}=defaultGetFormat(url.href);if("module"!==format)return;const path=(0,_url().fileURLToPath)(url.href),pkgPath=(0,_url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),basePath=(0,_url().fileURLToPath)(base);main?process.emitWarning(`Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path.slice(pkgPath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):process.emitWarning(`No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path.slice(pkgPath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function tryStatSync(path){try{return(0,_fs().statSync)(path)}catch(_unused){return new(_fs().Stats)}}function getPackageConfig(path,specifier,base){const existing=packageJsonCache.get(path);if(void 0!==existing)return existing;const source=reader.read(path).string;if(void 0===source){const packageConfig={pjsonPath:path,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(path,packageConfig),packageConfig}let packageJson;try{packageJson=JSON.parse(source)}catch(error){throw new ERR_INVALID_PACKAGE_CONFIG(path,(base?`"${specifier}" from `:"")+(0,_url().fileURLToPath)(base||specifier),error.message)}const{exports,imports,main,name,type}=packageJson,packageConfig={pjsonPath:path,exists:!0,main:"string"==typeof main?main:void 0,name:"string"==typeof name?name:void 0,type:"module"===type||"commonjs"===type?type:"none",exports,imports:imports&&"object"==typeof imports?imports:void 0};return packageJsonCache.set(path,packageConfig),packageConfig}function getPackageScopeConfig(resolved){let packageJsonUrl=new(_url().URL)("./package.json",resolved);for(;;){if(packageJsonUrl.pathname.endsWith("node_modules/package.json"))break;const packageConfig=getPackageConfig((0,_url().fileURLToPath)(packageJsonUrl),resolved);if(packageConfig.exists)return packageConfig;const lastPackageJsonUrl=packageJsonUrl;if(packageJsonUrl=new(_url().URL)("../package.json",packageJsonUrl),packageJsonUrl.pathname===lastPackageJsonUrl.pathname)break}const packageJsonPath=(0,_url().fileURLToPath)(packageJsonUrl),packageConfig={pjsonPath:packageJsonPath,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return packageJsonCache.set(packageJsonPath,packageConfig),packageConfig}function fileExists(url){return tryStatSync((0,_url().fileURLToPath)(url)).isFile()}function legacyMainResolve(packageJsonUrl,packageConfig,base){let guess;if(void 0!==packageConfig.main){if(guess=new(_url().URL)(`./${packageConfig.main}`,packageJsonUrl),fileExists(guess))return guess;const tries=[`./${packageConfig.main}.js`,`./${packageConfig.main}.json`,`./${packageConfig.main}.node`,`./${packageConfig.main}/index.js`,`./${packageConfig.main}/index.json`,`./${packageConfig.main}/index.node`];let i=-1;for(;++i=0&&keyNumber<4294967295)}function resolvePackageTarget(packageJsonUrl,target,subpath,packageSubpath,base,pattern,internal,conditions){if("string"==typeof target)return resolvePackageTargetString(target,subpath,packageSubpath,packageJsonUrl,base,pattern,internal,conditions);if(Array.isArray(target)){const targetList=target;if(0===targetList.length)return null;let lastException,i=-1;for(;++i=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&packageSubpath.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key)}if(bestMatch){const target=exports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,packageSubpath.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!1,conditions);return null==resolved&&throwExportsNotFound(packageSubpath,packageJsonUrl,base),pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!0,base),{resolved,exact:pattern}}throwExportsNotFound(packageSubpath,packageJsonUrl,base)}function packageImportsResolve(name,base,conditions){if("#"===name||name.startsWith("#/")){throw new ERR_INVALID_MODULE_SPECIFIER(name,"is not a valid internal imports specifier name",(0,_url().fileURLToPath)(base))}let packageJsonUrl;const packageConfig=getPackageScopeConfig(base);if(packageConfig.exists){packageJsonUrl=(0,_url().pathToFileURL)(packageConfig.pjsonPath);const imports=packageConfig.imports;if(imports)if(own.call(imports,name)){const resolved=resolvePackageTarget(packageJsonUrl,imports[name],"",name,base,!1,!0,conditions);if(null!==resolved)return{resolved,exact:!0}}else{let bestMatch="";const keys=Object.getOwnPropertyNames(imports);let i=-1;for(;++i=key.length&&key.length>bestMatch.length||"/"===key[key.length-1]&&name.startsWith(key)&&key.length>bestMatch.length)&&(bestMatch=key)}if(bestMatch){const target=imports[bestMatch],pattern="*"===bestMatch[bestMatch.length-1],resolved=resolvePackageTarget(packageJsonUrl,target,name.slice(bestMatch.length-(pattern?1:0)),bestMatch,base,pattern,!0,conditions);if(null!==resolved)return pattern||emitFolderMapDeprecation(bestMatch,packageJsonUrl,!1,base),{resolved,exact:pattern}}}}!function(specifier,packageJsonUrl,base){throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier,packageJsonUrl&&(0,_url().fileURLToPath)(new(_url().URL)(".",packageJsonUrl)),(0,_url().fileURLToPath)(base))}(name,packageJsonUrl,base)}function packageResolve(specifier,base,conditions){const{packageName,packageSubpath,isScoped}=function(specifier,base){let separatorIndex=specifier.indexOf("/"),validPackageName=!0,isScoped=!1;"@"===specifier[0]&&(isScoped=!0,-1===separatorIndex||0===specifier.length?validPackageName=!1:separatorIndex=specifier.indexOf("/",separatorIndex+1));const packageName=-1===separatorIndex?specifier:specifier.slice(0,separatorIndex);let i=-1;for(;++i{var debug;exports=module.exports=SemVer,debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var args=Array.prototype.slice.call(arguments,0);args.unshift("SEMVER"),console.log.apply(console,args)}:function(){},exports.SEMVER_SPEC_VERSION="2.0.0";var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,re=exports.re=[],src=exports.src=[],t=exports.tokens={},R=0;function tok(n){t[n]=R++}tok("NUMERICIDENTIFIER"),src[t.NUMERICIDENTIFIER]="0|[1-9]\\d*",tok("NUMERICIDENTIFIERLOOSE"),src[t.NUMERICIDENTIFIERLOOSE]="[0-9]+",tok("NONNUMERICIDENTIFIER"),src[t.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",tok("MAINVERSION"),src[t.MAINVERSION]="("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")",tok("MAINVERSIONLOOSE"),src[t.MAINVERSIONLOOSE]="("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")",tok("PRERELEASEIDENTIFIER"),src[t.PRERELEASEIDENTIFIER]="(?:"+src[t.NUMERICIDENTIFIER]+"|"+src[t.NONNUMERICIDENTIFIER]+")",tok("PRERELEASEIDENTIFIERLOOSE"),src[t.PRERELEASEIDENTIFIERLOOSE]="(?:"+src[t.NUMERICIDENTIFIERLOOSE]+"|"+src[t.NONNUMERICIDENTIFIER]+")",tok("PRERELEASE"),src[t.PRERELEASE]="(?:-("+src[t.PRERELEASEIDENTIFIER]+"(?:\\."+src[t.PRERELEASEIDENTIFIER]+")*))",tok("PRERELEASELOOSE"),src[t.PRERELEASELOOSE]="(?:-?("+src[t.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+src[t.PRERELEASEIDENTIFIERLOOSE]+")*))",tok("BUILDIDENTIFIER"),src[t.BUILDIDENTIFIER]="[0-9A-Za-z-]+",tok("BUILD"),src[t.BUILD]="(?:\\+("+src[t.BUILDIDENTIFIER]+"(?:\\."+src[t.BUILDIDENTIFIER]+")*))",tok("FULL"),tok("FULLPLAIN"),src[t.FULLPLAIN]="v?"+src[t.MAINVERSION]+src[t.PRERELEASE]+"?"+src[t.BUILD]+"?",src[t.FULL]="^"+src[t.FULLPLAIN]+"$",tok("LOOSEPLAIN"),src[t.LOOSEPLAIN]="[v=\\s]*"+src[t.MAINVERSIONLOOSE]+src[t.PRERELEASELOOSE]+"?"+src[t.BUILD]+"?",tok("LOOSE"),src[t.LOOSE]="^"+src[t.LOOSEPLAIN]+"$",tok("GTLT"),src[t.GTLT]="((?:<|>)?=?)",tok("XRANGEIDENTIFIERLOOSE"),src[t.XRANGEIDENTIFIERLOOSE]=src[t.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",tok("XRANGEIDENTIFIER"),src[t.XRANGEIDENTIFIER]=src[t.NUMERICIDENTIFIER]+"|x|X|\\*",tok("XRANGEPLAIN"),src[t.XRANGEPLAIN]="[v=\\s]*("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:"+src[t.PRERELEASE]+")?"+src[t.BUILD]+"?)?)?",tok("XRANGEPLAINLOOSE"),src[t.XRANGEPLAINLOOSE]="[v=\\s]*("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:"+src[t.PRERELEASELOOSE]+")?"+src[t.BUILD]+"?)?)?",tok("XRANGE"),src[t.XRANGE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAIN]+"$",tok("XRANGELOOSE"),src[t.XRANGELOOSE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAINLOOSE]+"$",tok("COERCE"),src[t.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",tok("COERCERTL"),re[t.COERCERTL]=new RegExp(src[t.COERCE],"g"),tok("LONETILDE"),src[t.LONETILDE]="(?:~>?)",tok("TILDETRIM"),src[t.TILDETRIM]="(\\s*)"+src[t.LONETILDE]+"\\s+",re[t.TILDETRIM]=new RegExp(src[t.TILDETRIM],"g");tok("TILDE"),src[t.TILDE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAIN]+"$",tok("TILDELOOSE"),src[t.TILDELOOSE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAINLOOSE]+"$",tok("LONECARET"),src[t.LONECARET]="(?:\\^)",tok("CARETTRIM"),src[t.CARETTRIM]="(\\s*)"+src[t.LONECARET]+"\\s+",re[t.CARETTRIM]=new RegExp(src[t.CARETTRIM],"g");tok("CARET"),src[t.CARET]="^"+src[t.LONECARET]+src[t.XRANGEPLAIN]+"$",tok("CARETLOOSE"),src[t.CARETLOOSE]="^"+src[t.LONECARET]+src[t.XRANGEPLAINLOOSE]+"$",tok("COMPARATORLOOSE"),src[t.COMPARATORLOOSE]="^"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+")$|^$",tok("COMPARATOR"),src[t.COMPARATOR]="^"+src[t.GTLT]+"\\s*("+src[t.FULLPLAIN]+")$|^$",tok("COMPARATORTRIM"),src[t.COMPARATORTRIM]="(\\s*)"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+"|"+src[t.XRANGEPLAIN]+")",re[t.COMPARATORTRIM]=new RegExp(src[t.COMPARATORTRIM],"g");tok("HYPHENRANGE"),src[t.HYPHENRANGE]="^\\s*("+src[t.XRANGEPLAIN]+")\\s+-\\s+("+src[t.XRANGEPLAIN]+")\\s*$",tok("HYPHENRANGELOOSE"),src[t.HYPHENRANGELOOSE]="^\\s*("+src[t.XRANGEPLAINLOOSE]+")\\s+-\\s+("+src[t.XRANGEPLAINLOOSE]+")\\s*$",tok("STAR"),src[t.STAR]="(<|>)?=?\\s*\\*";for(var i=0;i256)return null;if(!(options.loose?re[t.LOOSE]:re[t.FULL]).test(version))return null;try{return new SemVer(version,options)}catch(er){return null}}function SemVer(version,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),version instanceof SemVer){if(version.loose===options.loose)return version;version=version.version}else if("string"!=typeof version)throw new TypeError("Invalid Version: "+version);if(version.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof SemVer))return new SemVer(version,options);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose;var m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError("Invalid Version: "+version);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((function(id){if(/^[0-9]+$/.test(id)){var num=+id;if(num>=0&&num=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error("invalid increment argument: "+release)}return this.format(),this.raw=this.version,this},exports.inc=function(version,release,loose,identifier){"string"==typeof loose&&(identifier=loose,loose=void 0);try{return new SemVer(version,loose).inc(release,identifier).version}catch(er){return null}},exports.diff=function(version1,version2){if(eq(version1,version2))return null;var v1=parse(version1),v2=parse(version2),prefix="";if(v1.prerelease.length||v2.prerelease.length){prefix="pre";var defaultResult="prerelease"}for(var key in v1)if(("major"===key||"minor"===key||"patch"===key)&&v1[key]!==v2[key])return prefix+key;return defaultResult},exports.compareIdentifiers=compareIdentifiers;var numeric=/^[0-9]+$/;function compareIdentifiers(a,b){var anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a0}function lt(a,b,loose){return compare(a,b,loose)<0}function eq(a,b,loose){return 0===compare(a,b,loose)}function neq(a,b,loose){return 0!==compare(a,b,loose)}function gte(a,b,loose){return compare(a,b,loose)>=0}function lte(a,b,loose){return compare(a,b,loose)<=0}function cmp(a,op,b,loose){switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError("Invalid operator: "+op)}}function Comparator(comp,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}if(!(this instanceof Comparator))return new Comparator(comp,options);debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}exports.rcompareIdentifiers=function(a,b){return compareIdentifiers(b,a)},exports.major=function(a,loose){return new SemVer(a,loose).major},exports.minor=function(a,loose){return new SemVer(a,loose).minor},exports.patch=function(a,loose){return new SemVer(a,loose).patch},exports.compare=compare,exports.compareLoose=function(a,b){return compare(a,b,!0)},exports.compareBuild=function(a,b,loose){var versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)},exports.rcompare=function(a,b,loose){return compare(b,a,loose)},exports.sort=function(list,loose){return list.sort((function(a,b){return exports.compareBuild(a,b,loose)}))},exports.rsort=function(list,loose){return list.sort((function(a,b){return exports.compareBuild(b,a,loose)}))},exports.gt=gt,exports.lt=lt,exports.eq=eq,exports.neq=neq,exports.gte=gte,exports.lte=lte,exports.cmp=cmp,exports.Comparator=Comparator;var ANY={};function Range(range,options){if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return new Range(range.value,options);if(!(this instanceof Range))return new Range(range,options);if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range,this.set=range.split(/\s*\|\|\s*/).map((function(range){return this.parseRange(range.trim())}),this).filter((function(c){return c.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+range);this.format()}function isSatisfiable(comparators,options){for(var result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();result&&remainingComparators.length;)result=remainingComparators.every((function(otherComparator){return testComparator.intersects(otherComparator,options)})),testComparator=remainingComparators.pop();return result}function isX(id){return!id||"x"===id.toLowerCase()||"*"===id}function hyphenReplace($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb){return((from=isX(fM)?"":isX(fm)?">="+fM+".0.0":isX(fp)?">="+fM+"."+fm+".0":">="+from)+" "+(to=isX(tM)?"":isX(tm)?"<"+(+tM+1)+".0.0":isX(tp)?"<"+tM+"."+(+tm+1)+".0":tpr?"<="+tM+"."+tm+"."+tp+"-"+tpr:"<="+to)).trim()}function testSet(set,version,options){for(var i=0;i0){var allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}function satisfies(version,range,options){try{range=new Range(range,options)}catch(er){return!1}return range.test(version)}function outside(version,range,hilo,options){var gtfn,ltefn,ltfn,comp,ecomp;switch(version=new SemVer(version,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(var i=0;i=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)})),high.operator===comp||high.operator===ecomp)return!1;if((!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0}Comparator.prototype.parse=function(comp){var r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError("Invalid comparator: "+comp);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY},Comparator.prototype.toString=function(){return this.value},Comparator.prototype.test=function(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if("string"==typeof version)try{version=new SemVer(version,this.options)}catch(er){return!1}return cmp(version,this.operator,this.semver,this.options)},Comparator.prototype.intersects=function(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");var rangeTmp;if(options&&"object"==typeof options||(options={loose:!!options,includePrerelease:!1}),""===this.operator)return""===this.value||(rangeTmp=new Range(comp.value,options),satisfies(this.value,rangeTmp,options));if(""===comp.operator)return""===comp.value||(rangeTmp=new Range(this.value,options),satisfies(comp.semver,rangeTmp,options));var sameDirectionIncreasing=!(">="!==this.operator&&">"!==this.operator||">="!==comp.operator&&">"!==comp.operator),sameDirectionDecreasing=!("<="!==this.operator&&"<"!==this.operator||"<="!==comp.operator&&"<"!==comp.operator),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=!(">="!==this.operator&&"<="!==this.operator||">="!==comp.operator&&"<="!==comp.operator),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(">="===this.operator||">"===this.operator)&&("<="===comp.operator||"<"===comp.operator),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&("<="===this.operator||"<"===this.operator)&&(">="===comp.operator||">"===comp.operator);return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan},exports.Range=Range,Range.prototype.format=function(){return this.range=this.set.map((function(comps){return comps.join(" ").trim()})).join("||").trim(),this.range},Range.prototype.toString=function(){return this.range},Range.prototype.parseRange=function(range){var loose=this.options.loose;range=range.trim();var hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],"$1$2$3"),debug("comparator trim",range,re[t.COMPARATORTRIM]),range=(range=(range=range.replace(re[t.TILDETRIM],"$1~")).replace(re[t.CARETTRIM],"$1^")).split(/\s+/).join(" ");var compRe=loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],set=range.split(" ").map((function(comp){return function(comp,options){return debug("comp",comp,options),comp=function(comp,options){return comp.trim().split(/\s+/).map((function(comp){return function(comp,options){debug("caret",comp,options);var r=options.loose?re[t.CARETLOOSE]:re[t.CARET];return comp.replace(r,(function(_,M,m,p,pr){var ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?ret="0"===M?">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":">="+M+"."+m+".0 <"+(+M+1)+".0.0":pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+m+"."+(+p+1):">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0":">="+M+"."+m+"."+p+"-"+pr+" <"+(+M+1)+".0.0"):(debug("no pr"),ret="0"===M?"0"===m?">="+M+"."+m+"."+p+" <"+M+"."+m+"."+(+p+1):">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0":">="+M+"."+m+"."+p+" <"+(+M+1)+".0.0"),debug("caret return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("caret",comp),comp=function(comp,options){return comp.trim().split(/\s+/).map((function(comp){return function(comp,options){var r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(function(_,M,m,p,pr){var ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":pr?(debug("replaceTilde pr",pr),ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0"):ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0",debug("tilde return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("tildes",comp),comp=function(comp,options){return debug("replaceXRanges",comp,options),comp.split(/\s+/).map((function(comp){return function(comp,options){comp=comp.trim();var r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(function(ret,gtlt,M,m,p,pr){debug("xRange",comp,ret,gtlt,M,m,p,pr);var xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),ret=gtlt+M+"."+m+"."+p+pr):xm?ret=">="+M+".0.0"+pr+" <"+(+M+1)+".0.0"+pr:xp&&(ret=">="+M+"."+m+".0"+pr+" <"+M+"."+(+m+1)+".0"+pr),debug("xRange return",ret),ret}))}(comp,options)})).join(" ")}(comp,options),debug("xrange",comp),comp=function(comp,options){return debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")}(comp,options),debug("stars",comp),comp}(comp,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(set=set.filter((function(comp){return!!comp.match(compRe)}))),set=set.map((function(comp){return new Comparator(comp,this.options)}),this)},Range.prototype.intersects=function(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((function(thisComparators){return isSatisfiable(thisComparators,options)&&range.set.some((function(rangeComparators){return isSatisfiable(rangeComparators,options)&&thisComparators.every((function(thisComparator){return rangeComparators.every((function(rangeComparator){return thisComparator.intersects(rangeComparator,options)}))}))}))}))},exports.toComparators=function(range,options){return new Range(range,options).set.map((function(comp){return comp.map((function(c){return c.value})).join(" ").trim().split(" ")}))},Range.prototype.test=function(version){if(!version)return!1;if("string"==typeof version)try{version=new SemVer(version,this.options)}catch(er){return!1}for(var i=0;i":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":minver&&!gt(minver,compver)||(minver=compver);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+comparator.operator)}}))}if(minver&&range.test(minver))return minver;return null},exports.validRange=function(range,options){try{return new Range(range,options).range||"*"}catch(er){return null}},exports.ltr=function(version,range,options){return outside(version,range,"<",options)},exports.gtr=function(version,range,options){return outside(version,range,">",options)},exports.outside=outside,exports.prerelease=function(version,options){var parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null},exports.intersects=function(r1,r2,options){return r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2)},exports.coerce=function(version,options){if(version instanceof SemVer)return version;"number"==typeof version&&(version=String(version));if("string"!=typeof version)return null;var match=null;if((options=options||{}).rtl){for(var next;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}else match=version.match(re[t.COERCE]);if(null===match)return null;return parse(match[2]+"."+(match[3]||"0")+"."+(match[4]||"0"),options)}},"./node_modules/@babel/core/node_modules/source-map/lib/array-set.js":(__unused_webpack_module,exports,__webpack_require__)=>{var util=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/util.js"),has=Object.prototype.hasOwnProperty,hasNativeMap="undefined"!=typeof Map;function ArraySet(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}ArraySet.fromArray=function(aArray,aAllowDuplicates){for(var set=new ArraySet,i=0,len=aArray.length;i=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.')},ArraySet.prototype.at=function(aIdx){if(aIdx>=0&&aIdx{var base64=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/base64.js");exports.encode=function(aValue){var digit,encoded="",vlq=function(aValue){return aValue<0?1+(-aValue<<1):0+(aValue<<1)}(aValue);do{digit=31&vlq,(vlq>>>=5)>0&&(digit|=32),encoded+=base64.encode(digit)}while(vlq>0);return encoded},exports.decode=function(aStr,aIndex,aOutParam){var continuation,digit,aValue,shifted,strLen=aStr.length,result=0,shift=0;do{if(aIndex>=strLen)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(digit=base64.decode(aStr.charCodeAt(aIndex++))))throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));continuation=!!(32&digit),result+=(digit&=31)<>1,1==(1&aValue)?-shifted:shifted),aOutParam.rest=aIndex}},"./node_modules/@babel/core/node_modules/source-map/lib/base64.js":(__unused_webpack_module,exports)=>{var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number{function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow,cmp=aCompare(aNeedle,aHaystack[mid],!0);return 0===cmp?mid:cmp>0?aHigh-mid>1?recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?aHigh1?recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?mid:aLow<0?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0)return-1;for(;index-1>=0&&0===aCompare(aHaystack[index],aHaystack[index-1],!0);)--index;return index}},"./node_modules/@babel/core/node_modules/source-map/lib/mapping-list.js":(__unused_webpack_module,exports,__webpack_require__)=>{var util=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/util.js");function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){var mappingA,mappingB,lineA,lineB,columnA,columnB;mappingA=this._last,mappingB=aMapping,lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn,lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0?(this._last=aMapping,this._array.push(aMapping)):(this._sorted=!1,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.H=MappingList},"./node_modules/@babel/core/node_modules/source-map/lib/quick-sort.js":(__unused_webpack_module,exports)=>{function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function doQuickSort(ary,comparator,p,r){if(p{var util=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/util.js"),binarySearch=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/binary-search.js"),ArraySet=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/array-set.js").I,base64VLQ=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/base64-vlq.js"),quickSort=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/quick-sort.js").U;function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;return"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))),null!=sourceMap.sections?new IndexedSourceMapConsumer(sourceMap):new BasicSourceMapConsumer(sourceMap)}function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,"")));var version=util.getArg(sourceMap,"version"),sources=util.getArg(sourceMap,"sources"),names=util.getArg(sourceMap,"names",[]),sourceRoot=util.getArg(sourceMap,"sourceRoot",null),sourcesContent=util.getArg(sourceMap,"sourcesContent",null),mappings=util.getArg(sourceMap,"mappings"),file=util.getArg(sourceMap,"file",null);if(version!=this._version)throw new Error("Unsupported version: "+version);sources=sources.map(String).map(util.normalize).map((function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source})),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),this.sourceRoot=sourceRoot,this.sourcesContent=sourcesContent,this._mappings=mappings,this.file=file}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,"")));var version=util.getArg(sourceMap,"version"),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)throw new Error("Support for url field in sections not implemented.");var offset=util.getArg(s,"offset"),offsetLine=util.getArg(offset,"line"),offsetColumn=util.getArg(offset,"column");if(offsetLine=0){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;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 for(var originalColumn=mapping.originalColumn;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,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.fromSourceMap=function(aSourceMap){var smc=Object.create(BasicSourceMapConsumer.prototype),names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),!0),sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),!0);smc.sourceRoot=aSourceMap._sourceRoot,smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot),smc.file=aSourceMap._file;for(var generatedMappings=aSourceMap._mappings.toArray().slice(),destGeneratedMappings=smc.__generatedMappings=[],destOriginalMappings=smc.__originalMappings=[],i=0,length=generatedMappings.length;i1&&(mapping.source=previousSource+segment[1],previousSource+=segment[1],mapping.originalLine=previousOriginalLine+segment[2],previousOriginalLine=mapping.originalLine,mapping.originalLine+=1,mapping.originalColumn=previousOriginalColumn+segment[3],previousOriginalColumn=mapping.originalColumn,segment.length>4&&(mapping.name=previousName+segment[4],previousName+=segment[4])),generatedMappings.push(mapping),"number"==typeof mapping.originalLine&&originalMappings.push(mapping)}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated),this.__generatedMappings=generatedMappings,quickSort(originalMappings,util.compareByOriginalPositions),this.__originalMappings=originalMappings},BasicSourceMapConsumer.prototype._findMapping=function(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){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)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0;index=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);null!==source&&(source=this._sources.at(source),null!=this.sourceRoot&&(source=util.join(this.sourceRoot,source)));var name=util.getArg(mapping,"name",null);return null!==name&&(name=this._names.at(name)),{source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(sc){return null==sc})))},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(aSource=util.relative(this.sourceRoot,aSource)),this._sources.has(aSource))return this.sourcesContent[this._sources.indexOf(aSource)];var url;if(null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if("file"==url.scheme&&this._sources.has(fileUriAbsPath))return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];if((!url.path||"/"==url.path)&&this._sources.has("/"+aSource))return this.sourcesContent[this._sources.indexOf("/"+aSource)]}if(nullOnMissing)return null;throw new Error('"'+aSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,"source");if(null!=this.sourceRoot&&(source=util.relative(this.sourceRoot,source)),!this._sources.has(source))return{line:null,column:null,lastColumn:null};var needle={source:source=this._sources.indexOf(source),originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")},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}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var sources=[],i=0;i{var base64VLQ=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/base64-vlq.js"),util=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/util.js"),ArraySet=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/array-set.js").I,MappingList=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/mapping-list.js").H;function SourceMapGenerator(aArgs){aArgs||(aArgs={}),this._file=util.getArg(aArgs,"file",null),this._sourceRoot=util.getArg(aArgs,"sourceRoot",null),this._skipValidation=util.getArg(aArgs,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot,generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot});return aSourceMapConsumer.eachMapping((function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};null!=mapping.source&&(newMapping.source=mapping.source,null!=sourceRoot&&(newMapping.source=util.relative(sourceRoot,newMapping.source)),newMapping.original={line:mapping.originalLine,column:mapping.originalColumn},null!=mapping.name&&(newMapping.name=mapping.name)),generator.addMapping(newMapping)})),aSourceMapConsumer.sources.forEach((function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&generator.setSourceContent(sourceFile,content)})),generator},SourceMapGenerator.prototype.addMapping=function(aArgs){var generated=util.getArg(aArgs,"generated"),original=util.getArg(aArgs,"original",null),source=util.getArg(aArgs,"source",null),name=util.getArg(aArgs,"name",null);this._skipValidation||this._validateMapping(generated,original,source,name),null!=source&&(source=String(source),this._sources.has(source)||this._sources.add(source)),null!=name&&(name=String(name),this._names.has(name)||this._names.add(name)),this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:null!=original&&original.line,originalColumn:null!=original&&original.column,source,name})},SourceMapGenerator.prototype.setSourceContent=function(aSourceFile,aSourceContent){var source=aSourceFile;null!=this._sourceRoot&&(source=util.relative(this._sourceRoot,source)),null!=aSourceContent?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util.toSetString(source)]=aSourceContent):this._sourcesContents&&(delete this._sourcesContents[util.toSetString(source)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(null==aSourceFile){if(null==aSourceMapConsumer.file)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;null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile));var newSources=new ArraySet,newNames=new ArraySet;this._mappings.unsortedForEach((function(mapping){if(mapping.source===sourceFile&&null!=mapping.originalLine){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});null!=original.source&&(mapping.source=original.source,null!=aSourceMapPath&&(mapping.source=util.join(aSourceMapPath,mapping.source)),null!=sourceRoot&&(mapping.source=util.relative(sourceRoot,mapping.source)),mapping.originalLine=original.line,mapping.originalColumn=original.column,null!=original.name&&(mapping.name=original.name))}var source=mapping.source;null==source||newSources.has(source)||newSources.add(source);var name=mapping.name;null==name||newNames.has(name)||newNames.add(name)}),this),this._sources=newSources,this._names=newNames,aSourceMapConsumer.sources.forEach((function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&(null!=aSourceMapPath&&(sourceFile=util.join(aSourceMapPath,sourceFile)),null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile)),this.setSourceContent(sourceFile,content))}),this)},SourceMapGenerator.prototype._validateMapping=function(aGenerated,aOriginal,aSource,aName){if(aOriginal&&"number"!=typeof aOriginal.line&&"number"!=typeof aOriginal.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0)||aOriginal||aSource||aName)&&!(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))throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))},SourceMapGenerator.prototype._serializeMappings=function(){for(var next,mapping,nameIdx,sourceIdx,previousGeneratedColumn=0,previousGeneratedLine=1,previousOriginalColumn=0,previousOriginalLine=0,previousName=0,previousSource=0,result="",mappings=this._mappings.toArray(),i=0,len=mappings.length;i0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1]))continue;next+=","}next+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn),previousGeneratedColumn=mapping.generatedColumn,null!=mapping.source&&(sourceIdx=this._sources.indexOf(mapping.source),next+=base64VLQ.encode(sourceIdx-previousSource),previousSource=sourceIdx,next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine),previousOriginalLine=mapping.originalLine-1,next+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn),previousOriginalColumn=mapping.originalColumn,null!=mapping.name&&(nameIdx=this._names.indexOf(mapping.name),next+=base64VLQ.encode(nameIdx-previousName),previousName=nameIdx)),result+=next}return result},SourceMapGenerator.prototype._generateSourcesContent=function(aSources,aSourceRoot){return aSources.map((function(source){if(!this._sourcesContents)return null;null!=aSourceRoot&&(source=util.relative(aSourceRoot,source));var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null}),this)},SourceMapGenerator.prototype.toJSON=function(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(map.file=this._file),null!=this._sourceRoot&&(map.sourceRoot=this._sourceRoot),this._sourcesContents&&(map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)),map},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},exports.SourceMapGenerator=SourceMapGenerator},"./node_modules/@babel/core/node_modules/source-map/lib/source-node.js":(__unused_webpack_module,exports,__webpack_require__)=>{var SourceMapGenerator=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,util=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/util.js"),REGEX_NEWLINE=/(\r?\n)/,isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[],this.sourceContents={},this.line=null==aLine?null:aLine,this.column=null==aColumn?null:aColumn,this.source=null==aSource?null:aSource,this.name=null==aName?null:aName,this[isSourceNode]=!0,null!=aChunks&&this.add(aChunks)}SourceNode.fromStringWithSourceMap=function(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode,remainingLines=aGeneratedCode.split(REGEX_NEWLINE),remainingLinesIndex=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return remainingLinesIndex=0;i--)this.prepend(aChunk[i]);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);this.children.unshift(aChunk)}return this},SourceNode.prototype.walk=function(aFn){for(var chunk,i=0,len=this.children.length;i0){for(newChildren=[],i=0;i{exports.getArg=function(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);return match?{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}:null}function urlGenerate(aParsedUrl){var url="";return aParsedUrl.scheme&&(url+=aParsedUrl.scheme+":"),url+="//",aParsedUrl.auth&&(url+=aParsedUrl.auth+"@"),aParsedUrl.host&&(url+=aParsedUrl.host),aParsedUrl.port&&(url+=":"+aParsedUrl.port),aParsedUrl.path&&(url+=aParsedUrl.path),url}function normalize(aPath){var path=aPath,url=urlParse(aPath);if(url){if(!url.path)return aPath;path=url.path}for(var part,isAbsolute=exports.isAbsolute(path),parts=path.split(/\/+/),up=0,i=parts.length-1;i>=0;i--)"."===(part=parts[i])?parts.splice(i,1):".."===part?up++:up>0&&(""===part?(parts.splice(i+1,up),up=0):(parts.splice(i,2),up--));return""===(path=parts.join("/"))&&(path=isAbsolute?"/":"."),url?(url.path=path,urlGenerate(url)):path}exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=function(aRoot,aPath){""===aRoot&&(aRoot="."),""===aPath&&(aPath=".");var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||"/"),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined="/"===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined},exports.isAbsolute=function(aPath){return"/"===aPath.charAt(0)||!!aPath.match(urlRegexp)},exports.relative=function(aRoot,aPath){""===aRoot&&(aRoot="."),aRoot=aRoot.replace(/\/$/,"");for(var level=0;0!==aPath.indexOf(aRoot+"/");){var index=aRoot.lastIndexOf("/");if(index<0)return aPath;if((aRoot=aRoot.slice(0,index)).match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)};var supportsNullProto=!("__proto__"in Object.create(null));function identity(s){return s}function isProtoString(s){if(!s)return!1;var length=s.length;if(length<9)return!1;if(95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;i>=0;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:aStr1>aStr2?1:-1}exports.toSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?"$"+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;return 0!==cmp||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)||onlyCompareOriginal||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=mappingA.generatedLine-mappingB.generatedLine)?cmp:mappingA.name-mappingB.name},exports.compareByGeneratedPositionsDeflated=function(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||onlyCompareGenerated||0!==(cmp=mappingA.source-mappingB.source)||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:mappingA.name-mappingB.name},exports.compareByGeneratedPositionsInflated=function(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)}},"./node_modules/@babel/core/node_modules/source-map/source-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{exports.SourceMapGenerator=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,exports.SourceMapConsumer=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,exports.SourceNode=__webpack_require__("./node_modules/@babel/core/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/@babel/generator/lib/buffer.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const SPACES_RE=/^[ \t]+$/;exports.default=class{constructor(map){this._map=null,this._buf="",this._last=0,this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:null,line:null,column:null,filename:null},this._disallowedPop=null,this._map=map}get(){this._flush();const map=this._map,result={code:this._buf.trimRight(),map:null,rawMappings:null==map?void 0:map.getRawMappings()};return map&&Object.defineProperty(result,"map",{configurable:!0,enumerable:!0,get(){return this.map=map.get()},set(value){Object.defineProperty(this,"map",{value,writable:!0})}}),result}append(str){this._flush();const{line,column,filename,identifierName,force}=this._sourcePosition;this._append(str,line,column,identifierName,filename,force)}queue(str){if("\n"===str)for(;this._queue.length>0&&SPACES_RE.test(this._queue[0][0]);)this._queue.shift();const{line,column,filename,identifierName,force}=this._sourcePosition;this._queue.unshift([str,line,column,identifierName,filename,force])}_flush(){let item;for(;item=this._queue.pop();)this._append(...item)}_append(str,line,column,identifierName,filename,force){this._buf+=str,this._last=str.charCodeAt(str.length-1);let i=str.indexOf("\n"),last=0;for(0!==i&&this._mark(line,column,identifierName,filename,force);-1!==i;)this._position.line++,this._position.column=0,last=i+1,last0&&"\n"===this._queue[0][0]&&this._queue.shift()}removeLastSemicolon(){this._queue.length>0&&";"===this._queue[0][0]&&this._queue.shift()}getLastChar(){let last;if(this._queue.length>0){last=this._queue[0][0].charCodeAt(0)}else last=this._last;return last}endsWithCharAndNewline(){const queue=this._queue;if(queue.length>0){if(10!==queue[0][0].charCodeAt(0))return;if(queue.length>1){return queue[1][0].charCodeAt(0)}return this._last}}hasContent(){return this._queue.length>0||!!this._last}exactSource(loc,cb){this.source("start",loc,!0),cb(),this.source("end",loc),this._disallowPop("start",loc)}source(prop,loc,force){prop&&!loc||this._normalizePosition(prop,loc,this._sourcePosition,force)}withSource(prop,loc,cb){if(!this._map)return cb();const originalLine=this._sourcePosition.line,originalColumn=this._sourcePosition.column,originalFilename=this._sourcePosition.filename,originalIdentifierName=this._sourcePosition.identifierName;this.source(prop,loc),cb(),this._sourcePosition.force&&this._sourcePosition.line===originalLine&&this._sourcePosition.column===originalColumn&&this._sourcePosition.filename===originalFilename||this._disallowedPop&&this._disallowedPop.line===originalLine&&this._disallowedPop.column===originalColumn&&this._disallowedPop.filename===originalFilename||(this._sourcePosition.line=originalLine,this._sourcePosition.column=originalColumn,this._sourcePosition.filename=originalFilename,this._sourcePosition.identifierName=originalIdentifierName,this._sourcePosition.force=!1,this._disallowedPop=null)}_disallowPop(prop,loc){prop&&!loc||(this._disallowedPop=this._normalizePosition(prop,loc))}_normalizePosition(prop,loc,targetObj,force){const pos=loc?loc[prop]:null;void 0===targetObj&&(targetObj={identifierName:null,line:null,column:null,filename:null,force:!1});const origLine=targetObj.line,origColumn=targetObj.column,origFilename=targetObj.filename;return targetObj.identifierName="start"===prop&&(null==loc?void 0:loc.identifierName)||null,targetObj.line=null==pos?void 0:pos.line,targetObj.column=null==pos?void 0:pos.column,targetObj.filename=null==loc?void 0:loc.filename,(force||targetObj.line!==origLine||targetObj.column!==origColumn||targetObj.filename!==origFilename)&&(targetObj.force=force),targetObj}getCurrentColumn(){const extra=this._queue.reduce(((acc,item)=>item[0]+acc),""),lastIndex=extra.lastIndexOf("\n");return-1===lastIndex?this._position.column+extra.length:extra.length-1-lastIndex}getCurrentLine(){const extra=this._queue.reduce(((acc,item)=>item[0]+acc),"");let count=0;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BlockStatement=function(node){var _node$directives;this.token("{"),this.printInnerComments(node);const hasDirectives=null==(_node$directives=node.directives)?void 0:_node$directives.length;node.body.length||hasDirectives?(this.newline(),this.printSequence(node.directives,node,{indent:!0}),hasDirectives&&this.newline(),this.printSequence(node.body,node,{indent:!0}),this.removeTrailingNewline(),this.source("end",node.loc),this.endsWith(10)||this.newline(),this.rightBrace()):(this.source("end",node.loc),this.token("}"))},exports.Directive=function(node){this.print(node.value,node),this.semicolon()},exports.DirectiveLiteral=function(node){const raw=this.getPossibleRaw(node);if(!this.format.minified&&null!=raw)return void this.token(raw);const{value}=node;if(unescapedDoubleQuoteRE.test(value)){if(unescapedSingleQuoteRE.test(value))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${value}'`)}else this.token(`"${value}"`)},exports.File=function(node){node.program&&this.print(node.program.interpreter,node);this.print(node.program,node)},exports.InterpreterDirective=function(node){this.token(`#!${node.value}\n`)},exports.Placeholder=function(node){this.token("%%"),this.print(node.name),this.token("%%"),"Statement"===node.expectedNode&&this.semicolon()},exports.Program=function(node){this.printInnerComments(node,!1),this.printSequence(node.directives,node),node.directives&&node.directives.length&&this.newline();this.printSequence(node.body,node)};const unescapedSingleQuoteRE=/(?:^|[^\\])(?:\\\\)*'/,unescapedDoubleQuoteRE=/(?:^|[^\\])(?:\\\\)*"/},"./node_modules/@babel/generator/lib/generators/classes.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClassBody=function(node){this.token("{"),this.printInnerComments(node),0===node.body.length?this.token("}"):(this.newline(),this.indent(),this.printSequence(node.body,node),this.dedent(),this.endsWith(10)||this.newline(),this.rightBrace())},exports.ClassExpression=exports.ClassDeclaration=function(node,parent){this.format.decoratorsBeforeExport&&(isExportDefaultDeclaration(parent)||isExportNamedDeclaration(parent))||this.printJoin(node.decorators,node);node.declare&&(this.word("declare"),this.space());node.abstract&&(this.word("abstract"),this.space());this.word("class"),this.printInnerComments(node),node.id&&(this.space(),this.print(node.id,node));this.print(node.typeParameters,node),node.superClass&&(this.space(),this.word("extends"),this.space(),this.print(node.superClass,node),this.print(node.superTypeParameters,node));node.implements&&(this.space(),this.word("implements"),this.space(),this.printList(node.implements,node));this.space(),this.print(node.body,node)},exports.ClassMethod=function(node){this._classMethodHead(node),this.space(),this.print(node.body,node)},exports.ClassPrivateMethod=function(node){this._classMethodHead(node),this.space(),this.print(node.body,node)},exports.ClassPrivateProperty=function(node){this.printJoin(node.decorators,node),node.static&&(this.word("static"),this.space());this.print(node.key,node),this.print(node.typeAnnotation,node),node.value&&(this.space(),this.token("="),this.space(),this.print(node.value,node));this.semicolon()},exports.ClassProperty=function(node){this.printJoin(node.decorators,node),this.source("end",node.key.loc),this.tsPrintClassMemberModifiers(node,!0),node.computed?(this.token("["),this.print(node.key,node),this.token("]")):(this._variance(node),this.print(node.key,node));node.optional&&this.token("?");node.definite&&this.token("!");this.print(node.typeAnnotation,node),node.value&&(this.space(),this.token("="),this.space(),this.print(node.value,node));this.semicolon()},exports.StaticBlock=function(node){this.word("static"),this.space(),this.token("{"),0===node.body.length?this.token("}"):(this.newline(),this.printSequence(node.body,node,{indent:!0}),this.rightBrace())},exports._classMethodHead=function(node){this.printJoin(node.decorators,node),this.source("end",node.key.loc),this.tsPrintClassMemberModifiers(node,!1),this._methodHead(node)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isExportDefaultDeclaration,isExportNamedDeclaration}=_t},"./node_modules/@babel/generator/lib/generators/expressions.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogicalExpression=exports.BinaryExpression=exports.AssignmentExpression=function(node,parent){const parens=this.inForStatementInitCounter&&"in"===node.operator&&!n.needsParens(node,parent);parens&&this.token("(");this.print(node.left,node),this.space(),"in"===node.operator||"instanceof"===node.operator?this.word(node.operator):this.token(node.operator);this.space(),this.print(node.right,node),parens&&this.token(")")},exports.AssignmentPattern=function(node){this.print(node.left,node),node.left.optional&&this.token("?");this.print(node.left.typeAnnotation,node),this.space(),this.token("="),this.space(),this.print(node.right,node)},exports.AwaitExpression=void 0,exports.BindExpression=function(node){this.print(node.object,node),this.token("::"),this.print(node.callee,node)},exports.CallExpression=function(node){this.print(node.callee,node),this.print(node.typeArguments,node),this.print(node.typeParameters,node),this.token("("),this.printList(node.arguments,node),this.token(")")},exports.ConditionalExpression=function(node){this.print(node.test,node),this.space(),this.token("?"),this.space(),this.print(node.consequent,node),this.space(),this.token(":"),this.space(),this.print(node.alternate,node)},exports.Decorator=function(node){this.token("@"),this.print(node.expression,node),this.newline()},exports.DoExpression=function(node){node.async&&(this.word("async"),this.space());this.word("do"),this.space(),this.print(node.body,node)},exports.EmptyStatement=function(){this.semicolon(!0)},exports.ExpressionStatement=function(node){this.print(node.expression,node),this.semicolon()},exports.Import=function(){this.word("import")},exports.MemberExpression=function(node){if(this.print(node.object,node),!node.computed&&isMemberExpression(node.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let computed=node.computed;isLiteral(node.property)&&"number"==typeof node.property.value&&(computed=!0);computed?(this.token("["),this.print(node.property,node),this.token("]")):(this.token("."),this.print(node.property,node))},exports.MetaProperty=function(node){this.print(node.meta,node),this.token("."),this.print(node.property,node)},exports.ModuleExpression=function(node){this.word("module"),this.space(),this.token("{"),0===node.body.body.length?this.token("}"):(this.newline(),this.printSequence(node.body.body,node,{indent:!0}),this.rightBrace())},exports.NewExpression=function(node,parent){if(this.word("new"),this.space(),this.print(node.callee,node),this.format.minified&&0===node.arguments.length&&!node.optional&&!isCallExpression(parent,{callee:node})&&!isMemberExpression(parent)&&!isNewExpression(parent))return;this.print(node.typeArguments,node),this.print(node.typeParameters,node),node.optional&&this.token("?.");this.token("("),this.printList(node.arguments,node),this.token(")")},exports.OptionalCallExpression=function(node){this.print(node.callee,node),this.print(node.typeArguments,node),this.print(node.typeParameters,node),node.optional&&this.token("?.");this.token("("),this.printList(node.arguments,node),this.token(")")},exports.OptionalMemberExpression=function(node){if(this.print(node.object,node),!node.computed&&isMemberExpression(node.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let computed=node.computed;isLiteral(node.property)&&"number"==typeof node.property.value&&(computed=!0);node.optional&&this.token("?.");computed?(this.token("["),this.print(node.property,node),this.token("]")):(node.optional||this.token("."),this.print(node.property,node))},exports.ParenthesizedExpression=function(node){this.token("("),this.print(node.expression,node),this.token(")")},exports.PrivateName=function(node){this.token("#"),this.print(node.id,node)},exports.SequenceExpression=function(node){this.printList(node.expressions,node)},exports.Super=function(){this.word("super")},exports.ThisExpression=function(){this.word("this")},exports.UnaryExpression=function(node){"void"===node.operator||"delete"===node.operator||"typeof"===node.operator||"throw"===node.operator?(this.word(node.operator),this.space()):this.token(node.operator);this.print(node.argument,node)},exports.UpdateExpression=function(node){node.prefix?(this.token(node.operator),this.print(node.argument,node)):(this.startTerminatorless(!0),this.print(node.argument,node),this.endTerminatorless(),this.token(node.operator))},exports.V8IntrinsicIdentifier=function(node){this.token("%"),this.word(node.name)},exports.YieldExpression=void 0;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),n=__webpack_require__("./node_modules/@babel/generator/lib/node/index.js");const{isCallExpression,isLiteral,isMemberExpression,isNewExpression}=_t;function buildYieldAwait(keyword){return function(node){if(this.word(keyword),node.delegate&&this.token("*"),node.argument){this.space();const terminatorState=this.startTerminatorless();this.print(node.argument,node),this.endTerminatorless(terminatorState)}}}const YieldExpression=buildYieldAwait("yield");exports.YieldExpression=YieldExpression;const AwaitExpression=buildYieldAwait("await");exports.AwaitExpression=AwaitExpression},"./node_modules/@babel/generator/lib/generators/flow.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AnyTypeAnnotation=function(){this.word("any")},exports.ArrayTypeAnnotation=function(node){this.print(node.elementType,node),this.token("["),this.token("]")},exports.BooleanLiteralTypeAnnotation=function(node){this.word(node.value?"true":"false")},exports.BooleanTypeAnnotation=function(){this.word("boolean")},exports.DeclareClass=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(node)},exports.DeclareExportAllDeclaration=function(){this.word("declare"),this.space(),_modules.ExportAllDeclaration.apply(this,arguments)},exports.DeclareExportDeclaration=function(node){this.word("declare"),this.space(),this.word("export"),this.space(),node.default&&(this.word("default"),this.space());FlowExportDeclaration.apply(this,arguments)},exports.DeclareFunction=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation.typeAnnotation,node),node.predicate&&(this.space(),this.print(node.predicate,node));this.semicolon()},exports.DeclareInterface=function(node){this.word("declare"),this.space(),this.InterfaceDeclaration(node)},exports.DeclareModule=function(node){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(node.id,node),this.space(),this.print(node.body,node)},exports.DeclareModuleExports=function(node){this.word("declare"),this.space(),this.word("module"),this.token("."),this.word("exports"),this.print(node.typeAnnotation,node)},exports.DeclareOpaqueType=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.OpaqueType(node)},exports.DeclareTypeAlias=function(node){this.word("declare"),this.space(),this.TypeAlias(node)},exports.DeclareVariable=function(node,parent){isDeclareExportDeclaration(parent)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(node.id,node),this.print(node.id.typeAnnotation,node),this.semicolon()},exports.DeclaredPredicate=function(node){this.token("%"),this.word("checks"),this.token("("),this.print(node.value,node),this.token(")")},exports.EmptyTypeAnnotation=function(){this.word("empty")},exports.EnumBooleanBody=function(node){const{explicitType}=node;enumExplicitType(this,"boolean",explicitType),enumBody(this,node)},exports.EnumBooleanMember=function(node){enumInitializedMember(this,node)},exports.EnumDeclaration=function(node){const{id,body}=node;this.word("enum"),this.space(),this.print(id,node),this.print(body,node)},exports.EnumDefaultedMember=function(node){const{id}=node;this.print(id,node),this.token(",")},exports.EnumNumberBody=function(node){const{explicitType}=node;enumExplicitType(this,"number",explicitType),enumBody(this,node)},exports.EnumNumberMember=function(node){enumInitializedMember(this,node)},exports.EnumStringBody=function(node){const{explicitType}=node;enumExplicitType(this,"string",explicitType),enumBody(this,node)},exports.EnumStringMember=function(node){enumInitializedMember(this,node)},exports.EnumSymbolBody=function(node){enumExplicitType(this,"symbol",!0),enumBody(this,node)},exports.ExistsTypeAnnotation=function(){this.token("*")},exports.FunctionTypeAnnotation=function(node,parent){this.print(node.typeParameters,node),this.token("("),node.this&&(this.word("this"),this.token(":"),this.space(),this.print(node.this.typeAnnotation,node),(node.params.length||node.rest)&&(this.token(","),this.space()));this.printList(node.params,node),node.rest&&(node.params.length&&(this.token(","),this.space()),this.token("..."),this.print(node.rest,node));this.token(")"),parent&&("ObjectTypeCallProperty"===parent.type||"DeclareFunction"===parent.type||"ObjectTypeProperty"===parent.type&&parent.method)?this.token(":"):(this.space(),this.token("=>"));this.space(),this.print(node.returnType,node)},exports.FunctionTypeParam=function(node){this.print(node.name,node),node.optional&&this.token("?");node.name&&(this.token(":"),this.space());this.print(node.typeAnnotation,node)},exports.IndexedAccessType=function(node){this.print(node.objectType,node),this.token("["),this.print(node.indexType,node),this.token("]")},exports.InferredPredicate=function(){this.token("%"),this.word("checks")},exports.InterfaceDeclaration=function(node){this.word("interface"),this.space(),this._interfaceish(node)},exports.GenericTypeAnnotation=exports.ClassImplements=exports.InterfaceExtends=function(node){this.print(node.id,node),this.print(node.typeParameters,node)},exports.InterfaceTypeAnnotation=function(node){this.word("interface"),node.extends&&node.extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node));this.space(),this.print(node.body,node)},exports.IntersectionTypeAnnotation=function(node){this.printJoin(node.types,node,{separator:andSeparator})},exports.MixedTypeAnnotation=function(){this.word("mixed")},exports.NullLiteralTypeAnnotation=function(){this.word("null")},exports.NullableTypeAnnotation=function(node){this.token("?"),this.print(node.typeAnnotation,node)},Object.defineProperty(exports,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.NumericLiteral}}),exports.NumberTypeAnnotation=function(){this.word("number")},exports.ObjectTypeAnnotation=function(node){node.exact?this.token("{|"):this.token("{");const props=[...node.properties,...node.callProperties||[],...node.indexers||[],...node.internalSlots||[]];props.length&&(this.space(),this.printJoin(props,node,{addNewlines(leading){if(leading&&!props[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==props.length||node.inexact)&&(this.token(","),this.space())}}),this.space());node.inexact&&(this.indent(),this.token("..."),props.length&&this.newline(),this.dedent());node.exact?this.token("|}"):this.token("}")},exports.ObjectTypeCallProperty=function(node){node.static&&(this.word("static"),this.space());this.print(node.value,node)},exports.ObjectTypeIndexer=function(node){node.static&&(this.word("static"),this.space());this._variance(node),this.token("["),node.id&&(this.print(node.id,node),this.token(":"),this.space());this.print(node.key,node),this.token("]"),this.token(":"),this.space(),this.print(node.value,node)},exports.ObjectTypeInternalSlot=function(node){node.static&&(this.word("static"),this.space());this.token("["),this.token("["),this.print(node.id,node),this.token("]"),this.token("]"),node.optional&&this.token("?");node.method||(this.token(":"),this.space());this.print(node.value,node)},exports.ObjectTypeProperty=function(node){node.proto&&(this.word("proto"),this.space());node.static&&(this.word("static"),this.space());"get"!==node.kind&&"set"!==node.kind||(this.word(node.kind),this.space());this._variance(node),this.print(node.key,node),node.optional&&this.token("?");node.method||(this.token(":"),this.space());this.print(node.value,node)},exports.ObjectTypeSpreadProperty=function(node){this.token("..."),this.print(node.argument,node)},exports.OpaqueType=function(node){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),node.supertype&&(this.token(":"),this.space(),this.print(node.supertype,node));node.impltype&&(this.space(),this.token("="),this.space(),this.print(node.impltype,node));this.semicolon()},exports.OptionalIndexedAccessType=function(node){this.print(node.objectType,node),node.optional&&this.token("?.");this.token("["),this.print(node.indexType,node),this.token("]")},exports.QualifiedTypeIdentifier=function(node){this.print(node.qualification,node),this.token("."),this.print(node.id,node)},Object.defineProperty(exports,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _types2.StringLiteral}}),exports.StringTypeAnnotation=function(){this.word("string")},exports.SymbolTypeAnnotation=function(){this.word("symbol")},exports.ThisTypeAnnotation=function(){this.word("this")},exports.TupleTypeAnnotation=function(node){this.token("["),this.printList(node.types,node),this.token("]")},exports.TypeAlias=function(node){this.word("type"),this.space(),this.print(node.id,node),this.print(node.typeParameters,node),this.space(),this.token("="),this.space(),this.print(node.right,node),this.semicolon()},exports.TypeAnnotation=function(node){this.token(":"),this.space(),node.optional&&this.token("?");this.print(node.typeAnnotation,node)},exports.TypeCastExpression=function(node){this.token("("),this.print(node.expression,node),this.print(node.typeAnnotation,node),this.token(")")},exports.TypeParameter=function(node){this._variance(node),this.word(node.name),node.bound&&this.print(node.bound,node);node.default&&(this.space(),this.token("="),this.space(),this.print(node.default,node))},exports.TypeParameterDeclaration=exports.TypeParameterInstantiation=function(node){this.token("<"),this.printList(node.params,node,{}),this.token(">")},exports.TypeofTypeAnnotation=function(node){this.word("typeof"),this.space(),this.print(node.argument,node)},exports.UnionTypeAnnotation=function(node){this.printJoin(node.types,node,{separator:orSeparator})},exports.Variance=function(node){"plus"===node.kind?this.token("+"):this.token("-")},exports.VoidTypeAnnotation=function(){this.word("void")},exports._interfaceish=function(node){var _node$extends;this.print(node.id,node),this.print(node.typeParameters,node),null!=(_node$extends=node.extends)&&_node$extends.length&&(this.space(),this.word("extends"),this.space(),this.printList(node.extends,node));node.mixins&&node.mixins.length&&(this.space(),this.word("mixins"),this.space(),this.printList(node.mixins,node));node.implements&&node.implements.length&&(this.space(),this.word("implements"),this.space(),this.printList(node.implements,node));this.space(),this.print(node.body,node)},exports._variance=function(node){node.variance&&("plus"===node.variance.kind?this.token("+"):"minus"===node.variance.kind&&this.token("-"))};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_modules=__webpack_require__("./node_modules/@babel/generator/lib/generators/modules.js"),_types2=__webpack_require__("./node_modules/@babel/generator/lib/generators/types.js");const{isDeclareExportDeclaration,isStatement}=_t;function enumExplicitType(context,name,hasExplicitType){hasExplicitType&&(context.space(),context.word("of"),context.space(),context.word(name)),context.space()}function enumBody(context,node){const{members}=node;context.token("{"),context.indent(),context.newline();for(const member of members)context.print(member,node),context.newline();node.hasUnknownMembers&&(context.token("..."),context.newline()),context.dedent(),context.token("}")}function enumInitializedMember(context,node){const{id,init}=node;context.print(id,node),context.space(),context.token("="),context.space(),context.print(init,node),context.token(",")}function FlowExportDeclaration(node){if(node.declaration){const declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon()}else this.token("{"),node.specifiers.length&&(this.space(),this.printList(node.specifiers,node),this.space()),this.token("}"),node.source&&(this.space(),this.word("from"),this.space(),this.print(node.source,node)),this.semicolon()}function andSeparator(){this.space(),this.token("&"),this.space()}function orSeparator(){this.space(),this.token("|"),this.space()}},"./node_modules/@babel/generator/lib/generators/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _templateLiterals=__webpack_require__("./node_modules/@babel/generator/lib/generators/template-literals.js");Object.keys(_templateLiterals).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_templateLiterals[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _templateLiterals[key]}}))}));var _expressions=__webpack_require__("./node_modules/@babel/generator/lib/generators/expressions.js");Object.keys(_expressions).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_expressions[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _expressions[key]}}))}));var _statements=__webpack_require__("./node_modules/@babel/generator/lib/generators/statements.js");Object.keys(_statements).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_statements[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _statements[key]}}))}));var _classes=__webpack_require__("./node_modules/@babel/generator/lib/generators/classes.js");Object.keys(_classes).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_classes[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _classes[key]}}))}));var _methods=__webpack_require__("./node_modules/@babel/generator/lib/generators/methods.js");Object.keys(_methods).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_methods[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _methods[key]}}))}));var _modules=__webpack_require__("./node_modules/@babel/generator/lib/generators/modules.js");Object.keys(_modules).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_modules[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _modules[key]}}))}));var _types=__webpack_require__("./node_modules/@babel/generator/lib/generators/types.js");Object.keys(_types).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_types[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _types[key]}}))}));var _flow=__webpack_require__("./node_modules/@babel/generator/lib/generators/flow.js");Object.keys(_flow).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_flow[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _flow[key]}}))}));var _base=__webpack_require__("./node_modules/@babel/generator/lib/generators/base.js");Object.keys(_base).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_base[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _base[key]}}))}));var _jsx=__webpack_require__("./node_modules/@babel/generator/lib/generators/jsx.js");Object.keys(_jsx).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_jsx[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _jsx[key]}}))}));var _typescript=__webpack_require__("./node_modules/@babel/generator/lib/generators/typescript.js");Object.keys(_typescript).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_typescript[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _typescript[key]}}))}))},"./node_modules/@babel/generator/lib/generators/jsx.js":(__unused_webpack_module,exports)=>{"use strict";function spaceSeparator(){this.space()}Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSXAttribute=function(node){this.print(node.name,node),node.value&&(this.token("="),this.print(node.value,node))},exports.JSXClosingElement=function(node){this.token("")},exports.JSXClosingFragment=function(){this.token("")},exports.JSXElement=function(node){const open=node.openingElement;if(this.print(open,node),open.selfClosing)return;this.indent();for(const child of node.children)this.print(child,node);this.dedent(),this.print(node.closingElement,node)},exports.JSXEmptyExpression=function(node){this.printInnerComments(node)},exports.JSXExpressionContainer=function(node){this.token("{"),this.print(node.expression,node),this.token("}")},exports.JSXFragment=function(node){this.print(node.openingFragment,node),this.indent();for(const child of node.children)this.print(child,node);this.dedent(),this.print(node.closingFragment,node)},exports.JSXIdentifier=function(node){this.word(node.name)},exports.JSXMemberExpression=function(node){this.print(node.object,node),this.token("."),this.print(node.property,node)},exports.JSXNamespacedName=function(node){this.print(node.namespace,node),this.token(":"),this.print(node.name,node)},exports.JSXOpeningElement=function(node){this.token("<"),this.print(node.name,node),this.print(node.typeParameters,node),node.attributes.length>0&&(this.space(),this.printJoin(node.attributes,node,{separator:spaceSeparator}));node.selfClosing?(this.space(),this.token("/>")):this.token(">")},exports.JSXOpeningFragment=function(){this.token("<"),this.token(">")},exports.JSXSpreadAttribute=function(node){this.token("{"),this.token("..."),this.print(node.argument,node),this.token("}")},exports.JSXSpreadChild=function(node){this.token("{"),this.token("..."),this.print(node.expression,node),this.token("}")},exports.JSXText=function(node){const raw=this.getPossibleRaw(node);null!=raw?this.token(raw):this.token(node.value)}},"./node_modules/@babel/generator/lib/generators/methods.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrowFunctionExpression=function(node){node.async&&(this.word("async"),this.space());const firstParam=node.params[0];this.format.retainLines||this.format.auxiliaryCommentBefore||this.format.auxiliaryCommentAfter||1!==node.params.length||!isIdentifier(firstParam)||function(node,param){var _param$leadingComment,_param$trailingCommen;return!!(node.typeParameters||node.returnType||node.predicate||param.typeAnnotation||param.optional||null!=(_param$leadingComment=param.leadingComments)&&_param$leadingComment.length||null!=(_param$trailingCommen=param.trailingComments)&&_param$trailingCommen.length)}(node,firstParam)?this._params(node):this.print(firstParam,node);this._predicate(node),this.space(),this.token("=>"),this.space(),this.print(node.body,node)},exports.FunctionDeclaration=exports.FunctionExpression=function(node){this._functionHead(node),this.space(),this.print(node.body,node)},exports._functionHead=function(node){node.async&&(this.word("async"),this.space());this.word("function"),node.generator&&this.token("*");this.printInnerComments(node),this.space(),node.id&&this.print(node.id,node);this._params(node),this._predicate(node)},exports._methodHead=function(node){const kind=node.kind,key=node.key;"get"!==kind&&"set"!==kind||(this.word(kind),this.space());node.async&&(this._catchUp("start",key.loc),this.word("async"),this.space());"method"!==kind&&"init"!==kind||node.generator&&this.token("*");node.computed?(this.token("["),this.print(key,node),this.token("]")):this.print(key,node);node.optional&&this.token("?");this._params(node)},exports._param=function(parameter,parent){this.printJoin(parameter.decorators,parameter),this.print(parameter,parent),parameter.optional&&this.token("?");this.print(parameter.typeAnnotation,parameter)},exports._parameters=function(parameters,parent){for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExportAllDeclaration=function(node){this.word("export"),this.space(),"type"===node.exportKind&&(this.word("type"),this.space());this.token("*"),this.space(),this.word("from"),this.space(),this.print(node.source,node),this.printAssertions(node),this.semicolon()},exports.ExportDefaultDeclaration=function(node){this.format.decoratorsBeforeExport&&isClassDeclaration(node.declaration)&&this.printJoin(node.declaration.decorators,node);this.word("export"),this.space(),this.word("default"),this.space(),ExportDeclaration.apply(this,arguments)},exports.ExportDefaultSpecifier=function(node){this.print(node.exported,node)},exports.ExportNamedDeclaration=function(node){this.format.decoratorsBeforeExport&&isClassDeclaration(node.declaration)&&this.printJoin(node.declaration.decorators,node);this.word("export"),this.space(),ExportDeclaration.apply(this,arguments)},exports.ExportNamespaceSpecifier=function(node){this.token("*"),this.space(),this.word("as"),this.space(),this.print(node.exported,node)},exports.ExportSpecifier=function(node){"type"===node.exportKind&&(this.word("type"),this.space());this.print(node.local,node),node.exported&&node.local.name!==node.exported.name&&(this.space(),this.word("as"),this.space(),this.print(node.exported,node))},exports.ImportAttribute=function(node){this.print(node.key),this.token(":"),this.space(),this.print(node.value)},exports.ImportDeclaration=function(node){this.word("import"),this.space(),("type"===node.importKind||"typeof"===node.importKind)&&(this.word(node.importKind),this.space());const specifiers=node.specifiers.slice(0);if(null!=specifiers&&specifiers.length){for(;;){const first=specifiers[0];if(!isImportDefaultSpecifier(first)&&!isImportNamespaceSpecifier(first))break;this.print(specifiers.shift(),node),specifiers.length&&(this.token(","),this.space())}specifiers.length&&(this.token("{"),this.space(),this.printList(specifiers,node),this.space(),this.token("}")),this.space(),this.word("from"),this.space()}var _node$attributes;this.print(node.source,node),this.printAssertions(node),null!=(_node$attributes=node.attributes)&&_node$attributes.length&&(this.space(),this.word("with"),this.space(),this.printList(node.attributes,node));this.semicolon()},exports.ImportDefaultSpecifier=function(node){this.print(node.local,node)},exports.ImportNamespaceSpecifier=function(node){this.token("*"),this.space(),this.word("as"),this.space(),this.print(node.local,node)},exports.ImportSpecifier=function(node){"type"!==node.importKind&&"typeof"!==node.importKind||(this.word(node.importKind),this.space());this.print(node.imported,node),node.local&&node.local.name!==node.imported.name&&(this.space(),this.word("as"),this.space(),this.print(node.local,node))};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isClassDeclaration,isExportDefaultSpecifier,isExportNamespaceSpecifier,isImportDefaultSpecifier,isImportNamespaceSpecifier,isStatement}=_t;function ExportDeclaration(node){if(node.declaration){const declar=node.declaration;this.print(declar,node),isStatement(declar)||this.semicolon()}else{"type"===node.exportKind&&(this.word("type"),this.space());const specifiers=node.specifiers.slice(0);let hasSpecial=!1;for(;;){const first=specifiers[0];if(!isExportDefaultSpecifier(first)&&!isExportNamespaceSpecifier(first))break;hasSpecial=!0,this.print(specifiers.shift(),node),specifiers.length&&(this.token(","),this.space())}(specifiers.length||!specifiers.length&&!hasSpecial)&&(this.token("{"),specifiers.length&&(this.space(),this.printList(specifiers,node),this.space()),this.token("}")),node.source&&(this.space(),this.word("from"),this.space(),this.print(node.source,node),this.printAssertions(node)),this.semicolon()}}},"./node_modules/@babel/generator/lib/generators/statements.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BreakStatement=void 0,exports.CatchClause=function(node){this.word("catch"),this.space(),node.param&&(this.token("("),this.print(node.param,node),this.print(node.param.typeAnnotation,node),this.token(")"),this.space());this.print(node.body,node)},exports.ContinueStatement=void 0,exports.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},exports.DoWhileStatement=function(node){this.word("do"),this.space(),this.print(node.body,node),this.space(),this.word("while"),this.space(),this.token("("),this.print(node.test,node),this.token(")"),this.semicolon()},exports.ForOfStatement=exports.ForInStatement=void 0,exports.ForStatement=function(node){this.word("for"),this.space(),this.token("("),this.inForStatementInitCounter++,this.print(node.init,node),this.inForStatementInitCounter--,this.token(";"),node.test&&(this.space(),this.print(node.test,node));this.token(";"),node.update&&(this.space(),this.print(node.update,node));this.token(")"),this.printBlock(node)},exports.IfStatement=function(node){this.word("if"),this.space(),this.token("("),this.print(node.test,node),this.token(")"),this.space();const needsBlock=node.alternate&&isIfStatement(getLastStatement(node.consequent));needsBlock&&(this.token("{"),this.newline(),this.indent());this.printAndIndentOnComments(node.consequent,node),needsBlock&&(this.dedent(),this.newline(),this.token("}"));node.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(node.alternate,node))},exports.LabeledStatement=function(node){this.print(node.label,node),this.token(":"),this.space(),this.print(node.body,node)},exports.ReturnStatement=void 0,exports.SwitchCase=function(node){node.test?(this.word("case"),this.space(),this.print(node.test,node),this.token(":")):(this.word("default"),this.token(":"));node.consequent.length&&(this.newline(),this.printSequence(node.consequent,node,{indent:!0}))},exports.SwitchStatement=function(node){this.word("switch"),this.space(),this.token("("),this.print(node.discriminant,node),this.token(")"),this.space(),this.token("{"),this.printSequence(node.cases,node,{indent:!0,addNewlines(leading,cas){if(!leading&&node.cases[node.cases.length-1]===cas)return-1}}),this.token("}")},exports.ThrowStatement=void 0,exports.TryStatement=function(node){this.word("try"),this.space(),this.print(node.block,node),this.space(),node.handlers?this.print(node.handlers[0],node):this.print(node.handler,node);node.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(node.finalizer,node))},exports.VariableDeclaration=function(node,parent){node.declare&&(this.word("declare"),this.space());this.word(node.kind),this.space();let separator,hasInits=!1;if(!isFor(parent))for(const declar of node.declarations)declar.init&&(hasInits=!0);hasInits&&(separator="const"===node.kind?constDeclarationIndent:variableDeclarationIndent);if(this.printList(node.declarations,node,{separator}),isFor(parent))if(isForStatement(parent)){if(parent.init===node)return}else if(parent.left===node)return;this.semicolon()},exports.VariableDeclarator=function(node){this.print(node.id,node),node.definite&&this.token("!");this.print(node.id.typeAnnotation,node),node.init&&(this.space(),this.token("="),this.space(),this.print(node.init,node))},exports.WhileStatement=function(node){this.word("while"),this.space(),this.token("("),this.print(node.test,node),this.token(")"),this.printBlock(node)},exports.WithStatement=function(node){this.word("with"),this.space(),this.token("("),this.print(node.object,node),this.token(")"),this.printBlock(node)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isFor,isForStatement,isIfStatement,isStatement}=_t;function getLastStatement(statement){return isStatement(statement.body)?getLastStatement(statement.body):statement}const buildForXStatement=function(op){return function(node){this.word("for"),this.space(),"of"===op&&node.await&&(this.word("await"),this.space()),this.token("("),this.print(node.left,node),this.space(),this.word(op),this.space(),this.print(node.right,node),this.token(")"),this.printBlock(node)}},ForInStatement=buildForXStatement("in");exports.ForInStatement=ForInStatement;const ForOfStatement=buildForXStatement("of");function buildLabelStatement(prefix,key="label"){return function(node){this.word(prefix);const label=node[key];if(label){this.space();const isLabel="label"==key,terminatorState=this.startTerminatorless(isLabel);this.print(label,node),this.endTerminatorless(terminatorState)}this.semicolon()}}exports.ForOfStatement=ForOfStatement;const ContinueStatement=buildLabelStatement("continue");exports.ContinueStatement=ContinueStatement;const ReturnStatement=buildLabelStatement("return","argument");exports.ReturnStatement=ReturnStatement;const BreakStatement=buildLabelStatement("break");exports.BreakStatement=BreakStatement;const ThrowStatement=buildLabelStatement("throw","argument");function variableDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith(10))for(let i=0;i<4;i++)this.space(!0)}function constDeclarationIndent(){if(this.token(","),this.newline(),this.endsWith(10))for(let i=0;i<6;i++)this.space(!0)}exports.ThrowStatement=ThrowStatement},"./node_modules/@babel/generator/lib/generators/template-literals.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TaggedTemplateExpression=function(node){this.print(node.tag,node),this.print(node.typeParameters,node),this.print(node.quasi,node)},exports.TemplateElement=function(node,parent){const isFirst=parent.quasis[0]===node,isLast=parent.quasis[parent.quasis.length-1]===node,value=(isFirst?"`":"}")+node.value.raw+(isLast?"`":"${");this.token(value)},exports.TemplateLiteral=function(node){const quasis=node.quasis;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArgumentPlaceholder=function(){this.token("?")},exports.ArrayPattern=exports.ArrayExpression=function(node){const elems=node.elements,len=elems.length;this.token("["),this.printInnerComments(node);for(let i=0;i0&&this.space(),this.print(elem,node),i{this.word(node.name)}))},exports.NullLiteral=function(){this.word("null")},exports.NumericLiteral=function(node){const raw=this.getPossibleRaw(node),opts=this.format.jsescOption,value=node.value+"";opts.numbers?this.number(_jsesc(node.value,opts)):null==raw?this.number(value):this.format.minified?this.number(raw.lengthJSON.stringify(v)));throw new Error(`The "topicToken" generator option must be one of ${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`)}this.token(topicToken)},exports.TupleExpression=function(node){const elems=node.elements,len=elems.length;let startToken,endToken;if("bar"===this.format.recordAndTupleSyntaxType)startToken="[|",endToken="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);startToken="#[",endToken="]"}this.token(startToken),this.printInnerComments(node);for(let i=0;i0&&this.space(),this.print(elem,node),i{"use strict";function tokenIfPlusMinus(self,tok){!0!==tok&&self.token(tok)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TSAnyKeyword=function(){this.word("any")},exports.TSArrayType=function(node){this.print(node.elementType,node),this.token("[]")},exports.TSAsExpression=function(node){const{expression,typeAnnotation}=node;this.print(expression,node),this.space(),this.word("as"),this.space(),this.print(typeAnnotation,node)},exports.TSBigIntKeyword=function(){this.word("bigint")},exports.TSBooleanKeyword=function(){this.word("boolean")},exports.TSCallSignatureDeclaration=function(node){this.tsPrintSignatureDeclarationBase(node),this.token(";")},exports.TSConditionalType=function(node){this.print(node.checkType),this.space(),this.word("extends"),this.space(),this.print(node.extendsType),this.space(),this.token("?"),this.space(),this.print(node.trueType),this.space(),this.token(":"),this.space(),this.print(node.falseType)},exports.TSConstructSignatureDeclaration=function(node){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(node),this.token(";")},exports.TSConstructorType=function(node){node.abstract&&(this.word("abstract"),this.space());this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(node)},exports.TSDeclareFunction=function(node){node.declare&&(this.word("declare"),this.space());this._functionHead(node),this.token(";")},exports.TSDeclareMethod=function(node){this._classMethodHead(node),this.token(";")},exports.TSEnumDeclaration=function(node){const{declare,const:isConst,id,members}=node;declare&&(this.word("declare"),this.space());isConst&&(this.word("const"),this.space());this.word("enum"),this.space(),this.print(id,node),this.space(),this.tsPrintBraced(members,node)},exports.TSEnumMember=function(node){const{id,initializer}=node;this.print(id,node),initializer&&(this.space(),this.token("="),this.space(),this.print(initializer,node));this.token(",")},exports.TSExportAssignment=function(node){this.word("export"),this.space(),this.token("="),this.space(),this.print(node.expression,node),this.token(";")},exports.TSExpressionWithTypeArguments=function(node){this.print(node.expression,node),this.print(node.typeParameters,node)},exports.TSExternalModuleReference=function(node){this.token("require("),this.print(node.expression,node),this.token(")")},exports.TSFunctionType=function(node){this.tsPrintFunctionOrConstructorType(node)},exports.TSImportEqualsDeclaration=function(node){const{isExport,id,moduleReference}=node;isExport&&(this.word("export"),this.space());this.word("import"),this.space(),this.print(id,node),this.space(),this.token("="),this.space(),this.print(moduleReference,node),this.token(";")},exports.TSImportType=function(node){const{argument,qualifier,typeParameters}=node;this.word("import"),this.token("("),this.print(argument,node),this.token(")"),qualifier&&(this.token("."),this.print(qualifier,node));typeParameters&&this.print(typeParameters,node)},exports.TSIndexSignature=function(node){const{readonly,static:isStatic}=node;isStatic&&(this.word("static"),this.space());readonly&&(this.word("readonly"),this.space());this.token("["),this._parameters(node.parameters,node),this.token("]"),this.print(node.typeAnnotation,node),this.token(";")},exports.TSIndexedAccessType=function(node){this.print(node.objectType,node),this.token("["),this.print(node.indexType,node),this.token("]")},exports.TSInferType=function(node){this.token("infer"),this.space(),this.print(node.typeParameter)},exports.TSInterfaceBody=function(node){this.tsPrintTypeLiteralOrInterfaceBody(node.body,node)},exports.TSInterfaceDeclaration=function(node){const{declare,id,typeParameters,extends:extendz,body}=node;declare&&(this.word("declare"),this.space());this.word("interface"),this.space(),this.print(id,node),this.print(typeParameters,node),null!=extendz&&extendz.length&&(this.space(),this.word("extends"),this.space(),this.printList(extendz,node));this.space(),this.print(body,node)},exports.TSIntersectionType=function(node){this.tsPrintUnionOrIntersectionType(node,"&")},exports.TSIntrinsicKeyword=function(){this.word("intrinsic")},exports.TSLiteralType=function(node){this.print(node.literal,node)},exports.TSMappedType=function(node){const{nameType,optional,readonly,typeParameter}=node;this.token("{"),this.space(),readonly&&(tokenIfPlusMinus(this,readonly),this.word("readonly"),this.space());this.token("["),this.word(typeParameter.name),this.space(),this.word("in"),this.space(),this.print(typeParameter.constraint,typeParameter),nameType&&(this.space(),this.word("as"),this.space(),this.print(nameType,node));this.token("]"),optional&&(tokenIfPlusMinus(this,optional),this.token("?"));this.token(":"),this.space(),this.print(node.typeAnnotation,node),this.space(),this.token("}")},exports.TSMethodSignature=function(node){const{kind}=node;"set"!==kind&&"get"!==kind||(this.word(kind),this.space());this.tsPrintPropertyOrMethodName(node),this.tsPrintSignatureDeclarationBase(node),this.token(";")},exports.TSModuleBlock=function(node){this.tsPrintBraced(node.body,node)},exports.TSModuleDeclaration=function(node){const{declare,id}=node;declare&&(this.word("declare"),this.space());node.global||(this.word("Identifier"===id.type?"namespace":"module"),this.space());if(this.print(id,node),!node.body)return void this.token(";");let body=node.body;for(;"TSModuleDeclaration"===body.type;)this.token("."),this.print(body.id,body),body=body.body;this.space(),this.print(body,node)},exports.TSNamedTupleMember=function(node){this.print(node.label,node),node.optional&&this.token("?");this.token(":"),this.space(),this.print(node.elementType,node)},exports.TSNamespaceExportDeclaration=function(node){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(node.id,node)},exports.TSNeverKeyword=function(){this.word("never")},exports.TSNonNullExpression=function(node){this.print(node.expression,node),this.token("!")},exports.TSNullKeyword=function(){this.word("null")},exports.TSNumberKeyword=function(){this.word("number")},exports.TSObjectKeyword=function(){this.word("object")},exports.TSOptionalType=function(node){this.print(node.typeAnnotation,node),this.token("?")},exports.TSParameterProperty=function(node){node.accessibility&&(this.word(node.accessibility),this.space());node.readonly&&(this.word("readonly"),this.space());this._param(node.parameter)},exports.TSParenthesizedType=function(node){this.token("("),this.print(node.typeAnnotation,node),this.token(")")},exports.TSPropertySignature=function(node){const{readonly,initializer}=node;readonly&&(this.word("readonly"),this.space());this.tsPrintPropertyOrMethodName(node),this.print(node.typeAnnotation,node),initializer&&(this.space(),this.token("="),this.space(),this.print(initializer,node));this.token(";")},exports.TSQualifiedName=function(node){this.print(node.left,node),this.token("."),this.print(node.right,node)},exports.TSRestType=function(node){this.token("..."),this.print(node.typeAnnotation,node)},exports.TSStringKeyword=function(){this.word("string")},exports.TSSymbolKeyword=function(){this.word("symbol")},exports.TSThisType=function(){this.word("this")},exports.TSTupleType=function(node){this.token("["),this.printList(node.elementTypes,node),this.token("]")},exports.TSTypeAliasDeclaration=function(node){const{declare,id,typeParameters,typeAnnotation}=node;declare&&(this.word("declare"),this.space());this.word("type"),this.space(),this.print(id,node),this.print(typeParameters,node),this.space(),this.token("="),this.space(),this.print(typeAnnotation,node),this.token(";")},exports.TSTypeAnnotation=function(node){this.token(":"),this.space(),node.optional&&this.token("?");this.print(node.typeAnnotation,node)},exports.TSTypeAssertion=function(node){const{typeAnnotation,expression}=node;this.token("<"),this.print(typeAnnotation,node),this.token(">"),this.space(),this.print(expression,node)},exports.TSTypeLiteral=function(node){this.tsPrintTypeLiteralOrInterfaceBody(node.members,node)},exports.TSTypeOperator=function(node){this.word(node.operator),this.space(),this.print(node.typeAnnotation,node)},exports.TSTypeParameter=function(node){this.word(node.name),node.constraint&&(this.space(),this.word("extends"),this.space(),this.print(node.constraint,node));node.default&&(this.space(),this.token("="),this.space(),this.print(node.default,node))},exports.TSTypeParameterDeclaration=exports.TSTypeParameterInstantiation=function(node,parent){this.token("<"),this.printList(node.params,node,{}),"ArrowFunctionExpression"===parent.type&&1===node.params.length&&this.token(",");this.token(">")},exports.TSTypePredicate=function(node){node.asserts&&(this.word("asserts"),this.space());this.print(node.parameterName),node.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(node.typeAnnotation.typeAnnotation))},exports.TSTypeQuery=function(node){this.word("typeof"),this.space(),this.print(node.exprName)},exports.TSTypeReference=function(node){this.print(node.typeName,node),this.print(node.typeParameters,node)},exports.TSUndefinedKeyword=function(){this.word("undefined")},exports.TSUnionType=function(node){this.tsPrintUnionOrIntersectionType(node,"|")},exports.TSUnknownKeyword=function(){this.word("unknown")},exports.TSVoidKeyword=function(){this.word("void")},exports.tsPrintBraced=function(members,node){if(this.token("{"),members.length){this.indent(),this.newline();for(const member of members)this.print(member,node),this.newline();this.dedent(),this.rightBrace()}else this.token("}")},exports.tsPrintClassMemberModifiers=function(node,isField){isField&&node.declare&&(this.word("declare"),this.space());node.accessibility&&(this.word(node.accessibility),this.space());node.static&&(this.word("static"),this.space());node.override&&(this.word("override"),this.space());node.abstract&&(this.word("abstract"),this.space());isField&&node.readonly&&(this.word("readonly"),this.space())},exports.tsPrintFunctionOrConstructorType=function(node){const{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.token("("),this._parameters(parameters,node),this.token(")"),this.space(),this.token("=>"),this.space();const returnType=node.typeAnnotation;this.print(returnType.typeAnnotation,node)},exports.tsPrintPropertyOrMethodName=function(node){node.computed&&this.token("[");this.print(node.key,node),node.computed&&this.token("]");node.optional&&this.token("?")},exports.tsPrintSignatureDeclarationBase=function(node){const{typeParameters}=node,parameters=node.parameters;this.print(typeParameters,node),this.token("("),this._parameters(parameters,node),this.token(")");const returnType=node.typeAnnotation;this.print(returnType,node)},exports.tsPrintTypeLiteralOrInterfaceBody=function(members,node){this.tsPrintBraced(members,node)},exports.tsPrintUnionOrIntersectionType=function(node,sep){this.printJoin(node.types,node,{separator(){this.space(),this.token(sep),this.space()}})}},"./node_modules/@babel/generator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeGenerator=void 0,exports.default=function(ast,opts,code){return new Generator(ast,opts,code).generate()};var _sourceMap=__webpack_require__("./node_modules/@babel/generator/lib/source-map.js"),_printer=__webpack_require__("./node_modules/@babel/generator/lib/printer.js");class Generator extends _printer.default{constructor(ast,opts={},code){const format=function(code,opts){const format={auxiliaryCommentBefore:opts.auxiliaryCommentBefore,auxiliaryCommentAfter:opts.auxiliaryCommentAfter,shouldPrintComment:opts.shouldPrintComment,retainLines:opts.retainLines,retainFunctionParens:opts.retainFunctionParens,comments:null==opts.comments||opts.comments,compact:opts.compact,minified:opts.minified,concise:opts.concise,indent:{adjustMultilineComment:!0,style:" ",base:0},decoratorsBeforeExport:!!opts.decoratorsBeforeExport,jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},opts.jsescOption),recordAndTupleSyntaxType:opts.recordAndTupleSyntaxType,topicToken:opts.topicToken};format.jsonCompatibleStrings=opts.jsonCompatibleStrings,format.minified?(format.compact=!0,format.shouldPrintComment=format.shouldPrintComment||(()=>format.comments)):format.shouldPrintComment=format.shouldPrintComment||(value=>format.comments||value.indexOf("@license")>=0||value.indexOf("@preserve")>=0);"auto"===format.compact&&(format.compact=code.length>5e5,format.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${opts.filename} as it exceeds the max of 500KB.`));format.compact&&(format.indent.adjustMultilineComment=!1);return format}(code,opts);super(format,opts.sourceMaps?new _sourceMap.default(opts,code):null),this.ast=void 0,this.ast=ast}generate(){return super.generate(this.ast)}}exports.CodeGenerator=class{constructor(ast,opts,code){this._generator=void 0,this._generator=new Generator(ast,opts,code)}generate(){return this._generator.generate()}}},"./node_modules/@babel/generator/lib/node/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.needsParens=function(node,parent,printStack){if(!parent)return!1;if(isNewExpression(parent)&&parent.callee===node&&isOrHasCallExpression(node))return!0;return find(expandedParens,node,parent,printStack)},exports.needsWhitespace=needsWhitespace,exports.needsWhitespaceAfter=function(node,parent){return needsWhitespace(node,parent,"after")},exports.needsWhitespaceBefore=function(node,parent){return needsWhitespace(node,parent,"before")};var whitespace=__webpack_require__("./node_modules/@babel/generator/lib/node/whitespace.js"),parens=__webpack_require__("./node_modules/@babel/generator/lib/node/parentheses.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{FLIPPED_ALIAS_KEYS,isCallExpression,isExpressionStatement,isMemberExpression,isNewExpression}=_t;function expandAliases(obj){const newObj={};function add(type,func){const fn=newObj[type];newObj[type]=fn?function(node,parent,stack){const result=fn(node,parent,stack);return null==result?func(node,parent,stack):result}:func}for(const type of Object.keys(obj)){const aliases=FLIPPED_ALIAS_KEYS[type];if(aliases)for(const alias of aliases)add(alias,obj[type]);else add(type,obj[type])}return newObj}const expandedParens=expandAliases(parens),expandedWhitespaceNodes=expandAliases(whitespace.nodes),expandedWhitespaceList=expandAliases(whitespace.list);function find(obj,node,parent,printStack){const fn=obj[node.type];return fn?fn(node,parent,printStack):null}function isOrHasCallExpression(node){return!!isCallExpression(node)||isMemberExpression(node)&&isOrHasCallExpression(node.object)}function needsWhitespace(node,parent,type){if(!node)return 0;isExpressionStatement(node)&&(node=node.expression);let linesInfo=find(expandedWhitespaceNodes,node,parent);if(!linesInfo){const items=find(expandedWhitespaceList,node,parent);if(items)for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrowFunctionExpression=function(node,parent){return isExportDeclaration(parent)||ConditionalExpression(node,parent)},exports.AssignmentExpression=function(node,parent){return!!isObjectPattern(node.left)||ConditionalExpression(node,parent)},exports.Binary=function(node,parent){if("**"===node.operator&&isBinaryExpression(parent,{operator:"**"}))return parent.left===node;if(isClassExtendsClause(node,parent))return!0;if(hasPostfixPart(node,parent)||isUnaryLike(parent)||isAwaitExpression(parent))return!0;if(isBinary(parent)){const parentOp=parent.operator,parentPos=PRECEDENCE[parentOp],nodeOp=node.operator,nodePos=PRECEDENCE[nodeOp];if(parentPos===nodePos&&parent.right===node&&!isLogicalExpression(parent)||parentPos>nodePos)return!0}},exports.BinaryExpression=function(node,parent){return"in"===node.operator&&(isVariableDeclarator(parent)||isFor(parent))},exports.ClassExpression=function(node,parent,printStack){return isFirstInContext(printStack,{expressionStatement:!0,exportDefault:!0})},exports.ConditionalExpression=ConditionalExpression,exports.DoExpression=function(node,parent,printStack){return!node.async&&isFirstInContext(printStack,{expressionStatement:!0})},exports.FunctionExpression=function(node,parent,printStack){return isFirstInContext(printStack,{expressionStatement:!0,exportDefault:!0})},exports.FunctionTypeAnnotation=function(node,parent,printStack){return isUnionTypeAnnotation(parent)||isIntersectionTypeAnnotation(parent)||isArrayTypeAnnotation(parent)||isTypeAnnotation(parent)&&isArrowFunctionExpression(printStack[printStack.length-3])},exports.Identifier=function(node,parent,printStack){if("let"===node.name){const isFollowedByBracket=isMemberExpression(parent,{object:node,computed:!0})||isOptionalMemberExpression(parent,{object:node,computed:!0,optional:!1});return isFirstInContext(printStack,{expressionStatement:isFollowedByBracket,forHead:isFollowedByBracket,forInHead:isFollowedByBracket,forOfHead:!0})}return"async"===node.name&&isForOfStatement(parent)&&node===parent.left},exports.LogicalExpression=function(node,parent){switch(node.operator){case"||":return!!isLogicalExpression(parent)&&("??"===parent.operator||"&&"===parent.operator);case"&&":return isLogicalExpression(parent,{operator:"??"});case"??":return isLogicalExpression(parent)&&"??"!==parent.operator}},exports.NullableTypeAnnotation=function(node,parent){return isArrayTypeAnnotation(parent)},exports.ObjectExpression=function(node,parent,printStack){return isFirstInContext(printStack,{expressionStatement:!0,arrowBody:!0})},exports.OptionalIndexedAccessType=function(node,parent){return isIndexedAccessType(parent,{objectType:node})},exports.OptionalCallExpression=exports.OptionalMemberExpression=function(node,parent){return isCallExpression(parent,{callee:node})||isMemberExpression(parent,{object:node})},exports.SequenceExpression=function(node,parent){if(isForStatement(parent)||isThrowStatement(parent)||isReturnStatement(parent)||isIfStatement(parent)&&parent.test===node||isWhileStatement(parent)&&parent.test===node||isForInStatement(parent)&&parent.right===node||isSwitchStatement(parent)&&parent.discriminant===node||isExpressionStatement(parent)&&parent.expression===node)return!1;return!0},exports.TSAsExpression=function(){return!0},exports.TSInferType=function(node,parent){return isTSArrayType(parent)||isTSOptionalType(parent)},exports.TSTypeAssertion=function(){return!0},exports.TSIntersectionType=exports.TSUnionType=function(node,parent){return isTSArrayType(parent)||isTSOptionalType(parent)||isTSIntersectionType(parent)||isTSUnionType(parent)||isTSRestType(parent)},exports.UnaryLike=UnaryLike,exports.IntersectionTypeAnnotation=exports.UnionTypeAnnotation=function(node,parent){return isArrayTypeAnnotation(parent)||isNullableTypeAnnotation(parent)||isIntersectionTypeAnnotation(parent)||isUnionTypeAnnotation(parent)},exports.UpdateExpression=function(node,parent){return hasPostfixPart(node,parent)||isClassExtendsClause(node,parent)},exports.AwaitExpression=exports.YieldExpression=function(node,parent){return isBinary(parent)||isUnaryLike(parent)||hasPostfixPart(node,parent)||isAwaitExpression(parent)&&isYieldExpression(node)||isConditionalExpression(parent)&&node===parent.test||isClassExtendsClause(node,parent)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isArrayTypeAnnotation,isArrowFunctionExpression,isAssignmentExpression,isAwaitExpression,isBinary,isBinaryExpression,isCallExpression,isClassDeclaration,isClassExpression,isConditional,isConditionalExpression,isExportDeclaration,isExportDefaultDeclaration,isExpressionStatement,isFor,isForInStatement,isForOfStatement,isForStatement,isIfStatement,isIndexedAccessType,isIntersectionTypeAnnotation,isLogicalExpression,isMemberExpression,isNewExpression,isNullableTypeAnnotation,isObjectPattern,isOptionalCallExpression,isOptionalMemberExpression,isReturnStatement,isSequenceExpression,isSwitchStatement,isTSArrayType,isTSAsExpression,isTSIntersectionType,isTSNonNullExpression,isTSOptionalType,isTSRestType,isTSTypeAssertion,isTSUnionType,isTaggedTemplateExpression,isThrowStatement,isTypeAnnotation,isUnaryLike,isUnionTypeAnnotation,isVariableDeclarator,isWhileStatement,isYieldExpression}=_t,PRECEDENCE={"||":0,"??":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10},isClassExtendsClause=(node,parent)=>(isClassDeclaration(parent)||isClassExpression(parent))&&parent.superClass===node,hasPostfixPart=(node,parent)=>(isMemberExpression(parent)||isOptionalMemberExpression(parent))&&parent.object===node||(isCallExpression(parent)||isOptionalCallExpression(parent)||isNewExpression(parent))&&parent.callee===node||isTaggedTemplateExpression(parent)&&parent.tag===node||isTSNonNullExpression(parent);function UnaryLike(node,parent){return hasPostfixPart(node,parent)||isBinaryExpression(parent,{operator:"**",left:node})||isClassExtendsClause(node,parent)}function ConditionalExpression(node,parent){return!!(isUnaryLike(parent)||isBinary(parent)||isConditionalExpression(parent,{test:node})||isAwaitExpression(parent)||isTSTypeAssertion(parent)||isTSAsExpression(parent))||UnaryLike(node,parent)}function isFirstInContext(printStack,{expressionStatement=!1,arrowBody=!1,exportDefault=!1,forHead=!1,forInHead=!1,forOfHead=!1}){let i=printStack.length-1,node=printStack[i];i--;let parent=printStack[i];for(;i>=0;){if(expressionStatement&&isExpressionStatement(parent,{expression:node})||exportDefault&&isExportDefaultDeclaration(parent,{declaration:node})||arrowBody&&isArrowFunctionExpression(parent,{body:node})||forHead&&isForStatement(parent,{init:node})||forInHead&&isForInStatement(parent,{left:node})||forOfHead&&isForOfStatement(parent,{left:node}))return!0;if(!(hasPostfixPart(node,parent)&&!isNewExpression(parent)||isSequenceExpression(parent)&&parent.expressions[0]===node||isConditional(parent,{test:node})||isBinary(parent,{left:node})||isAssignmentExpression(parent,{left:node})))return!1;node=parent,i--,parent=printStack[i]}return!1}},"./node_modules/@babel/generator/lib/node/whitespace.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.nodes=exports.list=void 0;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{FLIPPED_ALIAS_KEYS,isArrayExpression,isAssignmentExpression,isBinary,isBlockStatement,isCallExpression,isFunction,isIdentifier,isLiteral,isMemberExpression,isObjectExpression,isOptionalCallExpression,isOptionalMemberExpression,isStringLiteral}=_t;function crawl(node,state={}){return isMemberExpression(node)||isOptionalMemberExpression(node)?(crawl(node.object,state),node.computed&&crawl(node.property,state)):isBinary(node)||isAssignmentExpression(node)?(crawl(node.left,state),crawl(node.right,state)):isCallExpression(node)||isOptionalCallExpression(node)?(state.hasCall=!0,crawl(node.callee,state)):isFunction(node)?state.hasFunction=!0:isIdentifier(node)&&(state.hasHelper=state.hasHelper||isHelper(node.callee)),state}function isHelper(node){return isMemberExpression(node)?isHelper(node.object)||isHelper(node.property):isIdentifier(node)?"require"===node.name||"_"===node.name[0]:isCallExpression(node)?isHelper(node.callee):!(!isBinary(node)&&!isAssignmentExpression(node))&&(isIdentifier(node.left)&&isHelper(node.left)||isHelper(node.right))}function isType(node){return isLiteral(node)||isObjectExpression(node)||isArrayExpression(node)||isIdentifier(node)||isMemberExpression(node)}const nodes={AssignmentExpression(node){const state=crawl(node.right);if(state.hasCall&&state.hasHelper||state.hasFunction)return{before:state.hasFunction,after:!0}},SwitchCase:(node,parent)=>({before:!!node.consequent.length||parent.cases[0]===node,after:!node.consequent.length&&parent.cases[parent.cases.length-1]===node}),LogicalExpression(node){if(isFunction(node.left)||isFunction(node.right))return{after:!0}},Literal(node){if(isStringLiteral(node)&&"use strict"===node.value)return{after:!0}},CallExpression(node){if(isFunction(node.callee)||isHelper(node))return{before:!0,after:!0}},OptionalCallExpression(node){if(isFunction(node.callee))return{before:!0,after:!0}},VariableDeclaration(node){for(let i=0;inode.declarations.map((decl=>decl.init)),ArrayExpression:node=>node.elements,ObjectExpression:node=>node.properties};exports.list=list,[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([type,amounts]){"boolean"==typeof amounts&&(amounts={after:amounts,before:amounts}),[type].concat(FLIPPED_ALIAS_KEYS[type]||[]).forEach((function(type){nodes[type]=function(){return amounts}}))}))},"./node_modules/@babel/generator/lib/printer.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _buffer=__webpack_require__("./node_modules/@babel/generator/lib/buffer.js"),n=__webpack_require__("./node_modules/@babel/generator/lib/node/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),generatorFunctions=__webpack_require__("./node_modules/@babel/generator/lib/generators/index.js");const{isProgram,isFile,isEmptyStatement}=_t,SCIENTIFIC_NOTATION=/e/i,ZERO_DECIMAL_INTEGER=/\.0+$/,NON_DECIMAL_LITERAL=/^0[box]/,PURE_ANNOTATION_RE=/^\s*[@#]__PURE__\s*$/,{needsParens,needsWhitespaceAfter,needsWhitespaceBefore}=n;class Printer{constructor(format,map){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new WeakSet,this._endsWithInteger=!1,this._endsWithWord=!1,this.format=format,this._buf=new _buffer.default(map)}generate(ast){return this.print(ast),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(force=!1){this._maybeAddAuxComment(),this._append(";",!force)}rightBrace(){this.format.minified&&this._buf.removeLastSemicolon(),this.token("}")}space(force=!1){if(!this.format.compact)if(force)this._space();else if(this._buf.hasContent()){const lastCp=this.getLastChar();32!==lastCp&&10!==lastCp&&this._space()}}word(str){(this._endsWithWord||this.endsWith(47)&&47===str.charCodeAt(0))&&this._space(),this._maybeAddAuxComment(),this._append(str),this._endsWithWord=!0}number(str){this.word(str),this._endsWithInteger=Number.isInteger(+str)&&!NON_DECIMAL_LITERAL.test(str)&&!SCIENTIFIC_NOTATION.test(str)&&!ZERO_DECIMAL_INTEGER.test(str)&&46!==str.charCodeAt(str.length-1)}token(str){const lastChar=this.getLastChar(),strFirst=str.charCodeAt(0);("--"===str&&33===lastChar||43===strFirst&&43===lastChar||45===strFirst&&45===lastChar||46===strFirst&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(str)}newline(i=1){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();const charBeforeNewline=this.endsWithCharAndNewline();if(10!==charBeforeNewline&&(123!==charBeforeNewline&&58!==charBeforeNewline||i--,!(i<=0)))for(let j=0;j{printMethod.call(this,node,parent)})),this._printTrailingComments(node),shouldPrintParens&&this.token(")"),this._printStack.pop(),this.format.concise=oldConcise,this._insideAux=oldInAux}_maybeAddAuxComment(enteredPositionlessNode){enteredPositionlessNode&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const comment=this.format.auxiliaryCommentBefore;comment&&this._printComment({type:"CommentBlock",value:comment})}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const comment=this.format.auxiliaryCommentAfter;comment&&this._printComment({type:"CommentBlock",value:comment})}getPossibleRaw(node){const extra=node.extra;if(extra&&null!=extra.raw&&null!=extra.rawValue&&node.value===extra.rawValue)return extra.raw}printJoin(nodes,parent,opts={}){if(null==nodes||!nodes.length)return;opts.indent&&this.indent();const newlineOpts={addNewlines:opts.addNewlines};for(let i=0;i0;indent&&this.indent(),this.print(node,parent),indent&&this.dedent()}printBlock(parent){const node=parent.body;isEmptyStatement(node)||this.space(),this.print(node,parent)}_printTrailingComments(node){this._printComments(this._getComments(!1,node))}_printLeadingComments(node){this._printComments(this._getComments(!0,node),!0)}printInnerComments(node,indent=!0){var _node$innerComments;null!=(_node$innerComments=node.innerComments)&&_node$innerComments.length&&(indent&&this.indent(),this._printComments(node.innerComments),indent&&this.dedent())}printSequence(nodes,parent,opts={}){return opts.statement=!0,this.printJoin(nodes,parent,opts)}printList(items,parent,opts={}){return null==opts.separator&&(opts.separator=commaSeparator),this.printJoin(items,parent,opts)}_printNewline(leading,node,parent,opts){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space();let lines=0;if(this._buf.hasContent()){leading||lines++,opts.addNewlines&&(lines+=opts.addNewlines(leading,node)||0);(leading?needsWhitespaceBefore:needsWhitespaceAfter)(node,parent)&&lines++}this.newline(Math.min(2,lines))}_getComments(leading,node){return node&&(leading?node.leadingComments:node.trailingComments)||[]}_printComment(comment,skipNewLines){if(!this.format.shouldPrintComment(comment.value))return;if(comment.ignore)return;if(this._printedComments.has(comment))return;this._printedComments.add(comment);const isBlockComment="CommentBlock"===comment.type,printNewLines=isBlockComment&&!skipNewLines&&!this._noLineTerminator;printNewLines&&this._buf.hasContent()&&this.newline(1);const lastCharCode=this.getLastChar();91!==lastCharCode&&123!==lastCharCode&&this.space();let val=isBlockComment||this._noLineTerminator?`/*${comment.value}*/`:`//${comment.value}\n`;if(isBlockComment&&this.format.indent.adjustMultilineComment){var _comment$loc;const offset=null==(_comment$loc=comment.loc)?void 0:_comment$loc.start.column;if(offset){const newlineRegex=new RegExp("\\n\\s{1,"+offset+"}","g");val=val.replace(newlineRegex,"\n")}const indentSize=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());val=val.replace(/\n(?!$)/g,`\n${" ".repeat(indentSize)}`)}this.endsWith(47)&&this._space(),this.withSource("start",comment.loc,(()=>{this._append(val)})),printNewLines&&this.newline(1)}_printComments(comments,inlinePureAnnotation){if(null!=comments&&comments.length)if(inlinePureAnnotation&&1===comments.length&&PURE_ANNOTATION_RE.test(comments[0].value))this._printComment(comments[0],this._buf.hasContent()&&!this.endsWith(10));else for(const comment of comments)this._printComment(comment)}printAssertions(node){var _node$assertions;null!=(_node$assertions=node.assertions)&&_node$assertions.length&&(this.space(),this.word("assert"),this.space(),this.token("{"),this.space(),this.printList(node.assertions,node),this.space(),this.token("}"))}}Object.assign(Printer.prototype,generatorFunctions),Printer.prototype.Noop=function(){};var _default=Printer;function commaSeparator(){this.token(","),this.space()}exports.default=_default},"./node_modules/@babel/generator/lib/source-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _sourceMap=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/source-map.js");exports.default=class{constructor(opts,code){this._cachedMap=void 0,this._code=void 0,this._opts=void 0,this._rawMappings=void 0,this._lastGenLine=void 0,this._lastSourceLine=void 0,this._lastSourceColumn=void 0,this._cachedMap=null,this._code=code,this._opts=opts,this._rawMappings=[]}get(){if(!this._cachedMap){const map=this._cachedMap=new _sourceMap.SourceMapGenerator({sourceRoot:this._opts.sourceRoot}),code=this._code;"string"==typeof code?map.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),code):"object"==typeof code&&Object.keys(code).forEach((sourceFileName=>{map.setSourceContent(sourceFileName.replace(/\\/g,"/"),code[sourceFileName])})),this._rawMappings.forEach((mapping=>map.addMapping(mapping)),map)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(generatedLine,generatedColumn,line,column,identifierName,filename,force){this._lastGenLine!==generatedLine&&null===line||(force||this._lastGenLine!==generatedLine||this._lastSourceLine!==line||this._lastSourceColumn!==column)&&(this._cachedMap=null,this._lastGenLine=generatedLine,this._lastSourceLine=line,this._lastSourceColumn=column,this._rawMappings.push({name:identifierName||void 0,generated:{line:generatedLine,column:generatedColumn},source:null==line?void 0:(filename||this._opts.sourceFileName).replace(/\\/g,"/"),original:null==line?void 0:{line,column}}))}}},"./node_modules/@babel/generator/node_modules/source-map/lib/array-set.js":(__unused_webpack_module,exports,__webpack_require__)=>{var util=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/util.js"),has=Object.prototype.hasOwnProperty,hasNativeMap="undefined"!=typeof Map;function ArraySet(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}ArraySet.fromArray=function(aArray,aAllowDuplicates){for(var set=new ArraySet,i=0,len=aArray.length;i=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.')},ArraySet.prototype.at=function(aIdx){if(aIdx>=0&&aIdx{var base64=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/base64.js");exports.encode=function(aValue){var digit,encoded="",vlq=function(aValue){return aValue<0?1+(-aValue<<1):0+(aValue<<1)}(aValue);do{digit=31&vlq,(vlq>>>=5)>0&&(digit|=32),encoded+=base64.encode(digit)}while(vlq>0);return encoded},exports.decode=function(aStr,aIndex,aOutParam){var continuation,digit,aValue,shifted,strLen=aStr.length,result=0,shift=0;do{if(aIndex>=strLen)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(digit=base64.decode(aStr.charCodeAt(aIndex++))))throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));continuation=!!(32&digit),result+=(digit&=31)<>1,1==(1&aValue)?-shifted:shifted),aOutParam.rest=aIndex}},"./node_modules/@babel/generator/node_modules/source-map/lib/base64.js":(__unused_webpack_module,exports)=>{var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number{function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow,cmp=aCompare(aNeedle,aHaystack[mid],!0);return 0===cmp?mid:cmp>0?aHigh-mid>1?recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?aHigh1?recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?mid:aLow<0?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0)return-1;for(;index-1>=0&&0===aCompare(aHaystack[index],aHaystack[index-1],!0);)--index;return index}},"./node_modules/@babel/generator/node_modules/source-map/lib/mapping-list.js":(__unused_webpack_module,exports,__webpack_require__)=>{var util=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/util.js");function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){var mappingA,mappingB,lineA,lineB,columnA,columnB;mappingA=this._last,mappingB=aMapping,lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn,lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0?(this._last=aMapping,this._array.push(aMapping)):(this._sorted=!1,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.H=MappingList},"./node_modules/@babel/generator/node_modules/source-map/lib/quick-sort.js":(__unused_webpack_module,exports)=>{function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function doQuickSort(ary,comparator,p,r){if(p{var util=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/util.js"),binarySearch=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/binary-search.js"),ArraySet=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/array-set.js").I,base64VLQ=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/base64-vlq.js"),quickSort=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/quick-sort.js").U;function SourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;return"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,""))),null!=sourceMap.sections?new IndexedSourceMapConsumer(sourceMap):new BasicSourceMapConsumer(sourceMap)}function BasicSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,"")));var version=util.getArg(sourceMap,"version"),sources=util.getArg(sourceMap,"sources"),names=util.getArg(sourceMap,"names",[]),sourceRoot=util.getArg(sourceMap,"sourceRoot",null),sourcesContent=util.getArg(sourceMap,"sourcesContent",null),mappings=util.getArg(sourceMap,"mappings"),file=util.getArg(sourceMap,"file",null);if(version!=this._version)throw new Error("Unsupported version: "+version);sources=sources.map(String).map(util.normalize).map((function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source})),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),this.sourceRoot=sourceRoot,this.sourcesContent=sourcesContent,this._mappings=mappings,this.file=file}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=JSON.parse(aSourceMap.replace(/^\)\]\}'/,"")));var version=util.getArg(sourceMap,"version"),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)throw new Error("Support for url field in sections not implemented.");var offset=util.getArg(s,"offset"),offsetLine=util.getArg(offset,"line"),offsetColumn=util.getArg(offset,"column");if(offsetLine=0){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;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 for(var originalColumn=mapping.originalColumn;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,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.fromSourceMap=function(aSourceMap){var smc=Object.create(BasicSourceMapConsumer.prototype),names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),!0),sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),!0);smc.sourceRoot=aSourceMap._sourceRoot,smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot),smc.file=aSourceMap._file;for(var generatedMappings=aSourceMap._mappings.toArray().slice(),destGeneratedMappings=smc.__generatedMappings=[],destOriginalMappings=smc.__originalMappings=[],i=0,length=generatedMappings.length;i1&&(mapping.source=previousSource+segment[1],previousSource+=segment[1],mapping.originalLine=previousOriginalLine+segment[2],previousOriginalLine=mapping.originalLine,mapping.originalLine+=1,mapping.originalColumn=previousOriginalColumn+segment[3],previousOriginalColumn=mapping.originalColumn,segment.length>4&&(mapping.name=previousName+segment[4],previousName+=segment[4])),generatedMappings.push(mapping),"number"==typeof mapping.originalLine&&originalMappings.push(mapping)}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated),this.__generatedMappings=generatedMappings,quickSort(originalMappings,util.compareByOriginalPositions),this.__originalMappings=originalMappings},BasicSourceMapConsumer.prototype._findMapping=function(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){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)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0;index=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);null!==source&&(source=this._sources.at(source),null!=this.sourceRoot&&(source=util.join(this.sourceRoot,source)));var name=util.getArg(mapping,"name",null);return null!==name&&(name=this._names.at(name)),{source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(sc){return null==sc})))},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(aSource=util.relative(this.sourceRoot,aSource)),this._sources.has(aSource))return this.sourcesContent[this._sources.indexOf(aSource)];var url;if(null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=aSource.replace(/^file:\/\//,"");if("file"==url.scheme&&this._sources.has(fileUriAbsPath))return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];if((!url.path||"/"==url.path)&&this._sources.has("/"+aSource))return this.sourcesContent[this._sources.indexOf("/"+aSource)]}if(nullOnMissing)return null;throw new Error('"'+aSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,"source");if(null!=this.sourceRoot&&(source=util.relative(this.sourceRoot,source)),!this._sources.has(source))return{line:null,column:null,lastColumn:null};var needle={source:source=this._sources.indexOf(source),originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")},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}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var sources=[],i=0;i{var base64VLQ=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/base64-vlq.js"),util=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/util.js"),ArraySet=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/array-set.js").I,MappingList=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/mapping-list.js").H;function SourceMapGenerator(aArgs){aArgs||(aArgs={}),this._file=util.getArg(aArgs,"file",null),this._sourceRoot=util.getArg(aArgs,"sourceRoot",null),this._skipValidation=util.getArg(aArgs,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot,generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot});return aSourceMapConsumer.eachMapping((function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};null!=mapping.source&&(newMapping.source=mapping.source,null!=sourceRoot&&(newMapping.source=util.relative(sourceRoot,newMapping.source)),newMapping.original={line:mapping.originalLine,column:mapping.originalColumn},null!=mapping.name&&(newMapping.name=mapping.name)),generator.addMapping(newMapping)})),aSourceMapConsumer.sources.forEach((function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&generator.setSourceContent(sourceFile,content)})),generator},SourceMapGenerator.prototype.addMapping=function(aArgs){var generated=util.getArg(aArgs,"generated"),original=util.getArg(aArgs,"original",null),source=util.getArg(aArgs,"source",null),name=util.getArg(aArgs,"name",null);this._skipValidation||this._validateMapping(generated,original,source,name),null!=source&&(source=String(source),this._sources.has(source)||this._sources.add(source)),null!=name&&(name=String(name),this._names.has(name)||this._names.add(name)),this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:null!=original&&original.line,originalColumn:null!=original&&original.column,source,name})},SourceMapGenerator.prototype.setSourceContent=function(aSourceFile,aSourceContent){var source=aSourceFile;null!=this._sourceRoot&&(source=util.relative(this._sourceRoot,source)),null!=aSourceContent?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util.toSetString(source)]=aSourceContent):this._sourcesContents&&(delete this._sourcesContents[util.toSetString(source)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(null==aSourceFile){if(null==aSourceMapConsumer.file)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;null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile));var newSources=new ArraySet,newNames=new ArraySet;this._mappings.unsortedForEach((function(mapping){if(mapping.source===sourceFile&&null!=mapping.originalLine){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});null!=original.source&&(mapping.source=original.source,null!=aSourceMapPath&&(mapping.source=util.join(aSourceMapPath,mapping.source)),null!=sourceRoot&&(mapping.source=util.relative(sourceRoot,mapping.source)),mapping.originalLine=original.line,mapping.originalColumn=original.column,null!=original.name&&(mapping.name=original.name))}var source=mapping.source;null==source||newSources.has(source)||newSources.add(source);var name=mapping.name;null==name||newNames.has(name)||newNames.add(name)}),this),this._sources=newSources,this._names=newNames,aSourceMapConsumer.sources.forEach((function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&(null!=aSourceMapPath&&(sourceFile=util.join(aSourceMapPath,sourceFile)),null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile)),this.setSourceContent(sourceFile,content))}),this)},SourceMapGenerator.prototype._validateMapping=function(aGenerated,aOriginal,aSource,aName){if(aOriginal&&"number"!=typeof aOriginal.line&&"number"!=typeof aOriginal.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0)||aOriginal||aSource||aName)&&!(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))throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))},SourceMapGenerator.prototype._serializeMappings=function(){for(var next,mapping,nameIdx,sourceIdx,previousGeneratedColumn=0,previousGeneratedLine=1,previousOriginalColumn=0,previousOriginalLine=0,previousName=0,previousSource=0,result="",mappings=this._mappings.toArray(),i=0,len=mappings.length;i0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1]))continue;next+=","}next+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn),previousGeneratedColumn=mapping.generatedColumn,null!=mapping.source&&(sourceIdx=this._sources.indexOf(mapping.source),next+=base64VLQ.encode(sourceIdx-previousSource),previousSource=sourceIdx,next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine),previousOriginalLine=mapping.originalLine-1,next+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn),previousOriginalColumn=mapping.originalColumn,null!=mapping.name&&(nameIdx=this._names.indexOf(mapping.name),next+=base64VLQ.encode(nameIdx-previousName),previousName=nameIdx)),result+=next}return result},SourceMapGenerator.prototype._generateSourcesContent=function(aSources,aSourceRoot){return aSources.map((function(source){if(!this._sourcesContents)return null;null!=aSourceRoot&&(source=util.relative(aSourceRoot,source));var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null}),this)},SourceMapGenerator.prototype.toJSON=function(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(map.file=this._file),null!=this._sourceRoot&&(map.sourceRoot=this._sourceRoot),this._sourcesContents&&(map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)),map},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},exports.SourceMapGenerator=SourceMapGenerator},"./node_modules/@babel/generator/node_modules/source-map/lib/source-node.js":(__unused_webpack_module,exports,__webpack_require__)=>{var SourceMapGenerator=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,util=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/util.js"),REGEX_NEWLINE=/(\r?\n)/,isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[],this.sourceContents={},this.line=null==aLine?null:aLine,this.column=null==aColumn?null:aColumn,this.source=null==aSource?null:aSource,this.name=null==aName?null:aName,this[isSourceNode]=!0,null!=aChunks&&this.add(aChunks)}SourceNode.fromStringWithSourceMap=function(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode,remainingLines=aGeneratedCode.split(REGEX_NEWLINE),remainingLinesIndex=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return remainingLinesIndex=0;i--)this.prepend(aChunk[i]);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);this.children.unshift(aChunk)}return this},SourceNode.prototype.walk=function(aFn){for(var chunk,i=0,len=this.children.length;i0){for(newChildren=[],i=0;i{exports.getArg=function(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);return match?{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}:null}function urlGenerate(aParsedUrl){var url="";return aParsedUrl.scheme&&(url+=aParsedUrl.scheme+":"),url+="//",aParsedUrl.auth&&(url+=aParsedUrl.auth+"@"),aParsedUrl.host&&(url+=aParsedUrl.host),aParsedUrl.port&&(url+=":"+aParsedUrl.port),aParsedUrl.path&&(url+=aParsedUrl.path),url}function normalize(aPath){var path=aPath,url=urlParse(aPath);if(url){if(!url.path)return aPath;path=url.path}for(var part,isAbsolute=exports.isAbsolute(path),parts=path.split(/\/+/),up=0,i=parts.length-1;i>=0;i--)"."===(part=parts[i])?parts.splice(i,1):".."===part?up++:up>0&&(""===part?(parts.splice(i+1,up),up=0):(parts.splice(i,2),up--));return""===(path=parts.join("/"))&&(path=isAbsolute?"/":"."),url?(url.path=path,urlGenerate(url)):path}exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=function(aRoot,aPath){""===aRoot&&(aRoot="."),""===aPath&&(aPath=".");var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||"/"),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined="/"===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined},exports.isAbsolute=function(aPath){return"/"===aPath.charAt(0)||!!aPath.match(urlRegexp)},exports.relative=function(aRoot,aPath){""===aRoot&&(aRoot="."),aRoot=aRoot.replace(/\/$/,"");for(var level=0;0!==aPath.indexOf(aRoot+"/");){var index=aRoot.lastIndexOf("/");if(index<0)return aPath;if((aRoot=aRoot.slice(0,index)).match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)};var supportsNullProto=!("__proto__"in Object.create(null));function identity(s){return s}function isProtoString(s){if(!s)return!1;var length=s.length;if(length<9)return!1;if(95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;i>=0;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:aStr1>aStr2?1:-1}exports.toSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?"$"+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function(mappingA,mappingB,onlyCompareOriginal){var cmp=mappingA.source-mappingB.source;return 0!==cmp||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)||onlyCompareOriginal||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=mappingA.generatedLine-mappingB.generatedLine)?cmp:mappingA.name-mappingB.name},exports.compareByGeneratedPositionsDeflated=function(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||onlyCompareGenerated||0!==(cmp=mappingA.source-mappingB.source)||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:mappingA.name-mappingB.name},exports.compareByGeneratedPositionsInflated=function(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)}},"./node_modules/@babel/generator/node_modules/source-map/source-map.js":(__unused_webpack_module,exports,__webpack_require__)=>{exports.SourceMapGenerator=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,exports.SourceMapConsumer=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,exports.SourceNode=__webpack_require__("./node_modules/@babel/generator/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/@babel/helper-annotate-as-pure/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(pathOrNode){const node=pathOrNode.node||pathOrNode;if((({leadingComments})=>!!leadingComments&&leadingComments.some((comment=>/[@#]__PURE__/.test(comment.value))))(node))return;addComment(node,"leading","#__PURE__")};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{addComment}=_t},"./node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildDecoratedClass=function(ref,path,elements,file){const{node,scope}=path,initializeId=scope.generateUidIdentifier("initialize"),isDeclaration=node.id&&path.isDeclaration(),isStrict=path.isInStrictMode(),{superClass}=node;node.type="ClassDeclaration",node.id||(node.id=_core.types.cloneNode(ref));let superId;superClass&&(superId=scope.generateUidIdentifierBasedOnNode(node.superClass,"super"),node.superClass=superId);const classDecorators=takeDecorators(node),definitions=_core.types.arrayExpression(elements.filter((element=>!element.node.abstract)).map(extractElementDescriptor.bind(file,node.id,superId))),wrapperCall=_core.template.expression.ast` ${function(file){try{return file.addHelper("decorate")}catch(err){throw"BABEL_HELPER_UNKNOWN"===err.code&&(err.message+="\n '@babel/plugin-transform-decorators' in non-legacy mode requires '@babel/core' version ^7.0.2 and you appear to be using an older version."),err}}(file)}( ${classDecorators||_core.types.nullLiteral()}, function (${initializeId}, ${superClass?_core.types.cloneNode(superId):null}) { ${node} return { F: ${_core.types.cloneNode(node.id)}, d: ${definitions} }; }, ${superClass} ) `;isStrict||wrapperCall.arguments[1].body.directives.push(_core.types.directive(_core.types.directiveLiteral("use strict")));let replacement=wrapperCall,classPathDesc="arguments.1.body.body.0";isDeclaration&&(replacement=_core.template.statement.ast`let ${ref} = ${wrapperCall}`,classPathDesc="declarations.0.init."+classPathDesc);return{instanceNodes:[_core.template.statement.ast`${_core.types.cloneNode(initializeId)}(this)`],wrapClass:path=>(path.replaceWith(replacement),path.get(classPathDesc))}},exports.hasDecorators=function(node){return hasOwnDecorators(node)||node.body.body.some(hasOwnDecorators)},exports.hasOwnDecorators=hasOwnDecorators;var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_helperReplaceSupers=__webpack_require__("./node_modules/@babel/helper-replace-supers/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/@babel/helper-function-name/lib/index.js");function hasOwnDecorators(node){return!(!node.decorators||!node.decorators.length)}function prop(key,value){return value?_core.types.objectProperty(_core.types.identifier(key),value):null}function takeDecorators(node){let result;return node.decorators&&node.decorators.length>0&&(result=_core.types.arrayExpression(node.decorators.map((decorator=>decorator.expression)))),node.decorators=void 0,result}function getKey(node){return node.computed?node.key:_core.types.isIdentifier(node.key)?_core.types.stringLiteral(node.key.name):_core.types.stringLiteral(String(node.key.value))}function extractElementDescriptor(classRef,superRef,path){const{node,scope}=path,isMethod=path.isClassMethod();if(path.isPrivate())throw path.buildCodeFrameError(`Private ${isMethod?"methods":"fields"} in decorated classes are not supported yet.`);new _helperReplaceSupers.default({methodPath:path,objectRef:classRef,superRef,file:this,refToPreserve:classRef}).replace();const properties=[prop("kind",_core.types.stringLiteral(_core.types.isClassMethod(node)?node.kind:"field")),prop("decorators",takeDecorators(node)),prop("static",node.static&&_core.types.booleanLiteral(!0)),prop("key",getKey(node))].filter(Boolean);if(_core.types.isClassMethod(node)){const id=node.computed?null:node.key;_core.types.toExpression(node),properties.push(prop("value",(0,_helperFunctionName.default)({node,id,scope})||node))}else _core.types.isClassProperty(node)&&node.value?properties.push((key="value",body=_core.template.statements.ast`return ${node.value}`,_core.types.objectMethod("method",_core.types.identifier(key),[],_core.types.blockStatement(body)))):properties.push(prop("value",scope.buildUndefinedNode()));var key,body;return path.remove(),_core.types.objectExpression(properties)}},"./node_modules/@babel/helper-create-class-features-plugin/lib/features.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FEATURES=void 0,exports.enableFeature=function(file,feature,loose){hasFeature(file,feature)&&!canIgnoreLoose(file,feature)||(file.set(featuresKey,file.get(featuresKey)|feature),"#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"===loose?(setLoose(file,feature,!0),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)|feature)):"#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"===loose?(setLoose(file,feature,!1),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)|feature)):setLoose(file,feature,loose));let resolvedLoose,higherPriorityPluginName;for(const[mask,name]of featuresSameLoose){if(!hasFeature(file,mask))continue;const loose=isLoose(file,mask);if(!canIgnoreLoose(file,mask)){if(resolvedLoose===!loose)throw new Error("'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).");resolvedLoose=loose,higherPriorityPluginName=name}}if(void 0!==resolvedLoose)for(const[mask,name]of featuresSameLoose)hasFeature(file,mask)&&isLoose(file,mask)!==resolvedLoose&&(setLoose(file,mask,resolvedLoose),console.warn(`Though the "loose" option was set to "${!resolvedLoose}" in your @babel/preset-env config, it will not be used for ${name} since the "loose" mode option was set to "${resolvedLoose}" for ${higherPriorityPluginName}.\nThe "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding\n\t["${name}", { "loose": ${resolvedLoose} }]\nto the "plugins" section of your Babel config.`))},exports.isLoose=isLoose,exports.shouldTransform=function(path,file){let decoratorPath=null,publicFieldPath=null,privateFieldPath=null,privateMethodPath=null,staticBlockPath=null;(0,_decorators.hasOwnDecorators)(path.node)&&(decoratorPath=path.get("decorators.0"));for(const el of path.get("body.body"))!decoratorPath&&(0,_decorators.hasOwnDecorators)(el.node)&&(decoratorPath=el.get("decorators.0")),!publicFieldPath&&el.isClassProperty()&&(publicFieldPath=el),!privateFieldPath&&el.isClassPrivateProperty()&&(privateFieldPath=el),!privateMethodPath&&null!=el.isClassPrivateMethod&&el.isClassPrivateMethod()&&(privateMethodPath=el),!staticBlockPath&&null!=el.isStaticBlock&&el.isStaticBlock()&&(staticBlockPath=el);if(decoratorPath&&privateFieldPath)throw privateFieldPath.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(decoratorPath&&privateMethodPath)throw privateMethodPath.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(decoratorPath&&!hasFeature(file,FEATURES.decorators))throw path.buildCodeFrameError('Decorators are not enabled.\nIf you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:\n\t["@babel/plugin-proposal-decorators", { "legacy": true }]\n\t["@babel/plugin-proposal-class-properties", { "loose": true }]');if(privateMethodPath&&!hasFeature(file,FEATURES.privateMethods))throw privateMethodPath.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-proposal-private-method` to your configuration.");if((publicFieldPath||privateFieldPath)&&!hasFeature(file,FEATURES.fields)&&!hasFeature(file,FEATURES.privateMethods))throw path.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-proposal-class-properties` to your configuration.");if(staticBlockPath&&!hasFeature(file,FEATURES.staticBlocks))throw path.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-proposal-class-static-block` to your configuration.");if(decoratorPath||privateMethodPath||staticBlockPath)return!0;if((publicFieldPath||privateFieldPath)&&hasFeature(file,FEATURES.fields))return!0;return!1};var _decorators=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js");const FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32});exports.FEATURES=FEATURES;const featuresSameLoose=new Map([[FEATURES.fields,"@babel/plugin-proposal-class-properties"],[FEATURES.privateMethods,"@babel/plugin-proposal-private-methods"],[FEATURES.privateIn,"@babel/plugin-proposal-private-property-in-object"]]),featuresKey="@babel/plugin-class-features/featuresKey",looseKey="@babel/plugin-class-features/looseKey",looseLowPriorityKey="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";function hasFeature(file,feature){return!!(file.get(featuresKey)&feature)}function isLoose(file,feature){return!!(file.get(looseKey)&feature)}function setLoose(file,feature,loose){loose?file.set(looseKey,file.get(looseKey)|feature):file.set(looseKey,file.get(looseKey)&~feature),file.set(looseLowPriorityKey,file.get(looseLowPriorityKey)&~feature)}function canIgnoreLoose(file,feature){return!!(file.get(looseLowPriorityKey)&feature)}},"./node_modules/@babel/helper-create-class-features-plugin/lib/fields.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildFieldsInitNodes=function(ref,superRef,props,privateNamesMap,state,setPublicClassFields,privateFieldsAsProperties,constantSuper,innerBindingRef){let injectSuperRef,needsClassRef=!1;const staticNodes=[],instanceNodes=[],pureStaticNodes=[],getSuperRef=_core.types.isIdentifier(superRef)?()=>superRef:()=>(null!=injectSuperRef||(injectSuperRef=props[0].scope.generateUidIdentifierBasedOnNode(superRef)),injectSuperRef);for(const prop of props){prop.isClassProperty()&&ts.assertFieldTransformed(prop);const isStatic=prop.node.static,isInstance=!isStatic,isPrivate=prop.isPrivate(),isPublic=!isPrivate,isField=prop.isProperty(),isMethod=!isField,isStaticBlock=null==prop.isStaticBlock?void 0:prop.isStaticBlock();if(isStatic||isMethod&&isPrivate||isStaticBlock){const replaced=replaceThisContext(prop,ref,getSuperRef,state,isStaticBlock,constantSuper,innerBindingRef);needsClassRef=needsClassRef||replaced}switch(!0){case isStaticBlock:staticNodes.push(_core.template.statement.ast`(() => ${_core.types.blockStatement(prop.node.body)})()`);break;case isStatic&&isPrivate&&isField&&privateFieldsAsProperties:needsClassRef=!0,staticNodes.push(buildPrivateFieldInitLoose(_core.types.cloneNode(ref),prop,privateNamesMap));break;case isStatic&&isPrivate&&isField&&!privateFieldsAsProperties:needsClassRef=!0,staticNodes.push(buildPrivateStaticFieldInitSpec(prop,privateNamesMap));break;case isStatic&&isPublic&&isField&&setPublicClassFields:needsClassRef=!0,staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref),prop));break;case isStatic&&isPublic&&isField&&!setPublicClassFields:needsClassRef=!0,staticNodes.push(buildPublicFieldInitSpec(_core.types.cloneNode(ref),prop,state));break;case isInstance&&isPrivate&&isField&&privateFieldsAsProperties:instanceNodes.push(buildPrivateFieldInitLoose(_core.types.thisExpression(),prop,privateNamesMap));break;case isInstance&&isPrivate&&isField&&!privateFieldsAsProperties:instanceNodes.push(buildPrivateInstanceFieldInitSpec(_core.types.thisExpression(),prop,privateNamesMap,state));break;case isInstance&&isPrivate&&isMethod&&privateFieldsAsProperties:instanceNodes.unshift(buildPrivateMethodInitLoose(_core.types.thisExpression(),prop,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isInstance&&isPrivate&&isMethod&&!privateFieldsAsProperties:instanceNodes.unshift(buildPrivateInstanceMethodInitSpec(_core.types.thisExpression(),prop,privateNamesMap,state)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isStatic&&isPrivate&&isMethod&&!privateFieldsAsProperties:needsClassRef=!0,staticNodes.unshift(buildPrivateStaticFieldInitSpec(prop,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isStatic&&isPrivate&&isMethod&&privateFieldsAsProperties:needsClassRef=!0,staticNodes.unshift(buildPrivateStaticMethodInitLoose(_core.types.cloneNode(ref),prop,state,privateNamesMap)),pureStaticNodes.push(buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties));break;case isInstance&&isPublic&&isField&&setPublicClassFields:instanceNodes.push(buildPublicFieldInitLoose(_core.types.thisExpression(),prop));break;case isInstance&&isPublic&&isField&&!setPublicClassFields:instanceNodes.push(buildPublicFieldInitSpec(_core.types.thisExpression(),prop,state));break;default:throw new Error("Unreachable.")}}return{staticNodes:staticNodes.filter(Boolean),instanceNodes:instanceNodes.filter(Boolean),pureStaticNodes:pureStaticNodes.filter(Boolean),wrapClass(path){for(const prop of props)prop.remove();return injectSuperRef&&(path.scope.push({id:_core.types.cloneNode(injectSuperRef)}),path.set("superClass",_core.types.assignmentExpression("=",injectSuperRef,path.node.superClass))),needsClassRef?(path.isClassExpression()?(path.scope.push({id:ref}),path.replaceWith(_core.types.assignmentExpression("=",_core.types.cloneNode(ref),path.node))):path.node.id||(path.node.id=ref),path):path}}},exports.buildPrivateNamesMap=function(props){const privateNamesMap=new Map;for(const prop of props)if(prop.isPrivate()){const{name}=prop.node.key.id,update=privateNamesMap.has(name)?privateNamesMap.get(name):{id:prop.scope.generateUidIdentifier(name),static:prop.node.static,method:!prop.isProperty()};prop.isClassPrivateMethod()&&("get"===prop.node.kind?update.getId=prop.scope.generateUidIdentifier(`get_${name}`):"set"===prop.node.kind?update.setId=prop.scope.generateUidIdentifier(`set_${name}`):"method"===prop.node.kind&&(update.methodId=prop.scope.generateUidIdentifier(name))),privateNamesMap.set(name,update)}return privateNamesMap},exports.buildPrivateNamesNodes=function(privateNamesMap,privateFieldsAsProperties,state){const initNodes=[];for(const[name,value]of privateNamesMap){const{static:isStatic,method:isMethod,getId,setId}=value,isAccessor=getId||setId,id=_core.types.cloneNode(value.id);let init;privateFieldsAsProperties?init=_core.types.callExpression(state.addHelper("classPrivateFieldLooseKey"),[_core.types.stringLiteral(name)]):isStatic||(init=_core.types.newExpression(_core.types.identifier(!isMethod||isAccessor?"WeakMap":"WeakSet"),[])),init&&((0,_helperAnnotateAsPure.default)(init),initNodes.push(_core.template.statement.ast`var ${id} = ${init}`))}return initNodes},exports.transformPrivateNamesUsage=function(ref,path,privateNamesMap,{privateFieldsAsProperties,noDocumentAll,innerBinding},state){if(!privateNamesMap.size)return;const body=path.get("body"),handler=privateFieldsAsProperties?privateNameHandlerLoose:privateNameHandlerSpec;(0,_helperMemberExpressionToFunctions.default)(body,privateNameVisitor,Object.assign({privateNamesMap,classRef:ref,file:state},handler,{noDocumentAll,innerBinding})),body.traverse(privateInVisitor,{privateNamesMap,classRef:ref,file:state,privateFieldsAsProperties,innerBinding})};var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_helperReplaceSupers=__webpack_require__("./node_modules/@babel/helper-replace-supers/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/@babel/helper-environment-visitor/lib/index.js"),_helperMemberExpressionToFunctions=__webpack_require__("./node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),_helperOptimiseCallExpression=__webpack_require__("./node_modules/@babel/helper-optimise-call-expression/lib/index.js"),_helperAnnotateAsPure=__webpack_require__("./node_modules/@babel/helper-annotate-as-pure/lib/index.js"),ts=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");function privateNameVisitorFactory(visitor){const privateNameVisitor=Object.assign({},visitor,{Class(path){const{privateNamesMap}=this,body=path.get("body.body"),visiblePrivateNames=new Map(privateNamesMap),redeclared=[];for(const prop of body){if(!prop.isPrivate())continue;const{name}=prop.node.key.id;visiblePrivateNames.delete(name),redeclared.push(name)}redeclared.length&&(path.get("body").traverse(nestedVisitor,Object.assign({},this,{redeclared})),path.traverse(privateNameVisitor,Object.assign({},this,{privateNamesMap:visiblePrivateNames})),path.skipKey("body"))}}),nestedVisitor=_core.traverse.visitors.merge([Object.assign({},visitor),_helperEnvironmentVisitor.default]);return privateNameVisitor}const privateNameVisitor=privateNameVisitorFactory({PrivateName(path,{noDocumentAll}){const{privateNamesMap,redeclared}=this,{node,parentPath}=path;if(!parentPath.isMemberExpression({property:node})&&!parentPath.isOptionalMemberExpression({property:node}))return;const{name}=node.id;privateNamesMap.has(name)&&(redeclared&&redeclared.includes(name)||this.handle(parentPath,noDocumentAll))}});function unshadow(name,scope,innerBinding){for(;null!=(_scope=scope)&&_scope.hasBinding(name)&&!scope.bindingIdentifierEquals(name,innerBinding);){var _scope;scope.rename(name),scope=scope.parent}}const privateInVisitor=privateNameVisitorFactory({BinaryExpression(path){const{operator,left,right}=path.node;if("in"!==operator)return;if(!_core.types.isPrivateName(left))return;const{privateFieldsAsProperties,privateNamesMap,redeclared}=this,{name}=left.id;if(!privateNamesMap.has(name))return;if(redeclared&&redeclared.includes(name))return;if(unshadow(this.classRef.name,path.scope,this.innerBinding),privateFieldsAsProperties){const{id}=privateNamesMap.get(name);return void path.replaceWith(_core.template.expression.ast` Object.prototype.hasOwnProperty.call(${right}, ${_core.types.cloneNode(id)}) `)}const{id,static:isStatic}=privateNamesMap.get(name);isStatic?path.replaceWith(_core.template.expression.ast`${right} === ${this.classRef}`):path.replaceWith(_core.template.expression.ast`${_core.types.cloneNode(id)}.has(${right})`)}}),privateNameHandlerSpec={memoise(member,count){const{scope}=member,{object}=member.node,memo=scope.maybeGenerateMemoised(object);memo&&this.memoiser.set(object,memo,count)},receiver(member){const{object}=member.node;return this.memoiser.has(object)?_core.types.cloneNode(this.memoiser.get(object)):_core.types.cloneNode(object)},get(member){const{classRef,privateNamesMap,file,innerBinding}=this,{name}=member.node.property.id,{id,static:isStatic,method:isMethod,methodId,getId,setId}=privateNamesMap.get(name),isAccessor=getId||setId;if(isStatic){const helperName=isMethod&&!isAccessor?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return unshadow(classRef.name,member.scope,innerBinding),_core.types.callExpression(file.addHelper(helperName),[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id)])}if(isMethod){if(isAccessor){if(!getId&&setId){if(file.availableHelper("writeOnlyError"))return _core.types.sequenceExpression([this.receiver(member),_core.types.callExpression(file.addHelper("writeOnlyError"),[_core.types.stringLiteral(`#${name}`)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return _core.types.callExpression(file.addHelper("classPrivateFieldGet"),[this.receiver(member),_core.types.cloneNode(id)])}return _core.types.callExpression(file.addHelper("classPrivateMethodGet"),[this.receiver(member),_core.types.cloneNode(id),_core.types.cloneNode(methodId)])}return _core.types.callExpression(file.addHelper("classPrivateFieldGet"),[this.receiver(member),_core.types.cloneNode(id)])},boundGet(member){return this.memoise(member,1),_core.types.callExpression(_core.types.memberExpression(this.get(member),_core.types.identifier("bind")),[this.receiver(member)])},set(member,value){const{classRef,privateNamesMap,file}=this,{name}=member.node.property.id,{id,static:isStatic,method:isMethod,setId,getId}=privateNamesMap.get(name);if(isStatic){const helperName=isMethod&&!(getId||setId)?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return _core.types.callExpression(file.addHelper(helperName),[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id),value])}return isMethod?setId?_core.types.callExpression(file.addHelper("classPrivateFieldSet"),[this.receiver(member),_core.types.cloneNode(id),value]):_core.types.sequenceExpression([this.receiver(member),value,_core.types.callExpression(file.addHelper("readOnlyError"),[_core.types.stringLiteral(`#${name}`)])]):_core.types.callExpression(file.addHelper("classPrivateFieldSet"),[this.receiver(member),_core.types.cloneNode(id),value])},destructureSet(member){const{classRef,privateNamesMap,file}=this,{name}=member.node.property.id,{id,static:isStatic}=privateNamesMap.get(name);if(isStatic){try{var helper=file.addHelper("classStaticPrivateFieldDestructureSet")}catch(_unused){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return _core.types.memberExpression(_core.types.callExpression(helper,[this.receiver(member),_core.types.cloneNode(classRef),_core.types.cloneNode(id)]),_core.types.identifier("value"))}return _core.types.memberExpression(_core.types.callExpression(file.addHelper("classPrivateFieldDestructureSet"),[this.receiver(member),_core.types.cloneNode(id)]),_core.types.identifier("value"))},call(member,args){return this.memoise(member,1),(0,_helperOptimiseCallExpression.default)(this.get(member),this.receiver(member),args,!1)},optionalCall(member,args){return this.memoise(member,1),(0,_helperOptimiseCallExpression.default)(this.get(member),this.receiver(member),args,!0)}},privateNameHandlerLoose={get(member){const{privateNamesMap,file}=this,{object}=member.node,{name}=member.node.property.id;return _core.template.expression`BASE(REF, PROP)[PROP]`({BASE:file.addHelper("classPrivateFieldLooseBase"),REF:_core.types.cloneNode(object),PROP:_core.types.cloneNode(privateNamesMap.get(name).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(member){return _core.types.callExpression(_core.types.memberExpression(this.get(member),_core.types.identifier("bind")),[_core.types.cloneNode(member.node.object)])},simpleSet(member){return this.get(member)},destructureSet(member){return this.get(member)},call(member,args){return _core.types.callExpression(this.get(member),args)},optionalCall(member,args){return _core.types.optionalCallExpression(this.get(member),args,!0)}};function buildPrivateFieldInitLoose(ref,prop,privateNamesMap){const{id}=privateNamesMap.get(prop.node.key.id.name),value=prop.node.value||prop.scope.buildUndefinedNode();return _core.template.statement.ast` Object.defineProperty(${ref}, ${_core.types.cloneNode(id)}, { // configurable is false by default // enumerable is false by default writable: true, value: ${value} }); `}function buildPrivateInstanceFieldInitSpec(ref,prop,privateNamesMap,state){const{id}=privateNamesMap.get(prop.node.key.id.name),value=prop.node.value||prop.scope.buildUndefinedNode();if(!state.availableHelper("classPrivateFieldInitSpec"))return _core.template.statement.ast`${_core.types.cloneNode(id)}.set(${ref}, { // configurable is always false for private elements // enumerable is always false for private elements writable: true, value: ${value}, })`;const helper=state.addHelper("classPrivateFieldInitSpec");return _core.template.statement.ast`${helper}( ${_core.types.thisExpression()}, ${_core.types.cloneNode(id)}, { writable: true, value: ${value} }, )`}function buildPrivateStaticFieldInitSpec(prop,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,getId,setId,initAdded}=privateName,isAccessor=getId||setId;if(!prop.isProperty()&&(initAdded||!isAccessor))return;if(isAccessor)return privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast` var ${_core.types.cloneNode(id)} = { // configurable is false by default // enumerable is false by default // writable is false by default get: ${getId?getId.name:prop.scope.buildUndefinedNode()}, set: ${setId?setId.name:prop.scope.buildUndefinedNode()} } `;const value=prop.node.value||prop.scope.buildUndefinedNode();return _core.template.statement.ast` var ${_core.types.cloneNode(id)} = { // configurable is false by default // enumerable is false by default writable: true, value: ${value} }; `}function buildPrivateMethodInitLoose(ref,prop,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{methodId,id,getId,setId,initAdded}=privateName;if(initAdded)return;if(methodId)return _core.template.statement.ast` Object.defineProperty(${ref}, ${id}, { // configurable is false by default // enumerable is false by default // writable is false by default value: ${methodId.name} }); `;return getId||setId?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast` Object.defineProperty(${ref}, ${id}, { // configurable is false by default // enumerable is false by default // writable is false by default get: ${getId?getId.name:prop.scope.buildUndefinedNode()}, set: ${setId?setId.name:prop.scope.buildUndefinedNode()} }); `):void 0}function buildPrivateInstanceMethodInitSpec(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{getId,setId,initAdded}=privateName;if(initAdded)return;return getId||setId?function(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,getId,setId}=privateName;if(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),!state.availableHelper("classPrivateFieldInitSpec"))return _core.template.statement.ast` ${id}.set(${ref}, { get: ${getId?getId.name:prop.scope.buildUndefinedNode()}, set: ${setId?setId.name:prop.scope.buildUndefinedNode()} }); `;const helper=state.addHelper("classPrivateFieldInitSpec");return _core.template.statement.ast`${helper}( ${_core.types.thisExpression()}, ${_core.types.cloneNode(id)}, { get: ${getId?getId.name:prop.scope.buildUndefinedNode()}, set: ${setId?setId.name:prop.scope.buildUndefinedNode()} }, )`}(ref,prop,privateNamesMap,state):function(ref,prop,privateNamesMap,state){const privateName=privateNamesMap.get(prop.node.key.id.name),{id}=privateName;if(!state.availableHelper("classPrivateMethodInitSpec"))return _core.template.statement.ast`${id}.add(${ref})`;const helper=state.addHelper("classPrivateMethodInitSpec");return _core.template.statement.ast`${helper}( ${_core.types.thisExpression()}, ${_core.types.cloneNode(id)} )`}(ref,prop,privateNamesMap,state)}function buildPublicFieldInitLoose(ref,prop){const{key,computed}=prop.node,value=prop.node.value||prop.scope.buildUndefinedNode();return _core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.memberExpression(ref,key,computed||_core.types.isLiteral(key)),value))}function buildPublicFieldInitSpec(ref,prop,state){const{key,computed}=prop.node,value=prop.node.value||prop.scope.buildUndefinedNode();return _core.types.expressionStatement(_core.types.callExpression(state.addHelper("defineProperty"),[ref,computed||_core.types.isLiteral(key)?key:_core.types.stringLiteral(key.name),value]))}function buildPrivateStaticMethodInitLoose(ref,prop,state,privateNamesMap){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,methodId,getId,setId,initAdded}=privateName;if(initAdded)return;return getId||setId?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{initAdded:!0})),_core.template.statement.ast` Object.defineProperty(${ref}, ${id}, { // configurable is false by default // enumerable is false by default // writable is false by default get: ${getId?getId.name:prop.scope.buildUndefinedNode()}, set: ${setId?setId.name:prop.scope.buildUndefinedNode()} }) `):_core.template.statement.ast` Object.defineProperty(${ref}, ${id}, { // configurable is false by default // enumerable is false by default // writable is false by default value: ${methodId.name} }); `}function buildPrivateMethodDeclaration(prop,privateNamesMap,privateFieldsAsProperties=!1){const privateName=privateNamesMap.get(prop.node.key.id.name),{id,methodId,getId,setId,getterDeclared,setterDeclared,static:isStatic}=privateName,{params,body,generator,async}=prop.node,isGetter=getId&&!getterDeclared&&0===params.length,isSetter=setId&&!setterDeclared&¶ms.length>0;let declId=methodId;return isGetter?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{getterDeclared:!0})),declId=getId):isSetter?(privateNamesMap.set(prop.node.key.id.name,Object.assign({},privateName,{setterDeclared:!0})),declId=setId):isStatic&&!privateFieldsAsProperties&&(declId=id),_core.types.functionDeclaration(_core.types.cloneNode(declId),params,body,generator,async)}const thisContextVisitor=_core.traverse.visitors.merge([{ThisExpression(path,state){state.needsClassRef=!0,path.replaceWith(_core.types.cloneNode(state.classRef))},MetaProperty(path){const meta=path.get("meta"),property=path.get("property"),{scope}=path;meta.isIdentifier({name:"new"})&&property.isIdentifier({name:"target"})&&path.replaceWith(scope.buildUndefinedNode())}},_helperEnvironmentVisitor.default]),innerReferencesVisitor={ReferencedIdentifier(path,state){path.scope.bindingIdentifierEquals(path.node.name,state.innerBinding)&&(state.needsClassRef=!0,path.node.name=state.classRef.name)}};function replaceThisContext(path,ref,getSuperRef,file,isStaticBlock,constantSuper,innerBindingRef){var _state$classRef;const state={classRef:ref,needsClassRef:!1,innerBinding:innerBindingRef};return new _helperReplaceSupers.default({methodPath:path,constantSuper,file,refToPreserve:ref,getSuperRef,getObjectRef:()=>(state.needsClassRef=!0,isStaticBlock||path.node.static?ref:_core.types.memberExpression(ref,_core.types.identifier("prototype")))}).replace(),(isStaticBlock||path.isProperty())&&path.traverse(thisContextVisitor,state),null!=(_state$classRef=state.classRef)&&_state$classRef.name&&state.classRef.name!==(null==innerBindingRef?void 0:innerBindingRef.name)&&path.traverse(innerReferencesVisitor,state),state.needsClassRef}},"./node_modules/@babel/helper-create-class-features-plugin/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"FEATURES",{enumerable:!0,get:function(){return _features.FEATURES}}),exports.createClassFeaturePlugin=function({name,feature,loose,manipulateOptions,api={assumption:()=>{}}}){const setPublicClassFields=api.assumption("setPublicClassFields"),privateFieldsAsProperties=api.assumption("privateFieldsAsProperties"),constantSuper=api.assumption("constantSuper"),noDocumentAll=api.assumption("noDocumentAll");if(!0===loose){const explicit=[];void 0!==setPublicClassFields&&explicit.push('"setPublicClassFields"'),void 0!==privateFieldsAsProperties&&explicit.push('"privateFieldsAsProperties"'),0!==explicit.length&&console.warn(`[${name}]: You are using the "loose: true" option and you are explicitly setting a value for the ${explicit.join(" and ")} assumption${explicit.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsProperties": true\n\t}`)}return{name,manipulateOptions,pre(){(0,_features.enableFeature)(this.file,feature,loose),(!this.file.get(versionKey)||this.file.get(versionKey)0&&(0,_misc.injectInitialization)(path,constructor,instanceNodes,((referenceVisitor,state)=>{if(!isDecorated)for(const prop of props)prop.node.static||prop.traverse(referenceVisitor,state)}));const wrappedPath=wrapClass(path);wrappedPath.insertBefore([...privateNamesNodes,...keysNodes]),staticNodes.length>0&&wrappedPath.insertAfter(staticNodes),pureStaticNodes.length>0&&wrappedPath.find((parent=>parent.isStatement()||parent.isDeclaration())).insertAfter(pureStaticNodes)},ExportDefaultDeclaration(path){if(this.file.get(versionKey)!==version)return;const decl=path.get("declaration");decl.isClassDeclaration()&&(0,_decorators.hasDecorators)(decl.node)&&(decl.node.id?(0,_helperSplitExportDeclaration.default)(path):decl.node.type="ClassExpression")}}}},Object.defineProperty(exports,"enableFeature",{enumerable:!0,get:function(){return _features.enableFeature}}),Object.defineProperty(exports,"injectInitialization",{enumerable:!0,get:function(){return _misc.injectInitialization}});var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/@babel/helper-function-name/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/@babel/helper-split-export-declaration/lib/index.js"),_fields=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/fields.js"),_decorators=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js"),_misc=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/misc.js"),_features=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/features.js"),_typescript=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js");const version="7.16.10".split(".").reduce(((v,x)=>1e5*v+ +x),0),versionKey="@babel/plugin-class-features/version"},"./node_modules/@babel/helper-create-class-features-plugin/lib/misc.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extractComputedKeys=function(ref,path,computedPaths,file){const declarations=[],state={classBinding:path.node.id&&path.scope.getBinding(path.node.id.name),file};for(const computedPath of computedPaths){const computedKey=computedPath.get("key");computedKey.isReferencedIdentifier()?handleClassTDZ(computedKey,state):computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor,state);const computedNode=computedPath.node;if(!computedKey.isConstantExpression()){const ident=path.scope.generateUidIdentifierBasedOnNode(computedNode.key);path.scope.push({id:ident,kind:"let"}),declarations.push(_core.types.expressionStatement(_core.types.assignmentExpression("=",_core.types.cloneNode(ident),computedNode.key))),computedNode.key=_core.types.cloneNode(ident)}}return declarations},exports.injectInitialization=function(path,constructor,nodes,renamer){if(!nodes.length)return;const isDerived=!!path.node.superClass;if(!constructor){const newConstructor=_core.types.classMethod("constructor",_core.types.identifier("constructor"),[],_core.types.blockStatement([]));isDerived&&(newConstructor.params=[_core.types.restElement(_core.types.identifier("args"))],newConstructor.body.body.push(_core.template.statement.ast`super(...args)`)),[constructor]=path.get("body").unshiftContainer("body",newConstructor)}renamer&&renamer(referenceVisitor,{scope:constructor.scope});if(isDerived){const bareSupers=[];constructor.traverse(findBareSupers,bareSupers);let isFirst=!0;for(const bareSuper of bareSupers)isFirst?(bareSuper.insertAfter(nodes),isFirst=!1):bareSuper.insertAfter(nodes.map((n=>_core.types.cloneNode(n))))}else constructor.get("body").unshiftContainer("body",nodes)};var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/@babel/helper-environment-visitor/lib/index.js");const findBareSupers=_core.traverse.visitors.merge([{Super(path){const{node,parentPath}=path;parentPath.isCallExpression({callee:node})&&this.push(parentPath)}},_helperEnvironmentVisitor.default]),referenceVisitor={"TSTypeAnnotation|TypeAnnotation"(path){path.skip()},ReferencedIdentifier(path){this.scope.hasOwnBinding(path.node.name)&&(this.scope.rename(path.node.name),path.skip())}};function handleClassTDZ(path,state){if(state.classBinding&&state.classBinding===path.scope.getBinding(path.node.name)){const classNameTDZError=state.file.addHelper("classNameTDZError"),throwNode=_core.types.callExpression(classNameTDZError,[_core.types.stringLiteral(path.node.name)]);path.replaceWith(_core.types.sequenceExpression([throwNode,path.node])),path.skip()}}const classFieldDefinitionEvaluationTDZVisitor={ReferencedIdentifier:handleClassTDZ}},"./node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertFieldTransformed=function(path){if(path.node.declare)throw path.buildCodeFrameError("TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.\nIf you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:\n - @babel/plugin-proposal-class-properties\n - @babel/plugin-proposal-private-methods\n - @babel/plugin-proposal-decorators")}},"./node_modules/@babel/helper-environment-visitor/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.skipAllButComputedKey=skipAllButComputedKey;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS,staticBlock}=_t;function skipAllButComputedKey(path){if(!path.node.computed)return void path.skip();const keys=VISITOR_KEYS[path.type];for(const key of keys)"key"!==key&&path.skipKey(key)}var _default={[(staticBlock?"StaticBlock|":"")+"ClassPrivateProperty|TypeAnnotation|FunctionDeclaration|FunctionExpression"]:path=>path.skip(),"Method|ClassProperty"(path){skipAllButComputedKey(path)}};exports.default=_default},"./node_modules/@babel/helper-function-name/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function({node,parent,scope,id},localBinding=!1,supportUnicodeId=!1){if(node.id)return;if(!isObjectProperty(parent)&&!isObjectMethod(parent,{kind:"method"})||parent.computed&&!isLiteral(parent.key)){if(isVariableDeclarator(parent)){if(id=parent.id,isIdentifier(id)&&!localBinding){const binding=scope.parent.getBinding(id.name);if(binding&&binding.constant&&scope.getBinding(id.name)===binding)return node.id=cloneNode(id),void(node.id[NOT_LOCAL_BINDING]=!0)}}else if(isAssignmentExpression(parent,{operator:"="}))id=parent.left;else if(!id)return}else id=parent.key;let name;id&&isLiteral(id)?name=function(id){if(isNullLiteral(id))return"null";if(isRegExpLiteral(id))return`_${id.pattern}_${id.flags}`;if(isTemplateLiteral(id))return id.quasis.map((quasi=>quasi.value.raw)).join("");if(void 0!==id.value)return id.value+"";return""}(id):id&&isIdentifier(id)&&(name=id.name);if(void 0===name)return;if(!supportUnicodeId&&isFunction(node)&&/[\uD800-\uDFFF]/.test(name))return;name=toBindingIdentifierName(name),(id=identifier(name))[NOT_LOCAL_BINDING]=!0;return function(state,method,id,scope){if(state.selfReference){if(!scope.hasBinding(id.name)||scope.hasGlobal(id.name)){if(!isFunction(method))return;let build=buildPropertyMethodAssignmentWrapper;method.generator&&(build=buildGeneratorPropertyMethodAssignmentWrapper);const template=build({FUNCTION:method,FUNCTION_ID:id,FUNCTION_KEY:scope.generateUidIdentifier(id.name)}).expression,params=template.callee.body.body[0].params;for(let i=0,len=(0,_helperGetFunctionArity.default)(method);i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){const params=node.params;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,emit,kind="var"){path.traverse(visitor,{kind,emit})};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{assignmentExpression,expressionStatement,identifier}=_t,visitor={Scope(path,state){"let"===state.kind&&path.skip()},FunctionParent(path){path.skip()},VariableDeclaration(path,state){if(state.kind&&path.node.kind!==state.kind)return;const nodes=[],declarations=path.get("declarations");let firstId;for(const declar of declarations){firstId=declar.node.id,declar.node.init&&nodes.push(expressionStatement(assignmentExpression("=",declar.node.id,declar.node.init)));for(const name of Object.keys(declar.getBindingIdentifiers()))state.emit(identifier(name),name,null!==declar.node.init)}path.parentPath.isFor({left:path.node})?path.replaceWith(firstId):path.replaceWithMultiple(nodes)}}},"./node_modules/@babel/helper-member-expression-to-functions/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(k){if("default"!==k){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:!0,get:function(){return e[k]}})}})),n.default=e,Object.freeze(n)}Object.defineProperty(exports,"__esModule",{value:!0});var _t__namespace=_interopNamespace(__webpack_require__("./node_modules/@babel/types/lib/index.js"));function willPathCastToBoolean(path){const maybeWrapped=path,{node,parentPath}=maybeWrapped;if(parentPath.isLogicalExpression()){const{operator,right}=parentPath.node;if("&&"===operator||"||"===operator||"??"===operator&&node===right)return willPathCastToBoolean(parentPath)}if(parentPath.isSequenceExpression()){const{expressions}=parentPath.node;return expressions[expressions.length-1]!==node||willPathCastToBoolean(parentPath)}return parentPath.isConditional({test:node})||parentPath.isUnaryExpression({operator:"!"})||parentPath.isLoop({test:node})}const{LOGICAL_OPERATORS,arrowFunctionExpression,assignmentExpression,binaryExpression,booleanLiteral,callExpression,cloneNode,conditionalExpression,identifier,isMemberExpression,isOptionalCallExpression,isOptionalMemberExpression,isUpdateExpression,logicalExpression,memberExpression,nullLiteral,numericLiteral,optionalCallExpression,optionalMemberExpression,sequenceExpression,unaryExpression}=_t__namespace;class AssignmentMemoiser{constructor(){this._map=void 0,this._map=new WeakMap}has(key){return this._map.has(key)}get(key){if(!this.has(key))return;const record=this._map.get(key),{value}=record;return record.count--,0===record.count?assignmentExpression("=",value,key):value}set(key,value,count){return this._map.set(key,{count,value})}}function toNonOptional(path,base){const{node}=path;if(isOptionalMemberExpression(node))return memberExpression(base,node.property,node.computed);if(path.isOptionalCallExpression()){const callee=path.get("callee");if(path.node.optional&&callee.isOptionalMemberExpression()){const{object}=callee.node,context=path.scope.maybeGenerateMemoised(object)||object;return callee.get("object").replaceWith(assignmentExpression("=",context,object)),callExpression(memberExpression(base,identifier("call")),[context,...path.node.arguments])}return callExpression(base,path.node.arguments)}return path.node}const handle={memoise(){},handle(member,noDocumentAll){const{node,parent,parentPath,scope}=member;if(member.isOptionalMemberExpression()){if(function(path){for(;path&&!path.isProgram();){const{parentPath,container,listKey}=path,parentNode=parentPath.node;if(listKey){if(container!==parentNode[listKey])return!0}else if(container!==parentNode)return!0;path=parentPath}return!1}(member))return;const endPath=member.find((({node,parent})=>isOptionalMemberExpression(parent)?parent.optional||parent.object!==node:!isOptionalCallExpression(parent)||(node!==member.node&&parent.optional||parent.callee!==node)));if(scope.path.isPattern())return void endPath.replaceWith(callExpression(arrowFunctionExpression([],endPath.node),[]));const willEndPathCastToBoolean=willPathCastToBoolean(endPath),rootParentPath=endPath.parentPath;if(rootParentPath.isUpdateExpression({argument:node})||rootParentPath.isAssignmentExpression({left:node}))throw member.buildCodeFrameError("can't handle assignment");const isDeleteOperation=rootParentPath.isUnaryExpression({operator:"delete"});if(isDeleteOperation&&endPath.isOptionalMemberExpression()&&endPath.get("property").isPrivateName())throw member.buildCodeFrameError("can't delete a private class element");let startingOptional=member;for(;;)if(startingOptional.isOptionalMemberExpression()){if(startingOptional.node.optional)break;startingOptional=startingOptional.get("object")}else{if(!startingOptional.isOptionalCallExpression())throw new Error(`Internal error: unexpected ${startingOptional.node.type}`);if(startingOptional.node.optional)break;startingOptional=startingOptional.get("callee")}const startingProp=startingOptional.isOptionalMemberExpression()?"object":"callee",startingNode=startingOptional.node[startingProp],baseNeedsMemoised=scope.maybeGenerateMemoised(startingNode),baseRef=null!=baseNeedsMemoised?baseNeedsMemoised:startingNode,parentIsOptionalCall=parentPath.isOptionalCallExpression({callee:node}),isOptionalCall=parent=>parentIsOptionalCall,parentIsCall=parentPath.isCallExpression({callee:node});startingOptional.replaceWith(toNonOptional(startingOptional,baseRef)),isOptionalCall()?parent.optional?parentPath.replaceWith(this.optionalCall(member,parent.arguments)):parentPath.replaceWith(this.call(member,parent.arguments)):parentIsCall?member.replaceWith(this.boundGet(member)):member.replaceWith(this.get(member));let context,regular=member.node;for(let current=member;current!==endPath;){const parentPath=current.parentPath;if(parentPath===endPath&&isOptionalCall()&&parent.optional){regular=parentPath.node;break}regular=toNonOptional(parentPath,regular),current=parentPath}const endParentPath=endPath.parentPath;if(isMemberExpression(regular)&&endParentPath.isOptionalCallExpression({callee:endPath.node,optional:!0})){const{object}=regular;context=member.scope.maybeGenerateMemoised(object),context&&(regular.object=assignmentExpression("=",context,object))}let replacementPath=endPath;isDeleteOperation&&(replacementPath=endParentPath,regular=endParentPath.node);const baseMemoised=baseNeedsMemoised?assignmentExpression("=",cloneNode(baseRef),cloneNode(startingNode)):cloneNode(baseRef);if(willEndPathCastToBoolean){let nonNullishCheck;nonNullishCheck=noDocumentAll?binaryExpression("!=",baseMemoised,nullLiteral()):logicalExpression("&&",binaryExpression("!==",baseMemoised,nullLiteral()),binaryExpression("!==",cloneNode(baseRef),scope.buildUndefinedNode())),replacementPath.replaceWith(logicalExpression("&&",nonNullishCheck,regular))}else{let nullishCheck;nullishCheck=noDocumentAll?binaryExpression("==",baseMemoised,nullLiteral()):logicalExpression("||",binaryExpression("===",baseMemoised,nullLiteral()),binaryExpression("===",cloneNode(baseRef),scope.buildUndefinedNode())),replacementPath.replaceWith(conditionalExpression(nullishCheck,isDeleteOperation?booleanLiteral(!0):scope.buildUndefinedNode(),regular))}if(context){const endParent=endParentPath.node;endParentPath.replaceWith(optionalCallExpression(optionalMemberExpression(endParent.callee,identifier("call"),!1,!0),[cloneNode(context),...endParent.arguments],!1))}}else if(isUpdateExpression(parent,{argument:node})){if(this.simpleSet)return void member.replaceWith(this.simpleSet(member));const{operator,prefix}=parent;this.memoise(member,2);const value=binaryExpression(operator[0],unaryExpression("+",this.get(member)),numericLiteral(1));if(prefix)parentPath.replaceWith(this.set(member,value));else{const{scope}=member,ref=scope.generateUidIdentifierBasedOnNode(node);scope.push({id:ref}),value.left=assignmentExpression("=",cloneNode(ref),value.left),parentPath.replaceWith(sequenceExpression([this.set(member,value),cloneNode(ref)]))}}else if(parentPath.isAssignmentExpression({left:node})){if(this.simpleSet)return void member.replaceWith(this.simpleSet(member));const{operator,right:value}=parentPath.node;if("="===operator)parentPath.replaceWith(this.set(member,value));else{const operatorTrunc=operator.slice(0,-1);LOGICAL_OPERATORS.includes(operatorTrunc)?(this.memoise(member,1),parentPath.replaceWith(logicalExpression(operatorTrunc,this.get(member),this.set(member,value)))):(this.memoise(member,2),parentPath.replaceWith(this.set(member,binaryExpression(operatorTrunc,this.get(member),value))))}}else{if(!parentPath.isCallExpression({callee:node}))return parentPath.isOptionalCallExpression({callee:node})?scope.path.isPattern()?void parentPath.replaceWith(callExpression(arrowFunctionExpression([],parentPath.node),[])):void parentPath.replaceWith(this.optionalCall(member,parentPath.node.arguments)):void(parentPath.isForXStatement({left:node})||parentPath.isObjectProperty({value:node})&&parentPath.parentPath.isObjectPattern()||parentPath.isAssignmentPattern({left:node})&&parentPath.parentPath.isObjectProperty({value:parent})&&parentPath.parentPath.parentPath.isObjectPattern()||parentPath.isArrayPattern()||parentPath.isAssignmentPattern({left:node})&&parentPath.parentPath.isArrayPattern()||parentPath.isRestElement()?member.replaceWith(this.destructureSet(member)):parentPath.isTaggedTemplateExpression()?member.replaceWith(this.boundGet(member)):member.replaceWith(this.get(member)));parentPath.replaceWith(this.call(member,parentPath.node.arguments))}}};exports.default=function(path,visitor,state){path.traverse(visitor,Object.assign({},handle,state,{memoiser:new AssignmentMemoiser}))}},"./node_modules/@babel/helper-module-imports/lib/import-builder.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{callExpression,cloneNode,expressionStatement,identifier,importDeclaration,importDefaultSpecifier,importNamespaceSpecifier,importSpecifier,memberExpression,stringLiteral,variableDeclaration,variableDeclarator}=_t;exports.default=class{constructor(importedSource,scope,hub){this._statements=[],this._resultName=null,this._scope=null,this._hub=null,this._importedSource=void 0,this._scope=scope,this._hub=hub,this._importedSource=importedSource}done(){return{statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(importDeclaration([],stringLiteral(this._importedSource))),this}require(){return this._statements.push(expressionStatement(callExpression(identifier("require"),[stringLiteral(this._importedSource)]))),this}namespace(name="namespace"){const local=this._scope.generateUidIdentifier(name),statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importNamespaceSpecifier(local)],this._resultName=cloneNode(local),this}default(name){name=this._scope.generateUidIdentifier(name);const statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importDefaultSpecifier(name)],this._resultName=cloneNode(name),this}named(name,importName){if("default"===importName)return this.default(name);name=this._scope.generateUidIdentifier(name);const statement=this._statements[this._statements.length-1];return _assert("ImportDeclaration"===statement.type),_assert(0===statement.specifiers.length),statement.specifiers=[importSpecifier(name,identifier(importName))],this._resultName=cloneNode(name),this}var(name){name=this._scope.generateUidIdentifier(name);let statement=this._statements[this._statements.length-1];return"ExpressionStatement"!==statement.type&&(_assert(this._resultName),statement=expressionStatement(this._resultName),this._statements.push(statement)),this._statements[this._statements.length-1]=variableDeclaration("var",[variableDeclarator(name,statement.expression)]),this._resultName=cloneNode(name),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(callee){const statement=this._statements[this._statements.length-1];return"ExpressionStatement"===statement.type?statement.expression=callExpression(callee,[statement.expression]):"VariableDeclaration"===statement.type?(_assert(1===statement.declarations.length),statement.declarations[0].init=callExpression(callee,[statement.declarations[0].init])):_assert.fail("Unexpected type."),this}prop(name){const statement=this._statements[this._statements.length-1];return"ExpressionStatement"===statement.type?statement.expression=memberExpression(statement.expression,identifier(name)):"VariableDeclaration"===statement.type?(_assert(1===statement.declarations.length),statement.declarations[0].init=memberExpression(statement.declarations[0].init,identifier(name))):_assert.fail("Unexpected type:"+statement.type),this}read(name){this._resultName=memberExpression(this._resultName,identifier(name))}}},"./node_modules/@babel/helper-module-imports/lib/import-injector.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_importBuilder=__webpack_require__("./node_modules/@babel/helper-module-imports/lib/import-builder.js"),_isModule=__webpack_require__("./node_modules/@babel/helper-module-imports/lib/is-module.js");const{numericLiteral,sequenceExpression}=_t;exports.default=class{constructor(path,importedSource,opts){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};const programPath=path.find((p=>p.isProgram()));this._programPath=programPath,this._programScope=programPath.scope,this._hub=programPath.hub,this._defaultOpts=this._applyDefaults(importedSource,opts,!0)}addDefault(importedSourceIn,opts){return this.addNamed("default",importedSourceIn,opts)}addNamed(importName,importedSourceIn,opts){return _assert("string"==typeof importName),this._generateImport(this._applyDefaults(importedSourceIn,opts),importName)}addNamespace(importedSourceIn,opts){return this._generateImport(this._applyDefaults(importedSourceIn,opts),null)}addSideEffect(importedSourceIn,opts){return this._generateImport(this._applyDefaults(importedSourceIn,opts),!1)}_applyDefaults(importedSource,opts,isInit=!1){const optsList=[];"string"==typeof importedSource?(optsList.push({importedSource}),optsList.push(opts)):(_assert(!opts,"Unexpected secondary arguments."),optsList.push(importedSource));const newOpts=Object.assign({},this._defaultOpts);for(const opts of optsList)opts&&(Object.keys(newOpts).forEach((key=>{void 0!==opts[key]&&(newOpts[key]=opts[key])})),isInit||(void 0!==opts.nameHint&&(newOpts.nameHint=opts.nameHint),void 0!==opts.blockHoist&&(newOpts.blockHoist=opts.blockHoist)));return newOpts}_generateImport(opts,importName){const isDefault="default"===importName,isNamed=!!importName&&!isDefault,isNamespace=null===importName,{importedSource,importedType,importedInterop,importingInterop,ensureLiveReference,ensureNoContext,nameHint,importPosition,blockHoist}=opts;let name=nameHint||importName;const isMod=(0,_isModule.default)(this._programPath),isModuleForNode=isMod&&"node"===importingInterop,isModuleForBabel=isMod&&"babel"===importingInterop;if("after"===importPosition&&!isMod)throw new Error('"importPosition": "after" is only supported in modules');const builder=new _importBuilder.default(importedSource,this._programScope,this._hub);if("es6"===importedType){if(!isModuleForNode&&!isModuleForBabel)throw new Error("Cannot import an ES6 module from CommonJS");builder.import(),isNamespace?builder.namespace(nameHint||importedSource):(isDefault||isNamed)&&builder.named(name,importName)}else{if("commonjs"!==importedType)throw new Error(`Unexpected interopType "${importedType}"`);if("babel"===importedInterop)if(isModuleForNode){name="default"!==name?name:importedSource;const es6Default=`${importedSource}$es6Default`;builder.import(),isNamespace?builder.default(es6Default).var(name||importedSource).wildcardInterop():isDefault?ensureLiveReference?builder.default(es6Default).var(name||importedSource).defaultInterop().read("default"):builder.default(es6Default).var(name).defaultInterop().prop(importName):isNamed&&builder.default(es6Default).read(importName)}else isModuleForBabel?(builder.import(),isNamespace?builder.namespace(name||importedSource):(isDefault||isNamed)&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource).wildcardInterop():(isDefault||isNamed)&&ensureLiveReference?isDefault?(name="default"!==name?name:importedSource,builder.var(name).read(importName),builder.defaultInterop()):builder.var(importedSource).read(importName):isDefault?builder.var(name).defaultInterop().prop(importName):isNamed&&builder.var(name).prop(importName));else if("compiled"===importedInterop)isModuleForNode?(builder.import(),isNamespace?builder.default(name||importedSource):(isDefault||isNamed)&&builder.default(importedSource).read(name)):isModuleForBabel?(builder.import(),isNamespace?builder.namespace(name||importedSource):(isDefault||isNamed)&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource):(isDefault||isNamed)&&(ensureLiveReference?builder.var(importedSource).read(name):builder.prop(importName).var(name)));else{if("uncompiled"!==importedInterop)throw new Error(`Unknown importedInterop "${importedInterop}".`);if(isDefault&&ensureLiveReference)throw new Error("No live reference for commonjs default");isModuleForNode?(builder.import(),isNamespace?builder.default(name||importedSource):isDefault?builder.default(name):isNamed&&builder.default(importedSource).read(name)):isModuleForBabel?(builder.import(),isNamespace?builder.default(name||importedSource):isDefault?builder.default(name):isNamed&&builder.named(name,importName)):(builder.require(),isNamespace?builder.var(name||importedSource):isDefault?builder.var(name):isNamed&&(ensureLiveReference?builder.var(importedSource).read(name):builder.var(name).prop(importName)))}}const{statements,resultName}=builder.done();return this._insertStatements(statements,importPosition,blockHoist),(isDefault||isNamed)&&ensureNoContext&&"Identifier"!==resultName.type?sequenceExpression([numericLiteral(0),resultName]):resultName}_insertStatements(statements,importPosition="before",blockHoist=3){const body=this._programPath.get("body");if("after"===importPosition){for(let i=body.length-1;i>=0;i--)if(body[i].isImportDeclaration())return void body[i].insertAfter(statements)}else{statements.forEach((node=>{node._blockHoist=blockHoist}));const targetPath=body.find((p=>{const val=p.node._blockHoist;return Number.isFinite(val)&&val<4}));if(targetPath)return void targetPath.insertBefore(statements)}this._programPath.unshiftContainer("body",statements)}}},"./node_modules/@babel/helper-module-imports/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ImportInjector",{enumerable:!0,get:function(){return _importInjector.default}}),exports.addDefault=function(path,importedSource,opts){return new _importInjector.default(path).addDefault(importedSource,opts)},exports.addNamed=function(path,name,importedSource,opts){return new _importInjector.default(path).addNamed(name,importedSource,opts)},exports.addNamespace=function(path,importedSource,opts){return new _importInjector.default(path).addNamespace(importedSource,opts)},exports.addSideEffect=function(path,importedSource,opts){return new _importInjector.default(path).addSideEffect(importedSource,opts)},Object.defineProperty(exports,"isModule",{enumerable:!0,get:function(){return _isModule.default}});var _importInjector=__webpack_require__("./node_modules/@babel/helper-module-imports/lib/import-injector.js"),_isModule=__webpack_require__("./node_modules/@babel/helper-module-imports/lib/is-module.js")},"./node_modules/@babel/helper-module-imports/lib/is-module.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path){const{sourceType}=path.node;if("module"!==sourceType&&"script"!==sourceType)throw path.buildCodeFrameError(`Unknown sourceType "${sourceType}", cannot transform.`);return"module"===path.node.sourceType}},"./node_modules/@babel/helper-module-transforms/lib/get-module-name.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getModuleName;{const originalGetModuleName=getModuleName;exports.default=getModuleName=function(rootOpts,pluginOpts){var _pluginOpts$moduleId,_pluginOpts$moduleIds,_pluginOpts$getModule,_pluginOpts$moduleRoo;return originalGetModuleName(rootOpts,{moduleId:null!=(_pluginOpts$moduleId=pluginOpts.moduleId)?_pluginOpts$moduleId:rootOpts.moduleId,moduleIds:null!=(_pluginOpts$moduleIds=pluginOpts.moduleIds)?_pluginOpts$moduleIds:rootOpts.moduleIds,getModuleId:null!=(_pluginOpts$getModule=pluginOpts.getModuleId)?_pluginOpts$getModule:rootOpts.getModuleId,moduleRoot:null!=(_pluginOpts$moduleRoo=pluginOpts.moduleRoot)?_pluginOpts$moduleRoo:rootOpts.moduleRoot})}}function getModuleName(rootOpts,pluginOpts){const{filename,filenameRelative=filename,sourceRoot=pluginOpts.moduleRoot}=rootOpts,{moduleId,moduleIds=!!moduleId,getModuleId,moduleRoot=sourceRoot}=pluginOpts;if(!moduleIds)return null;if(null!=moduleId&&!getModuleId)return moduleId;let moduleName=null!=moduleRoot?moduleRoot+"/":"";if(filenameRelative){const sourceRootReplacer=null!=sourceRoot?new RegExp("^"+sourceRoot+"/?"):"";moduleName+=filenameRelative.replace(sourceRootReplacer,"").replace(/\.(\w*?)$/,"")}return moduleName=moduleName.replace(/\\/g,"/"),getModuleId&&getModuleId(moduleName)||moduleName}},"./node_modules/@babel/helper-module-transforms/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildNamespaceInitStatements=function(metadata,sourceMetadata,constantReexports=!1){const statements=[];let srcNamespace=identifier(sourceMetadata.name);sourceMetadata.lazy&&(srcNamespace=callExpression(srcNamespace,[]));for(const localName of sourceMetadata.importsNamespace)localName!==sourceMetadata.name&&statements.push(_template.default.statement`var NAME = SOURCE;`({NAME:localName,SOURCE:cloneNode(srcNamespace)}));constantReexports&&statements.push(...buildReexportsFromMeta(metadata,sourceMetadata,!0));for(const exportName of sourceMetadata.reexportNamespace)statements.push((sourceMetadata.lazy?_template.default.statement` Object.defineProperty(EXPORTS, "NAME", { enumerable: true, get: function() { return NAMESPACE; } }); `:_template.default.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:metadata.exportName,NAME:exportName,NAMESPACE:cloneNode(srcNamespace)}));if(sourceMetadata.reexportAll){const statement=function(metadata,namespace,constantReexports){return(constantReexports?_template.default.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; EXPORTS[key] = NAMESPACE[key]; }); `:_template.default.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; Object.defineProperty(EXPORTS, key, { enumerable: true, get: function() { return NAMESPACE[key]; }, }); }); `)({NAMESPACE:namespace,EXPORTS:metadata.exportName,VERIFY_NAME_LIST:metadata.exportNameListName?_template.default` if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; `({EXPORTS_LIST:metadata.exportNameListName}):null})}(metadata,cloneNode(srcNamespace),constantReexports);statement.loc=sourceMetadata.reexportAll.loc,statements.push(statement)}return statements},exports.ensureStatementsHoisted=function(statements){statements.forEach((header=>{header._blockHoist=3}))},Object.defineProperty(exports,"getModuleName",{enumerable:!0,get:function(){return _getModuleName.default}}),Object.defineProperty(exports,"hasExports",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.hasExports}}),Object.defineProperty(exports,"isModule",{enumerable:!0,get:function(){return _helperModuleImports.isModule}}),Object.defineProperty(exports,"isSideEffectImport",{enumerable:!0,get:function(){return _normalizeAndLoadMetadata.isSideEffectImport}}),exports.rewriteModuleStatementsAndPrepareHeader=function(path,{loose,exportName,strict,allowTopLevelThis,strictMode,noInterop,importInterop=noInterop?"none":"babel",lazy,esNamespaceOnly,constantReexports=loose,enumerableModuleMeta=loose,noIncompleteNsImportDetection}){(0,_normalizeAndLoadMetadata.validateImportInteropOption)(importInterop),_assert((0,_helperModuleImports.isModule)(path),"Cannot process module statements in a script"),path.node.sourceType="script";const meta=(0,_normalizeAndLoadMetadata.default)(path,exportName,{importInterop,initializeReexports:constantReexports,lazy,esNamespaceOnly});allowTopLevelThis||(0,_rewriteThis.default)(path);if((0,_rewriteLiveReferences.default)(path,meta),!1!==strictMode){const hasStrict=path.node.directives.some((directive=>"use strict"===directive.value.value));hasStrict||path.unshiftContainer("directives",directive(directiveLiteral("use strict")))}const headers=[];(0,_normalizeAndLoadMetadata.hasExports)(meta)&&!strict&&headers.push(function(metadata,enumerableModuleMeta=!1){return(enumerableModuleMeta?_template.default.statement` EXPORTS.__esModule = true; `:_template.default.statement` Object.defineProperty(EXPORTS, "__esModule", { value: true, }); `)({EXPORTS:metadata.exportName})}(meta,enumerableModuleMeta));const nameList=function(programPath,metadata){const exportedVars=Object.create(null);for(const data of metadata.local.values())for(const name of data.names)exportedVars[name]=!0;let hasReexport=!1;for(const data of metadata.source.values()){for(const exportName of data.reexports.keys())exportedVars[exportName]=!0;for(const exportName of data.reexportNamespace)exportedVars[exportName]=!0;hasReexport=hasReexport||!!data.reexportAll}if(!hasReexport||0===Object.keys(exportedVars).length)return null;const name=programPath.scope.generateUidIdentifier("exportNames");return delete exportedVars.default,{name:name.name,statement:variableDeclaration("var",[variableDeclarator(name,valueToNode(exportedVars))])}}(path,meta);nameList&&(meta.exportNameListName=nameList.name,headers.push(nameList.statement));return headers.push(...function(programPath,metadata,constantReexports=!1,noIncompleteNsImportDetection=!1){const initStatements=[];for(const[localName,data]of metadata.local)if("import"===data.kind);else if("hoisted"===data.kind)initStatements.push([data.names[0],buildInitStatement(metadata,data.names,identifier(localName))]);else if(!noIncompleteNsImportDetection)for(const exportName of data.names)initStatements.push([exportName,null]);for(const data of metadata.source.values()){if(!constantReexports){const reexportsStatements=buildReexportsFromMeta(metadata,data,!1),reexports=[...data.reexports.keys()];for(let i=0;ia[0]>b[0]?1:-1));const results=[];if(noIncompleteNsImportDetection)for(const[,initStatement]of initStatements)results.push(initStatement);else{const chunkSize=100;for(let i=0,uninitializedExportNames=[];i0&&(results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode())),uninitializedExportNames=[]),results.push(initStatement)):uninitializedExportNames.push(exportName)}uninitializedExportNames.length>0&&results.push(buildInitStatement(metadata,uninitializedExportNames,programPath.scope.buildUndefinedNode()))}}return results}(path,meta,constantReexports,noIncompleteNsImportDetection)),{meta,headers}},Object.defineProperty(exports,"rewriteThis",{enumerable:!0,get:function(){return _rewriteThis.default}}),exports.wrapInterop=function(programPath,expr,type){if("none"===type)return null;if("node-namespace"===type)return callExpression(programPath.hub.addHelper("interopRequireWildcard"),[expr,booleanLiteral(!0)]);if("node-default"===type)return null;let helper;if("default"===type)helper="interopRequireDefault";else{if("namespace"!==type)throw new Error(`Unknown interop: ${type}`);helper="interopRequireWildcard"}return callExpression(programPath.hub.addHelper(helper),[expr])};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/@babel/template/lib/index.js"),_helperModuleImports=__webpack_require__("./node_modules/@babel/helper-module-imports/lib/index.js"),_rewriteThis=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),_rewriteLiveReferences=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),_normalizeAndLoadMetadata=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),_getModuleName=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/get-module-name.js");const{booleanLiteral,callExpression,cloneNode,directive,directiveLiteral,expressionStatement,identifier,isIdentifier,memberExpression,stringLiteral,valueToNode,variableDeclaration,variableDeclarator}=_t;const ReexportTemplate={constant:_template.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:_template.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:_template.default.statement` Object.defineProperty(EXPORTS, "EXPORT_NAME", { enumerable: true, get: function() { return NAMESPACE_IMPORT; }, }); `},buildReexportsFromMeta=(meta,metadata,constantReexports)=>{const namespace=metadata.lazy?callExpression(identifier(metadata.name),[]):identifier(metadata.name),{stringSpecifiers}=meta;return Array.from(metadata.reexports,(([exportName,importName])=>{let NAMESPACE_IMPORT=cloneNode(namespace);"default"===importName&&"node-default"===metadata.interop||(NAMESPACE_IMPORT=stringSpecifiers.has(importName)?memberExpression(NAMESPACE_IMPORT,stringLiteral(importName),!0):memberExpression(NAMESPACE_IMPORT,identifier(importName)));const astNodes={EXPORTS:meta.exportName,EXPORT_NAME:exportName,NAMESPACE_IMPORT};return constantReexports||isIdentifier(NAMESPACE_IMPORT)?stringSpecifiers.has(exportName)?ReexportTemplate.constantComputed(astNodes):ReexportTemplate.constant(astNodes):ReexportTemplate.spec(astNodes)}))};const InitTemplate={computed:_template.default.expression`EXPORTS["NAME"] = VALUE`,default:_template.default.expression`EXPORTS.NAME = VALUE`};function buildInitStatement(metadata,exportNames,initExpr){const{stringSpecifiers,exportName:EXPORTS}=metadata;return expressionStatement(exportNames.reduce(((acc,exportName)=>{const params={EXPORTS,NAME:exportName,VALUE:acc};return stringSpecifiers.has(exportName)?InitTemplate.computed(params):InitTemplate.default(params)}),initExpr))}},"./node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,exportName,{importInterop,initializeReexports=!1,lazy=!1,esNamespaceOnly=!1}){exportName||(exportName=programPath.scope.generateUidIdentifier("exports").name);const stringSpecifiers=new Set;!function(programPath){programPath.get("body").forEach((child=>{child.isExportDefaultDeclaration()&&(0,_helperSplitExportDeclaration.default)(child)}))}(programPath);const{local,source,hasExports}=function(programPath,{lazy,initializeReexports},stringSpecifiers){const localData=function(programPath,initializeReexports,stringSpecifiers){const bindingKindLookup=new Map;programPath.get("body").forEach((child=>{let kind;if(child.isImportDeclaration())kind="import";else{if(child.isExportDefaultDeclaration()&&(child=child.get("declaration")),child.isExportNamedDeclaration())if(child.node.declaration)child=child.get("declaration");else if(initializeReexports&&child.node.source&&child.get("source").isStringLiteral())return void child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec),bindingKindLookup.set(spec.get("local").node.name,"block")}));if(child.isFunctionDeclaration())kind="hoisted";else if(child.isClassDeclaration())kind="block";else if(child.isVariableDeclaration({kind:"var"}))kind="var";else{if(!child.isVariableDeclaration())return;kind="block"}}Object.keys(child.getOuterBindingIdentifiers()).forEach((name=>{bindingKindLookup.set(name,kind)}))}));const localMetadata=new Map,getLocalMetadata=idPath=>{const localName=idPath.node.name;let metadata=localMetadata.get(localName);if(!metadata){const kind=bindingKindLookup.get(localName);if(void 0===kind)throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`);metadata={names:[],kind},localMetadata.set(localName,metadata)}return metadata};return programPath.get("body").forEach((child=>{if(!child.isExportNamedDeclaration()||!initializeReexports&&child.node.source){if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(declaration.get("id")).names.push("default")}}else if(child.node.declaration){const declaration=child.get("declaration"),ids=declaration.getOuterBindingIdentifierPaths();Object.keys(ids).forEach((name=>{if("__esModule"===name)throw declaration.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(ids[name]).names.push(name)}))}else child.get("specifiers").forEach((spec=>{const local=spec.get("local"),exported=spec.get("exported"),localMetadata=getLocalMetadata(local),exportName=getExportSpecifierName(exported,stringSpecifiers);if("__esModule"===exportName)throw exported.buildCodeFrameError('Illegal export "__esModule".');localMetadata.names.push(exportName)}))})),localMetadata}(programPath,initializeReexports,stringSpecifiers),sourceData=new Map,getData=sourceNode=>{const source=sourceNode.value;let data=sourceData.get(source);return data||(data={name:programPath.scope.generateUidIdentifier((0,_path.basename)(source,(0,_path.extname)(source))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:!1,source},sourceData.set(source,data)),data};let hasExports=!1;programPath.get("body").forEach((child=>{if(child.isImportDeclaration()){const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{if(spec.isImportDefaultSpecifier()){const localName=spec.get("local").node.name;data.imports.set(localName,"default");const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,"default")})))}else if(spec.isImportNamespaceSpecifier()){const localName=spec.get("local").node.name;data.importsNamespace.add(localName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexportNamespace.add(name)})))}else if(spec.isImportSpecifier()){const importName=getExportSpecifierName(spec.get("imported"),stringSpecifiers),localName=spec.get("local").node.name;data.imports.set(localName,importName);const reexport=localData.get(localName);reexport&&(localData.delete(localName),reexport.names.forEach((name=>{data.reexports.set(name,importName)})))}}))}else if(child.isExportAllDeclaration()){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),data.reexportAll={loc:child.node.loc}}else if(child.isExportNamedDeclaration()&&child.node.source){hasExports=!0;const data=getData(child.node.source);data.loc||(data.loc=child.node.loc),child.get("specifiers").forEach((spec=>{assertExportSpecifier(spec);const importName=getExportSpecifierName(spec.get("local"),stringSpecifiers),exportName=getExportSpecifierName(spec.get("exported"),stringSpecifiers);if(data.reexports.set(exportName,importName),"__esModule"===exportName)throw spec.get("exported").buildCodeFrameError('Illegal export "__esModule".')}))}else(child.isExportNamedDeclaration()||child.isExportDefaultDeclaration())&&(hasExports=!0)}));for(const metadata of sourceData.values()){let needsDefault=!1,needsNamed=!1;metadata.importsNamespace.size>0&&(needsDefault=!0,needsNamed=!0),metadata.reexportAll&&(needsNamed=!0);for(const importName of metadata.imports.values())"default"===importName?needsDefault=!0:needsNamed=!0;for(const importName of metadata.reexports.values())"default"===importName?needsDefault=!0:needsNamed=!0;needsDefault&&needsNamed?metadata.interop="namespace":needsDefault&&(metadata.interop="default")}for(const[source,metadata]of sourceData)if(!1!==lazy&&!isSideEffectImport(metadata)&&!metadata.reexportAll)if(!0===lazy)metadata.lazy=!/\./.test(source);else if(Array.isArray(lazy))metadata.lazy=-1!==lazy.indexOf(source);else{if("function"!=typeof lazy)throw new Error(".lazy must be a boolean, string array, or function");metadata.lazy=lazy(source)}return{hasExports,local:localData,source:sourceData}}(programPath,{initializeReexports,lazy},stringSpecifiers);!function(programPath){programPath.get("body").forEach((child=>{if(child.isImportDeclaration())child.remove();else if(child.isExportNamedDeclaration())child.node.declaration?(child.node.declaration._blockHoist=child.node._blockHoist,child.replaceWith(child.node.declaration)):child.remove();else if(child.isExportDefaultDeclaration()){const declaration=child.get("declaration");if(!declaration.isFunctionDeclaration()&&!declaration.isClassDeclaration())throw declaration.buildCodeFrameError("Unexpected default expression export.");declaration._blockHoist=child.node._blockHoist,child.replaceWith(declaration)}else child.isExportAllDeclaration()&&child.remove()}))}(programPath);for(const[,metadata]of source){metadata.importsNamespace.size>0&&(metadata.name=metadata.importsNamespace.values().next().value);const resolvedInterop=resolveImportInterop(importInterop,metadata.source);"none"===resolvedInterop?metadata.interop="none":"node"===resolvedInterop&&"namespace"===metadata.interop?metadata.interop="node-namespace":"node"===resolvedInterop&&"default"===metadata.interop?metadata.interop="node-default":esNamespaceOnly&&"namespace"===metadata.interop&&(metadata.interop="default")}return{exportName,exportNameListName:null,hasExports,local,source,stringSpecifiers}},exports.hasExports=function(metadata){return metadata.hasExports},exports.isSideEffectImport=isSideEffectImport,exports.validateImportInteropOption=validateImportInteropOption;var _path=__webpack_require__("path"),_helperValidatorIdentifier=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/index.js"),_helperSplitExportDeclaration=__webpack_require__("./node_modules/@babel/helper-split-export-declaration/lib/index.js");function isSideEffectImport(source){return 0===source.imports.size&&0===source.importsNamespace.size&&0===source.reexports.size&&0===source.reexportNamespace.size&&!source.reexportAll}function validateImportInteropOption(importInterop){if("function"!=typeof importInterop&&"none"!==importInterop&&"babel"!==importInterop&&"node"!==importInterop)throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${importInterop}).`);return importInterop}function resolveImportInterop(importInterop,source){return"function"==typeof importInterop?validateImportInteropOption(importInterop(source)):importInterop}function getExportSpecifierName(path,stringSpecifiers){if(path.isIdentifier())return path.node.name;if(path.isStringLiteral()){const stringValue=path.node.value;return(0,_helperValidatorIdentifier.isIdentifierName)(stringValue)||stringSpecifiers.add(stringValue),stringValue}throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`)}function assertExportSpecifier(path){if(!path.isExportSpecifier())throw path.isExportNamespaceSpecifier()?path.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`."):path.buildCodeFrameError("Unexpected export specifier type")}},"./node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath,metadata){const imported=new Map,exported=new Map,requeueInParent=path=>{programPath.requeue(path)};for(const[source,data]of metadata.source){for(const[localName,importName]of data.imports)imported.set(localName,[source,importName,null]);for(const localName of data.importsNamespace)imported.set(localName,[source,null,localName])}for(const[local,data]of metadata.local){let exportMeta=exported.get(local);exportMeta||(exportMeta=[],exported.set(local,exportMeta)),exportMeta.push(...data.names)}const rewriteBindingInitVisitorState={metadata,requeueInParent,scope:programPath.scope,exported};programPath.traverse(rewriteBindingInitVisitor,rewriteBindingInitVisitorState),(0,_helperSimpleAccess.default)(programPath,new Set([...Array.from(imported.keys()),...Array.from(exported.keys())]));const rewriteReferencesVisitorState={seen:new WeakSet,metadata,requeueInParent,scope:programPath.scope,imported,exported,buildImportReference:([source,importName,localName],identNode)=>{const meta=metadata.source.get(source);if(localName)return meta.lazy&&(identNode=callExpression(identNode,[])),identNode;let namespace=identifier(meta.name);if(meta.lazy&&(namespace=callExpression(namespace,[])),"default"===importName&&"node-default"===meta.interop)return namespace;const computed=metadata.stringSpecifiers.has(importName);return memberExpression(namespace,computed?stringLiteral(importName):identifier(importName),computed)}};programPath.traverse(rewriteReferencesVisitor,rewriteReferencesVisitorState)};var _assert=__webpack_require__("assert"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_template=__webpack_require__("./node_modules/@babel/template/lib/index.js"),_helperSimpleAccess=__webpack_require__("./node_modules/@babel/helper-simple-access/lib/index.js");const{assignmentExpression,callExpression,cloneNode,expressionStatement,getOuterBindingIdentifiers,identifier,isMemberExpression,isVariableDeclaration,jsxIdentifier,jsxMemberExpression,memberExpression,numericLiteral,sequenceExpression,stringLiteral,variableDeclaration,variableDeclarator}=_t;const rewriteBindingInitVisitor={Scope(path){path.skip()},ClassDeclaration(path){const{requeueInParent,exported,metadata}=this,{id}=path.node;if(!id)throw new Error("Expected class to have a name");const localName=id.name,exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName)));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0])}},VariableDeclaration(path){const{requeueInParent,exported,metadata}=this;Object.keys(path.getOuterBindingIdentifiers()).forEach((localName=>{const exportNames=exported.get(localName)||[];if(exportNames.length>0){const statement=expressionStatement(buildBindingExportAssignmentExpression(metadata,exportNames,identifier(localName)));statement._blockHoist=path.node._blockHoist,requeueInParent(path.insertAfter(statement)[0])}}))}},buildBindingExportAssignmentExpression=(metadata,exportNames,localExpr)=>(exportNames||[]).reduce(((expr,exportName)=>{const{stringSpecifiers}=metadata,computed=stringSpecifiers.has(exportName);return assignmentExpression("=",memberExpression(identifier(metadata.exportName),computed?stringLiteral(exportName):identifier(exportName),computed),expr)}),localExpr),buildImportThrow=localName=>_template.default.expression.ast` (function() { throw new Error('"' + '${localName}' + '" is read-only.'); })() `,rewriteReferencesVisitor={ReferencedIdentifier(path){const{seen,buildImportReference,scope,imported,requeueInParent}=this;if(seen.has(path.node))return;seen.add(path.node);const localName=path.node.name,importData=imported.get(localName);if(importData){if(function(path){do{switch(path.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return"type"===path.parentPath.parent.exportKind;default:if(path.parentPath.isStatement()||path.parentPath.isExpression())return!1}}while(path=path.parentPath)}(path))throw path.buildCodeFrameError(`Cannot transform the imported binding "${localName}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const localBinding=path.scope.getBinding(localName);if(scope.getBinding(localName)!==localBinding)return;const ref=buildImportReference(importData,path.node);if(ref.loc=path.node.loc,(path.parentPath.isCallExpression({callee:path.node})||path.parentPath.isOptionalCallExpression({callee:path.node})||path.parentPath.isTaggedTemplateExpression({tag:path.node}))&&isMemberExpression(ref))path.replaceWith(sequenceExpression([numericLiteral(0),ref]));else if(path.isJSXIdentifier()&&isMemberExpression(ref)){const{object,property}=ref;path.replaceWith(jsxMemberExpression(jsxIdentifier(object.name),jsxIdentifier(property.name)))}else path.replaceWith(ref);requeueInParent(path),path.skip()}},AssignmentExpression:{exit(path){const{scope,seen,imported,exported,requeueInParent,buildImportReference}=this;if(seen.has(path.node))return;seen.add(path.node);const left=path.get("left");if(!left.isMemberExpression())if(left.isIdentifier()){const localName=left.node.name;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const exportedNames=exported.get(localName),importData=imported.get(localName);if((null==exportedNames?void 0:exportedNames.length)>0||importData){_assert("="===path.node.operator,"Path was not simplified");const assignment=path.node;importData&&(assignment.left=buildImportReference(importData,assignment.left),assignment.right=sequenceExpression([assignment.right,buildImportThrow(localName)])),path.replaceWith(buildBindingExportAssignmentExpression(this.metadata,exportedNames,assignment)),requeueInParent(path)}}else{const ids=left.getOuterBindingIdentifiers(),programScopeIds=Object.keys(ids).filter((localName=>scope.getBinding(localName)===path.scope.getBinding(localName))),id=programScopeIds.find((localName=>imported.has(localName)));id&&(path.node.right=sequenceExpression([path.node.right,buildImportThrow(id)]));const items=[];if(programScopeIds.forEach((localName=>{const exportedNames=exported.get(localName)||[];exportedNames.length>0&&items.push(buildBindingExportAssignmentExpression(this.metadata,exportedNames,identifier(localName)))})),items.length>0){let node=sequenceExpression(items);path.parentPath.isExpressionStatement()&&(node=expressionStatement(node),node._blockHoist=path.parentPath.node._blockHoist);requeueInParent(path.insertAfter(node)[0])}}}},"ForOfStatement|ForInStatement"(path){const{scope,node}=path,{left}=node,{exported,imported,scope:programScope}=this;if(!isVariableDeclaration(left)){let importConstViolationName,didTransformExport=!1;const loopBodyScope=path.get("body").scope;for(const name of Object.keys(getOuterBindingIdentifiers(left)))programScope.getBinding(name)===scope.getBinding(name)&&(exported.has(name)&&(didTransformExport=!0,loopBodyScope.hasOwnBinding(name)&&loopBodyScope.rename(name)),imported.has(name)&&!importConstViolationName&&(importConstViolationName=name));if(!didTransformExport&&!importConstViolationName)return;path.ensureBlock();const bodyPath=path.get("body"),newLoopId=scope.generateUidIdentifierBasedOnNode(left);path.get("left").replaceWith(variableDeclaration("let",[variableDeclarator(cloneNode(newLoopId))])),scope.registerDeclaration(path.get("left")),didTransformExport&&bodyPath.unshiftContainer("body",expressionStatement(assignmentExpression("=",left,newLoopId))),importConstViolationName&&bodyPath.unshiftContainer("body",expressionStatement(buildImportThrow(importConstViolationName)))}}}},"./node_modules/@babel/helper-module-transforms/lib/rewrite-this.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(programPath){(0,_traverse.default)(programPath.node,Object.assign({},rewriteThisVisitor,{noScope:!0}))};var _helperEnvironmentVisitor=__webpack_require__("./node_modules/@babel/helper-environment-visitor/lib/index.js"),_traverse=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{numericLiteral,unaryExpression}=_t;const rewriteThisVisitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{ThisExpression(path){path.replaceWith(unaryExpression("void",numericLiteral(0),!0))}}])},"./node_modules/@babel/helper-optimise-call-expression/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(callee,thisNode,args,optional){return 1===args.length&&isSpreadElement(args[0])&&isIdentifier(args[0].argument,{name:"arguments"})?optional?optionalCallExpression(optionalMemberExpression(callee,identifier("apply"),!1,!0),[thisNode,args[0].argument],!1):callExpression(memberExpression(callee,identifier("apply")),[thisNode,args[0].argument]):optional?optionalCallExpression(optionalMemberExpression(callee,identifier("call"),!1,!0),[thisNode,...args],!1):callExpression(memberExpression(callee,identifier("call")),[thisNode,...args])};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{callExpression,identifier,isIdentifier,isSpreadElement,memberExpression,optionalCallExpression,optionalMemberExpression}=_t},"./node_modules/@babel/helper-plugin-utils/lib/index.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.declare=function(builder){return(api,options,dirname)=>{var _clonedApi2;let clonedApi;for(const name of Object.keys(apiPolyfills)){var _clonedApi;api[name]||(clonedApi=null!=(_clonedApi=clonedApi)?_clonedApi:copyApiObject(api),clonedApi[name]=apiPolyfills[name](clonedApi))}return builder(null!=(_clonedApi2=clonedApi)?_clonedApi2:api,options||{},dirname)}};const apiPolyfills={assertVersion:api=>range=>{!function(range,version){if("number"==typeof range){if(!Number.isInteger(range))throw new Error("Expected string or integer value.");range=`^${range}.0.0-0`}if("string"!=typeof range)throw new Error("Expected string or integer value.");const limit=Error.stackTraceLimit;"number"==typeof limit&&limit<25&&(Error.stackTraceLimit=25);let err;err="7."===version.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${range}", but was loaded with "${version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);"number"==typeof limit&&(Error.stackTraceLimit=limit);throw Object.assign(err,{code:"BABEL_VERSION_UNSUPPORTED",version,range})}(range,api.version)},targets:()=>()=>({}),assumption:()=>()=>{}};function copyApiObject(api){let proto=null;return"string"==typeof api.version&&/^7\./.test(api.version)&&(proto=Object.getPrototypeOf(api),!proto||has(proto,"version")&&has(proto,"transform")&&has(proto,"template")&&has(proto,"types")||(proto=null)),Object.assign({},proto,api)}function has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}},"./node_modules/@babel/helper-replace-supers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,Object.defineProperty(exports,"environmentVisitor",{enumerable:!0,get:function(){return _helperEnvironmentVisitor.default}}),Object.defineProperty(exports,"skipAllButComputedKey",{enumerable:!0,get:function(){return _helperEnvironmentVisitor.skipAllButComputedKey}});var _traverse=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_helperMemberExpressionToFunctions=__webpack_require__("./node_modules/@babel/helper-member-expression-to-functions/lib/index.js"),_helperOptimiseCallExpression=__webpack_require__("./node_modules/@babel/helper-optimise-call-expression/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/@babel/helper-environment-visitor/lib/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{assignmentExpression,booleanLiteral,callExpression,cloneNode,identifier,memberExpression,sequenceExpression,stringLiteral,thisExpression}=_t;function getPrototypeOfExpression(objectRef,isStatic,file,isPrivateMethod){objectRef=cloneNode(objectRef);const targetRef=isStatic||isPrivateMethod?objectRef:memberExpression(objectRef,identifier("prototype"));return callExpression(file.addHelper("getPrototypeOf"),[targetRef])}const visitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{Super(path,state){const{node,parentPath}=path;parentPath.isMemberExpression({object:node})&&state.handle(parentPath)}}]),unshadowSuperBindingVisitor=_traverse.default.visitors.merge([_helperEnvironmentVisitor.default,{Scopable(path,{refName}){const binding=path.scope.getOwnBinding(refName);binding&&binding.identifier.name===refName&&path.scope.rename(refName)}}]),specHandlers={memoise(superMember,count){const{scope,node}=superMember,{computed,property}=node;if(!computed)return;const memo=scope.maybeGenerateMemoised(property);memo&&this.memoiser.set(property,memo,count)},prop(superMember){const{computed,property}=superMember.node;return this.memoiser.has(property)?cloneNode(this.memoiser.get(property)):computed?cloneNode(property):stringLiteral(property.name)},get(superMember){return this._get(superMember,this._getThisRefs())},_get(superMember,thisRefs){const proto=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return callExpression(this.file.addHelper("get"),[thisRefs.memo?sequenceExpression([thisRefs.memo,proto]):proto,this.prop(superMember),thisRefs.this])},_getThisRefs(){if(!this.isDerivedConstructor)return{this:thisExpression()};const thisRef=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:assignmentExpression("=",thisRef,thisExpression()),this:cloneNode(thisRef)}},set(superMember,value){const thisRefs=this._getThisRefs(),proto=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return callExpression(this.file.addHelper("set"),[thisRefs.memo?sequenceExpression([thisRefs.memo,proto]):proto,this.prop(superMember),value,thisRefs.this,booleanLiteral(superMember.isInStrictMode())])},destructureSet(superMember){throw superMember.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(superMember,args){const thisRefs=this._getThisRefs();return(0,_helperOptimiseCallExpression.default)(this._get(superMember,thisRefs),cloneNode(thisRefs.this),args,!1)},optionalCall(superMember,args){const thisRefs=this._getThisRefs();return(0,_helperOptimiseCallExpression.default)(this._get(superMember,thisRefs),cloneNode(thisRefs.this),args,!0)}},looseHandlers=Object.assign({},specHandlers,{prop(superMember){const{property}=superMember.node;return this.memoiser.has(property)?cloneNode(this.memoiser.get(property)):cloneNode(property)},get(superMember){const{isStatic,getSuperRef}=this,{computed}=superMember.node,prop=this.prop(superMember);let object;var _getSuperRef,_getSuperRef2;isStatic?object=null!=(_getSuperRef=getSuperRef())?_getSuperRef:memberExpression(identifier("Function"),identifier("prototype")):object=memberExpression(null!=(_getSuperRef2=getSuperRef())?_getSuperRef2:identifier("Object"),identifier("prototype"));return memberExpression(object,prop,computed)},set(superMember,value){const{computed}=superMember.node,prop=this.prop(superMember);return assignmentExpression("=",memberExpression(thisExpression(),prop,computed),value)},destructureSet(superMember){const{computed}=superMember.node,prop=this.prop(superMember);return memberExpression(thisExpression(),prop,computed)},call(superMember,args){return(0,_helperOptimiseCallExpression.default)(this.get(superMember),thisExpression(),args,!1)},optionalCall(superMember,args){return(0,_helperOptimiseCallExpression.default)(this.get(superMember),thisExpression(),args,!0)}});exports.default=class{constructor(opts){var _opts$constantSuper;const path=opts.methodPath;this.methodPath=path,this.isDerivedConstructor=path.isClassMethod({kind:"constructor"})&&!!opts.superRef,this.isStatic=path.isObjectMethod()||path.node.static||(null==path.isStaticBlock?void 0:path.isStaticBlock()),this.isPrivateMethod=path.isPrivate()&&path.isMethod(),this.file=opts.file,this.constantSuper=null!=(_opts$constantSuper=opts.constantSuper)?_opts$constantSuper:opts.isLoose,this.opts=opts}getObjectRef(){return cloneNode(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?cloneNode(this.opts.superRef):this.opts.getSuperRef?cloneNode(this.opts.getSuperRef()):void 0}replace(){this.opts.refToPreserve&&this.methodPath.traverse(unshadowSuperBindingVisitor,{refName:this.opts.refToPreserve.name});const handler=this.constantSuper?looseHandlers:specHandlers;(0,_helperMemberExpressionToFunctions.default)(this.methodPath,visitor,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:handler.get},handler))}}},"./node_modules/@babel/helper-simple-access/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,bindingNames){path.traverse(simpleAssignmentVisitor,{scope:path.scope,bindingNames,seen:new WeakSet})};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{LOGICAL_OPERATORS,assignmentExpression,binaryExpression,cloneNode,identifier,logicalExpression,numericLiteral,sequenceExpression,unaryExpression}=_t;const simpleAssignmentVisitor={UpdateExpression:{exit(path){const{scope,bindingNames}=this,arg=path.get("argument");if(!arg.isIdentifier())return;const localName=arg.node.name;if(bindingNames.has(localName)&&scope.getBinding(localName)===path.scope.getBinding(localName))if(path.parentPath.isExpressionStatement()&&!path.isCompletionRecord()){const operator="++"==path.node.operator?"+=":"-=";path.replaceWith(assignmentExpression(operator,arg.node,numericLiteral(1)))}else if(path.node.prefix)path.replaceWith(assignmentExpression("=",identifier(localName),binaryExpression(path.node.operator[0],unaryExpression("+",arg.node),numericLiteral(1))));else{const old=path.scope.generateUidIdentifierBasedOnNode(arg.node,"old"),varName=old.name;path.scope.push({id:old});const binary=binaryExpression(path.node.operator[0],identifier(varName),numericLiteral(1));path.replaceWith(sequenceExpression([assignmentExpression("=",identifier(varName),unaryExpression("+",arg.node)),assignmentExpression("=",cloneNode(arg.node),binary),identifier(varName)]))}}},AssignmentExpression:{exit(path){const{scope,seen,bindingNames}=this;if("="===path.node.operator)return;if(seen.has(path.node))return;seen.add(path.node);const left=path.get("left");if(!left.isIdentifier())return;const localName=left.node.name;if(!bindingNames.has(localName))return;if(scope.getBinding(localName)!==path.scope.getBinding(localName))return;const operator=path.node.operator.slice(0,-1);LOGICAL_OPERATORS.includes(operator)?path.replaceWith(logicalExpression(operator,path.node.left,assignmentExpression("=",cloneNode(path.node.left),path.node.right))):(path.node.right=binaryExpression(operator,cloneNode(path.node.left),path.node.right),path.node.operator="=")}}}},"./node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isTransparentExprWrapper=isTransparentExprWrapper,exports.skipTransparentExprWrapperNodes=function(node){for(;isTransparentExprWrapper(node);)node=node.expression;return node},exports.skipTransparentExprWrappers=function(path){for(;isTransparentExprWrapper(path.node);)path=path.get("expression");return path};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isParenthesizedExpression,isTSAsExpression,isTSNonNullExpression,isTSTypeAssertion,isTypeCastExpression}=_t;function isTransparentExprWrapper(node){return isTSAsExpression(node)||isTSTypeAssertion(node)||isTSNonNullExpression(node)||isTypeCastExpression(node)||isParenthesizedExpression(node)}},"./node_modules/@babel/helper-split-export-declaration/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(exportDeclaration){if(!exportDeclaration.isExportDeclaration())throw new Error("Only export declarations can be split.");const isDefault=exportDeclaration.isExportDefaultDeclaration(),declaration=exportDeclaration.get("declaration"),isClassDeclaration=declaration.isClassDeclaration();if(isDefault){const standaloneDeclaration=declaration.isFunctionDeclaration()||isClassDeclaration,scope=declaration.isScope()?declaration.scope.parent:declaration.scope;let id=declaration.node.id,needBindingRegistration=!1;id||(needBindingRegistration=!0,id=scope.generateUidIdentifier("default"),(standaloneDeclaration||declaration.isFunctionExpression()||declaration.isClassExpression())&&(declaration.node.id=cloneNode(id)));const updatedDeclaration=standaloneDeclaration?declaration:variableDeclaration("var",[variableDeclarator(cloneNode(id),declaration.node)]),updatedExportDeclaration=exportNamedDeclaration(null,[exportSpecifier(cloneNode(id),identifier("default"))]);return exportDeclaration.insertAfter(updatedExportDeclaration),exportDeclaration.replaceWith(updatedDeclaration),needBindingRegistration&&scope.registerDeclaration(exportDeclaration),exportDeclaration}if(exportDeclaration.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const bindingIdentifiers=declaration.getOuterBindingIdentifiers(),specifiers=Object.keys(bindingIdentifiers).map((name=>exportSpecifier(identifier(name),identifier(name)))),aliasDeclar=exportNamedDeclaration(null,specifiers);return exportDeclaration.insertAfter(aliasDeclar),exportDeclaration.replaceWith(declaration.node),exportDeclaration};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{cloneNode,exportNamedDeclaration,exportSpecifier,identifier,variableDeclaration,variableDeclarator}=_t},"./node_modules/@babel/helper-validator-identifier/lib/identifier.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIdentifierChar=isIdentifierChar,exports.isIdentifierName=function(name){let isFirst=!0;for(let i=0;icode)return!1;if(pos+=set[i+1],pos>=code)return!0}return!1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}},"./node_modules/@babel/helper-validator-identifier/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isIdentifierChar",{enumerable:!0,get:function(){return _identifier.isIdentifierChar}}),Object.defineProperty(exports,"isIdentifierName",{enumerable:!0,get:function(){return _identifier.isIdentifierName}}),Object.defineProperty(exports,"isIdentifierStart",{enumerable:!0,get:function(){return _identifier.isIdentifierStart}}),Object.defineProperty(exports,"isKeyword",{enumerable:!0,get:function(){return _keyword.isKeyword}}),Object.defineProperty(exports,"isReservedWord",{enumerable:!0,get:function(){return _keyword.isReservedWord}}),Object.defineProperty(exports,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindOnlyReservedWord}}),Object.defineProperty(exports,"isStrictBindReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictBindReservedWord}}),Object.defineProperty(exports,"isStrictReservedWord",{enumerable:!0,get:function(){return _keyword.isStrictReservedWord}});var _identifier=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/identifier.js"),_keyword=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/keyword.js")},"./node_modules/@babel/helper-validator-identifier/lib/keyword.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isKeyword=function(word){return keywords.has(word)},exports.isReservedWord=isReservedWord,exports.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord,exports.isStrictBindReservedWord=function(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)},exports.isStrictReservedWord=isStrictReservedWord;const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}},"./node_modules/@babel/helpers/lib/helpers-generated.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _template=__webpack_require__("./node_modules/@babel/template/lib/index.js");function helper(minVersion,source){return Object.freeze({minVersion,ast:()=>_template.default.program.ast(source)})}var _default=Object.freeze({asyncIterator:helper("7.15.9",'export default function _asyncIterator(iterable){var method,async,sync,retry=2;for("undefined"!=typeof Symbol&&(async=Symbol.asyncIterator,sync=Symbol.iterator);retry--;){if(async&&null!=(method=iterable[async]))return method.call(iterable);if(sync&&null!=(method=iterable[sync]))return new AsyncFromSyncIterator(method.call(iterable));async="@@asyncIterator",sync="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(s){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var done=r.done;return Promise.resolve(r.value).then((function(value){return{value:value,done:done}}))}return AsyncFromSyncIterator=function(s){this.s=s,this.n=s.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(value){var ret=this.s.return;return void 0===ret?Promise.resolve({value:value,done:!0}):AsyncFromSyncIteratorContinuation(ret.apply(this.s,arguments))},throw:function(value){var thr=this.s.return;return void 0===thr?Promise.reject(value):AsyncFromSyncIteratorContinuation(thr.apply(this.s,arguments))}},new AsyncFromSyncIterator(s)}'),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;export default function _createRawReactElement(type,props,key,children){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var defaultProps=type&&type.defaultProps,childrenLength=arguments.length-3;if(props||0===childrenLength||(props={children:void 0}),1===childrenLength)props.children=children;else if(childrenLength>1){for(var childArray=new Array(childrenLength),i=0;i]+)>/g,(function(_,name){return"$"+groups[name]})))}if("function"==typeof substitution){var _this=this;return _super[Symbol.replace].call(this,str,(function(){var args=arguments;return"object"!=typeof args[args.length-1]&&(args=[].slice.call(args)).push(buildGroups(args,_this)),substitution.apply(this,args)}))}return _super[Symbol.replace].call(this,str,substitution)},_wrapRegExp.apply(this,arguments)}')});exports.default=_default},"./node_modules/@babel/helpers/lib/helpers.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _template=__webpack_require__("./node_modules/@babel/template/lib/index.js"),_helpersGenerated=__webpack_require__("./node_modules/@babel/helpers/lib/helpers-generated.js");const helpers=Object.assign({__proto__:null},_helpersGenerated.default);var _default=helpers;exports.default=_default;const helper=minVersion=>tpl=>({minVersion,ast:()=>_template.default.program.ast(tpl)});helpers.AwaitValue=helper("7.0.0-beta.0")` export default function _AwaitValue(value) { this.wrapped = value; } `,helpers.AsyncGenerator=helper("7.0.0-beta.0")` import AwaitValue from "AwaitValue"; export default function AsyncGenerator(gen) { var front, back; function send(key, arg) { return new Promise(function (resolve, reject) { var request = { key: key, arg: arg, resolve: resolve, reject: reject, next: null, }; if (back) { back = back.next = request; } else { front = back = request; resume(key, arg); } }); } function resume(key, arg) { try { var result = gen[key](arg) var value = result.value; var wrappedAwait = value instanceof AwaitValue; Promise.resolve(wrappedAwait ? value.wrapped : value).then( function (arg) { if (wrappedAwait) { resume(key === "return" ? "return" : "next", arg); return } settle(result.done ? "return" : "normal", arg); }, function (err) { resume("throw", err); }); } catch (err) { settle("throw", err); } } function settle(type, value) { switch (type) { case "return": front.resolve({ value: value, done: true }); break; case "throw": front.reject(value); break; default: front.resolve({ value: value, done: false }); break; } front = front.next; if (front) { resume(front.key, front.arg); } else { back = null; } } this._invoke = send; // Hide "return" method if generator return is not supported if (typeof gen.return !== "function") { this.return = undefined; } } AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () { return this; }; AsyncGenerator.prototype.next = function (arg) { return this._invoke("next", arg); }; AsyncGenerator.prototype.throw = function (arg) { return this._invoke("throw", arg); }; AsyncGenerator.prototype.return = function (arg) { return this._invoke("return", arg); }; `,helpers.wrapAsyncGenerator=helper("7.0.0-beta.0")` import AsyncGenerator from "AsyncGenerator"; export default function _wrapAsyncGenerator(fn) { return function () { return new AsyncGenerator(fn.apply(this, arguments)); }; } `,helpers.awaitAsyncGenerator=helper("7.0.0-beta.0")` import AwaitValue from "AwaitValue"; export default function _awaitAsyncGenerator(value) { return new AwaitValue(value); } `,helpers.asyncGeneratorDelegate=helper("7.0.0-beta.0")` export default function _asyncGeneratorDelegate(inner, awaitWrap) { var iter = {}, waiting = false; function pump(key, value) { waiting = true; value = new Promise(function (resolve) { resolve(inner[key](value)); }); return { done: false, value: awaitWrap(value) }; }; iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () { return this; }; iter.next = function (value) { if (waiting) { waiting = false; return value; } return pump("next", value); }; if (typeof inner.throw === "function") { iter.throw = function (value) { if (waiting) { waiting = false; throw value; } return pump("throw", value); }; } if (typeof inner.return === "function") { iter.return = function (value) { if (waiting) { waiting = false; return value; } return pump("return", value); }; } return iter; } `,helpers.asyncToGenerator=helper("7.0.0-beta.0")` function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } export default function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } `,helpers.classCallCheck=helper("7.0.0-beta.0")` export default function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } `,helpers.createClass=helper("7.0.0-beta.0")` function _defineProperties(target, props) { for (var i = 0; i < props.length; i ++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } export default function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } `,helpers.defineEnumerableProperties=helper("7.0.0-beta.0")` export default function _defineEnumerableProperties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, key, desc); } // Symbols are not enumerated over by for-in loops. If native // Symbols are available, fetch all of the descs object's own // symbol properties and define them on our target object too. if (Object.getOwnPropertySymbols) { var objectSymbols = Object.getOwnPropertySymbols(descs); for (var i = 0; i < objectSymbols.length; i++) { var sym = objectSymbols[i]; var desc = descs[sym]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, sym, desc); } } return obj; } `,helpers.defaults=helper("7.0.0-beta.0")` export default function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } `,helpers.defineProperty=helper("7.0.0-beta.0")` export default function _defineProperty(obj, key, value) { // Shortcircuit the slow defineProperty path when possible. // We are trying to avoid issues where setters defined on the // prototype cause side effects under the fast path of simple // assignment. By checking for existence of the property with // the in operator, we can optimize most of this overhead away. if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } `,helpers.extends=helper("7.0.0-beta.0")` export default function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } `,helpers.objectSpread=helper("7.0.0-beta.0")` import defineProperty from "defineProperty"; export default function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = (arguments[i] != null) ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function(key) { defineProperty(target, key, source[key]); }); } return target; } `,helpers.inherits=helper("7.0.0-beta.0")` import setPrototypeOf from "setPrototypeOf"; export default function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } // We can't use defineProperty to set the prototype in a single step because it // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) setPrototypeOf(subClass, superClass); } `,helpers.inheritsLoose=helper("7.0.0-beta.0")` import setPrototypeOf from "setPrototypeOf"; export default function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; setPrototypeOf(subClass, superClass); } `,helpers.getPrototypeOf=helper("7.0.0-beta.0")` export default function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } `,helpers.setPrototypeOf=helper("7.0.0-beta.0")` export default function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } `,helpers.isNativeReflectConstruct=helper("7.9.0")` export default function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; // core-js@3 if (Reflect.construct.sham) return false; // Proxy can't be polyfilled. Every browser implemented // proxies before or at the same time as Reflect.construct, // so if they support Proxy they also support Reflect.construct. if (typeof Proxy === "function") return true; // Since Reflect.construct can't be properly polyfilled, some // implementations (e.g. core-js@2) don't set the correct internal slots. // Those polyfills don't allow us to subclass built-ins, so we need to // use our fallback implementation. try { // If the internal slots aren't set, this throws an error similar to // TypeError: this is not a Boolean object. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); return true; } catch (e) { return false; } } `,helpers.construct=helper("7.0.0-beta.0")` import setPrototypeOf from "setPrototypeOf"; import isNativeReflectConstruct from "isNativeReflectConstruct"; export default function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { // NOTE: If Parent !== Class, the correct __proto__ is set *after* // calling the constructor. _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) setPrototypeOf(instance, Class.prototype); return instance; }; } // Avoid issues with Class being present but undefined when it wasn't // present in the original call. return _construct.apply(null, arguments); } `,helpers.isNativeFunction=helper("7.0.0-beta.0")` export default function _isNativeFunction(fn) { // Note: This function returns "true" for core-js functions. return Function.toString.call(fn).indexOf("[native code]") !== -1; } `,helpers.wrapNativeSuper=helper("7.0.0-beta.0")` import getPrototypeOf from "getPrototypeOf"; import setPrototypeOf from "setPrototypeOf"; import isNativeFunction from "isNativeFunction"; import construct from "construct"; export default function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return construct(Class, arguments, getPrototypeOf(this).constructor) } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true, } }); return setPrototypeOf(Wrapper, Class); } return _wrapNativeSuper(Class) } `,helpers.instanceof=helper("7.0.0-beta.0")` export default function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } } `,helpers.interopRequireDefault=helper("7.0.0-beta.0")` export default function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } `,helpers.interopRequireWildcard=helper("7.14.0")` function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } export default function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) { return { default: obj } } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } `,helpers.newArrowCheck=helper("7.0.0-beta.0")` export default function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } `,helpers.objectDestructuringEmpty=helper("7.0.0-beta.0")` export default function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } `,helpers.objectWithoutPropertiesLoose=helper("7.0.0-beta.0")` export default function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } `,helpers.objectWithoutProperties=helper("7.0.0-beta.0")` import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose"; export default function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } `,helpers.assertThisInitialized=helper("7.0.0-beta.0")` export default function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } `,helpers.possibleConstructorReturn=helper("7.0.0-beta.0")` import assertThisInitialized from "assertThisInitialized"; export default function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return assertThisInitialized(self); } `,helpers.createSuper=helper("7.9.0")` import getPrototypeOf from "getPrototypeOf"; import isNativeReflectConstruct from "isNativeReflectConstruct"; import possibleConstructorReturn from "possibleConstructorReturn"; export default function _createSuper(Derived) { var hasNativeReflectConstruct = isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { // NOTE: This doesn't work if this.__proto__.constructor has been modified. var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); } } `,helpers.superPropBase=helper("7.0.0-beta.0")` import getPrototypeOf from "getPrototypeOf"; export default function _superPropBase(object, property) { // Yes, this throws if object is null to being with, that's on purpose. while (!Object.prototype.hasOwnProperty.call(object, property)) { object = getPrototypeOf(object); if (object === null) break; } return object; } `,helpers.get=helper("7.0.0-beta.0")` import superPropBase from "superPropBase"; export default function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { // STEP 3. If receiver is not present, then set receiver to target. return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } `,helpers.set=helper("7.0.0-beta.0")` import superPropBase from "superPropBase"; import defineProperty from "defineProperty"; function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { // Both getter and non-writable fall into this. return false; } } // Without a super that defines the property, spec boils down to // "define on receiver" for some reason. desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { // Setter, getter, and non-writable fall into this. return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { // Avoid setters that may be defined on Sub's prototype, but not on // the instance. defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } export default function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new Error('failed to set property'); } return value; } `,helpers.taggedTemplateLiteral=helper("7.0.0-beta.0")` export default function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } `,helpers.taggedTemplateLiteralLoose=helper("7.0.0-beta.0")` export default function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; } `,helpers.readOnlyError=helper("7.0.0-beta.0")` export default function _readOnlyError(name) { throw new TypeError("\\"" + name + "\\" is read-only"); } `,helpers.writeOnlyError=helper("7.12.13")` export default function _writeOnlyError(name) { throw new TypeError("\\"" + name + "\\" is write-only"); } `,helpers.classNameTDZError=helper("7.0.0-beta.0")` export default function _classNameTDZError(name) { throw new Error("Class \\"" + name + "\\" cannot be referenced in computed property keys."); } `,helpers.temporalUndefined=helper("7.0.0-beta.0")` // This function isn't mean to be called, but to be used as a reference. // We can't use a normal object because it isn't hoisted. export default function _temporalUndefined() {} `,helpers.tdz=helper("7.5.5")` export default function _tdzError(name) { throw new ReferenceError(name + " is not defined - temporal dead zone"); } `,helpers.temporalRef=helper("7.0.0-beta.0")` import undef from "temporalUndefined"; import err from "tdz"; export default function _temporalRef(val, name) { return val === undef ? err(name) : val; } `,helpers.slicedToArray=helper("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArrayLimit from "iterableToArrayLimit"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _slicedToArray(arr, i) { return ( arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest() ); } `,helpers.slicedToArrayLoose=helper("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArrayLimitLoose from "iterableToArrayLimitLoose"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _slicedToArrayLoose(arr, i) { return ( arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest() ); } `,helpers.toArray=helper("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArray from "iterableToArray"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _toArray(arr) { return ( arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest() ); } `,helpers.toConsumableArray=helper("7.0.0-beta.0")` import arrayWithoutHoles from "arrayWithoutHoles"; import iterableToArray from "iterableToArray"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableSpread from "nonIterableSpread"; export default function _toConsumableArray(arr) { return ( arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread() ); } `,helpers.arrayWithoutHoles=helper("7.0.0-beta.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return arrayLikeToArray(arr); } `,helpers.arrayWithHoles=helper("7.0.0-beta.0")` export default function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } `,helpers.maybeArrayLike=helper("7.9.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _maybeArrayLike(next, arr, i) { if (arr && !Array.isArray(arr) && typeof arr.length === "number") { var len = arr.length; return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); } return next(arr, i); } `,helpers.iterableToArray=helper("7.0.0-beta.0")` export default function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } `,helpers.iterableToArrayLimit=helper("7.0.0-beta.0")` export default function _iterableToArrayLimit(arr, i) { // this is an expanded form of \`for...of\` that properly supports abrupt completions of // iterators etc. variable names have been minimised to reduce the size of this massive // helper. sometimes spec compliance is annoying :( // // _n = _iteratorNormalCompletion // _d = _didIteratorError // _e = _iteratorError // _i = _iterator // _s = _step var _i = arr == null ? null : (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } `,helpers.iterableToArrayLimitLoose=helper("7.0.0-beta.0")` export default function _iterableToArrayLimitLoose(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { _arr.push(_step.value); if (i && _arr.length === i) break; } return _arr; } `,helpers.unsupportedIterableToArray=helper("7.9.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); } `,helpers.arrayLikeToArray=helper("7.9.0")` export default function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } `,helpers.nonIterableSpread=helper("7.0.0-beta.0")` export default function _nonIterableSpread() { throw new TypeError( "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } `,helpers.nonIterableRest=helper("7.0.0-beta.0")` export default function _nonIterableRest() { throw new TypeError( "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } `,helpers.createForOfIteratorHelper=helper("7.9.0")` import unsupportedIterableToArray from "unsupportedIterableToArray"; // s: start (create the iterator) // n: next // e: error (called whenever something throws) // f: finish (always called at the end) export default function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { // Fallback for engines without symbol support if ( Array.isArray(o) || (it = unsupportedIterableToArray(o)) || (allowArrayLike && o && typeof o.length === "number") ) { if (it) o = it; var i = 0; var F = function(){}; return { s: F, n: function() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function(e) { throw e; }, f: F, }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function() { it = it.call(o); }, n: function() { var step = it.next(); normalCompletion = step.done; return step; }, e: function(e) { didErr = true; err = e; }, f: function() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } `,helpers.createForOfIteratorHelperLoose=helper("7.9.0")` import unsupportedIterableToArray from "unsupportedIterableToArray"; export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); // Fallback for engines without symbol support if ( Array.isArray(o) || (it = unsupportedIterableToArray(o)) || (allowArrayLike && o && typeof o.length === "number") ) { if (it) o = it; var i = 0; return function() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; } } throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } `,helpers.skipFirstGeneratorNext=helper("7.0.0-beta.0")` export default function _skipFirstGeneratorNext(fn) { return function () { var it = fn.apply(this, arguments); it.next(); return it; } } `,helpers.toPrimitive=helper("7.1.5")` export default function _toPrimitive( input, hint /*: "default" | "string" | "number" | void */ ) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } `,helpers.toPropertyKey=helper("7.1.5")` import toPrimitive from "toPrimitive"; export default function _toPropertyKey(arg) { var key = toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } `,helpers.initializerWarningHelper=helper("7.0.0-beta.0")` export default function _initializerWarningHelper(descriptor, context){ throw new Error( 'Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.' ); } `,helpers.initializerDefineProperty=helper("7.0.0-beta.0")` export default function _initializerDefineProperty(target, property, descriptor, context){ if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0, }); } `,helpers.applyDecoratedDescriptor=helper("7.0.0-beta.0")` export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){ var desc = {}; Object.keys(descriptor).forEach(function(key){ desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer){ desc.writable = true; } desc = decorators.slice().reverse().reduce(function(desc, decorator){ return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0){ desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0){ Object.defineProperty(target, property, desc); desc = null; } return desc; } `,helpers.classPrivateFieldLooseKey=helper("7.0.0-beta.0")` var id = 0; export default function _classPrivateFieldKey(name) { return "__private_" + (id++) + "_" + name; } `,helpers.classPrivateFieldLooseBase=helper("7.0.0-beta.0")` export default function _classPrivateFieldBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } `,helpers.classPrivateFieldGet=helper("7.0.0-beta.0")` import classApplyDescriptorGet from "classApplyDescriptorGet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldGet(receiver, privateMap) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); return classApplyDescriptorGet(receiver, descriptor); } `,helpers.classPrivateFieldSet=helper("7.0.0-beta.0")` import classApplyDescriptorSet from "classApplyDescriptorSet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); classApplyDescriptorSet(receiver, descriptor, value); return value; } `,helpers.classPrivateFieldDestructureSet=helper("7.4.4")` import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldDestructureSet(receiver, privateMap) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); return classApplyDescriptorDestructureSet(receiver, descriptor); } `,helpers.classExtractFieldDescriptor=helper("7.13.10")` export default function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); } `,helpers.classStaticPrivateFieldSpecGet=helper("7.0.2")` import classApplyDescriptorGet from "classApplyDescriptorGet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "get"); return classApplyDescriptorGet(receiver, descriptor); } `,helpers.classStaticPrivateFieldSpecSet=helper("7.0.2")` import classApplyDescriptorSet from "classApplyDescriptorSet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "set"); classApplyDescriptorSet(receiver, descriptor, value); return value; } `,helpers.classStaticPrivateMethodGet=helper("7.3.2")` import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { classCheckPrivateStaticAccess(receiver, classConstructor); return method; } `,helpers.classStaticPrivateMethodSet=helper("7.3.2")` export default function _classStaticPrivateMethodSet() { throw new TypeError("attempted to set read only static private field"); } `,helpers.classApplyDescriptorGet=helper("7.13.10")` export default function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; } `,helpers.classApplyDescriptorSet=helper("7.13.10")` export default function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { // This should only throw in strict mode, but class bodies are // always strict and private fields can only be used inside // class bodies. throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } } `,helpers.classApplyDescriptorDestructureSet=helper("7.13.10")` export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v) }, }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { // This should only throw in strict mode, but class bodies are // always strict and private fields can only be used inside // class bodies. throw new TypeError("attempted to set read only private field"); } return descriptor; } } `,helpers.classStaticPrivateFieldDestructureSet=helper("7.13.10")` import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "set"); return classApplyDescriptorDestructureSet(receiver, descriptor); } `,helpers.classCheckPrivateStaticAccess=helper("7.13.10")` export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { if (receiver !== classConstructor) { throw new TypeError("Private static access of wrong provenance"); } } `,helpers.classCheckPrivateStaticFieldDescriptor=helper("7.13.10")` export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { if (descriptor === undefined) { throw new TypeError("attempted to " + action + " private static field before its declaration"); } } `,helpers.decorate=helper("7.1.5")` import toArray from "toArray"; import toPropertyKey from "toPropertyKey"; // These comments are stripped by @babel/template /*:: type PropertyDescriptor = | { value: any, writable: boolean, configurable: boolean, enumerable: boolean, } | { get?: () => any, set?: (v: any) => void, configurable: boolean, enumerable: boolean, }; type FieldDescriptor ={ writable: boolean, configurable: boolean, enumerable: boolean, }; type Placement = "static" | "prototype" | "own"; type Key = string | symbol; // PrivateName is not supported yet. type ElementDescriptor = | { kind: "method", key: Key, placement: Placement, descriptor: PropertyDescriptor } | { kind: "field", key: Key, placement: Placement, descriptor: FieldDescriptor, initializer?: () => any, }; // This is exposed to the user code type ElementObjectInput = ElementDescriptor & { [@@toStringTag]?: "Descriptor" }; // This is exposed to the user code type ElementObjectOutput = ElementDescriptor & { [@@toStringTag]?: "Descriptor" extras?: ElementDescriptor[], finisher?: ClassFinisher, }; // This is exposed to the user code type ClassObject = { [@@toStringTag]?: "Descriptor", kind: "class", elements: ElementDescriptor[], }; type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput; type ClassDecorator = (descriptor: ClassObject) => ?ClassObject; type ClassFinisher = (cl: Class) => Class; // Only used by Babel in the transform output, not part of the spec. type ElementDefinition = | { kind: "method", value: any, key: Key, static?: boolean, decorators?: ElementDecorator[], } | { kind: "field", value: () => any, key: Key, static?: boolean, decorators?: ElementDecorator[], }; declare function ClassFactory(initialize: (instance: C) => void): { F: Class, d: ElementDefinition[] } */ /*:: // Various combinations with/without extras and with one or many finishers type ElementFinisherExtras = { element: ElementDescriptor, finisher?: ClassFinisher, extras?: ElementDescriptor[], }; type ElementFinishersExtras = { element: ElementDescriptor, finishers: ClassFinisher[], extras: ElementDescriptor[], }; type ElementsFinisher = { elements: ElementDescriptor[], finisher?: ClassFinisher, }; type ElementsFinishers = { elements: ElementDescriptor[], finishers: ClassFinisher[], }; */ /*:: type Placements = { static: Key[], prototype: Key[], own: Key[], }; */ // ClassDefinitionEvaluation (Steps 26-*) export default function _decorate( decorators /*: ClassDecorator[] */, factory /*: ClassFactory */, superClass /*: ?Class<*> */, mixins /*: ?Array */, ) /*: Class<*> */ { var api = _getDecoratorsApi(); if (mixins) { for (var i = 0; i < mixins.length; i++) { api = mixins[i](api); } } var r = factory(function initialize(O) { api.initializeInstanceElements(O, decorated.elements); }, superClass); var decorated = api.decorateClass( _coalesceClassElements(r.d.map(_createElementDescriptor)), decorators, ); api.initializeClassElements(r.F, decorated.elements); return api.runClassFinishers(r.F, decorated.finishers); } function _getDecoratorsApi() { _getDecoratorsApi = function() { return api; }; var api = { elementsDefinitionOrder: [["method"], ["field"]], // InitializeInstanceElements initializeInstanceElements: function( /*::*/ O /*: C */, elements /*: ElementDescriptor[] */, ) { ["method", "field"].forEach(function(kind) { elements.forEach(function(element /*: ElementDescriptor */) { if (element.kind === kind && element.placement === "own") { this.defineClassElement(O, element); } }, this); }, this); }, // InitializeClassElements initializeClassElements: function( /*::*/ F /*: Class */, elements /*: ElementDescriptor[] */, ) { var proto = F.prototype; ["method", "field"].forEach(function(kind) { elements.forEach(function(element /*: ElementDescriptor */) { var placement = element.placement; if ( element.kind === kind && (placement === "static" || placement === "prototype") ) { var receiver = placement === "static" ? F : proto; this.defineClassElement(receiver, element); } }, this); }, this); }, // DefineClassElement defineClassElement: function( /*::*/ receiver /*: C | Class */, element /*: ElementDescriptor */, ) { var descriptor /*: PropertyDescriptor */ = element.descriptor; if (element.kind === "field") { var initializer = element.initializer; descriptor = { enumerable: descriptor.enumerable, writable: descriptor.writable, configurable: descriptor.configurable, value: initializer === void 0 ? void 0 : initializer.call(receiver), }; } Object.defineProperty(receiver, element.key, descriptor); }, // DecorateClass decorateClass: function( elements /*: ElementDescriptor[] */, decorators /*: ClassDecorator[] */, ) /*: ElementsFinishers */ { var newElements /*: ElementDescriptor[] */ = []; var finishers /*: ClassFinisher[] */ = []; var placements /*: Placements */ = { static: [], prototype: [], own: [], }; elements.forEach(function(element /*: ElementDescriptor */) { this.addElementPlacement(element, placements); }, this); elements.forEach(function(element /*: ElementDescriptor */) { if (!_hasDecorators(element)) return newElements.push(element); var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement( element, placements, ); newElements.push(elementFinishersExtras.element); newElements.push.apply(newElements, elementFinishersExtras.extras); finishers.push.apply(finishers, elementFinishersExtras.finishers); }, this); if (!decorators) { return { elements: newElements, finishers: finishers }; } var result /*: ElementsFinishers */ = this.decorateConstructor( newElements, decorators, ); finishers.push.apply(finishers, result.finishers); result.finishers = finishers; return result; }, // AddElementPlacement addElementPlacement: function( element /*: ElementDescriptor */, placements /*: Placements */, silent /*: boolean */, ) { var keys = placements[element.placement]; if (!silent && keys.indexOf(element.key) !== -1) { throw new TypeError("Duplicated element (" + element.key + ")"); } keys.push(element.key); }, // DecorateElement decorateElement: function( element /*: ElementDescriptor */, placements /*: Placements */, ) /*: ElementFinishersExtras */ { var extras /*: ElementDescriptor[] */ = []; var finishers /*: ClassFinisher[] */ = []; for ( var decorators = element.decorators, i = decorators.length - 1; i >= 0; i-- ) { // (inlined) RemoveElementPlacement var keys = placements[element.placement]; keys.splice(keys.indexOf(element.key), 1); var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor( element, ); var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras( (0, decorators[i])(elementObject) /*: ElementObjectOutput */ || elementObject, ); element = elementFinisherExtras.element; this.addElementPlacement(element, placements); if (elementFinisherExtras.finisher) { finishers.push(elementFinisherExtras.finisher); } var newExtras /*: ElementDescriptor[] | void */ = elementFinisherExtras.extras; if (newExtras) { for (var j = 0; j < newExtras.length; j++) { this.addElementPlacement(newExtras[j], placements); } extras.push.apply(extras, newExtras); } } return { element: element, finishers: finishers, extras: extras }; }, // DecorateConstructor decorateConstructor: function( elements /*: ElementDescriptor[] */, decorators /*: ClassDecorator[] */, ) /*: ElementsFinishers */ { var finishers /*: ClassFinisher[] */ = []; for (var i = decorators.length - 1; i >= 0; i--) { var obj /*: ClassObject */ = this.fromClassDescriptor(elements); var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor( (0, decorators[i])(obj) /*: ClassObject */ || obj, ); if (elementsAndFinisher.finisher !== undefined) { finishers.push(elementsAndFinisher.finisher); } if (elementsAndFinisher.elements !== undefined) { elements = elementsAndFinisher.elements; for (var j = 0; j < elements.length - 1; j++) { for (var k = j + 1; k < elements.length; k++) { if ( elements[j].key === elements[k].key && elements[j].placement === elements[k].placement ) { throw new TypeError( "Duplicated element (" + elements[j].key + ")", ); } } } } } return { elements: elements, finishers: finishers }; }, // FromElementDescriptor fromElementDescriptor: function( element /*: ElementDescriptor */, ) /*: ElementObject */ { var obj /*: ElementObject */ = { kind: element.kind, key: element.key, placement: element.placement, descriptor: element.descriptor, }; var desc = { value: "Descriptor", configurable: true, }; Object.defineProperty(obj, Symbol.toStringTag, desc); if (element.kind === "field") obj.initializer = element.initializer; return obj; }, // ToElementDescriptors toElementDescriptors: function( elementObjects /*: ElementObject[] */, ) /*: ElementDescriptor[] */ { if (elementObjects === undefined) return; return toArray(elementObjects).map(function(elementObject) { var element = this.toElementDescriptor(elementObject); this.disallowProperty(elementObject, "finisher", "An element descriptor"); this.disallowProperty(elementObject, "extras", "An element descriptor"); return element; }, this); }, // ToElementDescriptor toElementDescriptor: function( elementObject /*: ElementObject */, ) /*: ElementDescriptor */ { var kind = String(elementObject.kind); if (kind !== "method" && kind !== "field") { throw new TypeError( 'An element descriptor\\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"', ); } var key = toPropertyKey(elementObject.key); var placement = String(elementObject.placement); if ( placement !== "static" && placement !== "prototype" && placement !== "own" ) { throw new TypeError( 'An element descriptor\\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"', ); } var descriptor /*: PropertyDescriptor */ = elementObject.descriptor; this.disallowProperty(elementObject, "elements", "An element descriptor"); var element /*: ElementDescriptor */ = { kind: kind, key: key, placement: placement, descriptor: Object.assign({}, descriptor), }; if (kind !== "field") { this.disallowProperty(elementObject, "initializer", "A method descriptor"); } else { this.disallowProperty( descriptor, "get", "The property descriptor of a field descriptor", ); this.disallowProperty( descriptor, "set", "The property descriptor of a field descriptor", ); this.disallowProperty( descriptor, "value", "The property descriptor of a field descriptor", ); element.initializer = elementObject.initializer; } return element; }, toElementFinisherExtras: function( elementObject /*: ElementObject */, ) /*: ElementFinisherExtras */ { var element /*: ElementDescriptor */ = this.toElementDescriptor( elementObject, ); var finisher /*: ClassFinisher */ = _optionalCallableProperty( elementObject, "finisher", ); var extras /*: ElementDescriptors[] */ = this.toElementDescriptors( elementObject.extras, ); return { element: element, finisher: finisher, extras: extras }; }, // FromClassDescriptor fromClassDescriptor: function( elements /*: ElementDescriptor[] */, ) /*: ClassObject */ { var obj = { kind: "class", elements: elements.map(this.fromElementDescriptor, this), }; var desc = { value: "Descriptor", configurable: true }; Object.defineProperty(obj, Symbol.toStringTag, desc); return obj; }, // ToClassDescriptor toClassDescriptor: function( obj /*: ClassObject */, ) /*: ElementsFinisher */ { var kind = String(obj.kind); if (kind !== "class") { throw new TypeError( 'A class descriptor\\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"', ); } this.disallowProperty(obj, "key", "A class descriptor"); this.disallowProperty(obj, "placement", "A class descriptor"); this.disallowProperty(obj, "descriptor", "A class descriptor"); this.disallowProperty(obj, "initializer", "A class descriptor"); this.disallowProperty(obj, "extras", "A class descriptor"); var finisher = _optionalCallableProperty(obj, "finisher"); var elements = this.toElementDescriptors(obj.elements); return { elements: elements, finisher: finisher }; }, // RunClassFinishers runClassFinishers: function( constructor /*: Class<*> */, finishers /*: ClassFinisher[] */, ) /*: Class<*> */ { for (var i = 0; i < finishers.length; i++) { var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor); if (newConstructor !== undefined) { // NOTE: This should check if IsConstructor(newConstructor) is false. if (typeof newConstructor !== "function") { throw new TypeError("Finishers must return a constructor."); } constructor = newConstructor; } } return constructor; }, disallowProperty: function(obj, name, objectType) { if (obj[name] !== undefined) { throw new TypeError(objectType + " can't have a ." + name + " property."); } } }; return api; } // ClassElementEvaluation function _createElementDescriptor( def /*: ElementDefinition */, ) /*: ElementDescriptor */ { var key = toPropertyKey(def.key); var descriptor /*: PropertyDescriptor */; if (def.kind === "method") { descriptor = { value: def.value, writable: true, configurable: true, enumerable: false, }; } else if (def.kind === "get") { descriptor = { get: def.value, configurable: true, enumerable: false }; } else if (def.kind === "set") { descriptor = { set: def.value, configurable: true, enumerable: false }; } else if (def.kind === "field") { descriptor = { configurable: true, writable: true, enumerable: true }; } var element /*: ElementDescriptor */ = { kind: def.kind === "field" ? "field" : "method", key: key, placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", descriptor: descriptor, }; if (def.decorators) element.decorators = def.decorators; if (def.kind === "field") element.initializer = def.value; return element; } // CoalesceGetterSetter function _coalesceGetterSetter( element /*: ElementDescriptor */, other /*: ElementDescriptor */, ) { if (element.descriptor.get !== undefined) { other.descriptor.get = element.descriptor.get; } else { other.descriptor.set = element.descriptor.set; } } // CoalesceClassElements function _coalesceClassElements( elements /*: ElementDescriptor[] */, ) /*: ElementDescriptor[] */ { var newElements /*: ElementDescriptor[] */ = []; var isSameElement = function( other /*: ElementDescriptor */, ) /*: boolean */ { return ( other.kind === "method" && other.key === element.key && other.placement === element.placement ); }; for (var i = 0; i < elements.length; i++) { var element /*: ElementDescriptor */ = elements[i]; var other /*: ElementDescriptor */; if ( element.kind === "method" && (other = newElements.find(isSameElement)) ) { if ( _isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor) ) { if (_hasDecorators(element) || _hasDecorators(other)) { throw new ReferenceError( "Duplicated methods (" + element.key + ") can't be decorated.", ); } other.descriptor = element.descriptor; } else { if (_hasDecorators(element)) { if (_hasDecorators(other)) { throw new ReferenceError( "Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").", ); } other.decorators = element.decorators; } _coalesceGetterSetter(element, other); } } else { newElements.push(element); } } return newElements; } function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ { return element.decorators && element.decorators.length; } function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ { return ( desc !== undefined && !(desc.value === undefined && desc.writable === undefined) ); } function _optionalCallableProperty /*::*/( obj /*: T */, name /*: $Keys */, ) /*: ?Function */ { var value = obj[name]; if (value !== undefined && typeof value !== "function") { throw new TypeError("Expected '" + name + "' to be a function"); } return value; } `,helpers.classPrivateMethodGet=helper("7.1.6")` export default function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; } `,helpers.checkPrivateRedeclaration=helper("7.14.1")` export default function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } `,helpers.classPrivateFieldInitSpec=helper("7.14.1")` import checkPrivateRedeclaration from "checkPrivateRedeclaration"; export default function _classPrivateFieldInitSpec(obj, privateMap, value) { checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } `,helpers.classPrivateMethodInitSpec=helper("7.14.1")` import checkPrivateRedeclaration from "checkPrivateRedeclaration"; export default function _classPrivateMethodInitSpec(obj, privateSet) { checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); } `,helpers.classPrivateMethodSet=helper("7.1.6")` export default function _classPrivateMethodSet() { throw new TypeError("attempted to reassign private method"); } `},"./node_modules/@babel/helpers/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.ensure=function(name,newFileClass){fileClass||(fileClass=newFileClass);loadHelper(name)},exports.get=get,exports.getDependencies=function(name){return Array.from(loadHelper(name).dependencies.values())},exports.list=void 0,exports.minVersion=function(name){return loadHelper(name).minVersion()};var _traverse=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_helpers=__webpack_require__("./node_modules/@babel/helpers/lib/helpers.js");const{assignmentExpression,cloneNode,expressionStatement,file:t_file,identifier,variableDeclaration,variableDeclarator}=_t;function makePath(path){const parts=[];for(;path.parentPath;path=path.parentPath)parts.push(path.key),path.inList&&parts.push(path.listKey);return parts.reverse().join(".")}let fileClass;const helperData=Object.create(null);function loadHelper(name){if(!helperData[name]){const helper=_helpers.default[name];if(!helper)throw Object.assign(new ReferenceError(`Unknown helper ${name}`),{code:"BABEL_HELPER_UNKNOWN",helper:name});const fn=()=>{const file={ast:t_file(helper.ast())};return fileClass?new fileClass({filename:`babel-helper://${name}`},file):file},metadata=function(file){const globals=new Set,localBindingNames=new Set,dependencies=new Map;let exportName,exportPath;const exportBindingAssignments=[],importPaths=[],importBindingsReferences=[],dependencyVisitor={ImportDeclaration(child){const name=child.node.source.value;if(!_helpers.default[name])throw child.buildCodeFrameError(`Unknown helper ${name}`);if(1!==child.get("specifiers").length||!child.get("specifiers.0").isImportDefaultSpecifier())throw child.buildCodeFrameError("Helpers can only import a default value");const bindingIdentifier=child.node.specifiers[0].local;dependencies.set(bindingIdentifier,name),importPaths.push(makePath(child))},ExportDefaultDeclaration(child){const decl=child.get("declaration");if(decl.isFunctionDeclaration()){if(!decl.node.id)throw decl.buildCodeFrameError("Helpers should give names to their exported func declaration");exportName=decl.node.id.name}exportPath=makePath(child)},ExportAllDeclaration(child){throw child.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(child){throw child.buildCodeFrameError("Helpers can only export default")},Statement(child){child.isModuleDeclaration()||child.skip()}},referenceVisitor={Program(path){const bindings=path.scope.getAllBindings();Object.keys(bindings).forEach((name=>{name!==exportName&&(dependencies.has(bindings[name].identifier)||localBindingNames.add(name))}))},ReferencedIdentifier(child){const name=child.node.name,binding=child.scope.getBinding(name);binding?dependencies.has(binding.identifier)&&importBindingsReferences.push(makePath(child)):globals.add(name)},AssignmentExpression(child){const left=child.get("left");if(!(exportName in left.getBindingIdentifiers()))return;if(!left.isIdentifier())throw left.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");const binding=child.scope.getBinding(exportName);null!=binding&&binding.scope.path.isProgram()&&exportBindingAssignments.push(makePath(child))}};if((0,_traverse.default)(file.ast,dependencyVisitor,file.scope),(0,_traverse.default)(file.ast,referenceVisitor,file.scope),!exportPath)throw new Error("Helpers must default-export something.");return exportBindingAssignments.reverse(),{globals:Array.from(globals),localBindingNames:Array.from(localBindingNames),dependencies,exportBindingAssignments,exportPath,exportName,importBindingsReferences,importPaths}}(fn());helperData[name]={build(getDependency,id,localBindings){const file=fn();return function(file,metadata,id,localBindings,getDependency){if(localBindings&&!id)throw new Error("Unexpected local bindings for module-based helpers.");if(!id)return;const{localBindingNames,dependencies,exportBindingAssignments,exportPath,exportName,importBindingsReferences,importPaths}=metadata,dependenciesRefs={};dependencies.forEach(((name,id)=>{dependenciesRefs[id.name]="function"==typeof getDependency&&getDependency(name)||id}));const toRename={},bindings=new Set(localBindings||[]);localBindingNames.forEach((name=>{let newName=name;for(;bindings.has(newName);)newName="_"+newName;newName!==name&&(toRename[name]=newName)})),"Identifier"===id.type&&exportName!==id.name&&(toRename[exportName]=id.name);const visitor={Program(path){const exp=path.get(exportPath),imps=importPaths.map((p=>path.get(p))),impsBindingRefs=importBindingsReferences.map((p=>path.get(p))),decl=exp.get("declaration");if("Identifier"===id.type)decl.isFunctionDeclaration()?exp.replaceWith(decl):exp.replaceWith(variableDeclaration("var",[variableDeclarator(id,decl.node)]));else{if("MemberExpression"!==id.type)throw new Error("Unexpected helper format.");decl.isFunctionDeclaration()?(exportBindingAssignments.forEach((assignPath=>{const assign=path.get(assignPath);assign.replaceWith(assignmentExpression("=",id,assign.node))})),exp.replaceWith(decl),path.pushContainer("body",expressionStatement(assignmentExpression("=",id,identifier(exportName))))):exp.replaceWith(expressionStatement(assignmentExpression("=",id,decl.node)))}Object.keys(toRename).forEach((name=>{path.scope.rename(name,toRename[name])}));for(const path of imps)path.remove();for(const path of impsBindingRefs){const node=cloneNode(dependenciesRefs[path.node.name]);path.replaceWith(node)}path.stop()}};(0,_traverse.default)(file.ast,visitor,file.scope)}(file,metadata,id,localBindings,getDependency),{nodes:file.ast.program.body,globals:metadata.globals}},minVersion:()=>helper.minVersion,dependencies:metadata.dependencies}}return helperData[name]}function get(name,getDependency,id,localBindings){return loadHelper(name).build(getDependency,id,localBindings)}const list=Object.keys(_helpers.default).map((name=>name.replace(/^_/,"")));exports.list=list;var _default=get;exports.default=_default},"./node_modules/@babel/parser/lib/index.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class Position{constructor(line,col,index){this.line=void 0,this.column=void 0,this.index=void 0,this.line=line,this.column=col,indexes.set(this,index)}}class SourceLocation{constructor(start,end){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=start,this.end=end}}const indexes=new WeakMap;function createPositionWithColumnOffset(position,columnOffset){const{line,column}=position;return new Position(line,column+columnOffset,indexes.get(position)+columnOffset)}function setTrailingComments(node,comments){void 0===node.trailingComments?node.trailingComments=comments:node.trailingComments.unshift(...comments)}function setInnerComments(node,comments){void 0===node.innerComments?node.innerComments=comments:node.innerComments.unshift(...comments)}function adjustInnerComments(node,elements,commentWS){let lastElement=null,i=elements.length;for(;null===lastElement&&i>0;)lastElement=elements[--i];null===lastElement||lastElement.start>commentWS.start?setInnerComments(node,commentWS.comments):setTrailingComments(lastElement,commentWS.comments)}const ErrorCodes=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),ErrorMessages=makeErrorTemplates({AccessorIsGenerator:"A %0ter cannot be a generator.",ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 is not defined.",InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' is not defined.",MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PipeBodyIsTighter:"Unexpected %0 after pipeline body; any %0 expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:'Invalid topic token %0. In order to use %0 as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "%0" }.',PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:"Hack-style pipe body cannot be an unparenthesized %0 expression; please wrap it in parentheses.",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:"Unexpected keyword '%0'.",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1.",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ErrorCodes.SyntaxError),SourceTypeModuleErrorMessages=makeErrorTemplates({ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'"},ErrorCodes.SourceTypeModuleError);function keepReasonCodeCompat(reasonCode,syntaxPlugin){return"flow"===syntaxPlugin&&"PatternIsOptional"===reasonCode?"OptionalBindingPattern":reasonCode}function makeErrorTemplates(messages,code,syntaxPlugin){const templates={};return Object.keys(messages).forEach((reasonCode=>{templates[reasonCode]=Object.freeze({code,reasonCode:keepReasonCodeCompat(reasonCode,syntaxPlugin),template:messages[reasonCode]})})),Object.freeze(templates)}class TokContext{constructor(token,preserveSpace){this.token=void 0,this.preserveSpace=void 0,this.token=token,this.preserveSpace=!!preserveSpace}}const types={brace:new TokContext("{"),j_oTag:new TokContext("...",!0)};types.template=new TokContext("`",!0);class ExportedTokenType{constructor(label,conf={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.rightAssociative=!!conf.rightAssociative,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=null!=conf.binop?conf.binop:null,this.updateContext=null}}const keywords$1=new Map;function createKeyword(name,options={}){options.keyword=name;const token=createToken(name,options);return keywords$1.set(name,token),token}function createBinop(name,binop){return createToken(name,{beforeExpr:true,binop})}let tokenTypeCounter=-1;const tokenTypes=[],tokenLabels=[],tokenBinops=[],tokenBeforeExprs=[],tokenStartsExprs=[],tokenPrefixes=[];function createToken(name,options={}){var _options$binop,_options$beforeExpr,_options$startsExpr,_options$prefix;return++tokenTypeCounter,tokenLabels.push(name),tokenBinops.push(null!=(_options$binop=options.binop)?_options$binop:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr=options.beforeExpr)&&_options$beforeExpr),tokenStartsExprs.push(null!=(_options$startsExpr=options.startsExpr)&&_options$startsExpr),tokenPrefixes.push(null!=(_options$prefix=options.prefix)&&_options$prefix),tokenTypes.push(new ExportedTokenType(name,options)),tokenTypeCounter}function createKeywordLike(name,options={}){var _options$binop2,_options$beforeExpr2,_options$startsExpr2,_options$prefix2;return++tokenTypeCounter,keywords$1.set(name,tokenTypeCounter),tokenLabels.push(name),tokenBinops.push(null!=(_options$binop2=options.binop)?_options$binop2:-1),tokenBeforeExprs.push(null!=(_options$beforeExpr2=options.beforeExpr)&&_options$beforeExpr2),tokenStartsExprs.push(null!=(_options$startsExpr2=options.startsExpr)&&_options$startsExpr2),tokenPrefixes.push(null!=(_options$prefix2=options.prefix)&&_options$prefix2),tokenTypes.push(new ExportedTokenType("name",options)),tokenTypeCounter}const tt={bracketL:createToken("[",{beforeExpr:true,startsExpr:true}),bracketHashL:createToken("#[",{beforeExpr:true,startsExpr:true}),bracketBarL:createToken("[|",{beforeExpr:true,startsExpr:true}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:true,startsExpr:true}),braceBarL:createToken("{|",{beforeExpr:true,startsExpr:true}),braceHashL:createToken("#{",{beforeExpr:true,startsExpr:true}),braceR:createToken("}",{beforeExpr:true}),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:true,startsExpr:true}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:true}),semi:createToken(";",{beforeExpr:true}),colon:createToken(":",{beforeExpr:true}),doubleColon:createToken("::",{beforeExpr:true}),dot:createToken("."),question:createToken("?",{beforeExpr:true}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:true}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:true}),backQuote:createToken("`",{startsExpr:true}),dollarBraceL:createToken("${",{beforeExpr:true,startsExpr:true}),templateTail:createToken("...`",{startsExpr:true}),templateNonTail:createToken("...${",{beforeExpr:true,startsExpr:true}),at:createToken("@"),hash:createToken("#",{startsExpr:true}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:true,isAssign:true}),assign:createToken("_=",{beforeExpr:true,isAssign:true}),slashAssign:createToken("_=",{beforeExpr:true,isAssign:true}),xorAssign:createToken("_=",{beforeExpr:true,isAssign:true}),moduloAssign:createToken("_=",{beforeExpr:true,isAssign:true}),incDec:createToken("++/--",{prefix:true,postfix:!0,startsExpr:true}),bang:createToken("!",{beforeExpr:true,prefix:true,startsExpr:true}),tilde:createToken("~",{beforeExpr:true,prefix:true,startsExpr:true}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("/<=/>=",7),gt:createBinop("/<=/>=",7),relational:createBinop("/<=/>=",7),bitShift:createBinop("<>/>>>",8),plusMin:createToken("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:createToken("%",{binop:10,startsExpr:true}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:true,binop:11,rightAssociative:!0}),_in:createKeyword("in",{beforeExpr:true,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:true,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:true}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:true}),_else:createKeyword("else",{beforeExpr:true}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:true}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:true}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:true,prefix:true,startsExpr:true}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:true,startsExpr:true}),_this:createKeyword("this",{startsExpr:true}),_super:createKeyword("super",{startsExpr:true}),_class:createKeyword("class",{startsExpr:true}),_extends:createKeyword("extends",{beforeExpr:true}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:true}),_null:createKeyword("null",{startsExpr:true}),_true:createKeyword("true",{startsExpr:true}),_false:createKeyword("false",{startsExpr:true}),_typeof:createKeyword("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:createKeyword("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:createKeyword("delete",{beforeExpr:true,prefix:true,startsExpr:true}),_do:createKeyword("do",{isLoop:true,beforeExpr:true}),_for:createKeyword("for",{isLoop:true}),_while:createKeyword("while",{isLoop:true}),_as:createKeywordLike("as",{startsExpr:true}),_assert:createKeywordLike("assert",{startsExpr:true}),_async:createKeywordLike("async",{startsExpr:true}),_await:createKeywordLike("await",{startsExpr:true}),_from:createKeywordLike("from",{startsExpr:true}),_get:createKeywordLike("get",{startsExpr:true}),_let:createKeywordLike("let",{startsExpr:true}),_meta:createKeywordLike("meta",{startsExpr:true}),_of:createKeywordLike("of",{startsExpr:true}),_sent:createKeywordLike("sent",{startsExpr:true}),_set:createKeywordLike("set",{startsExpr:true}),_static:createKeywordLike("static",{startsExpr:true}),_yield:createKeywordLike("yield",{startsExpr:true}),_asserts:createKeywordLike("asserts",{startsExpr:true}),_checks:createKeywordLike("checks",{startsExpr:true}),_exports:createKeywordLike("exports",{startsExpr:true}),_global:createKeywordLike("global",{startsExpr:true}),_implements:createKeywordLike("implements",{startsExpr:true}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:true}),_infer:createKeywordLike("infer",{startsExpr:true}),_is:createKeywordLike("is",{startsExpr:true}),_mixins:createKeywordLike("mixins",{startsExpr:true}),_proto:createKeywordLike("proto",{startsExpr:true}),_require:createKeywordLike("require",{startsExpr:true}),_keyof:createKeywordLike("keyof",{startsExpr:true}),_readonly:createKeywordLike("readonly",{startsExpr:true}),_unique:createKeywordLike("unique",{startsExpr:true}),_abstract:createKeywordLike("abstract",{startsExpr:true}),_declare:createKeywordLike("declare",{startsExpr:true}),_enum:createKeywordLike("enum",{startsExpr:true}),_module:createKeywordLike("module",{startsExpr:true}),_namespace:createKeywordLike("namespace",{startsExpr:true}),_interface:createKeywordLike("interface",{startsExpr:true}),_type:createKeywordLike("type",{startsExpr:true}),_opaque:createKeywordLike("opaque",{startsExpr:true}),name:createToken("name",{startsExpr:true}),string:createToken("string",{startsExpr:true}),num:createToken("num",{startsExpr:true}),bigint:createToken("bigint",{startsExpr:true}),decimal:createToken("decimal",{startsExpr:true}),regexp:createToken("regexp",{startsExpr:true}),privateName:createToken("#name",{startsExpr:true}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:!0}),jsxTagStart:createToken("jsxTagStart",{startsExpr:!0}),jsxTagEnd:createToken("jsxTagEnd"),placeholder:createToken("%%",{startsExpr:!0})};function tokenIsIdentifier(token){return token>=89&&token<=124}function tokenIsKeywordOrIdentifier(token){return token>=54&&token<=124}function tokenIsLiteralPropertyName(token){return token>=54&&token<=128}function tokenCanStartExpression(token){return tokenStartsExprs[token]}function tokenIsFlowInterfaceOrTypeOrOpaque(token){return token>=121&&token<=123}function tokenIsKeyword(token){return token>=54&&token<=88}function tokenLabelName(token){return tokenLabels[token]}function tokenOperatorPrecedence(token){return tokenBinops[token]}function tokenIsTemplate(token){return token>=24&&token<=25}function getExportedToken(token){return tokenTypes[token]}tokenTypes[8].updateContext=context=>{context.pop()},tokenTypes[5].updateContext=tokenTypes[7].updateContext=tokenTypes[23].updateContext=context=>{context.push(types.brace)},tokenTypes[22].updateContext=context=>{context[context.length-1]===types.template?context.pop():context.push(types.template)},tokenTypes[134].updateContext=context=>{context.push(types.j_expr,types.j_oTag)};let nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;const astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,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,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,46,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,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,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,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){let pos=65536;for(let i=0,length=set.length;icode)return!1;if(pos+=set[i+1],pos>=code)return!0}return!1}function isIdentifierStart(code){return code<65?36===code:code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code){return code<48?36===code:code<58||!(code<65)&&(code<=90||(code<97?95===code:code<=122||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes))))}const reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"],reservedWords_strictBind=["eval","arguments"],keywords=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),reservedWordsStrictSet=new Set(reservedWords_strict),reservedWordsStrictBindSet=new Set(reservedWords_strictBind);function isReservedWord(word,inModule){return inModule&&"await"===word||"enum"===word}function isStrictReservedWord(word,inModule){return isReservedWord(word,inModule)||reservedWordsStrictSet.has(word)}function isStrictBindOnlyReservedWord(word){return reservedWordsStrictBindSet.has(word)}function isStrictBindReservedWord(word,inModule){return isStrictReservedWord(word,inModule)||isStrictBindOnlyReservedWord(word)}const reservedWordLikeSet=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class Scope{constructor(flags){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=flags}}class ScopeHandler{constructor(raise,inModule){this.scopeStack=[],this.undefinedExports=new Map,this.raise=raise,this.inModule=inModule}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const flags=this.currentThisScopeFlags();return(64&flags)>0&&0==(2&flags)}get inStaticBlock(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(128&flags)return!0;if(323&flags)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(flags){return new Scope(flags)}enter(flags){this.scopeStack.push(this.createScope(flags))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(scope){return!!(2&scope.flags||!this.inModule&&1&scope.flags)}declareName(name,bindingType,loc){let scope=this.currentScope();if(8&bindingType||16&bindingType)this.checkRedeclarationInScope(scope,name,bindingType,loc),16&bindingType?scope.functions.add(name):scope.lexical.add(name),8&bindingType&&this.maybeExportDefined(scope,name);else if(4&bindingType)for(let i=this.scopeStack.length-1;i>=0&&(scope=this.scopeStack[i],this.checkRedeclarationInScope(scope,name,bindingType,loc),scope.var.add(name),this.maybeExportDefined(scope,name),!(259&scope.flags));--i);this.inModule&&1&scope.flags&&this.undefinedExports.delete(name)}maybeExportDefined(scope,name){this.inModule&&1&scope.flags&&this.undefinedExports.delete(name)}checkRedeclarationInScope(scope,name,bindingType,loc){this.isRedeclaredInScope(scope,name,bindingType)&&this.raise(ErrorMessages.VarRedeclaration,{at:loc},name)}isRedeclaredInScope(scope,name,bindingType){return!!(1&bindingType)&&(8&bindingType?scope.lexical.has(name)||scope.functions.has(name)||scope.var.has(name):16&bindingType?scope.lexical.has(name)||!this.treatFunctionsAsVarInScope(scope)&&scope.var.has(name):scope.lexical.has(name)&&!(8&scope.flags&&scope.lexical.values().next().value===name)||!this.treatFunctionsAsVarInScope(scope)&&scope.functions.has(name))}checkLocalExport(id){const{name}=id,topLevelScope=this.scopeStack[0];topLevelScope.lexical.has(name)||topLevelScope.var.has(name)||topLevelScope.functions.has(name)||this.undefinedExports.set(name,id.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(259&flags)return flags}}currentThisScopeFlags(){for(let i=this.scopeStack.length-1;;i--){const{flags}=this.scopeStack[i];if(323&flags&&!(4&flags))return flags}}}class FlowScope extends Scope{constructor(...args){super(...args),this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(flags){return new FlowScope(flags)}declareName(name,bindingType,loc){const scope=this.currentScope();if(2048&bindingType)return this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name),void scope.declareFunctions.add(name);super.declareName(...arguments)}isRedeclaredInScope(scope,name,bindingType){return!!super.isRedeclaredInScope(...arguments)||!!(2048&bindingType)&&(!scope.declareFunctions.has(name)&&(scope.lexical.has(name)||scope.functions.has(name)))}checkLocalExport(id){this.scopeStack[0].declareFunctions.has(id.name)||super.checkLocalExport(id)}}const lineBreak=/\r\n?|[\n\u2028\u2029]/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code){switch(code){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,skipWhiteSpaceToLineBreak=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function isWhitespace(code){switch(code){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 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class State{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=131,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[types.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0}init({strictMode,sourceType,startLine,startColumn}){this.strict=!1!==strictMode&&(!0===strictMode||"module"===sourceType),this.curLine=startLine,this.lineStart=-startColumn,this.startLoc=this.endLoc=new Position(startLine,startColumn,0)}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos)}clone(skipArrays){const state=new State,keys=Object.keys(this);for(let i=0,length=keys.length;i=48&&code<=57};const VALID_REGEX_FLAGS=new Set([103,109,115,105,121,117,100]),forbiddenNumericSeparatorSiblings={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},allowedNumericSeparatorSiblings={bin:[48,49]};allowedNumericSeparatorSiblings.oct=[...allowedNumericSeparatorSiblings.bin,50,51,52,53,54,55],allowedNumericSeparatorSiblings.dec=[...allowedNumericSeparatorSiblings.oct,56,57],allowedNumericSeparatorSiblings.hex=[...allowedNumericSeparatorSiblings.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Token{constructor(state){this.type=state.type,this.value=state.value,this.start=state.start,this.end=state.end,this.loc=new SourceLocation(state.startLoc,state.endLoc)}}class ClassScope{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(raise){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=raise}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const oldClassScope=this.stack.pop(),current=this.current();for(const[name,loc]of Array.from(oldClassScope.undefinedPrivateNames))current?current.undefinedPrivateNames.has(name)||current.undefinedPrivateNames.set(name,loc):this.raise(ErrorMessages.InvalidPrivateFieldResolution,{at:loc},name)}declarePrivateName(name,elementType,loc){const{privateNames,loneAccessors,undefinedPrivateNames}=this.current();let redefined=privateNames.has(name);if(3&elementType){const accessor=redefined&&loneAccessors.get(name);if(accessor){const oldStatic=4&accessor,newStatic=4&elementType;redefined=(3&accessor)===(3&elementType)||oldStatic!==newStatic,redefined||loneAccessors.delete(name)}else redefined||loneAccessors.set(name,elementType)}redefined&&this.raise(ErrorMessages.PrivateNameRedeclaration,{at:loc},name),privateNames.add(name),undefinedPrivateNames.delete(name)}usePrivateName(name,loc){let classScope;for(classScope of this.stack)if(classScope.privateNames.has(name))return;classScope?classScope.undefinedPrivateNames.set(name,loc):this.raise(ErrorMessages.InvalidPrivateFieldResolution,{at:loc},name)}}class ExpressionScope{constructor(type=0){this.type=void 0,this.type=type}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ArrowHeadParsingScope extends ExpressionScope{constructor(type){super(type),this.errors=new Map}recordDeclarationError(message,loc){this.errors.set(indexes.get(loc),{message,loc})}clearDeclarationError(loc){this.errors.delete(indexes.get(loc))}iterateErrors(iterator){this.errors.forEach(iterator)}}class ExpressionScopeHandler{constructor(raise){this.stack=[new ExpressionScope],this.raise=raise}enter(scope){this.stack.push(scope)}exit(){this.stack.pop()}recordParameterInitializerError(loc,template){const{stack}=this;let i=stack.length-1,scope=stack[i];for(;!scope.isCertainlyParameterDeclaration();){if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(template,loc),scope=stack[--i]}this.raise(template,{at:loc})}recordParenthesizedIdentifierError(template,loc){const{stack}=this,scope=stack[stack.length-1];if(scope.isCertainlyParameterDeclaration())this.raise(template,{at:loc});else{if(!scope.canBeArrowParameterDeclaration())return;scope.recordDeclarationError(template,loc)}}recordAsyncArrowParametersError(template,loc){const{stack}=this;let i=stack.length-1,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)2===scope.type&&scope.recordDeclarationError(template,loc),scope=stack[--i]}validateAsPattern(){const{stack}=this,currentScope=stack[stack.length-1];currentScope.canBeArrowParameterDeclaration()&¤tScope.iterateErrors((({message,loc})=>{this.raise(message,{at:loc});let i=stack.length-2,scope=stack[i];for(;scope.canBeArrowParameterDeclaration();)scope.clearDeclarationError(loc),scope=stack[--i]}))}}function newExpressionScope(){return new ExpressionScope}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(flags){this.stacks.push(flags)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function functionFlags(isAsync,isGenerator){return(isAsync?2:0)|(isGenerator?1:0)}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.optionalParametersLoc=null}}class Node{constructor(parser,pos,loc){this.type="",this.start=pos,this.end=0,this.loc=new SourceLocation(loc),null!=parser&&parser.options.ranges&&(this.range=[pos,0]),null!=parser&&parser.filename&&(this.loc.filename=parser.filename)}}const NodePrototype=Node.prototype;function cloneIdentifier(node){const{type,start,end,loc,range,extra,name}=node,cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,cloned.extra=extra,cloned.name=name,"Placeholder"===type&&(cloned.expectedNode=node.expectedNode),cloned}function cloneStringLiteral(node){const{type,start,end,loc,range,extra}=node;if("Placeholder"===type)return function(node){return cloneIdentifier(node)}(node);const cloned=Object.create(NodePrototype);return cloned.type=type,cloned.start=start,cloned.end=end,cloned.loc=loc,cloned.range=range,void 0!==node.raw?cloned.raw=node.raw:cloned.extra=extra,cloned.value=node.value,cloned}NodePrototype.__clone=function(){const newNode=new Node,keys=Object.keys(this);for(let i=0,length=keys.length;i async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},ErrorCodes.SyntaxError,"flow");function hasTypeImportKind(node){return"type"===node.importKind||"typeof"===node.importKind}function isMaybeDefaultImport(type){return tokenIsKeywordOrIdentifier(type)&&93!==type}const exportSuggestions={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const FLOW_PRAGMA_REGEX=/\*?\s*@((?:no)?flow)\b/;const entities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},HEX_NUMBER=/^[\da-fA-F]+$/,DECIMAL_NUMBER=/^\d+$/,JsxErrors=makeErrorTemplates({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"},ErrorCodes.SyntaxError,"jsx");function isFragment(object){return!!object&&("JSXOpeningFragment"===object.type||"JSXClosingFragment"===object.type)}function getQualifiedJSXName(object){if("JSXIdentifier"===object.type)return object.name;if("JSXNamespacedName"===object.type)return object.namespace.name+":"+object.name.name;if("JSXMemberExpression"===object.type)return getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property);throw new Error("Node had unexpected type: "+object.type)}class TypeScriptScope extends Scope{constructor(...args){super(...args),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}}class TypeScriptScopeHandler extends ScopeHandler{createScope(flags){return new TypeScriptScope(flags)}declareName(name,bindingType,loc){const scope=this.currentScope();if(1024&bindingType)return this.maybeExportDefined(scope,name),void scope.exportOnlyBindings.add(name);super.declareName(...arguments),2&bindingType&&(1&bindingType||(this.checkRedeclarationInScope(scope,name,bindingType,loc),this.maybeExportDefined(scope,name)),scope.types.add(name)),256&bindingType&&scope.enums.add(name),512&bindingType&&scope.constEnums.add(name),128&bindingType&&scope.classes.add(name)}isRedeclaredInScope(scope,name,bindingType){if(scope.enums.has(name)){if(256&bindingType){return!!(512&bindingType)!==scope.constEnums.has(name)}return!0}return 128&bindingType&&scope.classes.has(name)?!!scope.lexical.has(name)&&!!(1&bindingType):!!(2&bindingType&&scope.types.has(name))||super.isRedeclaredInScope(...arguments)}checkLocalExport(id){const topLevelScope=this.scopeStack[0],{name}=id;topLevelScope.types.has(name)||topLevelScope.exportOnlyBindings.has(name)||super.checkLocalExport(id)}}function assert(x){if(!x)throw new Error("Assert fail")}const TSErrors=makeErrorTemplates({AbstractMethodHasImplementation:"Method '%0' cannot have an implementation because it is marked abstract.",AbstractPropertyHasInitializer:"Property '%0' cannot have an initializer because it is marked abstract.",AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"'declare' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: '%0'.",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:"'%0' modifier cannot be used with '%1' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0').",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InvalidModifierOnTypeMember:"'%0' modifier cannot appear on a type member.",InvalidModifiersOrder:"'%0' modifier must precede '%1' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0').",ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},ErrorCodes.SyntaxError,"typescript");function tsIsAccessModifier(modifier){return"private"===modifier||"public"===modifier||"protected"===modifier}const PlaceholderErrors=makeErrorTemplates({ClassNameIsRequired:"A class name is required."},ErrorCodes.SyntaxError,"placeholders");function hasPlugin(plugins,expectedConfig){const[expectedName,expectedOptions]="string"==typeof expectedConfig?[expectedConfig,{}]:expectedConfig,expectedKeys=Object.keys(expectedOptions),expectedOptionsIsEmpty=0===expectedKeys.length;return plugins.some((p=>{if("string"==typeof p)return expectedOptionsIsEmpty&&p===expectedName;{const[pluginName,pluginOptions]=p;if(pluginName!==expectedName)return!1;for(const key of expectedKeys)if(pluginOptions[key]!==expectedOptions[key])return!1;return!0}}))}function getPluginOption(plugins,name,option){const plugin=plugins.find((plugin=>Array.isArray(plugin)?plugin[0]===name:plugin===name));return plugin&&Array.isArray(plugin)?plugin[1][option]:null}const PIPELINE_PROPOSALS=["minimal","fsharp","hack","smart"],TOPIC_TOKENS=["^","%","#"],RECORD_AND_TUPLE_SYNTAX_TYPES=["hash","bar"];const mixinPlugins={estree:superClass=>class extends superClass{parseRegExpLiteral({pattern,flags}){let regex=null;try{regex=new RegExp(pattern,flags)}catch(e){}const node=this.estreeParseLiteral(regex);return node.regex={pattern,flags},node}parseBigIntLiteral(value){let bigInt;try{bigInt=BigInt(value)}catch(_unused){bigInt=null}const node=this.estreeParseLiteral(bigInt);return node.bigint=String(node.value||value),node}parseDecimalLiteral(value){const node=this.estreeParseLiteral(null);return node.decimal=String(node.value||value),node}estreeParseLiteral(value){return this.parseLiteral(value,"Literal")}parseStringLiteral(value){return this.estreeParseLiteral(value)}parseNumericLiteral(value){return this.estreeParseLiteral(value)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(value){return this.estreeParseLiteral(value)}directiveToStmt(directive){const directiveLiteral=directive.value,stmt=this.startNodeAt(directive.start,directive.loc.start),expression=this.startNodeAt(directiveLiteral.start,directiveLiteral.loc.start);return expression.value=directiveLiteral.extra.expressionValue,expression.raw=directiveLiteral.extra.raw,stmt.expression=this.finishNodeAt(expression,"Literal",directiveLiteral.loc.end),stmt.directive=directiveLiteral.extra.raw.slice(1,-1),this.finishNodeAt(stmt,"ExpressionStatement",directive.loc.end)}initFunction(node,isAsync){super.initFunction(node,isAsync),node.expression=!1}checkDeclaration(node){null!=node&&this.isObjectProperty(node)?this.checkDeclaration(node.value):super.checkDeclaration(node)}getObjectOrClassMethodParams(method){return method.value.params}isValidDirective(stmt){var _stmt$expression$extr;return"ExpressionStatement"===stmt.type&&"Literal"===stmt.expression.type&&"string"==typeof stmt.expression.value&&!(null!=(_stmt$expression$extr=stmt.expression.extra)&&_stmt$expression$extr.parenthesized)}parseBlockBody(node,...args){super.parseBlockBody(node,...args);const directiveStatements=node.directives.map((d=>this.directiveToStmt(d)));node.body=directiveStatements.concat(node.body),delete node.directives}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0),method.typeParameters&&(method.value.typeParameters=method.typeParameters,delete method.typeParameters),classBody.body.push(method)}parsePrivateName(){const node=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(node):node}convertPrivateNameToPrivateIdentifier(node){const name=super.getPrivateNameSV(node);return delete(node=node).id,node.name=name,node.type="PrivateIdentifier",node}isPrivateName(node){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===node.type:super.isPrivateName(node)}getPrivateNameSV(node){return this.getPluginOption("estree","classFeatures")?node.name:super.getPrivateNameSV(node)}parseLiteral(value,type){const node=super.parseLiteral(value,type);return node.raw=node.extra.raw,delete node.extra,node}parseFunctionBody(node,allowExpression,isMethod=!1){super.parseFunctionBody(node,allowExpression,isMethod),node.expression="BlockStatement"!==node.body.type}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){let funcNode=this.startNode();return funcNode.kind=node.kind,funcNode=super.parseMethod(funcNode,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope),funcNode.type="FunctionExpression",delete funcNode.kind,node.value=funcNode,"ClassPrivateMethod"===type&&(node.computed=!1),type="MethodDefinition",this.finishNode(node,type)}parseClassProperty(...args){const propertyNode=super.parseClassProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode):propertyNode}parseClassPrivateProperty(...args){const propertyNode=super.parseClassPrivateProperty(...args);return this.getPluginOption("estree","classFeatures")?(propertyNode.type="PropertyDefinition",propertyNode.computed=!1,propertyNode):propertyNode}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){const node=super.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor);return node&&(node.type="Property","method"===node.kind&&(node.kind="init"),node.shorthand=!1),node}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){const node=super.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node&&(node.kind="init",node.type="Property"),node}isAssignable(node,isBinding){return null!=node&&this.isObjectProperty(node)?this.isAssignable(node.value,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){return null!=node&&this.isObjectProperty(node)?(this.toAssignable(node.value,isLHS),node):super.toAssignable(node,isLHS)}toAssignableObjectExpressionProp(prop,...args){"get"===prop.kind||"set"===prop.kind?this.raise(ErrorMessages.PatternHasAccessor,{node:prop.key}):prop.method?this.raise(ErrorMessages.PatternHasMethod,{node:prop.key}):super.toAssignableObjectExpressionProp(prop,...args)}finishCallExpression(node,optional){if(super.finishCallExpression(node,optional),"Import"===node.callee.type){var _node$arguments$;if(node.type="ImportExpression",node.source=node.arguments[0],this.hasPlugin("importAssertions"))node.attributes=null!=(_node$arguments$=node.arguments[1])?_node$arguments$:null;delete node.arguments,delete node.callee}return node}toReferencedArguments(node){"ImportExpression"!==node.type&&super.toReferencedArguments(node)}parseExport(node){switch(super.parseExport(node),node.type){case"ExportAllDeclaration":node.exported=null;break;case"ExportNamedDeclaration":1===node.specifiers.length&&"ExportNamespaceSpecifier"===node.specifiers[0].type&&(node.type="ExportAllDeclaration",node.exported=node.specifiers[0].exported,delete node.specifiers)}return node}parseSubscript(base,startPos,startLoc,noCalls,state){const node=super.parseSubscript(base,startPos,startLoc,noCalls,state);if(state.optionalChainMember){if("OptionalMemberExpression"!==node.type&&"OptionalCallExpression"!==node.type||(node.type=node.type.substring(8)),state.stop){const chain=this.startNodeAtNode(node);return chain.expression=node,this.finishNode(chain,"ChainExpression")}}else"MemberExpression"!==node.type&&"CallExpression"!==node.type||(node.optional=!1);return node}hasPropertyAsPrivateName(node){return"ChainExpression"===node.type&&(node=node.expression),super.hasPropertyAsPrivateName(node)}isOptionalChain(node){return"ChainExpression"===node.type}isObjectProperty(node){return"Property"===node.type&&"init"===node.kind&&!node.method}isObjectMethod(node){return node.method||"get"===node.kind||"set"===node.kind}},jsx:superClass=>class extends superClass{jsxReadToken(){let out="",chunkStart=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(JsxErrors.UnterminatedJsxContent,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);switch(ch){case 60:case 123:return this.state.pos===this.state.start?60===ch&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(134)):super.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.state.pos),this.finishToken(133,out));case 38:out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos;break;default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!0),chunkStart=this.state.pos):++this.state.pos}}}jsxReadNewLine(normalizeCRLF){const ch=this.input.charCodeAt(this.state.pos);let out;return++this.state.pos,13===ch&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),++this.state.curLine,this.state.lineStart=this.state.pos,out}jsxReadString(quote){let out="",chunkStart=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ErrorMessages.UnterminatedString,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadEntity(),chunkStart=this.state.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.state.pos),out+=this.jsxReadNewLine(!1),chunkStart=this.state.pos):++this.state.pos}return out+=this.input.slice(chunkStart,this.state.pos++),this.finishToken(125,out)}jsxReadEntity(){let entity,str="",count=0,ch=this.input[this.state.pos];const startPos=++this.state.pos;for(;this.state.posclass extends superClass{constructor(...args){super(...args),this.flowPragma=void 0}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(type,val){return 125!==type&&13!==type&&28!==type&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(type,val)}addComment(comment){if(void 0===this.flowPragma){const matches=FLOW_PRAGMA_REGEX.exec(comment.value);if(matches)if("flow"===matches[1])this.flowPragma="flow";else{if("noflow"!==matches[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}return super.addComment(comment)}flowParseTypeInitialiser(tok){const oldInType=this.state.inType;this.state.inType=!0,this.expect(tok||14);const type=this.flowParseType();return this.state.inType=oldInType,type}flowParsePredicate(){const node=this.startNode(),moduloLoc=this.state.startLoc;return this.next(),this.expectContextual(103),this.state.lastTokStart>indexes.get(moduloLoc)+1&&this.raise(FlowErrors.UnexpectedSpaceBetweenModuloChecks,{at:moduloLoc}),this.eat(10)?(node.value=this.parseExpression(),this.expect(11),this.finishNode(node,"DeclaredPredicate")):this.finishNode(node,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const oldInType=this.state.inType;this.state.inType=!0,this.expect(14);let type=null,predicate=null;return this.match(50)?(this.state.inType=oldInType,predicate=this.flowParsePredicate()):(type=this.flowParseType(),this.state.inType=oldInType,this.match(50)&&(predicate=this.flowParsePredicate())),[type,predicate]}flowParseDeclareClass(node){return this.next(),this.flowParseInterfaceish(node,!0),this.finishNode(node,"DeclareClass")}flowParseDeclareFunction(node){this.next();const id=node.id=this.parseIdentifier(),typeNode=this.startNode(),typeContainer=this.startNode();this.match(45)?typeNode.typeParameters=this.flowParseTypeParameterDeclaration():typeNode.typeParameters=null,this.expect(10);const tmp=this.flowParseFunctionTypeParams();return typeNode.params=tmp.params,typeNode.rest=tmp.rest,typeNode.this=tmp._this,this.expect(11),[typeNode.returnType,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),typeContainer.typeAnnotation=this.finishNode(typeNode,"FunctionTypeAnnotation"),id.typeAnnotation=this.finishNode(typeContainer,"TypeAnnotation"),this.resetEndLocation(id),this.semicolon(),this.scope.declareName(node.id.name,2048,node.id.loc.start),this.finishNode(node,"DeclareFunction")}flowParseDeclare(node,insideModule){if(this.match(76))return this.flowParseDeclareClass(node);if(this.match(64))return this.flowParseDeclareFunction(node);if(this.match(70))return this.flowParseDeclareVariable(node);if(this.eatContextual(119))return this.match(16)?this.flowParseDeclareModuleExports(node):(insideModule&&this.raise(FlowErrors.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(node));if(this.isContextual(122))return this.flowParseDeclareTypeAlias(node);if(this.isContextual(123))return this.flowParseDeclareOpaqueType(node);if(this.isContextual(121))return this.flowParseDeclareInterface(node);if(this.match(78))return this.flowParseDeclareExportDeclaration(node,insideModule);throw this.unexpected()}flowParseDeclareVariable(node){return this.next(),node.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(node.id.name,5,node.id.loc.start),this.semicolon(),this.finishNode(node,"DeclareVariable")}flowParseDeclareModule(node){this.scope.enter(0),this.match(125)?node.id=this.parseExprAtom():node.id=this.parseIdentifier();const bodyNode=node.body=this.startNode(),body=bodyNode.body=[];for(this.expect(5);!this.match(8);){let bodyNode=this.startNode();this.match(79)?(this.next(),this.isContextual(122)||this.match(83)||this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),this.parseImport(bodyNode)):(this.expectContextual(117,FlowErrors.UnsupportedStatementInDeclareModule),bodyNode=this.flowParseDeclare(bodyNode,!0)),body.push(bodyNode)}this.scope.exit(),this.expect(8),this.finishNode(bodyNode,"BlockStatement");let kind=null,hasModuleExport=!1;return body.forEach((bodyElement=>{!function(bodyElement){return"DeclareExportAllDeclaration"===bodyElement.type||"DeclareExportDeclaration"===bodyElement.type&&(!bodyElement.declaration||"TypeAlias"!==bodyElement.declaration.type&&"InterfaceDeclaration"!==bodyElement.declaration.type)}(bodyElement)?"DeclareModuleExports"===bodyElement.type&&(hasModuleExport&&this.raise(FlowErrors.DuplicateDeclareModuleExports,{node:bodyElement}),"ES"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{node:bodyElement}),kind="CommonJS",hasModuleExport=!0):("CommonJS"===kind&&this.raise(FlowErrors.AmbiguousDeclareModuleKind,{node:bodyElement}),kind="ES")})),node.kind=kind||"CommonJS",this.finishNode(node,"DeclareModule")}flowParseDeclareExportDeclaration(node,insideModule){if(this.expect(78),this.eat(61))return this.match(64)||this.match(76)?node.declaration=this.flowParseDeclare(this.startNode()):(node.declaration=this.flowParseType(),this.semicolon()),node.default=!0,this.finishNode(node,"DeclareExportDeclaration");if(this.match(71)||this.isLet()||(this.isContextual(122)||this.isContextual(121))&&!insideModule){const label=this.state.value,suggestion=exportSuggestions[label];throw this.raise(FlowErrors.UnsupportedDeclareExportKind,{at:this.state.startLoc},label,suggestion)}if(this.match(70)||this.match(64)||this.match(76)||this.isContextual(123))return node.declaration=this.flowParseDeclare(this.startNode()),node.default=!1,this.finishNode(node,"DeclareExportDeclaration");if(this.match(51)||this.match(5)||this.isContextual(121)||this.isContextual(122)||this.isContextual(123))return"ExportNamedDeclaration"===(node=this.parseExport(node)).type&&(node.type="ExportDeclaration",node.default=!1,delete node.exportKind),node.type="Declare"+node.type,node;throw this.unexpected()}flowParseDeclareModuleExports(node){return this.next(),this.expectContextual(104),node.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(node,"DeclareModuleExports")}flowParseDeclareTypeAlias(node){return this.next(),this.flowParseTypeAlias(node),node.type="DeclareTypeAlias",node}flowParseDeclareOpaqueType(node){return this.next(),this.flowParseOpaqueType(node,!0),node.type="DeclareOpaqueType",node}flowParseDeclareInterface(node){return this.next(),this.flowParseInterfaceish(node),this.finishNode(node,"DeclareInterface")}flowParseInterfaceish(node,isClass=!1){if(node.id=this.flowParseRestrictedIdentifier(!isClass,!0),this.scope.declareName(node.id.name,isClass?17:9,node.id.loc.start),this.match(45)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.extends=[],node.implements=[],node.mixins=[],this.eat(77))do{node.extends.push(this.flowParseInterfaceExtends())}while(!isClass&&this.eat(12));if(this.isContextual(110)){this.next();do{node.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.isContextual(106)){this.next();do{node.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}node.body=this.flowParseObjectType({allowStatic:isClass,allowExact:!1,allowSpread:!1,allowProto:isClass,allowInexact:!1})}flowParseInterfaceExtends(){const node=this.startNode();return node.id=this.flowParseQualifiedTypeIdentifier(),this.match(45)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,this.finishNode(node,"InterfaceExtends")}flowParseInterface(node){return this.flowParseInterfaceish(node),this.finishNode(node,"InterfaceDeclaration")}checkNotUnderscore(word){"_"===word&&this.raise(FlowErrors.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(word,startLoc,declaration){reservedTypes.has(word)&&this.raise(declaration?FlowErrors.AssignReservedType:FlowErrors.UnexpectedReservedType,{at:startLoc},word)}flowParseRestrictedIdentifier(liberal,declaration){return this.checkReservedType(this.state.value,this.state.startLoc,declaration),this.parseIdentifier(liberal)}flowParseTypeAlias(node){return node.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(45)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(node,"TypeAlias")}flowParseOpaqueType(node,declare){return this.expectContextual(122),node.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(node.id.name,9,node.id.loc.start),this.match(45)?node.typeParameters=this.flowParseTypeParameterDeclaration():node.typeParameters=null,node.supertype=null,this.match(14)&&(node.supertype=this.flowParseTypeInitialiser(14)),node.impltype=null,declare||(node.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(node,"OpaqueType")}flowParseTypeParameter(requireDefault=!1){const nodeStartLoc=this.state.startLoc,node=this.startNode(),variance=this.flowParseVariance(),ident=this.flowParseTypeAnnotatableIdentifier();return node.name=ident.name,node.variance=variance,node.bound=ident.typeAnnotation,this.match(29)?(this.eat(29),node.default=this.flowParseType()):requireDefault&&this.raise(FlowErrors.MissingTypeParamDefault,{at:nodeStartLoc}),this.finishNode(node,"TypeParameter")}flowParseTypeParameterDeclaration(){const oldInType=this.state.inType,node=this.startNode();node.params=[],this.state.inType=!0,this.match(45)||this.match(134)?this.next():this.unexpected();let defaultRequired=!1;do{const typeParameter=this.flowParseTypeParameter(defaultRequired);node.params.push(typeParameter),typeParameter.default&&(defaultRequired=!0),this.match(46)||this.expect(12)}while(!this.match(46));return this.expect(46),this.state.inType=oldInType,this.finishNode(node,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const node=this.startNode(),oldInType=this.state.inType;node.params=[],this.state.inType=!0,this.expect(45);const oldNoAnonFunctionType=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(46);)node.params.push(this.flowParseType()),this.match(46)||this.expect(12);return this.state.noAnonFunctionType=oldNoAnonFunctionType,this.expect(46),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const node=this.startNode(),oldInType=this.state.inType;for(node.params=[],this.state.inType=!0,this.expect(45);!this.match(46);)node.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(46)||this.expect(12);return this.expect(46),this.state.inType=oldInType,this.finishNode(node,"TypeParameterInstantiation")}flowParseInterfaceType(){const node=this.startNode();if(this.expectContextual(121),node.extends=[],this.eat(77))do{node.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return node.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(node,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(126)||this.match(125)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(node,isStatic,variance){return node.static=isStatic,14===this.lookahead().type?(node.id=this.flowParseObjectPropertyKey(),node.key=this.flowParseTypeInitialiser()):(node.id=null,node.key=this.flowParseType()),this.expect(3),node.value=this.flowParseTypeInitialiser(),node.variance=variance,this.finishNode(node,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(node,isStatic){return node.static=isStatic,node.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(45)||this.match(10)?(node.method=!0,node.optional=!1,node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start))):(node.method=!1,this.eat(17)&&(node.optional=!0),node.value=this.flowParseTypeInitialiser()),this.finishNode(node,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(node){for(node.params=[],node.rest=null,node.typeParameters=null,node.this=null,this.match(45)&&(node.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(74)&&(node.this=this.flowParseFunctionTypeParam(!0),node.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)node.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(node.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),node.returnType=this.flowParseTypeInitialiser(),this.finishNode(node,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(node,isStatic){const valueNode=this.startNode();return node.static=isStatic,node.value=this.flowParseObjectTypeMethodish(valueNode),this.finishNode(node,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic,allowExact,allowSpread,allowProto,allowInexact}){const oldInType=this.state.inType;this.state.inType=!0;const nodeStart=this.startNode();let endDelim,exact;nodeStart.callProperties=[],nodeStart.properties=[],nodeStart.indexers=[],nodeStart.internalSlots=[];let inexact=!1;for(allowExact&&this.match(6)?(this.expect(6),endDelim=9,exact=!0):(this.expect(5),endDelim=8,exact=!1),nodeStart.exact=exact;!this.match(endDelim);){let isStatic=!1,protoStartLoc=null,inexactStartLoc=null;const node=this.startNode();if(allowProto&&this.isContextual(111)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),protoStartLoc=this.state.startLoc,allowStatic=!1)}if(allowStatic&&this.isContextual(100)){const lookahead=this.lookahead();14!==lookahead.type&&17!==lookahead.type&&(this.next(),isStatic=!0)}const variance=this.flowParseVariance();if(this.eat(0))null!=protoStartLoc&&this.unexpected(protoStartLoc),this.eat(0)?(variance&&this.unexpected(variance.loc.start),nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node,isStatic))):nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node,isStatic,variance));else if(this.match(10)||this.match(45))null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node,isStatic));else{let kind="init";if(this.isContextual(94)||this.isContextual(99)){tokenIsLiteralPropertyName(this.lookahead().type)&&(kind=this.state.value,this.next())}const propOrInexact=this.flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,null!=allowInexact?allowInexact:!exact);null===propOrInexact?(inexact=!0,inexactStartLoc=this.state.lastTokStartLoc):nodeStart.properties.push(propOrInexact)}this.flowObjectTypeSemicolon(),!inexactStartLoc||this.match(8)||this.match(9)||this.raise(FlowErrors.UnexpectedExplicitInexactInObject,{at:inexactStartLoc})}this.expect(endDelim),allowSpread&&(nodeStart.inexact=inexact);const out=this.finishNode(nodeStart,"ObjectTypeAnnotation");return this.state.inType=oldInType,out}flowParseObjectTypeProperty(node,isStatic,protoStartLoc,variance,kind,allowSpread,allowInexact){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(allowSpread?allowInexact||this.raise(FlowErrors.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(FlowErrors.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),variance&&this.raise(FlowErrors.InexactVariance,{node:variance}),null):(allowSpread||this.raise(FlowErrors.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.raise(FlowErrors.SpreadVariance,{node:variance}),node.argument=this.flowParseType(),this.finishNode(node,"ObjectTypeSpreadProperty"))}{node.key=this.flowParseObjectPropertyKey(),node.static=isStatic,node.proto=null!=protoStartLoc,node.kind=kind;let optional=!1;return this.match(45)||this.match(10)?(node.method=!0,null!=protoStartLoc&&this.unexpected(protoStartLoc),variance&&this.unexpected(variance.loc.start),node.value=this.flowParseObjectTypeMethodish(this.startNodeAt(node.start,node.loc.start)),"get"!==kind&&"set"!==kind||this.flowCheckGetterSetterParams(node),!allowSpread&&"constructor"===node.key.name&&node.value.this&&this.raise(FlowErrors.ThisParamBannedInConstructor,{node:node.value.this})):("init"!==kind&&this.unexpected(),node.method=!1,this.eat(17)&&(optional=!0),node.value=this.flowParseTypeInitialiser(),node.variance=variance),node.optional=optional,this.finishNode(node,"ObjectTypeProperty")}}flowCheckGetterSetterParams(property){const paramCount="get"===property.kind?0:1,length=property.value.params.length+(property.value.rest?1:0);property.value.this&&this.raise("get"===property.kind?FlowErrors.GetterMayNotHaveThisParam:FlowErrors.SetterMayNotHaveThisParam,{node:property.value.this}),length!==paramCount&&this.raise("get"===property.kind?ErrorMessages.BadGetterArity:ErrorMessages.BadSetterArity,{node:property}),"set"===property.kind&&property.value.rest&&this.raise(ErrorMessages.BadSetterRestParameter,{node:property})}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(startPos,startLoc,id){startPos=startPos||this.state.start,startLoc=startLoc||this.state.startLoc;let node=id||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const node2=this.startNodeAt(startPos,startLoc);node2.qualification=node,node2.id=this.flowParseRestrictedIdentifier(!0),node=this.finishNode(node2,"QualifiedTypeIdentifier")}return node}flowParseGenericType(startPos,startLoc,id){const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=null,node.id=this.flowParseQualifiedTypeIdentifier(startPos,startLoc,id),this.match(45)&&(node.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(node,"GenericTypeAnnotation")}flowParseTypeofType(){const node=this.startNode();return this.expect(83),node.argument=this.flowParsePrimaryType(),this.finishNode(node,"TypeofTypeAnnotation")}flowParseTupleType(){const node=this.startNode();for(node.types=[],this.expect(0);this.state.possuper.parseFunctionBody(node,!0,isMethod))):super.parseFunctionBody(node,!1,isMethod)}parseFunctionBodyAndFinish(node,type,isMethod=!1){if(this.match(14)){const typeNode=this.startNode();[typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),node.returnType=typeNode.typeAnnotation?this.finishNode(typeNode,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(node,type,isMethod)}parseStatement(context,topLevel){if(this.state.strict&&this.isContextual(121)){if(tokenIsKeywordOrIdentifier(this.lookahead().type)){const node=this.startNode();return this.next(),this.flowParseInterface(node)}}else if(this.shouldParseEnums()&&this.isContextual(118)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}const stmt=super.parseStatement(context,topLevel);return void 0!==this.flowPragma||this.isValidDirective(stmt)||(this.flowPragma=null),stmt}parseExpressionStatement(node,expr){if("Identifier"===expr.type)if("declare"===expr.name){if(this.match(76)||tokenIsIdentifier(this.state.type)||this.match(64)||this.match(70)||this.match(78))return this.flowParseDeclare(node)}else if(tokenIsIdentifier(this.state.type)){if("interface"===expr.name)return this.flowParseInterface(node);if("type"===expr.name)return this.flowParseTypeAlias(node);if("opaque"===expr.name)return this.flowParseOpaqueType(node,!1)}return super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&118===type?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type}=this.state;return tokenIsFlowInterfaceOrTypeOrOpaque(type)||this.shouldParseEnums()&&118===type?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(118)){const node=this.startNode();return this.next(),this.flowParseEnumDeclaration(node)}return super.parseExportDefaultExpression()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.match(17))return expr;if(this.state.maybeInArrowParameters){const nextCh=this.lookaheadCharCode();if(44===nextCh||61===nextCh||58===nextCh||41===nextCh)return this.setOptionalParametersError(refExpressionErrors),expr}this.expect(17);const state=this.state.clone(),originalNoArrowAt=this.state.noArrowAt,node=this.startNodeAt(startPos,startLoc);let{consequent,failed}=this.tryParseConditionalConsequent(),[valid,invalid]=this.getArrowLikeExpressions(consequent);if(failed||invalid.length>0){const noArrowAt=[...originalNoArrowAt];if(invalid.length>0){this.state=state,this.state.noArrowAt=noArrowAt;for(let i=0;i1&&this.raise(FlowErrors.AmbiguousConditionalArrow,{at:state.startLoc}),failed&&1===valid.length&&(this.state=state,noArrowAt.push(valid[0].start),this.state.noArrowAt=noArrowAt,({consequent,failed}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(consequent,!0),this.state.noArrowAt=originalNoArrowAt,this.expect(14),node.test=expr,node.consequent=consequent,node.alternate=this.forwardNoArrowParamsConversionAt(node,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(node,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const consequent=this.parseMaybeAssignAllowIn(),failed=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent,failed}}getArrowLikeExpressions(node,disallowInvalid){const stack=[node],arrows=[];for(;0!==stack.length;){const node=stack.pop();"ArrowFunctionExpression"===node.type?(node.typeParameters||!node.returnType?this.finishArrowValidation(node):arrows.push(node),stack.push(node.body)):"ConditionalExpression"===node.type&&(stack.push(node.consequent),stack.push(node.alternate))}return disallowInvalid?(arrows.forEach((node=>this.finishArrowValidation(node))),[arrows,[]]):function(list,test){const list1=[],list2=[];for(let i=0;inode.params.every((param=>this.isAssignable(param,!0)))))}finishArrowValidation(node){var _node$extra;this.toAssignableList(node.params,null==(_node$extra=node.extra)?void 0:_node$extra.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(node,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(node,parse){let result;return-1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),result=parse(),this.state.noArrowParamsConversionAt.pop()):result=parse(),result}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(typeCastNode,"TypeCastExpression")}return node}assertModuleNodeAllowed(node){"ImportDeclaration"===node.type&&("type"===node.importKind||"typeof"===node.importKind)||"ExportNamedDeclaration"===node.type&&"type"===node.exportKind||"ExportAllDeclaration"===node.type&&"type"===node.exportKind||super.assertModuleNodeAllowed(node)}parseExport(node){const decl=super.parseExport(node);return"ExportNamedDeclaration"!==decl.type&&"ExportAllDeclaration"!==decl.type||(decl.exportKind=decl.exportKind||"value"),decl}parseExportDeclaration(node){if(this.isContextual(122)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.match(5)?(node.specifiers=this.parseExportSpecifiers(!0),this.parseExportFrom(node),null):this.flowParseTypeAlias(declarationNode)}if(this.isContextual(123)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseOpaqueType(declarationNode,!1)}if(this.isContextual(121)){node.exportKind="type";const declarationNode=this.startNode();return this.next(),this.flowParseInterface(declarationNode)}if(this.shouldParseEnums()&&this.isContextual(118)){node.exportKind="value";const declarationNode=this.startNode();return this.next(),this.flowParseEnumDeclaration(declarationNode)}return super.parseExportDeclaration(node)}eatExportStar(node){return!!super.eatExportStar(...arguments)||!(!this.isContextual(122)||51!==this.lookahead().type)&&(node.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(node){const{startLoc}=this.state,hasNamespace=super.maybeParseExportNamespaceSpecifier(node);return hasNamespace&&"type"===node.exportKind&&this.unexpected(startLoc),hasNamespace}parseClassId(node,isStatement,optionalId){super.parseClassId(node,isStatement,optionalId),this.match(45)&&(node.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(classBody,member,state){const{startLoc}=this.state;if(this.isContextual(117)){if(this.parseClassMemberFromModifier(classBody,member))return;member.declare=!0}super.parseClassMember(classBody,member,state),member.declare&&("ClassProperty"!==member.type&&"ClassPrivateProperty"!==member.type&&"PropertyDefinition"!==member.type?this.raise(FlowErrors.DeclareClassElement,{at:startLoc}):member.value&&this.raise(FlowErrors.DeclareClassFieldInitializer,{node:member.value}))}isIterator(word){return"iterator"===word||"asyncIterator"===word}readIterator(){const word=super.readWord1(),fullWord="@@"+word;this.isIterator(word)&&this.state.inType||this.raise(ErrorMessages.InvalidIdentifier,{at:this.state.curPosition()},fullWord),this.finishToken(124,fullWord)}getTokenFromCode(code){const next=this.input.charCodeAt(this.state.pos+1);return 123===code&&124===next?this.finishOp(6,2):!this.state.inType||62!==code&&60!==code?this.state.inType&&63===code?46===next?this.finishOp(18,2):this.finishOp(17,1):function(current,next){return 64===current&&64===next}(code,next)?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(code):this.finishOp(62===code?46:45,1)}isAssignable(node,isBinding){return"TypeCastExpression"===node.type?this.isAssignable(node.expression,isBinding):super.isAssignable(node,isBinding)}toAssignable(node,isLHS=!1){return"TypeCastExpression"===node.type?super.toAssignable(this.typeCastToParameter(node),isLHS):super.toAssignable(node,isLHS)}toAssignableList(exprList,trailingCommaLoc,isLHS){for(let i=0;i1)&&isParenthesizedExpr||this.raise(FlowErrors.TypeCastInPattern,{node:expr.typeAnnotation})}return exprList}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){const node=super.parseArrayLike(close,canBePattern,isTuple,refExpressionErrors);return canBePattern&&!this.state.maybeInArrowParameters&&this.toReferencedList(node.elements),node}checkLVal(expr,...args){if("TypeCastExpression"!==expr.type)return super.checkLVal(expr,...args)}parseClassProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(node)}parseClassPrivateProperty(node){return this.match(14)&&(node.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(node)}isClassMethod(){return this.match(45)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(method){return!this.match(14)&&super.isNonstaticConstructor(method)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){if(method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(45)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper),method.params&&isConstructor){const params=method.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{node:method})}else if("MethodDefinition"===method.type&&isConstructor&&method.value.params){const params=method.value.params;params.length>0&&this.isThisParam(params[0])&&this.raise(FlowErrors.ThisParamBannedInConstructor,{node:method})}}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){method.variance&&this.unexpected(method.variance.loc.start),delete method.variance,this.match(45)&&(method.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync)}parseClassSuper(node){if(super.parseClassSuper(node),node.superClass&&this.match(45)&&(node.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(106)){this.next();const implemented=node.implements=[];do{const node=this.startNode();node.id=this.flowParseRestrictedIdentifier(!0),this.match(45)?node.typeParameters=this.flowParseTypeParameterInstantiation():node.typeParameters=null,implemented.push(this.finishNode(node,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(method){super.checkGetterSetterParams(method);const params=this.getObjectOrClassMethodParams(method);if(params.length>0){const param=params[0];this.isThisParam(param)&&"get"===method.kind?this.raise(FlowErrors.GetterMayNotHaveThisParam,{node:param}):this.isThisParam(param)&&this.raise(FlowErrors.SetterMayNotHaveThisParam,{node:param})}}parsePropertyNamePrefixOperator(node){node.variance=this.flowParseVariance()}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){let typeParameters;prop.variance&&this.unexpected(prop.variance.loc.start),delete prop.variance,this.match(45)&&!isAccessor&&(typeParameters=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected()),super.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors),typeParameters&&((prop.value||prop).typeParameters=typeParameters)}parseAssignableListItemTypes(param){return this.eat(17)&&("Identifier"!==param.type&&this.raise(FlowErrors.PatternIsOptional,{node:param}),this.isThisParam(param)&&this.raise(FlowErrors.ThisParamMayNotBeOptional,{node:param}),param.optional=!0),this.match(14)?param.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(param)&&this.raise(FlowErrors.ThisParamAnnotationRequired,{node:param}),this.match(29)&&this.isThisParam(param)&&this.raise(FlowErrors.ThisParamNoDefault,{node:param}),this.resetEndLocation(param),param}parseMaybeDefault(startPos,startLoc,left){const node=super.parseMaybeDefault(startPos,startLoc,left);return"AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.startsuper.parseMaybeAssign(refExpressionErrors,afterLeftParse)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&¤tContext!==types.j_expr||context.pop()}if(null!=(_jsx=jsx)&&_jsx.error||this.match(45)){var _jsx2,_jsx3;let typeParameters;state=state||this.state.clone();const arrow=this.tryParse((abort=>{var _arrowExpression$extr;typeParameters=this.flowParseTypeParameterDeclaration();const arrowExpression=this.forwardNoArrowParamsConversionAt(typeParameters,(()=>{const result=super.parseMaybeAssign(refExpressionErrors,afterLeftParse);return this.resetStartLocationFromNode(result,typeParameters),result}));null!=(_arrowExpression$extr=arrowExpression.extra)&&_arrowExpression$extr.parenthesized&&abort();const expr=this.maybeUnwrapTypeCastExpression(arrowExpression);return"ArrowFunctionExpression"!==expr.type&&abort(),expr.typeParameters=typeParameters,this.resetStartLocationFromNode(expr,typeParameters),arrowExpression}),state);let arrowExpression=null;if(arrow.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(arrow.node).type){if(!arrow.error&&!arrow.aborted)return arrow.node.async&&this.raise(FlowErrors.UnexpectedTypeParameterBeforeAsyncArrowFunction,{node:typeParameters}),arrow.node;arrowExpression=arrow.node}if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrowExpression)return this.state=arrow.failState,arrowExpression;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;throw this.raise(FlowErrors.UnexpectedTokenAfterTypeParameter,{node:typeParameters})}return super.parseMaybeAssign(refExpressionErrors,afterLeftParse)}parseArrow(node){if(this.match(14)){const result=this.tryParse((()=>{const oldNoAnonFunctionType=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const typeNode=this.startNode();return[typeNode.typeAnnotation,node.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=oldNoAnonFunctionType,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),typeNode}));if(result.thrown)return null;result.error&&(this.state=result.failState),node.returnType=result.node.typeAnnotation?this.finishNode(result.node,"TypeAnnotation"):null}return super.parseArrow(node)}shouldParseArrow(params){return this.match(14)||super.shouldParseArrow(params)}setArrowFunctionParameters(node,params){-1!==this.state.noArrowParamsConversionAt.indexOf(node.start)?node.params=params:super.setArrowFunctionParameters(node,params)}checkParams(node,allowDuplicates,isArrowFunction){if(!isArrowFunction||-1===this.state.noArrowParamsConversionAt.indexOf(node.start)){for(let i=0;i0&&this.raise(FlowErrors.ThisParamMustBeFirst,{node:node.params[i]});return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(canBeArrow){return super.parseParenAndDistinguishExpression(canBeArrow&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(base,startPos,startLoc,noCalls){if("Identifier"===base.type&&"async"===base.name&&-1!==this.state.noArrowAt.indexOf(startPos)){this.next();const node=this.startNodeAt(startPos,startLoc);node.callee=base,node.arguments=this.parseCallExpressionArguments(11,!1),base=this.finishNode(node,"CallExpression")}else if("Identifier"===base.type&&"async"===base.name&&this.match(45)){const state=this.state.clone(),arrow=this.tryParse((abort=>this.parseAsyncArrowWithTypeParameters(startPos,startLoc)||abort()),state);if(!arrow.error&&!arrow.aborted)return arrow.node;const result=this.tryParse((()=>super.parseSubscripts(base,startPos,startLoc,noCalls)),state);if(result.node&&!result.error)return result.node;if(arrow.node)return this.state=arrow.failState,arrow.node;if(result.node)return this.state=result.failState,result.node;throw arrow.error||result.error}return super.parseSubscripts(base,startPos,startLoc,noCalls)}parseSubscript(base,startPos,startLoc,noCalls,subscriptState){if(this.match(18)&&this.isLookaheadToken_lt()){if(subscriptState.optionalChainMember=!0,noCalls)return subscriptState.stop=!0,base;this.next();const node=this.startNodeAt(startPos,startLoc);return node.callee=base,node.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),node.arguments=this.parseCallExpressionArguments(11,!1),node.optional=!0,this.finishCallExpression(node,!0)}if(!noCalls&&this.shouldParseTypes()&&this.match(45)){const node=this.startNodeAt(startPos,startLoc);node.callee=base;const result=this.tryParse((()=>(node.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),node.arguments=this.parseCallExpressionArguments(11,!1),subscriptState.optionalChainMember&&(node.optional=!1),this.finishCallExpression(node,subscriptState.optionalChainMember))));if(result.node)return result.error&&(this.state=result.failState),result.node}return super.parseSubscript(base,startPos,startLoc,noCalls,subscriptState)}parseNewArguments(node){let targs=null;this.shouldParseTypes()&&this.match(45)&&(targs=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),node.typeArguments=targs,super.parseNewArguments(node)}parseAsyncArrowWithTypeParameters(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);if(this.parseFunctionParams(node),this.parseArrow(node))return this.parseArrowExpression(node,void 0,!0)}readToken_mult_modulo(code){const next=this.input.charCodeAt(this.state.pos+1);if(42===code&&47===next&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(code)}readToken_pipe_amp(code){const next=this.input.charCodeAt(this.state.pos+1);124!==code||125!==next?super.readToken_pipe_amp(code):this.finishOp(9,2)}parseTopLevel(file,program){const fileNode=super.parseTopLevel(file,program);return this.state.hasFlowComment&&this.raise(FlowErrors.UnterminatedFlowComment,{at:this.state.curPosition()}),fileNode}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(FlowErrors.NestedFlowComment,{at:this.state.startLoc});return this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0)}if(!this.state.hasFlowComment)return super.skipBlockComment();{const end=this.input.indexOf("*-/",this.state.pos+2);if(-1===end)throw this.raise(ErrorMessages.UnterminatedComment,{at:this.state.curPosition()});this.state.pos=end+2+3}}skipFlowComment(){const{pos}=this.state;let shiftToFirstNonWhiteSpace=2;for(;[32,9].includes(this.input.charCodeAt(pos+shiftToFirstNonWhiteSpace));)shiftToFirstNonWhiteSpace++;const ch2=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos),ch3=this.input.charCodeAt(shiftToFirstNonWhiteSpace+pos+1);return 58===ch2&&58===ch3?shiftToFirstNonWhiteSpace+2:"flow-include"===this.input.slice(shiftToFirstNonWhiteSpace+pos,shiftToFirstNonWhiteSpace+pos+12)?shiftToFirstNonWhiteSpace+12:58===ch2&&58!==ch3&&shiftToFirstNonWhiteSpace}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(ErrorMessages.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumBooleanMemberNotInitialized,{at:loc},memberName,enumName)}flowEnumErrorInvalidExplicitType(loc,{enumName,suppliedType}){return this.raise(null===suppliedType?FlowErrors.EnumInvalidExplicitTypeUnknownSupplied:FlowErrors.EnumInvalidExplicitType,{at:loc},enumName,suppliedType)}flowEnumErrorInvalidMemberInitializer(loc,{enumName,explicitType,memberName}){return this.raise("boolean"===explicitType||"number"===explicitType||"string"===explicitType?FlowErrors.EnumInvalidMemberInitializerPrimaryType:"symbol"===explicitType?FlowErrors.EnumInvalidMemberInitializerSymbolType:FlowErrors.EnumInvalidMemberInitializerUnknownType,{at:loc},enumName,memberName,explicitType)}flowEnumErrorNumberMemberNotInitialized(loc,{enumName,memberName}){this.raise(FlowErrors.EnumNumberMemberNotInitialized,{at:loc},enumName,memberName)}flowEnumErrorStringMemberInconsistentlyInitailized(node,{enumName}){this.raise(FlowErrors.EnumStringMemberInconsistentlyInitailized,{node},enumName)}flowEnumMemberInit(){const startLoc=this.state.startLoc,endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 126:{const literal=this.parseNumericLiteral(this.state.value);return endOfInit()?{type:"number",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 125:{const literal=this.parseStringLiteral(this.state.value);return endOfInit()?{type:"string",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}case 81:case 82:{const literal=this.parseBooleanLiteral(this.match(81));return endOfInit()?{type:"boolean",loc:literal.loc.start,value:literal}:{type:"invalid",loc:startLoc}}default:return{type:"invalid",loc:startLoc}}}flowEnumMemberRaw(){const loc=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc}}}flowEnumCheckExplicitTypeMismatch(loc,context,expectedType){const{explicitType}=context;null!==explicitType&&explicitType!==expectedType&&this.flowEnumErrorInvalidMemberInitializer(loc,context)}flowEnumMembers({enumName,explicitType}){const seenNames=new Set,members={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let hasUnknownMembers=!1;for(;!this.match(8);){if(this.eat(21)){hasUnknownMembers=!0;break}const memberNode=this.startNode(),{id,init}=this.flowEnumMemberRaw(),memberName=id.name;if(""===memberName)continue;/^[a-z]/.test(memberName)&&this.raise(FlowErrors.EnumInvalidMemberName,{node:id},memberName,memberName[0].toUpperCase()+memberName.slice(1),enumName),seenNames.has(memberName)&&this.raise(FlowErrors.EnumDuplicateMemberName,{node:id},memberName,enumName),seenNames.add(memberName);const context={enumName,explicitType,memberName};switch(memberNode.id=id,init.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"boolean"),memberNode.init=init.value,members.booleanMembers.push(this.finishNode(memberNode,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"number"),memberNode.init=init.value,members.numberMembers.push(this.finishNode(memberNode,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(init.loc,context,"string"),memberNode.init=init.value,members.stringMembers.push(this.finishNode(memberNode,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(init.loc,context);case"none":switch(explicitType){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(init.loc,context);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(init.loc,context);break;default:members.defaultedMembers.push(this.finishNode(memberNode,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members,hasUnknownMembers}}flowEnumStringMembers(initializedMembers,defaultedMembers,{enumName}){if(0===initializedMembers.length)return defaultedMembers;if(0===defaultedMembers.length)return initializedMembers;if(defaultedMembers.length>initializedMembers.length){for(const member of initializedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return defaultedMembers}for(const member of defaultedMembers)this.flowEnumErrorStringMemberInconsistentlyInitailized(member,{enumName});return initializedMembers}flowEnumParseExplicitType({enumName}){if(this.eatContextual(97)){if(!tokenIsIdentifier(this.state.type))throw this.flowEnumErrorInvalidExplicitType(this.state.startLoc,{enumName,suppliedType:null});const{value}=this.state;return this.next(),"boolean"!==value&&"number"!==value&&"string"!==value&&"symbol"!==value&&this.flowEnumErrorInvalidExplicitType(this.state.startLoc,{enumName,suppliedType:value}),value}return null}flowEnumBody(node,id){const enumName=id.name,nameLoc=id.loc.start,explicitType=this.flowEnumParseExplicitType({enumName});this.expect(5);const{members,hasUnknownMembers}=this.flowEnumMembers({enumName,explicitType});switch(node.hasUnknownMembers=hasUnknownMembers,explicitType){case"boolean":return node.explicitType=!0,node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody");case"number":return node.explicitType=!0,node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody");case"string":return node.explicitType=!0,node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody");case"symbol":return node.members=members.defaultedMembers,this.expect(8),this.finishNode(node,"EnumSymbolBody");default:{const empty=()=>(node.members=[],this.expect(8),this.finishNode(node,"EnumStringBody"));node.explicitType=!1;const boolsLen=members.booleanMembers.length,numsLen=members.numberMembers.length,strsLen=members.stringMembers.length,defaultedLen=members.defaultedMembers.length;if(boolsLen||numsLen||strsLen||defaultedLen){if(boolsLen||numsLen){if(!numsLen&&!strsLen&&boolsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.booleanMembers,this.expect(8),this.finishNode(node,"EnumBooleanBody")}if(!boolsLen&&!strsLen&&numsLen>=defaultedLen){for(const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start,{enumName,memberName:member.id.name});return node.members=members.numberMembers,this.expect(8),this.finishNode(node,"EnumNumberBody")}return this.raise(FlowErrors.EnumInconsistentMemberValues,{at:nameLoc},enumName),empty()}return node.members=this.flowEnumStringMembers(members.stringMembers,members.defaultedMembers,{enumName}),this.expect(8),this.finishNode(node,"EnumStringBody")}return empty()}}}flowParseEnumDeclaration(node){const id=this.parseIdentifier();return node.id=id,node.body=this.flowEnumBody(this.startNode(),id),this.finishNode(node,"EnumDeclaration")}isLookaheadToken_lt(){const next=this.nextTokenStart();if(60===this.input.charCodeAt(next)){const afterNext=this.input.charCodeAt(next+1);return 60!==afterNext&&61!==afterNext}return!1}maybeUnwrapTypeCastExpression(node){return"TypeCastExpression"===node.type?node.expression:node}},typescript:superClass=>class extends superClass{getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(51)||this.match(21)||this.match(130)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(allowedModifiers,stopOnStartOfClassStaticBlock){if(!tokenIsIdentifier(this.state.type))return;const modifier=this.state.value;if(-1!==allowedModifiers.indexOf(modifier)){if(stopOnStartOfClassStaticBlock&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return modifier}}tsParseModifiers(modified,allowedModifiers,disallowedModifiers,errorTemplate,stopOnStartOfClassStaticBlock){const enforceOrder=(loc,modifier,before,after)=>{modifier===before&&modified[after]&&this.raise(TSErrors.InvalidModifiersOrder,{at:loc},before,after)},incompatible=(loc,modifier,mod1,mod2)=>{(modified[mod1]&&modifier===mod2||modified[mod2]&&modifier===mod1)&&this.raise(TSErrors.IncompatibleModifiers,{at:loc},mod1,mod2)};for(;;){const{startLoc}=this.state,modifier=this.tsParseModifier(allowedModifiers.concat(null!=disallowedModifiers?disallowedModifiers:[]),stopOnStartOfClassStaticBlock);if(!modifier)break;tsIsAccessModifier(modifier)?modified.accessibility?this.raise(TSErrors.DuplicateAccessibilityModifier,{at:startLoc}):(enforceOrder(startLoc,modifier,modifier,"override"),enforceOrder(startLoc,modifier,modifier,"static"),enforceOrder(startLoc,modifier,modifier,"readonly"),modified.accessibility=modifier):(Object.hasOwnProperty.call(modified,modifier)?this.raise(TSErrors.DuplicateModifier,{at:startLoc},modifier):(enforceOrder(startLoc,modifier,"static","readonly"),enforceOrder(startLoc,modifier,"static","override"),enforceOrder(startLoc,modifier,"override","readonly"),enforceOrder(startLoc,modifier,"abstract","override"),incompatible(startLoc,modifier,"declare","override"),incompatible(startLoc,modifier,"static","abstract")),modified[modifier]=!0),null!=disallowedModifiers&&disallowedModifiers.includes(modifier)&&this.raise(errorTemplate,{at:startLoc},modifier)}}tsIsListTerminator(kind){switch(kind){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(46)}throw new Error("Unreachable")}tsParseList(kind,parseElement){const result=[];for(;!this.tsIsListTerminator(kind);)result.push(parseElement());return result}tsParseDelimitedList(kind,parseElement,refTrailingCommaPos){return function(x){if(null==x)throw new Error(`Unexpected ${x} value.`);return x}(this.tsParseDelimitedListWorker(kind,parseElement,!0,refTrailingCommaPos))}tsParseDelimitedListWorker(kind,parseElement,expectSuccess,refTrailingCommaPos){const result=[];let trailingCommaPos=-1;for(;!this.tsIsListTerminator(kind);){trailingCommaPos=-1;const element=parseElement();if(null==element)return;if(result.push(element),!this.eat(12)){if(this.tsIsListTerminator(kind))break;return void(expectSuccess&&this.expect(12))}trailingCommaPos=this.state.lastTokStart}return refTrailingCommaPos&&(refTrailingCommaPos.value=trailingCommaPos),result}tsParseBracketedList(kind,parseElement,bracket,skipFirstToken,refTrailingCommaPos){skipFirstToken||(bracket?this.expect(0):this.expect(45));const result=this.tsParseDelimitedList(kind,parseElement,refTrailingCommaPos);return bracket?this.expect(3):this.expect(46),result}tsParseImportType(){const node=this.startNode();return this.expect(79),this.expect(10),this.match(125)||this.raise(TSErrors.UnsupportedImportTypeArgument,{at:this.state.startLoc}),node.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(node.qualifier=this.tsParseEntityName(!0)),this.match(45)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSImportType")}tsParseEntityName(allowReservedWords){let entity=this.parseIdentifier();for(;this.eat(16);){const node=this.startNodeAtNode(entity);node.left=entity,node.right=this.parseIdentifier(allowReservedWords),entity=this.finishNode(node,"TSQualifiedName")}return entity}tsParseTypeReference(){const node=this.startNode();return node.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.match(45)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSTypeReference")}tsParseThisTypePredicate(lhs){this.next();const node=this.startNodeAtNode(lhs);return node.parameterName=lhs,node.typeAnnotation=this.tsParseTypeAnnotation(!1),node.asserts=!1,this.finishNode(node,"TSTypePredicate")}tsParseThisTypeNode(){const node=this.startNode();return this.next(),this.finishNode(node,"TSThisType")}tsParseTypeQuery(){const node=this.startNode();return this.expect(83),this.match(79)?node.exprName=this.tsParseImportType():node.exprName=this.tsParseEntityName(!0),this.finishNode(node,"TSTypeQuery")}tsParseTypeParameter(){const node=this.startNode();return node.name=this.tsParseTypeParameterName(),node.constraint=this.tsEatThenParseType(77),node.default=this.tsEatThenParseType(29),this.finishNode(node,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.match(45))return this.tsParseTypeParameters()}tsParseTypeParameters(){const node=this.startNode();this.match(45)||this.match(134)?this.next():this.unexpected();const refTrailingCommaPos={value:-1};return node.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0,refTrailingCommaPos),0===node.params.length&&this.raise(TSErrors.EmptyTypeParameters,{node}),-1!==refTrailingCommaPos.value&&this.addExtra(node,"trailingComma",refTrailingCommaPos.value),this.finishNode(node,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return 71===this.lookahead().type?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(returnToken,signature){const returnTokenRequired=19===returnToken;signature.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),signature.parameters=this.tsParseBindingListForSignature(),(returnTokenRequired||this.match(returnToken))&&(signature.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(returnToken))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map((pattern=>("Identifier"!==pattern.type&&"RestElement"!==pattern.type&&"ObjectPattern"!==pattern.type&&"ArrayPattern"!==pattern.type&&this.raise(TSErrors.UnsupportedSignatureParameterKind,{node:pattern},pattern.type),pattern)))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(kind,node){return this.tsFillSignature(14,node),this.tsParseTypeMemberSemicolon(),this.finishNode(node,kind)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!tokenIsIdentifier(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(node){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const id=this.parseIdentifier();id.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(id),this.expect(3),node.parameters=[id];const type=this.tsTryParseTypeAnnotation();return type&&(node.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(node,"TSIndexSignature")}tsParsePropertyOrMethodSignature(node,readonly){this.eat(17)&&(node.optional=!0);const nodeAny=node;if(this.match(10)||this.match(45)){readonly&&this.raise(TSErrors.ReadonlyForMethodSignature,{node});const method=nodeAny;method.kind&&this.match(45)&&this.raise(TSErrors.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,method),this.tsParseTypeMemberSemicolon();const paramsKey="parameters",returnTypeKey="typeAnnotation";if("get"===method.kind)method[paramsKey].length>0&&(this.raise(ErrorMessages.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(method[paramsKey][0])&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===method.kind){if(1!==method[paramsKey].length)this.raise(ErrorMessages.BadSetterArity,{at:this.state.curPosition()});else{const firstParameter=method[paramsKey][0];this.isThisParam(firstParameter)&&this.raise(TSErrors.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===firstParameter.type&&firstParameter.optional&&this.raise(TSErrors.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===firstParameter.type&&this.raise(TSErrors.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}method[returnTypeKey]&&this.raise(TSErrors.SetAccesorCannotHaveReturnType,{node:method[returnTypeKey]})}else method.kind="method";return this.finishNode(method,"TSMethodSignature")}{const property=nodeAny;readonly&&(property.readonly=!0);const type=this.tsTryParseTypeAnnotation();return type&&(property.typeAnnotation=type),this.tsParseTypeMemberSemicolon(),this.finishNode(property,"TSPropertySignature")}}tsParseTypeMember(){const node=this.startNode();if(this.match(10)||this.match(45))return this.tsParseSignatureMember("TSCallSignatureDeclaration",node);if(this.match(73)){const id=this.startNode();return this.next(),this.match(10)||this.match(45)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",node):(node.key=this.createIdentifier(id,"new"),this.tsParsePropertyOrMethodSignature(node,!1))}this.tsParseModifiers(node,["readonly"],["declare","abstract","private","protected","public","static","override"],TSErrors.InvalidModifierOnTypeMember);const idx=this.tsTryParseIndexSignature(node);return idx||(this.parsePropertyName(node),node.computed||"Identifier"!==node.key.type||"get"!==node.key.name&&"set"!==node.key.name||!this.tsTokenCanFollowModifier()||(node.kind=node.key.name,this.parsePropertyName(node)),this.tsParsePropertyOrMethodSignature(node,!!node.readonly))}tsParseTypeLiteral(){const node=this.startNode();return node.members=this.tsParseObjectTypeMembers(),this.finishNode(node,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const members=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),members}tsIsStartOfMappedType(){return this.next(),this.eat(49)?this.isContextual(114):(this.isContextual(114)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(54))))}tsParseMappedTypeParameter(){const node=this.startNode();return node.name=this.tsParseTypeParameterName(),node.constraint=this.tsExpectThenParseType(54),this.finishNode(node,"TSTypeParameter")}tsParseMappedType(){const node=this.startNode();return this.expect(5),this.match(49)?(node.readonly=this.state.value,this.next(),this.expectContextual(114)):this.eatContextual(114)&&(node.readonly=!0),this.expect(0),node.typeParameter=this.tsParseMappedTypeParameter(),node.nameType=this.eatContextual(89)?this.tsParseType():null,this.expect(3),this.match(49)?(node.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(node.optional=!0),node.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(node,"TSMappedType")}tsParseTupleType(){const node=this.startNode();node.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let seenOptionalElement=!1,labeledElements=null;return node.elementTypes.forEach((elementNode=>{var _labeledElements;let{type}=elementNode;!seenOptionalElement||"TSRestType"===type||"TSOptionalType"===type||"TSNamedTupleMember"===type&&elementNode.optional||this.raise(TSErrors.OptionalTypeBeforeRequired,{node:elementNode}),seenOptionalElement=seenOptionalElement||"TSNamedTupleMember"===type&&elementNode.optional||"TSOptionalType"===type,"TSRestType"===type&&(type=(elementNode=elementNode.typeAnnotation).type);const isLabeled="TSNamedTupleMember"===type;labeledElements=null!=(_labeledElements=labeledElements)?_labeledElements:isLabeled,labeledElements!==isLabeled&&this.raise(TSErrors.MixedLabeledAndUnlabeledElements,{node:elementNode})})),this.finishNode(node,"TSTupleType")}tsParseTupleElementType(){const{start:startPos,startLoc}=this.state,rest=this.eat(21);let type=this.tsParseType();const optional=this.eat(17);if(this.eat(14)){const labeledNode=this.startNodeAtNode(type);labeledNode.optional=optional,"TSTypeReference"!==type.type||type.typeParameters||"Identifier"!==type.typeName.type?(this.raise(TSErrors.InvalidTupleMemberLabel,{node:type}),labeledNode.label=type):labeledNode.label=type.typeName,labeledNode.elementType=this.tsParseType(),type=this.finishNode(labeledNode,"TSNamedTupleMember")}else if(optional){const optionalTypeNode=this.startNodeAtNode(type);optionalTypeNode.typeAnnotation=type,type=this.finishNode(optionalTypeNode,"TSOptionalType")}if(rest){const restNode=this.startNodeAt(startPos,startLoc);restNode.typeAnnotation=type,type=this.finishNode(restNode,"TSRestType")}return type}tsParseParenthesizedType(){const node=this.startNode();return this.expect(10),node.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(node,"TSParenthesizedType")}tsParseFunctionOrConstructorType(type,abstract){const node=this.startNode();return"TSConstructorType"===type&&(node.abstract=!!abstract,abstract&&this.next(),this.next()),this.tsFillSignature(19,node),this.finishNode(node,type)}tsParseLiteralTypeNode(){const node=this.startNode();return node.literal=(()=>{switch(this.state.type){case 126:case 127:case 125:case 81:case 82:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(node,"TSLiteralType")}tsParseTemplateLiteralType(){const node=this.startNode();return node.literal=this.parseTemplate(!1),this.finishNode(node,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const thisKeyword=this.tsParseThisTypeNode();return this.isContextual(109)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(thisKeyword):thisKeyword}tsParseNonArrayType(){switch(this.state.type){case 125:case 126:case 127:case 81:case 82:return this.tsParseLiteralTypeNode();case 49:if("-"===this.state.value){const node=this.startNode(),nextToken=this.lookahead();if(126!==nextToken.type&&127!==nextToken.type)throw this.unexpected();return node.literal=this.parseMaybeUnary(),this.finishNode(node,"TSLiteralType")}break;case 74:return this.tsParseThisTypeOrThisTypePredicate();case 83:return this.tsParseTypeQuery();case 79:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type}=this.state;if(tokenIsIdentifier(type)||84===type||80===type){const nodeType=84===type?"TSVoidKeyword":80===type?"TSNullKeyword":function(value){switch(value){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==nodeType&&46!==this.lookaheadCharCode()){const node=this.startNode();return this.next(),this.finishNode(node,nodeType)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let type=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const node=this.startNodeAtNode(type);node.elementType=type,this.expect(3),type=this.finishNode(node,"TSArrayType")}else{const node=this.startNodeAtNode(type);node.objectType=type,node.indexType=this.tsParseType(),this.expect(3),type=this.finishNode(node,"TSIndexedAccessType")}return type}tsParseTypeOperator(){const node=this.startNode(),operator=this.state.value;return this.next(),node.operator=operator,node.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===operator&&this.tsCheckTypeAnnotationForReadOnly(node),this.finishNode(node,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(node){switch(node.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(TSErrors.UnexpectedReadonly,{node})}}tsParseInferType(){const node=this.startNode();this.expectContextual(108);const typeParameter=this.startNode();return typeParameter.name=this.tsParseTypeParameterName(),node.typeParameter=this.finishNode(typeParameter,"TSTypeParameter"),this.finishNode(node,"TSInferType")}tsParseTypeOperatorOrHigher(){var token;return(token=this.state.type)>=113&&token<=115&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(108)?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(kind,parseConstituentType,operator){const node=this.startNode(),hasLeadingOperator=this.eat(operator),types=[];do{types.push(parseConstituentType())}while(this.eat(operator));return 1!==types.length||hasLeadingOperator?(node.types=types,this.finishNode(node,kind)):types[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),43)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),41)}tsIsStartOfFunctionType(){return!!this.match(45)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(74))return this.next(),!0;if(this.match(5)){let braceStackCounter=1;for(this.next();braceStackCounter>0;)this.match(5)?++braceStackCounter:this.match(8)&&--braceStackCounter,this.next();return!0}if(this.match(0)){let braceStackCounter=1;for(this.next();braceStackCounter>0;)this.match(0)?++braceStackCounter:this.match(3)&&--braceStackCounter,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(returnToken){return this.tsInType((()=>{const t=this.startNode();this.expect(returnToken);const node=this.startNode(),asserts=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(asserts&&this.match(74)){let thisTypePredicate=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===thisTypePredicate.type?(node.parameterName=thisTypePredicate,node.asserts=!0,node.typeAnnotation=null,thisTypePredicate=this.finishNode(node,"TSTypePredicate")):(this.resetStartLocationFromNode(thisTypePredicate,node),thisTypePredicate.asserts=!0),t.typeAnnotation=thisTypePredicate,this.finishNode(t,"TSTypeAnnotation")}const typePredicateVariable=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!typePredicateVariable)return asserts?(node.parameterName=this.parseIdentifier(),node.asserts=asserts,node.typeAnnotation=null,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const type=this.tsParseTypeAnnotation(!1);return node.parameterName=typePredicateVariable,node.typeAnnotation=type,node.asserts=asserts,t.typeAnnotation=this.finishNode(node,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const id=this.parseIdentifier();if(this.isContextual(109)&&!this.hasPrecedingLineBreak())return this.next(),id}tsParseTypePredicateAsserts(){if(102!==this.state.type)return!1;const containsEsc=this.state.containsEsc;return this.next(),!(!tokenIsIdentifier(this.state.type)&&!this.match(74))&&(containsEsc&&this.raise(ErrorMessages.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc},"asserts"),!0)}tsParseTypeAnnotation(eatColon=!0,t=this.startNode()){return this.tsInType((()=>{eatColon&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const type=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(77))return type;const node=this.startNodeAtNode(type);return node.checkType=type,node.extendsType=this.tsParseNonConditionalType(),this.expect(17),node.trueType=this.tsParseType(),this.expect(14),node.falseType=this.tsParseType(),this.finishNode(node,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(116)&&73===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(73)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(TSErrors.ReservedTypeAssertion,{at:this.state.startLoc});const node=this.startNode(),_const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.expect(46),node.expression=this.parseMaybeUnary(),this.finishNode(node,"TSTypeAssertion")}tsParseHeritageClause(descriptor){const originalStartLoc=this.state.startLoc,delimitedList=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return delimitedList.length||this.raise(TSErrors.EmptyHeritageClauseType,{at:originalStartLoc},descriptor),delimitedList}tsParseExpressionWithTypeArguments(){const node=this.startNode();return node.expression=this.tsParseEntityName(!1),this.match(45)&&(node.typeParameters=this.tsParseTypeArguments()),this.finishNode(node,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(node){tokenIsIdentifier(this.state.type)?(node.id=this.parseIdentifier(),this.checkLVal(node.id,"typescript interface declaration",130)):(node.id=null,this.raise(TSErrors.MissingInterfaceName,{at:this.state.startLoc})),node.typeParameters=this.tsTryParseTypeParameters(),this.eat(77)&&(node.extends=this.tsParseHeritageClause("extends"));const body=this.startNode();return body.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),node.body=this.finishNode(body,"TSInterfaceBody"),this.finishNode(node,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(node){return node.id=this.parseIdentifier(),this.checkLVal(node.id,"typescript type alias",2),node.typeParameters=this.tsTryParseTypeParameters(),node.typeAnnotation=this.tsInType((()=>{if(this.expect(29),this.isContextual(107)&&16!==this.lookahead().type){const node=this.startNode();return this.next(),this.finishNode(node,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(node,"TSTypeAliasDeclaration")}tsInNoContext(cb){const oldContext=this.state.context;this.state.context=[oldContext[0]];try{return cb()}finally{this.state.context=oldContext}}tsInType(cb){const oldInType=this.state.inType;this.state.inType=!0;try{return cb()}finally{this.state.inType=oldInType}}tsEatThenParseType(token){return this.match(token)?this.tsNextThenParseType():void 0}tsExpectThenParseType(token){return this.tsDoThenParseType((()=>this.expect(token)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(cb){return this.tsInType((()=>(cb(),this.tsParseType())))}tsParseEnumMember(){const node=this.startNode();return node.id=this.match(125)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(29)&&(node.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(node,"TSEnumMember")}tsParseEnumDeclaration(node,isConst){return isConst&&(node.const=!0),node.id=this.parseIdentifier(),this.checkLVal(node.id,"typescript enum declaration",isConst?779:267),this.expect(5),node.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(node,"TSEnumDeclaration")}tsParseModuleBlock(){const node=this.startNode();return this.scope.enter(0),this.expect(5),this.parseBlockOrModuleBlockBody(node.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(node,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(node,nested=!1){if(node.id=this.parseIdentifier(),nested||this.checkLVal(node.id,"module or namespace declaration",1024),this.eat(16)){const inner=this.startNode();this.tsParseModuleOrNamespaceDeclaration(inner,!0),node.body=inner}else this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(node,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(node){return this.isContextual(105)?(node.global=!0,node.id=this.parseIdentifier()):this.match(125)?node.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),node.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(node,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(node,isExport){node.isExport=isExport||!1,node.id=this.parseIdentifier(),this.checkLVal(node.id,"import equals declaration",9),this.expect(29);const moduleReference=this.tsParseModuleReference();return"type"===node.importKind&&"TSExternalModuleReference"!==moduleReference.type&&this.raise(TSErrors.ImportAliasHasImportType,{node:moduleReference}),node.moduleReference=moduleReference,this.semicolon(),this.finishNode(node,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(112)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const node=this.startNode();if(this.expectContextual(112),this.expect(10),!this.match(125))throw this.unexpected();return node.expression=this.parseExprAtom(),this.expect(11),this.finishNode(node,"TSExternalModuleReference")}tsLookAhead(f){const state=this.state.clone(),res=f();return this.state=state,res}tsTryParseAndCatch(f){const result=this.tryParse((abort=>f()||abort()));if(!result.aborted&&result.node)return result.error&&(this.state=result.failState),result.node}tsTryParse(f){const state=this.state.clone(),result=f();return void 0!==result&&!1!==result?result:void(this.state=state)}tsTryParseDeclare(nany){if(this.isLineTerminator())return;let kind,starttype=this.state.type;return this.isContextual(95)&&(starttype=70,kind="let"),this.tsInAmbientContext((()=>{switch(starttype){case 64:return nany.declare=!0,this.parseFunctionStatement(nany,!1,!0);case 76:return nany.declare=!0,this.parseClass(nany,!0,!1);case 71:if(this.match(71)&&this.isLookaheadContextual("enum"))return this.expect(71),this.expectContextual(118),this.tsParseEnumDeclaration(nany,!0);case 70:return kind=kind||this.state.value,this.parseVarStatement(nany,kind);case 105:return this.tsParseAmbientExternalModuleDeclaration(nany);default:if(tokenIsIdentifier(starttype))return this.tsParseDeclaration(nany,this.state.value,!0)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(node,expr){switch(expr.name){case"declare":{const declaration=this.tsTryParseDeclare(node);if(declaration)return declaration.declare=!0,declaration;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const mod=node;return mod.global=!0,mod.id=expr,mod.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(mod,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(node,expr.name,!1)}}tsParseDeclaration(node,value,next){switch(value){case"abstract":if(this.tsCheckLineTerminator(next)&&(this.match(76)||tokenIsIdentifier(this.state.type)))return this.tsParseAbstractDeclaration(node);break;case"enum":if(next||tokenIsIdentifier(this.state.type))return next&&this.next(),this.tsParseEnumDeclaration(node,!1);break;case"interface":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseInterfaceDeclaration(node);break;case"module":if(this.tsCheckLineTerminator(next)){if(this.match(125))return this.tsParseAmbientExternalModuleDeclaration(node);if(tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node)}break;case"namespace":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(node);break;case"type":if(this.tsCheckLineTerminator(next)&&tokenIsIdentifier(this.state.type))return this.tsParseTypeAliasDeclaration(node)}}tsCheckLineTerminator(next){return next?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(startPos,startLoc){if(!this.match(45))return;const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const res=this.tsTryParseAndCatch((()=>{const node=this.startNodeAt(startPos,startLoc);return node.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(node),node.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),node}));return this.state.maybeInArrowParameters=oldMaybeInArrowParameters,res?this.parseArrowExpression(res,null,!0):void 0}tsParseTypeArguments(){const node=this.startNode();return node.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(45),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===node.params.length&&this.raise(TSErrors.EmptyTypeArguments,{node}),this.expect(46),this.finishNode(node,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(token=this.state.type)>=116&&token<=122;var token}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(allowModifiers,decorators){const startPos=this.state.start,startLoc=this.state.startLoc;let accessibility,readonly=!1,override=!1;if(void 0!==allowModifiers){const modified={};this.tsParseModifiers(modified,["public","private","protected","override","readonly"]),accessibility=modified.accessibility,override=modified.override,readonly=modified.readonly,!1===allowModifiers&&(accessibility||readonly||override)&&this.raise(TSErrors.UnexpectedParameterModifier,{at:startLoc})}const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);if(accessibility||readonly||override){const pp=this.startNodeAt(startPos,startLoc);return decorators.length&&(pp.decorators=decorators),accessibility&&(pp.accessibility=accessibility),readonly&&(pp.readonly=readonly),override&&(pp.override=override),"Identifier"!==elt.type&&"AssignmentPattern"!==elt.type&&this.raise(TSErrors.UnsupportedParameterPropertyKind,{node:pp}),pp.parameter=elt,this.finishNode(pp,"TSParameterProperty")}return decorators.length&&(left.decorators=decorators),elt}parseFunctionBodyAndFinish(node,type,isMethod=!1){this.match(14)&&(node.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const bodilessType="FunctionDeclaration"===type?"TSDeclareFunction":"ClassMethod"===type||"ClassPrivateMethod"===type?"TSDeclareMethod":void 0;bodilessType&&!this.match(5)&&this.isLineTerminator()?this.finishNode(node,bodilessType):"TSDeclareFunction"===bodilessType&&this.state.isAmbientContext&&(this.raise(TSErrors.DeclareFunctionHasImplementation,{node}),node.declare)?super.parseFunctionBodyAndFinish(node,bodilessType,isMethod):super.parseFunctionBodyAndFinish(node,type,isMethod)}registerFunctionStatementId(node){!node.body&&node.id?this.checkLVal(node.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(items){items.forEach((node=>{"TSTypeCastExpression"===(null==node?void 0:node.type)&&this.raise(TSErrors.UnexpectedTypeAnnotation,{node:node.typeAnnotation})}))}toReferencedList(exprList,isInParens){return this.tsCheckForInvalidTypeCasts(exprList),exprList}parseArrayLike(...args){const node=super.parseArrayLike(...args);return"ArrayExpression"===node.type&&this.tsCheckForInvalidTypeCasts(node.elements),node}parseSubscript(base,startPos,startLoc,noCalls,state){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const nonNullExpression=this.startNodeAt(startPos,startLoc);return nonNullExpression.expression=base,this.finishNode(nonNullExpression,"TSNonNullExpression")}let isOptionalCall=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(noCalls)return state.stop=!0,base;state.optionalChainMember=isOptionalCall=!0,this.next()}if(this.match(45)){let missingParenErrorLoc;const result=this.tsTryParseAndCatch((()=>{if(!noCalls&&this.atPossibleAsyncArrow(base)){const asyncArrowFn=this.tsTryParseGenericAsyncArrowFunction(startPos,startLoc);if(asyncArrowFn)return asyncArrowFn}const node=this.startNodeAt(startPos,startLoc);node.callee=base;const typeArguments=this.tsParseTypeArguments();if(typeArguments){if(isOptionalCall&&!this.match(10)&&(missingParenErrorLoc=this.state.curPosition(),this.unexpected()),!noCalls&&this.eat(10))return node.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(node.arguments),node.typeParameters=typeArguments,state.optionalChainMember&&(node.optional=isOptionalCall),this.finishCallExpression(node,state.optionalChainMember);if(tokenIsTemplate(this.state.type)){const result=this.parseTaggedTemplateExpression(base,startPos,startLoc,state);return result.typeParameters=typeArguments,result}}this.unexpected()}));if(missingParenErrorLoc&&this.unexpected(missingParenErrorLoc,10),result)return result}return super.parseSubscript(base,startPos,startLoc,noCalls,state)}parseNewArguments(node){if(this.match(45)){const typeParameters=this.tsTryParseAndCatch((()=>{const args=this.tsParseTypeArguments();return this.match(10)||this.unexpected(),args}));typeParameters&&(node.typeParameters=typeParameters)}super.parseNewArguments(node)}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(tokenOperatorPrecedence(54)>minPrec&&!this.hasPrecedingLineBreak()&&this.isContextual(89)){const node=this.startNodeAt(leftStartPos,leftStartLoc);node.expression=left;const _const=this.tsTryNextParseConstantContext();return node.typeAnnotation=_const||this.tsNextThenParseType(),this.finishNode(node,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec)}return super.parseExprOp(left,leftStartPos,leftStartLoc,minPrec)}checkReservedWord(word,startLoc,checkKeywords,isBinding){}checkDuplicateExports(){}parseImport(node){if(node.importKind="value",tokenIsIdentifier(this.state.type)||this.match(51)||this.match(5)){let ahead=this.lookahead();if(this.isContextual(122)&&12!==ahead.type&&93!==ahead.type&&29!==ahead.type&&(node.importKind="type",this.next(),ahead=this.lookahead()),tokenIsIdentifier(this.state.type)&&29===ahead.type)return this.tsParseImportEqualsDeclaration(node)}const importNode=super.parseImport(node);return"type"===importNode.importKind&&importNode.specifiers.length>1&&"ImportDefaultSpecifier"===importNode.specifiers[0].type&&this.raise(TSErrors.TypeImportCannotSpecifyDefaultAndNamed,{node:importNode}),importNode}parseExport(node){if(this.match(79))return this.next(),this.isContextual(122)&&61!==this.lookaheadCharCode()?(node.importKind="type",this.next()):node.importKind="value",this.tsParseImportEqualsDeclaration(node,!0);if(this.eat(29)){const assign=node;return assign.expression=this.parseExpression(),this.semicolon(),this.finishNode(assign,"TSExportAssignment")}if(this.eatContextual(89)){const decl=node;return this.expectContextual(120),decl.id=this.parseIdentifier(),this.semicolon(),this.finishNode(decl,"TSNamespaceExportDeclaration")}return this.isContextual(122)&&5===this.lookahead().type?(this.next(),node.exportKind="type"):node.exportKind="value",super.parseExport(node)}isAbstractClass(){return this.isContextual(116)&&76===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const cls=this.startNode();return this.next(),cls.abstract=!0,this.parseClass(cls,!0,!0),cls}if(this.match(121)){const interfaceNode=this.startNode();this.next();const result=this.tsParseInterfaceDeclaration(interfaceNode);if(result)return result}return super.parseExportDefaultExpression()}parseStatementContent(context,topLevel){if(71===this.state.type){if(118===this.lookahead().type){const node=this.startNode();return this.next(),this.expectContextual(118),this.tsParseEnumDeclaration(node,!0)}}return super.parseStatementContent(context,topLevel)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(member,modifiers){return modifiers.some((modifier=>tsIsAccessModifier(modifier)?member.accessibility===modifier:!!member[modifier]))}tsIsStartOfStaticBlocks(){return this.isContextual(100)&&123===this.lookaheadCharCode()}parseClassMember(classBody,member,state){const modifiers=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers(member,modifiers,void 0,void 0,!0);const callParseClassMemberWithIsStatic=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(member,modifiers)&&this.raise(TSErrors.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),this.parseClassStaticBlock(classBody,member)):this.parseClassMemberWithIsStatic(classBody,member,state,!!member.static)};member.declare?this.tsInAmbientContext(callParseClassMemberWithIsStatic):callParseClassMemberWithIsStatic()}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const idx=this.tsTryParseIndexSignature(member);if(idx)return classBody.body.push(idx),member.abstract&&this.raise(TSErrors.IndexSignatureHasAbstract,{node:member}),member.accessibility&&this.raise(TSErrors.IndexSignatureHasAccessibility,{node:member},member.accessibility),member.declare&&this.raise(TSErrors.IndexSignatureHasDeclare,{node:member}),void(member.override&&this.raise(TSErrors.IndexSignatureHasOverride,{node:member}));!this.state.inAbstractClass&&member.abstract&&this.raise(TSErrors.NonAbstractClassHasAbstractMethod,{node:member}),member.override&&(state.hadSuperClass||this.raise(TSErrors.OverrideNotInSubClass,{node:member})),super.parseClassMemberWithIsStatic(classBody,member,state,isStatic)}parsePostMemberNameModifiers(methodOrProp){this.eat(17)&&(methodOrProp.optional=!0),methodOrProp.readonly&&this.match(10)&&this.raise(TSErrors.ClassMethodHasReadonly,{node:methodOrProp}),methodOrProp.declare&&this.match(10)&&this.raise(TSErrors.ClassMethodHasDeclare,{node:methodOrProp})}parseExpressionStatement(node,expr){return("Identifier"===expr.type?this.tsParseExpressionStatement(node,expr):void 0)||super.parseExpressionStatement(node,expr)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(expr,startPos,startLoc,refExpressionErrors);const result=this.tryParse((()=>super.parseConditional(expr,startPos,startLoc)));return result.node?(result.error&&(this.state=result.failState),result.node):(result.error&&super.setOptionalParametersError(refExpressionErrors,result.error),expr)}parseParenItem(node,startPos,startLoc){if(node=super.parseParenItem(node,startPos,startLoc),this.eat(17)&&(node.optional=!0,this.resetEndLocation(node)),this.match(14)){const typeCastNode=this.startNodeAt(startPos,startLoc);return typeCastNode.expression=node,typeCastNode.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(typeCastNode,"TSTypeCastExpression")}return node}parseExportDeclaration(node){const startPos=this.state.start,startLoc=this.state.startLoc,isDeclare=this.eatContextual(117);if(isDeclare&&(this.isContextual(117)||!this.shouldParseExportDeclaration()))throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let declaration;return tokenIsIdentifier(this.state.type)&&(declaration=this.tsTryParseExportDeclaration()),declaration||(declaration=super.parseExportDeclaration(node)),declaration&&("TSInterfaceDeclaration"===declaration.type||"TSTypeAliasDeclaration"===declaration.type||isDeclare)&&(node.exportKind="type"),declaration&&isDeclare&&(this.resetStartLocation(declaration,startPos,startLoc),declaration.declare=!0),declaration}parseClassId(node,isStatement,optionalId){if((!isStatement||optionalId)&&this.isContextual(106))return;super.parseClassId(node,isStatement,optionalId,node.declare?1024:139);const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(node.typeParameters=typeParameters)}parseClassPropertyAnnotation(node){!node.optional&&this.eat(35)&&(node.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(node.typeAnnotation=type)}parseClassProperty(node){if(this.parseClassPropertyAnnotation(node),this.state.isAmbientContext&&this.match(29)&&this.raise(TSErrors.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),node.abstract&&this.match(29)){const{key}=node;this.raise(TSErrors.AbstractPropertyHasInitializer,{at:this.state.startLoc},"Identifier"!==key.type||node.computed?`[${this.input.slice(key.start,key.end)}]`:key.name)}return super.parseClassProperty(node)}parseClassPrivateProperty(node){return node.abstract&&this.raise(TSErrors.PrivateElementHasAbstract,{node}),node.accessibility&&this.raise(TSErrors.PrivateElementHasAccessibility,{node},node.accessibility),this.parseClassPropertyAnnotation(node),super.parseClassPrivateProperty(node)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&isConstructor&&this.raise(TSErrors.ConstructorHasTypeParameters,{node:typeParameters}),!method.declare||"get"!==method.kind&&"set"!==method.kind||this.raise(TSErrors.DeclareAccessor,{node:method},method.kind),typeParameters&&(method.typeParameters=typeParameters),super.pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper)}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(method.typeParameters=typeParameters),super.pushClassPrivateMethod(classBody,method,isGenerator,isAsync)}declareClassPrivateMethodInScope(node,kind){"TSDeclareMethod"!==node.type&&("MethodDefinition"!==node.type||node.value.body)&&super.declareClassPrivateMethodInScope(node,kind)}parseClassSuper(node){super.parseClassSuper(node),node.superClass&&this.match(45)&&(node.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual(106)&&(node.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(prop,...args){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(prop.typeParameters=typeParameters),super.parseObjPropValue(prop,...args)}parseFunctionParams(node,allowModifiers){const typeParameters=this.tsTryParseTypeParameters();typeParameters&&(node.typeParameters=typeParameters),super.parseFunctionParams(node,allowModifiers)}parseVarId(decl,kind){super.parseVarId(decl,kind),"Identifier"===decl.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(decl.definite=!0);const type=this.tsTryParseTypeAnnotation();type&&(decl.id.typeAnnotation=type,this.resetEndLocation(decl.id))}parseAsyncArrowFromCallExpression(node,call){return this.match(14)&&(node.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(node,call)}parseMaybeAssign(...args){var _jsx,_jsx2,_typeCast,_jsx3,_typeCast2,_jsx4,_typeCast3;let state,jsx,typeCast,typeParameters;if(this.hasPlugin("jsx")&&(this.match(134)||this.match(45))){if(state=this.state.clone(),jsx=this.tryParse((()=>super.parseMaybeAssign(...args)),state),!jsx.error)return jsx.node;const{context}=this.state,currentContext=context[context.length-1];currentContext!==types.j_oTag&¤tContext!==types.j_expr||context.pop()}if(!(null!=(_jsx=jsx)&&_jsx.error||this.match(45)))return super.parseMaybeAssign(...args);state=state||this.state.clone();const arrow=this.tryParse((abort=>{var _expr$extra,_typeParameters;typeParameters=this.tsParseTypeParameters();const expr=super.parseMaybeAssign(...args);return("ArrowFunctionExpression"!==expr.type||null!=(_expr$extra=expr.extra)&&_expr$extra.parenthesized)&&abort(),0!==(null==(_typeParameters=typeParameters)?void 0:_typeParameters.params.length)&&this.resetStartLocationFromNode(expr,typeParameters),expr.typeParameters=typeParameters,expr}),state);if(!arrow.error&&!arrow.aborted)return typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(!jsx&&(assert(!this.hasPlugin("jsx")),typeCast=this.tryParse((()=>super.parseMaybeAssign(...args)),state),!typeCast.error))return typeCast.node;if(null!=(_jsx2=jsx)&&_jsx2.node)return this.state=jsx.failState,jsx.node;if(arrow.node)return this.state=arrow.failState,typeParameters&&this.reportReservedArrowTypeParam(typeParameters),arrow.node;if(null!=(_typeCast=typeCast)&&_typeCast.node)return this.state=typeCast.failState,typeCast.node;if(null!=(_jsx3=jsx)&&_jsx3.thrown)throw jsx.error;if(arrow.thrown)throw arrow.error;if(null!=(_typeCast2=typeCast)&&_typeCast2.thrown)throw typeCast.error;throw(null==(_jsx4=jsx)?void 0:_jsx4.error)||arrow.error||(null==(_typeCast3=typeCast)?void 0:_typeCast3.error)}reportReservedArrowTypeParam(node){var _node$extra;1!==node.params.length||null!=(_node$extra=node.extra)&&_node$extra.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(TSErrors.ReservedArrowTypeParam,{node})}parseMaybeUnary(refExpressionErrors){return!this.hasPlugin("jsx")&&this.match(45)?this.tsParseTypeAssertion():super.parseMaybeUnary(refExpressionErrors)}parseArrow(node){if(this.match(14)){const result=this.tryParse((abort=>{const returnType=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||abort(),returnType}));if(result.aborted)return;result.thrown||(result.error&&(this.state=result.failState),node.returnType=result.node)}return super.parseArrow(node)}parseAssignableListItemTypes(param){this.eat(17)&&("Identifier"===param.type||this.state.isAmbientContext||this.state.inType||this.raise(TSErrors.PatternIsOptional,{node:param}),param.optional=!0);const type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type),this.resetEndLocation(param),param}isAssignable(node,isBinding){switch(node.type){case"TSTypeCastExpression":return this.isAssignable(node.expression,isBinding);case"TSParameterProperty":return!0;default:return super.isAssignable(node,isBinding)}}toAssignable(node,isLHS=!1){switch(node.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(node),isLHS);case"TSParameterProperty":default:return super.toAssignable(node,isLHS);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(node,isLHS);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return node.expression=this.toAssignable(node.expression,isLHS),node}}toAssignableParenthesizedExpression(node,isLHS){switch(node.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return node.expression=this.toAssignable(node.expression,isLHS),node;default:return super.toAssignable(node,isLHS)}}checkLVal(expr,contextDescription,...args){var _expr$extra2;switch(expr.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(expr.parameter,"parameter property",...args);case"TSAsExpression":case"TSTypeAssertion":if(!(args[0]||"parenthesized expression"===contextDescription||null!=(_expr$extra2=expr.extra)&&_expr$extra2.parenthesized)){this.raise(ErrorMessages.InvalidLhs,{node:expr},contextDescription);break}return void this.checkLVal(expr.expression,"parenthesized expression",...args);case"TSNonNullExpression":return void this.checkLVal(expr.expression,contextDescription,...args);default:return void super.checkLVal(expr,contextDescription,...args)}}parseBindingAtom(){return 74===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(expr){if(this.match(45)){const typeArguments=this.tsParseTypeArguments();if(this.match(10)){const call=super.parseMaybeDecoratorArguments(expr);return call.typeParameters=typeArguments,call}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(expr)}checkCommaAfterRest(close){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===close?(this.next(),!1):super.checkCommaAfterRest(close)}isClassMethod(){return this.match(45)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(...args){const node=super.parseMaybeDefault(...args);return"AssignmentPattern"===node.type&&node.typeAnnotation&&node.right.startthis.isAssignable(expr,!0))):super.shouldParseArrow(params)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(node){if(this.match(45)){const typeArguments=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));typeArguments&&(node.typeParameters=typeArguments)}return super.jsxParseOpeningElementAfterName(node)}getGetterSetterExpectedParamCount(method){const baseCount=super.getGetterSetterExpectedParamCount(method),firstParam=this.getObjectOrClassMethodParams(method)[0];return firstParam&&this.isThisParam(firstParam)?baseCount+1:baseCount}parseCatchClauseParam(){const param=super.parseCatchClauseParam(),type=this.tsTryParseTypeAnnotation();return type&&(param.typeAnnotation=type,this.resetEndLocation(param)),param}tsInAmbientContext(cb){const oldIsAmbientContext=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return cb()}finally{this.state.isAmbientContext=oldIsAmbientContext}}parseClass(node,...args){const oldInAbstractClass=this.state.inAbstractClass;this.state.inAbstractClass=!!node.abstract;try{return super.parseClass(node,...args)}finally{this.state.inAbstractClass=oldInAbstractClass}}tsParseAbstractDeclaration(node){if(this.match(76))return node.abstract=!0,this.parseClass(node,!0,!1);if(this.isContextual(121)){if(!this.hasFollowingLineBreak())return node.abstract=!0,this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifer,{node}),this.next(),this.tsParseInterfaceDeclaration(node)}else this.unexpected(null,76)}parseMethod(...args){const method=super.parseMethod(...args);if(method.abstract){if(this.hasPlugin("estree")?!!method.value.body:!!method.body){const{key}=method;this.raise(TSErrors.AbstractMethodHasImplementation,{node:method},"Identifier"!==key.type||method.computed?`[${this.input.slice(key.start,key.end)}]`:key.name)}}return method}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return!isString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(node,!1,isInTypeExport),this.finishNode(node,"ExportSpecifier")):(node.exportKind="value",super.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly))}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly){return!importedIsString&&isMaybeTypeOnly?(this.parseTypeOnlyImportExportSpecifier(specifier,!0,isInTypeOnlyImport),this.finishNode(specifier,"ImportSpecifier")):(specifier.importKind="value",super.parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly))}parseTypeOnlyImportExportSpecifier(node,isImport,isInTypeOnlyImportExport){const leftOfAsKey=isImport?"imported":"local",rightOfAsKey=isImport?"local":"exported";let rightOfAs,leftOfAs=node[leftOfAsKey],hasTypeSpecifier=!1,canParseAsKeyword=!0;const loc=leftOfAs.loc.start;if(this.isContextual(89)){const firstAs=this.parseIdentifier();if(this.isContextual(89)){const secondAs=this.parseIdentifier();tokenIsKeywordOrIdentifier(this.state.type)?(hasTypeSpecifier=!0,leftOfAs=firstAs,rightOfAs=this.parseIdentifier(),canParseAsKeyword=!1):(rightOfAs=secondAs,canParseAsKeyword=!1)}else tokenIsKeywordOrIdentifier(this.state.type)?(canParseAsKeyword=!1,rightOfAs=this.parseIdentifier()):(hasTypeSpecifier=!0,leftOfAs=firstAs)}else tokenIsKeywordOrIdentifier(this.state.type)&&(hasTypeSpecifier=!0,leftOfAs=this.parseIdentifier());hasTypeSpecifier&&isInTypeOnlyImportExport&&this.raise(isImport?TSErrors.TypeModifierIsUsedInTypeImports:TSErrors.TypeModifierIsUsedInTypeExports,{at:loc}),node[leftOfAsKey]=leftOfAs,node[rightOfAsKey]=rightOfAs;node[isImport?"importKind":"exportKind"]=hasTypeSpecifier?"type":"value",canParseAsKeyword&&this.eatContextual(89)&&(node[rightOfAsKey]=isImport?this.parseIdentifier():this.parseModuleExportName()),node[rightOfAsKey]||(node[rightOfAsKey]=cloneIdentifier(node[leftOfAsKey])),isImport&&this.checkLVal(node[rightOfAsKey],"import specifier",9)}},v8intrinsic:superClass=>class extends superClass{parseV8Intrinsic(){if(this.match(50)){const v8IntrinsicStartLoc=this.state.startLoc,node=this.startNode();if(this.next(),tokenIsIdentifier(this.state.type)){const name=this.parseIdentifierName(this.state.start),identifier=this.createIdentifier(node,name);if(identifier.type="V8IntrinsicIdentifier",this.match(10))return identifier}this.unexpected(v8IntrinsicStartLoc)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:superClass=>class extends superClass{parsePlaceholder(expectedNode){if(this.match(136)){const node=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),node.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(136),this.finishPlaceholder(node,expectedNode)}}finishPlaceholder(node,expectedNode){const isFinished=!(!node.expectedNode||"Placeholder"!==node.type);return node.expectedNode=expectedNode,isFinished?node:this.finishNode(node,"Placeholder")}getTokenFromCode(code){return 37===code&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(136,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(word){void 0!==word&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(expr){"Placeholder"!==expr.type&&super.checkLVal(...arguments)}toAssignable(node){return node&&"Placeholder"===node.type&&"Expression"===node.expectedNode?(node.expectedNode="Pattern",node):super.toAssignable(...arguments)}isLet(context){if(super.isLet(context))return!0;if(!this.isContextual(95))return!1;if(context)return!1;return 136===this.lookahead().type}verifyBreakContinue(node){node.label&&"Placeholder"===node.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(node,expr){if("Placeholder"!==expr.type||expr.extra&&expr.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){const stmt=node;return stmt.label=this.finishPlaceholder(expr,"Identifier"),this.next(),stmt.body=this.parseStatement("label"),this.finishNode(stmt,"LabeledStatement")}return this.semicolon(),node.name=expr.name,this.finishPlaceholder(node,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(node,isStatement,optionalId){const type=isStatement?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(node);const oldStrict=this.state.strict,placeholder=this.parsePlaceholder("Identifier");if(placeholder){if(!(this.match(77)||this.match(136)||this.match(5))){if(optionalId||!isStatement)return node.id=null,node.body=this.finishPlaceholder(placeholder,"ClassBody"),this.finishNode(node,type);throw this.raise(PlaceholderErrors.ClassNameIsRequired,{at:this.state.startLoc})}node.id=placeholder}else this.parseClassId(node,isStatement,optionalId);return this.parseClassSuper(node),node.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,type)}parseExport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseExport(...arguments);if(!this.isContextual(93)&&!this.match(12))return node.specifiers=[],node.source=null,node.declaration=this.finishPlaceholder(placeholder,"Declaration"),this.finishNode(node,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=placeholder,node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],super.parseExport(node)}isExportDefaultSpecifier(){if(this.match(61)){const next=this.nextTokenStart();if(this.isUnparsedContextual(next,"from")&&this.input.startsWith(tokenLabelName(136),this.nextTokenStartSince(next+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(node){return!!(node.specifiers&&node.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(node){const{specifiers}=node;null!=specifiers&&specifiers.length&&(node.specifiers=specifiers.filter((node=>"Placeholder"===node.exported.type))),super.checkExport(node),node.specifiers=specifiers}parseImport(node){const placeholder=this.parsePlaceholder("Identifier");if(!placeholder)return super.parseImport(...arguments);if(node.specifiers=[],!this.isContextual(93)&&!this.match(12))return node.source=this.finishPlaceholder(placeholder,"StringLiteral"),this.semicolon(),this.finishNode(node,"ImportDeclaration");const specifier=this.startNodeAtNode(placeholder);if(specifier.local=placeholder,this.finishNode(specifier,"ImportDefaultSpecifier"),node.specifiers.push(specifier),this.eat(12)){this.maybeParseStarImportSpecifier(node)||this.parseNamedImportSpecifiers(node)}return this.expectContextual(93),node.source=this.parseImportSource(),this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},mixinPluginNames=Object.keys(mixinPlugins),defaultOptions={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};const unwrapParenthesizedExpression=node=>"ParenthesizedExpression"===node.type?unwrapParenthesizedExpression(node.expression):node;const invalidHackPipeBodies=new Map([["ArrowFunctionExpression","arrow function"],["AssignmentExpression","assignment"],["ConditionalExpression","conditional"],["YieldExpression","yield"]]);const loopLabel={kind:"loop"},switchLabel={kind:"switch"},loneSurrogate=/[\uD800-\uDFFF]/u,keywordRelationalOperator=/in(?:stanceof)?/y;class Parser extends class extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(pluginConfig){if("string"==typeof pluginConfig)return this.plugins.has(pluginConfig);{const[pluginName,pluginOptions]=pluginConfig;if(!this.hasPlugin(pluginName))return!1;const actualOptions=this.plugins.get(pluginName);for(const key of Object.keys(pluginOptions))if((null==actualOptions?void 0:actualOptions[key])!==pluginOptions[key])return!1;return!0}}getPluginOption(plugin,name){var _this$plugins$get;return null==(_this$plugins$get=this.plugins.get(plugin))?void 0:_this$plugins$get[name]}}{addComment(comment){this.filename&&(comment.loc.filename=this.filename),this.state.comments.push(comment)}processComment(node){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;const lastCommentWS=commentStack[i];lastCommentWS.start===node.end&&(lastCommentWS.leadingNode=node,i--);const{start:nodeStart}=node;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(!(commentEnd>nodeStart)){commentEnd===nodeStart&&(commentWS.trailingNode=node);break}commentWS.containingNode=node,this.finalizeComment(commentWS),commentStack.splice(i,1)}}finalizeComment(commentWS){const{comments}=commentWS;if(null!==commentWS.leadingNode||null!==commentWS.trailingNode)null!==commentWS.leadingNode&&setTrailingComments(commentWS.leadingNode,comments),null!==commentWS.trailingNode&&function(node,comments){void 0===node.leadingComments?node.leadingComments=comments:node.leadingComments.unshift(...comments)}(commentWS.trailingNode,comments);else{const{containingNode:node,start:commentStart}=commentWS;if(44===this.input.charCodeAt(commentStart-1))switch(node.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(node,node.properties,commentWS);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(node,node.arguments,commentWS);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(node,node.params,commentWS);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(node,node.elements,commentWS);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(node,node.specifiers,commentWS);break;default:setInnerComments(node,comments)}else setInnerComments(node,comments)}}finalizeRemainingComments(){const{commentStack}=this.state;for(let i=commentStack.length-1;i>=0;i--)this.finalizeComment(commentStack[i]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(node){const{commentStack}=this.state,{length}=commentStack;if(0===length)return;const commentWS=commentStack[length-1];commentWS.leadingNode===node&&(commentWS.leadingNode=null)}takeSurroundingComments(node,start,end){const{commentStack}=this.state,commentStackLength=commentStack.length;if(0===commentStackLength)return;let i=commentStackLength-1;for(;i>=0;i--){const commentWS=commentStack[i],commentEnd=commentWS.end;if(commentWS.start===end)commentWS.leadingNode=node;else if(commentEnd===start)commentWS.trailingNode=node;else if(commentEndparams[i]))+` (${loc.line}:${loc.column})`;if(this.options.errorRecovery){const errors=this.state.errors;for(let i=errors.length-1;i>=0;i--){const error=errors[i];if(error.pos===pos)return Object.assign(error,{message});if(error.posparams[i]))+` (${loc.line}:${loc.column})`;return this._raise(Object.assign({loc,pos},data),message)}_raise(errorContext,message){const err=new SyntaxError(message);if(Object.assign(err,errorContext),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(err),err;throw err}}{constructor(options,input){super(),this.isLookahead=void 0,this.tokens=[],this.state=new State,this.state.init(options),this.input=input,this.length=input.length,this.isLookahead=!1}pushToken(token){this.tokens.length=this.state.tokensLength,this.tokens.push(token),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Token(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(type){return!!this.match(type)&&(this.next(),!0)}match(type){return this.state.type===type}createLookaheadState(state){return{pos:state.pos,value:null,type:state.type,start:state.start,end:state.end,context:[this.curContext()],inType:state.inType,startLoc:state.startLoc,lastTokEndLoc:state.lastTokEndLoc,curLine:state.curLine,lineStart:state.lineStart,curPosition:state.curPosition}}lookahead(){const old=this.state;this.state=this.createLookaheadState(old),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const curr=this.state;return this.state=old,curr}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(pos){return skipWhiteSpace.lastIndex=pos,skipWhiteSpace.test(this.input)?skipWhiteSpace.lastIndex:pos}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(pos){let cp=this.input.charCodeAt(pos);if(55296==(64512&cp)&&++posthis.raise(message,{at:loc}))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(131):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(){let startLoc;this.isLookahead||(startLoc=this.state.curPosition());const start=this.state.pos,end=this.input.indexOf("*/",start+2);if(-1===end)throw this.raise(ErrorMessages.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=end+2,lineBreakG.lastIndex=start+2;lineBreakG.test(this.input)&&lineBreakG.lastIndex<=end;)++this.state.curLine,this.state.lineStart=lineBreakG.lastIndex;if(this.isLookahead)return;const comment={type:"CommentBlock",value:this.input.slice(start+2,end),start,end:end+2,loc:new SourceLocation(startLoc,this.state.curPosition())};return this.options.tokens&&this.pushToken(comment),comment}skipLineComment(startSkip){const start=this.state.pos;let startLoc;this.isLookahead||(startLoc=this.state.curPosition());let ch=this.input.charCodeAt(this.state.pos+=startSkip);if(this.state.posspaceStart))break loop;{const comment=this.skipLineComment(3);void 0!==comment&&(this.addComment(comment),this.options.attachComment&&comments.push(comment))}}}}if(comments.length>0){const CommentWhitespace={start:spaceStart,end:this.state.pos,comments,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(CommentWhitespace)}}finishToken(type,val){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const prevType=this.state.type;this.state.type=type,this.state.value=val,this.isLookahead||this.updateContext(prevType)}replaceToken(type){this.state.type=type,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const nextPos=this.state.pos+1,next=this.codePointAtPos(nextPos);if(next>=48&&next<=57)throw this.raise(ErrorMessages.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===next||91===next&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===next?ErrorMessages.RecordExpressionHashIncorrectStartSyntaxType:ErrorMessages.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===next?this.finishToken(7):this.finishToken(1)}else isIdentifierStart(next)?(++this.state.pos,this.finishToken(130,this.readWord1(next))):92===next?(++this.state.pos,this.finishToken(130,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const next=this.input.charCodeAt(this.state.pos+1);next>=48&&next<=57?this.readNumber(!0):46===next&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(52,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let ch=this.input.charCodeAt(this.state.pos+1);if(33!==ch)return!1;const start=this.state.pos;for(this.state.pos+=1;!isNewLine(ch)&&++this.state.pos=48&&next2<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(code){switch(code){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ErrorMessages.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(ErrorMessages.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const next=this.input.charCodeAt(this.state.pos+1);if(120===next||88===next)return void this.readRadixNumber(16);if(111===next||79===next)return void this.readRadixNumber(8);if(98===next||66===next)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(code);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(code);case 124:case 38:return void this.readToken_pipe_amp(code);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(code);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(code);case 126:return void this.finishOp(36,1);case 64:return++this.state.pos,void this.finishToken(26);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(isIdentifierStart(code))return void this.readWord(code)}throw this.raise(ErrorMessages.InvalidOrUnexpectedToken,{at:this.state.curPosition()},String.fromCodePoint(code))}finishOp(type,size){const str=this.input.slice(this.state.pos,this.state.pos+size);this.state.pos+=size,this.finishToken(type,str)}readRegexp(){const startLoc=this.state.startLoc,start=this.state.start+1;let escaped,inClass,{pos}=this.state;for(;;++pos){if(pos>=this.length)throw this.raise(ErrorMessages.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});const ch=this.input.charCodeAt(pos);if(isNewLine(ch))throw this.raise(ErrorMessages.UnterminatedRegExp,{at:createPositionWithColumnOffset(startLoc,1)});if(escaped)escaped=!1;else{if(91===ch)inClass=!0;else if(93===ch&&inClass)inClass=!1;else if(47===ch&&!inClass)break;escaped=92===ch}}const content=this.input.slice(start,pos);++pos;let mods="";for(;pos=97?code-97+10:code>=65?code-65+10:_isDigit(code)?code-48:1/0,val>=radix)if(this.options.errorRecovery&&val<=9)val=0,this.raise(ErrorMessages.InvalidDigit,{at:this.state.curPosition()},radix);else{if(!forceLen)break;val=0,invalid=!0}++this.state.pos,total=total*radix+val}else{const prev=this.input.charCodeAt(this.state.pos-1),next=this.input.charCodeAt(this.state.pos+1);(-1===allowedSiblings.indexOf(next)||forbiddenSiblings.indexOf(prev)>-1||forbiddenSiblings.indexOf(next)>-1||Number.isNaN(next))&&this.raise(ErrorMessages.UnexpectedNumericSeparator,{at:this.state.curPosition()}),allowNumSeparator||this.raise(ErrorMessages.NumericSeparatorInEscapeSequence,{at:this.state.curPosition()}),++this.state.pos}}return this.state.pos===start||null!=len&&this.state.pos-start!==len||invalid?null:total}readRadixNumber(radix){const startLoc=this.state.curPosition();let isBigInt=!1;this.state.pos+=2;const val=this.readInt(radix);null==val&&this.raise(ErrorMessages.InvalidDigit,{at:createPositionWithColumnOffset(startLoc,2)},radix);const next=this.input.charCodeAt(this.state.pos);if(110===next)++this.state.pos,isBigInt=!0;else if(109===next)throw this.raise(ErrorMessages.InvalidDecimal,{at:startLoc});if(isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(ErrorMessages.NumberIdentifier,{at:this.state.curPosition()});if(isBigInt){const str=this.input.slice(indexes.get(startLoc),this.state.pos).replace(/[_n]/g,"");this.finishToken(127,str)}else this.finishToken(126,val)}readNumber(startsWithDot){const start=this.state.pos,startLoc=this.state.curPosition();let isFloat=!1,isBigInt=!1,isDecimal=!1,hasExponent=!1,isOctal=!1;startsWithDot||null!==this.readInt(10)||this.raise(ErrorMessages.InvalidNumber,{at:this.state.curPosition()});const hasLeadingZero=this.state.pos-start>=2&&48===this.input.charCodeAt(start);if(hasLeadingZero){const integer=this.input.slice(start,this.state.pos);if(this.recordStrictModeErrors(ErrorMessages.StrictOctalLiteral,startLoc),!this.state.strict){const underscorePos=integer.indexOf("_");underscorePos>0&&this.raise(ErrorMessages.ZeroDigitNumericSeparator,{at:createPositionWithColumnOffset(startLoc,underscorePos)})}isOctal=hasLeadingZero&&!/[89]/.test(integer)}let next=this.input.charCodeAt(this.state.pos);if(46!==next||isOctal||(++this.state.pos,this.readInt(10),isFloat=!0,next=this.input.charCodeAt(this.state.pos)),69!==next&&101!==next||isOctal||(next=this.input.charCodeAt(++this.state.pos),43!==next&&45!==next||++this.state.pos,null===this.readInt(10)&&this.raise(ErrorMessages.InvalidOrMissingExponent,{at:startLoc}),isFloat=!0,hasExponent=!0,next=this.input.charCodeAt(this.state.pos)),110===next&&((isFloat||hasLeadingZero)&&this.raise(ErrorMessages.InvalidBigIntLiteral,{at:startLoc}),++this.state.pos,isBigInt=!0),109===next&&(this.expectPlugin("decimal",this.state.curPosition()),(hasExponent||hasLeadingZero)&&this.raise(ErrorMessages.InvalidDecimal,{at:startLoc}),++this.state.pos,isDecimal=!0),isIdentifierStart(this.codePointAtPos(this.state.pos)))throw this.raise(ErrorMessages.NumberIdentifier,{at:this.state.curPosition()});const str=this.input.slice(start,this.state.pos).replace(/[_mn]/g,"");if(isBigInt)return void this.finishToken(127,str);if(isDecimal)return void this.finishToken(128,str);const val=isOctal?parseInt(str,8):parseFloat(str);this.finishToken(126,val)}readCodePoint(throwOnInvalid){let code;if(123===this.input.charCodeAt(this.state.pos)){if(++this.state.pos,code=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,throwOnInvalid),++this.state.pos,null!==code&&code>1114111){if(!throwOnInvalid)return null;this.raise(ErrorMessages.InvalidCodePoint,{at:this.state.curPosition()})}}else code=this.readHexChar(4,!1,throwOnInvalid);return code}readString(quote){let out="",chunkStart=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ErrorMessages.UnterminatedString,{at:this.state.startLoc});const ch=this.input.charCodeAt(this.state.pos);if(ch===quote)break;if(92===ch)out+=this.input.slice(chunkStart,this.state.pos),out+=this.readEscapedChar(!1),chunkStart=this.state.pos;else if(8232===ch||8233===ch)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(isNewLine(ch))throw this.raise(ErrorMessages.UnterminatedString,{at:this.state.startLoc});++this.state.pos}}out+=this.input.slice(chunkStart,this.state.pos++),this.finishToken(125,out)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let out="",chunkStart=this.state.pos,containsInvalid=!1;for(++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(ErrorMessages.UnterminatedTemplate,{at:createPositionWithColumnOffset(this.state.startLoc,1)});const ch=this.input.charCodeAt(this.state.pos);if(96===ch)return++this.state.pos,out+=this.input.slice(chunkStart,this.state.pos),void this.finishToken(24,containsInvalid?null:out);if(36===ch&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos+=2,out+=this.input.slice(chunkStart,this.state.pos),void this.finishToken(25,containsInvalid?null:out);if(92===ch){out+=this.input.slice(chunkStart,this.state.pos);const escaped=this.readEscapedChar(!0);null===escaped?containsInvalid=!0:out+=escaped,chunkStart=this.state.pos}else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.state.pos),++this.state.pos,ch){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}++this.state.curLine,this.state.lineStart=this.state.pos,chunkStart=this.state.pos}else++this.state.pos}}recordStrictModeErrors(message,loc){const index=indexes.get(loc);this.state.strict&&!this.state.strictErrors.has(index)?this.raise(message,{at:loc}):this.state.strictErrors.set(index,{loc,message})}readEscapedChar(inTemplate){const throwOnInvalid=!inTemplate,ch=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,ch){case 110:return"\n";case 114:return"\r";case 120:{const code=this.readHexChar(2,!1,throwOnInvalid);return null===code?null:String.fromCharCode(code)}case 117:{const code=this.readCodePoint(throwOnInvalid);return null===code?null:String.fromCodePoint(code)}case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(inTemplate)return null;this.recordStrictModeErrors(ErrorMessages.StrictNumericEscape,createPositionWithColumnOffset(this.state.curPosition(),-1));default:if(ch>=48&&ch<=55){const codePos=createPositionWithColumnOffset(this.state.curPosition(),-1);let octalStr=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.state.pos+=octalStr.length-1;const next=this.input.charCodeAt(this.state.pos);if("0"!==octalStr||56===next||57===next){if(inTemplate)return null;this.recordStrictModeErrors(ErrorMessages.StrictNumericEscape,codePos)}return String.fromCharCode(octal)}return String.fromCharCode(ch)}}readHexChar(len,forceLen,throwOnInvalid){const codeLoc=this.state.curPosition(),n=this.readInt(16,len,forceLen,!1);return null===n&&(throwOnInvalid?this.raise(ErrorMessages.InvalidEscapeSequence,{at:codeLoc}):this.state.pos=indexes.get(codeLoc)-1),n}readWord1(firstCode){this.state.containsEsc=!1;let word="";const start=this.state.pos;let chunkStart=this.state.pos;for(void 0!==firstCode&&(this.state.pos+=firstCode<=65535?1:2);this.state.posindexes.get(this.state.lastTokEndLoc)&&this.raise({code:ErrorCodes.SyntaxError,reasonCode:"UnexpectedSpace",template:message},{at:this.state.lastTokEndLoc})}unexpected(loc,type){throw this.raise({code:ErrorCodes.SyntaxError,reasonCode:"UnexpectedToken",template:null!=type?`Unexpected token, expected "${tokenLabelName(type)}"`:"Unexpected token"},{at:null!=loc?loc:this.state.startLoc})}getPluginNamesFromConfigs(pluginConfigs){return pluginConfigs.map((c=>"string"==typeof c?c:c[0]))}expectPlugin(pluginConfig,loc){if(!this.hasPlugin(pluginConfig))throw this.raiseWithData(null!=loc?loc:this.state.startLoc,{missingPlugin:this.getPluginNamesFromConfigs([pluginConfig])},`This experimental syntax requires enabling the parser plugin: ${JSON.stringify(pluginConfig)}.`);return!0}expectOnePlugin(pluginConfigs){if(!pluginConfigs.some((c=>this.hasPlugin(c))))throw this.raiseWithData(this.state.startLoc,{missingPlugin:this.getPluginNamesFromConfigs(pluginConfigs)},`This experimental syntax requires enabling one of the following parser plugin(s): ${pluginConfigs.map((c=>JSON.stringify(c))).join(", ")}.`)}tryParse(fn,oldState=this.state.clone()){const abortSignal={node:null};try{const node=fn(((node=null)=>{throw abortSignal.node=node,abortSignal}));if(this.state.errors.length>oldState.errors.length){const failState=this.state;return this.state=oldState,this.state.tokensLength=failState.tokensLength,{node,error:failState.errors[oldState.errors.length],thrown:!1,aborted:!1,failState}}return{node,error:null,thrown:!1,aborted:!1,failState:null}}catch(error){const failState=this.state;if(this.state=oldState,error instanceof SyntaxError)return{node:null,error,thrown:!0,aborted:!1,failState};if(error===abortSignal)return{node:abortSignal.node,error:null,thrown:!1,aborted:!0,failState};throw error}}checkExpressionErrors(refExpressionErrors,andThrow){if(!refExpressionErrors)return!1;const{shorthandAssignLoc,doubleProtoLoc,optionalParametersLoc}=refExpressionErrors;if(!andThrow)return!!shorthandAssignLoc||!!doubleProtoLoc||!!optionalParametersLoc;null!=shorthandAssignLoc&&this.raise(ErrorMessages.InvalidCoverInitializedName,{at:shorthandAssignLoc}),null!=doubleProtoLoc&&this.raise(ErrorMessages.DuplicateProto,{at:doubleProtoLoc}),null!=optionalParametersLoc&&this.unexpected(optionalParametersLoc)}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(node){return"PrivateName"===node.type}getPrivateNameSV(node){return node.id.name}hasPropertyAsPrivateName(node){return("MemberExpression"===node.type||"OptionalMemberExpression"===node.type)&&this.isPrivateName(node.property)}isOptionalChain(node){return"OptionalMemberExpression"===node.type||"OptionalCallExpression"===node.type}isObjectProperty(node){return"ObjectProperty"===node.type}isObjectMethod(node){return"ObjectMethod"===node.type}initializeScopes(inModule="module"===this.options.sourceType){const oldLabels=this.state.labels;this.state.labels=[];const oldExportedIdentifiers=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const oldInModule=this.inModule;this.inModule=inModule;const oldScope=this.scope,ScopeHandler=this.getScopeHandler();this.scope=new ScopeHandler(this.raise.bind(this),this.inModule);const oldProdParam=this.prodParam;this.prodParam=new ProductionParameterHandler;const oldClassScope=this.classScope;this.classScope=new ClassScopeHandler(this.raise.bind(this));const oldExpressionScope=this.expressionScope;return this.expressionScope=new ExpressionScopeHandler(this.raise.bind(this)),()=>{this.state.labels=oldLabels,this.exportedIdentifiers=oldExportedIdentifiers,this.inModule=oldInModule,this.scope=oldScope,this.prodParam=oldProdParam,this.classScope=oldClassScope,this.expressionScope=oldExpressionScope}}enterInitialScopes(){let paramFlags=0;this.inModule&&(paramFlags|=2),this.scope.enter(1),this.prodParam.enter(paramFlags)}}{startNode(){return new Node(this,this.state.start,this.state.startLoc)}startNodeAt(pos,loc){return new Node(this,pos,loc)}startNodeAtNode(type){return this.startNodeAt(type.start,type.loc.start)}finishNode(node,type){return this.finishNodeAt(node,type,this.state.lastTokEndLoc)}finishNodeAt(node,type,endLoc){return node.type=type,node.end=indexes.get(endLoc),node.loc.end=endLoc,this.options.ranges&&(node.range[1]=node.end),this.options.attachComment&&this.processComment(node),node}resetStartLocation(node,start,startLoc){node.start=start,node.loc.start=startLoc,this.options.ranges&&(node.range[0]=start)}resetEndLocation(node,endLoc=this.state.lastTokEndLoc){node.end=indexes.get(endLoc),node.loc.end=endLoc,this.options.ranges&&(node.range[1]=node.end)}resetStartLocationFromNode(node,locationNode){this.resetStartLocation(node,locationNode.start,locationNode.loc.start)}}{toAssignable(node,isLHS=!1){var _node$extra,_node$extra3;let parenthesized;switch(("ParenthesizedExpression"===node.type||null!=(_node$extra=node.extra)&&_node$extra.parenthesized)&&(parenthesized=unwrapParenthesizedExpression(node),isLHS?"Identifier"===parenthesized.type?this.expressionScope.recordParenthesizedIdentifierError(ErrorMessages.InvalidParenthesizedAssignment,node.loc.start):"MemberExpression"!==parenthesized.type&&this.raise(ErrorMessages.InvalidParenthesizedAssignment,{node}):this.raise(ErrorMessages.InvalidParenthesizedAssignment,{node})),node.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern";for(let i=0,length=node.properties.length,last=length-1;i"ObjectMethod"!==prop.type&&(i===last||"SpreadElement"!==prop.type)&&this.isAssignable(prop)))}case"ObjectProperty":return this.isAssignable(node.value);case"SpreadElement":return this.isAssignable(node.argument);case"ArrayExpression":return node.elements.every((element=>null===element||this.isAssignable(element)));case"AssignmentExpression":return"="===node.operator;case"ParenthesizedExpression":return this.isAssignable(node.expression);case"MemberExpression":case"OptionalMemberExpression":return!isBinding;default:return!1}}toReferencedList(exprList,isParenthesizedExpr){return exprList}toReferencedListDeep(exprList,isParenthesizedExpr){this.toReferencedList(exprList,isParenthesizedExpr);for(const expr of exprList)"ArrayExpression"===(null==expr?void 0:expr.type)&&this.toReferencedListDeep(expr.elements)}parseSpread(refExpressionErrors,refNeedsArrowPos){const node=this.startNode();return this.next(),node.argument=this.parseMaybeAssignAllowIn(refExpressionErrors,void 0,refNeedsArrowPos),this.finishNode(node,"SpreadElement")}parseRestBinding(){const node=this.startNode();return this.next(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const node=this.startNode();return this.next(),node.elements=this.parseBindingList(3,93,!0),this.finishNode(node,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(close,closeCharCode,allowEmpty,allowModifiers){const elts=[];let first=!0;for(;!this.eat(close);)if(first?first=!1:this.expect(12),allowEmpty&&this.match(12))elts.push(null);else{if(this.eat(close))break;if(this.match(21)){if(elts.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(closeCharCode)){this.expect(close);break}}else{const decorators=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(ErrorMessages.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());elts.push(this.parseAssignableListItem(allowModifiers,decorators))}}return elts}parseBindingRestProperty(prop){return this.next(),prop.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(prop,"RestElement")}parseBindingProperty(){const prop=this.startNode(),{type,start:startPos,startLoc}=this.state;return 21===type?this.parseBindingRestProperty(prop):(this.parsePropertyName(prop),prop.method=!1,this.parseObjPropValue(prop,startPos,startLoc,!1,!1,!0,!1),prop)}parseAssignableListItem(allowModifiers,decorators){const left=this.parseMaybeDefault();this.parseAssignableListItemTypes(left);const elt=this.parseMaybeDefault(left.start,left.loc.start,left);return decorators.length&&(left.decorators=decorators),elt}parseAssignableListItemTypes(param){return param}parseMaybeDefault(startPos,startLoc,left){var _startLoc,_startPos,_left;if(startLoc=null!=(_startLoc=startLoc)?_startLoc:this.state.startLoc,startPos=null!=(_startPos=startPos)?_startPos:this.state.start,left=null!=(_left=left)?_left:this.parseBindingAtom(),!this.eat(29))return left;const node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssignAllowIn(),this.finishNode(node,"AssignmentPattern")}checkLVal(expr,contextDescription,bindingType=64,checkClashes,disallowLetBinding,strictModeChanged=!1){switch(expr.type){case"Identifier":{const{name}=expr;this.state.strict&&(strictModeChanged?isStrictBindReservedWord(name,this.inModule):isStrictBindOnlyReservedWord(name))&&this.raise(64===bindingType?ErrorMessages.StrictEvalArguments:ErrorMessages.StrictEvalArgumentsBinding,{node:expr},name),checkClashes&&(checkClashes.has(name)?this.raise(ErrorMessages.ParamDupe,{node:expr}):checkClashes.add(name)),disallowLetBinding&&"let"===name&&this.raise(ErrorMessages.LetInLexicalBinding,{node:expr}),64&bindingType||this.scope.declareName(name,bindingType,expr.loc.start);break}case"MemberExpression":64!==bindingType&&this.raise(ErrorMessages.InvalidPropertyBindingPattern,{node:expr});break;case"ObjectPattern":for(let prop of expr.properties){if(this.isObjectProperty(prop))prop=prop.value;else if(this.isObjectMethod(prop))continue;this.checkLVal(prop,"object destructuring pattern",bindingType,checkClashes,disallowLetBinding)}break;case"ArrayPattern":for(const elem of expr.elements)elem&&this.checkLVal(elem,"array destructuring pattern",bindingType,checkClashes,disallowLetBinding);break;case"AssignmentPattern":this.checkLVal(expr.left,"assignment pattern",bindingType,checkClashes);break;case"RestElement":this.checkLVal(expr.argument,"rest element",bindingType,checkClashes);break;case"ParenthesizedExpression":this.checkLVal(expr.expression,"parenthesized expression",bindingType,checkClashes);break;default:this.raise(64===bindingType?ErrorMessages.InvalidLhs:ErrorMessages.InvalidLhsBinding,{node:expr},contextDescription)}}checkToRestConversion(node){"Identifier"!==node.argument.type&&"MemberExpression"!==node.argument.type&&this.raise(ErrorMessages.InvalidRestAssignmentPattern,{node:node.argument})}checkCommaAfterRest(close){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===close?ErrorMessages.RestTrailingComma:ErrorMessages.ElementAfterRest,{at:this.state.startLoc}),!0)}}{checkProto(prop,isRecord,protoRef,refExpressionErrors){if("SpreadElement"===prop.type||this.isObjectMethod(prop)||prop.computed||prop.shorthand)return;const key=prop.key;if("__proto__"===("Identifier"===key.type?key.name:key.value)){if(isRecord)return void this.raise(ErrorMessages.RecordNoProto,{node:key});protoRef.used&&(refExpressionErrors?null===refExpressionErrors.doubleProtoLoc&&(refExpressionErrors.doubleProtoLoc=key.loc.start):this.raise(ErrorMessages.DuplicateProto,{node:key})),protoRef.used=!0}}shouldExitDescending(expr,potentialArrowAt){return"ArrowFunctionExpression"===expr.type&&expr.start===potentialArrowAt}getExpression(){this.enterInitialScopes(),this.nextToken();const expr=this.parseExpression();return this.match(131)||this.unexpected(),this.finalizeRemainingComments(),expr.comments=this.state.comments,expr.errors=this.state.errors,this.options.tokens&&(expr.tokens=this.tokens),expr}parseExpression(disallowIn,refExpressionErrors){return disallowIn?this.disallowInAnd((()=>this.parseExpressionBase(refExpressionErrors))):this.allowInAnd((()=>this.parseExpressionBase(refExpressionErrors)))}parseExpressionBase(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,expr=this.parseMaybeAssign(refExpressionErrors);if(this.match(12)){const node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(12);)node.expressions.push(this.parseMaybeAssign(refExpressionErrors));return this.toReferencedList(node.expressions),this.finishNode(node,"SequenceExpression")}return expr}parseMaybeAssignDisallowIn(refExpressionErrors,afterLeftParse){return this.disallowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}parseMaybeAssignAllowIn(refExpressionErrors,afterLeftParse){return this.allowInAnd((()=>this.parseMaybeAssign(refExpressionErrors,afterLeftParse)))}setOptionalParametersError(refExpressionErrors,resultError){var _resultError$loc;refExpressionErrors.optionalParametersLoc=null!=(_resultError$loc=null==resultError?void 0:resultError.loc)?_resultError$loc:this.state.startLoc}parseMaybeAssign(refExpressionErrors,afterLeftParse){const startPos=this.state.start,startLoc=this.state.startLoc;if(this.isContextual(101)&&this.prodParam.hasYield){let left=this.parseYield();return afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),left}let ownExpressionErrors;refExpressionErrors?ownExpressionErrors=!1:(refExpressionErrors=new ExpressionErrors,ownExpressionErrors=!0);const{type}=this.state;(10===type||tokenIsIdentifier(type))&&(this.state.potentialArrowAt=this.state.start);let left=this.parseMaybeConditional(refExpressionErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),(token=this.state.type)>=29&&token<=33){const node=this.startNodeAt(startPos,startLoc),operator=this.state.value;return node.operator=operator,this.match(29)?(node.left=this.toAssignable(left,!0),null!=refExpressionErrors.doubleProtoLoc&&indexes.get(refExpressionErrors.doubleProtoLoc)>=startPos&&(refExpressionErrors.doubleProtoLoc=null),null!=refExpressionErrors.shorthandAssignLoc&&indexes.get(refExpressionErrors.shorthandAssignLoc)>=startPos&&(refExpressionErrors.shorthandAssignLoc=null)):node.left=left,this.checkLVal(left,"assignment expression"),this.next(),node.right=this.parseMaybeAssign(),this.finishNode(node,"AssignmentExpression")}var token;return ownExpressionErrors&&this.checkExpressionErrors(refExpressionErrors,!0),left}parseMaybeConditional(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprOps(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseConditional(expr,startPos,startLoc,refExpressionErrors)}parseConditional(expr,startPos,startLoc,refExpressionErrors){if(this.eat(17)){const node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),node.alternate=this.parseMaybeAssign(),this.finishNode(node,"ConditionalExpression")}return expr}parseMaybeUnaryOrPrivate(refExpressionErrors){return this.match(130)?this.parsePrivateName():this.parseMaybeUnary(refExpressionErrors)}parseExprOps(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseMaybeUnaryOrPrivate(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseExprOp(expr,startPos,startLoc,-1)}parseExprOp(left,leftStartPos,leftStartLoc,minPrec){if(this.isPrivateName(left)){const value=this.getPrivateNameSV(left);(minPrec>=tokenOperatorPrecedence(54)||!this.prodParam.hasIn||!this.match(54))&&this.raise(ErrorMessages.PrivateInExpectedIn,{node:left},value),this.classScope.usePrivateName(value,left.loc.start)}const op=this.state.type;if((token=op)>=37&&token<=55&&(this.prodParam.hasIn||!this.match(54))){let prec=tokenOperatorPrecedence(op);if(prec>minPrec){if(37===op){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return left;this.checkPipelineAtInfixOperator(left,leftStartLoc)}const node=this.startNodeAt(leftStartPos,leftStartLoc);node.left=left,node.operator=this.state.value;const logical=39===op||40===op,coalesce=38===op;if(coalesce&&(prec=tokenOperatorPrecedence(40)),this.next(),37===op&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&92===this.state.type&&this.prodParam.hasAwait)throw this.raise(ErrorMessages.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});node.right=this.parseExprOpRightExpr(op,prec),this.finishNode(node,logical||coalesce?"LogicalExpression":"BinaryExpression");const nextOp=this.state.type;if(coalesce&&(39===nextOp||40===nextOp)||logical&&38===nextOp)throw this.raise(ErrorMessages.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec)}}var token;return left}parseExprOpRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;if(37===op)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(101))throw this.raise(ErrorMessages.PipeBodyIsTighter,{at:this.state.startLoc},this.state.value);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(op,prec),startPos,startLoc)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(prec)))}return this.parseExprOpBaseRightExpr(op,prec)}parseExprOpBaseRightExpr(op,prec){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,53===op?prec-1:prec)}parseHackPipeBody(){var _body$extra;const{startLoc}=this.state,body=this.parseMaybeAssign();return!invalidHackPipeBodies.has(body.type)||null!=(_body$extra=body.extra)&&_body$extra.parenthesized||this.raise(ErrorMessages.PipeUnparenthesizedBody,{at:startLoc},invalidHackPipeBodies.get(body.type)),this.topicReferenceWasUsedInCurrentContext()||this.raise(ErrorMessages.PipeTopicUnused,{at:startLoc}),body}checkExponentialAfterUnary(node){this.match(53)&&this.raise(ErrorMessages.UnexpectedTokenUnaryExponentiation,{node:node.argument})}parseMaybeUnary(refExpressionErrors,sawUnary){const startPos=this.state.start,startLoc=this.state.startLoc,isAwait=this.isContextual(92);if(isAwait&&this.isAwaitAllowed()){this.next();const expr=this.parseAwait(startPos,startLoc);return sawUnary||this.checkExponentialAfterUnary(expr),expr}const update=this.match(34),node=this.startNode();if(token=this.state.type,tokenPrefixes[token]){node.operator=this.state.value,node.prefix=!0,this.match(68)&&this.expectPlugin("throwExpressions");const isDelete=this.match(85);if(this.next(),node.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refExpressionErrors,!0),this.state.strict&&isDelete){const arg=node.argument;"Identifier"===arg.type?this.raise(ErrorMessages.StrictDelete,{node}):this.hasPropertyAsPrivateName(arg)&&this.raise(ErrorMessages.DeletePrivateField,{node})}if(!update)return sawUnary||this.checkExponentialAfterUnary(node),this.finishNode(node,"UnaryExpression")}var token;const expr=this.parseUpdate(node,update,refExpressionErrors);if(isAwait){const{type}=this.state;if((this.hasPlugin("v8intrinsic")?tokenCanStartExpression(type):tokenCanStartExpression(type)&&!this.match(50))&&!this.isAmbiguousAwait())return this.raiseOverwrite(startLoc,ErrorMessages.AwaitNotInAsyncContext),this.parseAwait(startPos,startLoc)}return expr}parseUpdate(node,update,refExpressionErrors){if(update)return this.checkLVal(node.argument,"prefix operation"),this.finishNode(node,"UpdateExpression");const startPos=this.state.start,startLoc=this.state.startLoc;let expr=this.parseExprSubscripts(refExpressionErrors);if(this.checkExpressionErrors(refExpressionErrors,!1))return expr;for(;34===this.state.type&&!this.canInsertSemicolon();){const node=this.startNodeAt(startPos,startLoc);node.operator=this.state.value,node.prefix=!1,node.argument=expr,this.checkLVal(expr,"postfix operation"),this.next(),expr=this.finishNode(node,"UpdateExpression")}return expr}parseExprSubscripts(refExpressionErrors){const startPos=this.state.start,startLoc=this.state.startLoc,potentialArrowAt=this.state.potentialArrowAt,expr=this.parseExprAtom(refExpressionErrors);return this.shouldExitDescending(expr,potentialArrowAt)?expr:this.parseSubscripts(expr,startPos,startLoc)}parseSubscripts(base,startPos,startLoc,noCalls){const state={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(base),stop:!1};do{base=this.parseSubscript(base,startPos,startLoc,noCalls,state),state.maybeAsyncArrow=!1}while(!state.stop);return base}parseSubscript(base,startPos,startLoc,noCalls,state){const{type}=this.state;if(!noCalls&&15===type)return this.parseBind(base,startPos,startLoc,noCalls,state);if(tokenIsTemplate(type))return this.parseTaggedTemplateExpression(base,startPos,startLoc,state);let optional=!1;if(18===type){if(noCalls&&40===this.lookaheadCharCode())return state.stop=!0,base;state.optionalChainMember=optional=!0,this.next()}if(!noCalls&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional);{const computed=this.eat(0);return computed||optional||this.eat(16)?this.parseMember(base,startPos,startLoc,state,computed,optional):(state.stop=!0,base)}}parseMember(base,startPos,startLoc,state,computed,optional){const node=this.startNodeAt(startPos,startLoc);return node.object=base,node.computed=computed,computed?(node.property=this.parseExpression(),this.expect(3)):this.match(130)?("Super"===base.type&&this.raise(ErrorMessages.SuperPrivateField,{at:startLoc}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),node.property=this.parsePrivateName()):node.property=this.parseIdentifier(!0),state.optionalChainMember?(node.optional=optional,this.finishNode(node,"OptionalMemberExpression")):this.finishNode(node,"MemberExpression")}parseBind(base,startPos,startLoc,noCalls,state){const node=this.startNodeAt(startPos,startLoc);return node.object=base,this.next(),node.callee=this.parseNoCallExpr(),state.stop=!0,this.parseSubscripts(this.finishNode(node,"BindExpression"),startPos,startLoc,noCalls)}parseCoverCallAndAsyncArrowHead(base,startPos,startLoc,state,optional){const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;let refExpressionErrors=null;this.state.maybeInArrowParameters=!0,this.next();let node=this.startNodeAt(startPos,startLoc);return node.callee=base,state.maybeAsyncArrow&&(this.expressionScope.enter(new ArrowHeadParsingScope(2)),refExpressionErrors=new ExpressionErrors),state.optionalChainMember&&(node.optional=optional),node.arguments=optional?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===base.type,"Super"!==base.type,node,refExpressionErrors),this.finishCallExpression(node,state.optionalChainMember),state.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!optional?(state.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),node=this.parseAsyncArrowFromCallExpression(this.startNodeAt(startPos,startLoc),node)):(state.maybeAsyncArrow&&(this.checkExpressionErrors(refExpressionErrors,!0),this.expressionScope.exit()),this.toReferencedArguments(node)),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,node}toReferencedArguments(node,isParenthesizedExpr){this.toReferencedListDeep(node.arguments,isParenthesizedExpr)}parseTaggedTemplateExpression(base,startPos,startLoc,state){const node=this.startNodeAt(startPos,startLoc);return node.tag=base,node.quasi=this.parseTemplate(!0),state.optionalChainMember&&this.raise(ErrorMessages.OptionalChainingNoTemplate,{at:startLoc}),this.finishNode(node,"TaggedTemplateExpression")}atPossibleAsyncArrow(base){return"Identifier"===base.type&&"async"===base.name&&indexes.get(this.state.lastTokEndLoc)===base.end&&!this.canInsertSemicolon()&&base.end-base.start==5&&base.start===this.state.potentialArrowAt}finishCallExpression(node,optional){if("Import"===node.callee.type)if(2===node.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===node.arguments.length||node.arguments.length>2)this.raise(ErrorMessages.ImportCallArity,{node},this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(const arg of node.arguments)"SpreadElement"===arg.type&&this.raise(ErrorMessages.ImportCallSpreadArgument,{node:arg});return this.finishNode(node,optional?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(close,dynamicImport,allowPlaceholder,nodeForExtra,refExpressionErrors){const elts=[];let first=!0;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){!dynamicImport||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(ErrorMessages.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),nodeForExtra&&this.addTrailingCommaExtraToNode(nodeForExtra),this.next();break}elts.push(this.parseExprListItem(!1,refExpressionErrors,allowPlaceholder))}return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,elts}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(node,call){var _call$extra;return this.resetPreviousNodeTrailingComments(call),this.expect(19),this.parseArrowExpression(node,call.arguments,!0,null==(_call$extra=call.extra)?void 0:_call$extra.trailingCommaLoc),call.innerComments&&setInnerComments(node,call.innerComments),call.callee.trailingComments&&setInnerComments(node,call.callee.trailingComments),node}parseNoCallExpr(){const startPos=this.state.start,startLoc=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0)}parseExprAtom(refExpressionErrors){let node;const{type}=this.state;switch(type){case 75:return this.parseSuper();case 79:return node=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(node):(this.match(10)||this.raise(ErrorMessages.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(node,"Import"));case 74:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case 86:return this.parseDo(this.startNode(),!1);case 52:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 126:return this.parseNumericLiteral(this.state.value);case 127:return this.parseBigIntLiteral(this.state.value);case 128:return this.parseDecimalLiteral(this.state.value);case 125:return this.parseStringLiteral(this.state.value);case 80:return this.parseNullLiteral();case 81:return this.parseBooleanLiteral(!0);case 82:return this.parseBooleanLiteral(!1);case 10:{const canBeArrow=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(canBeArrow)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,refExpressionErrors);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,refExpressionErrors);case 64:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 76:return node=this.startNode(),this.takeDecorators(node),this.parseClass(node,!1);case 73:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{node=this.startNode(),this.next(),node.object=null;const callee=node.callee=this.parseNoCallExpr();if("MemberExpression"===callee.type)return this.finishNode(node,"BindExpression");throw this.raise(ErrorMessages.UnsupportedBind,{node:callee})}case 130:return this.raise(ErrorMessages.PrivateInExpectedIn,{at:this.state.startLoc},this.state.value),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(50,"%");case 32:return this.parseTopicReferenceThenEqualsSign(42,"^");case 42:case 50:case 27:{const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.parseTopicReference(pipeProposal);throw this.unexpected()}case 45:{const lookaheadCh=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(lookaheadCh)||62===lookaheadCh){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(tokenIsIdentifier(type)){if(this.isContextual(119)&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const canBeArrow=this.state.potentialArrowAt===this.state.start,containsEsc=this.state.containsEsc,id=this.parseIdentifier();if(!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()){const{type}=this.state;if(64===type)return this.resetPreviousNodeTrailingComments(id),this.next(),this.parseFunction(this.startNodeAtNode(id),void 0,!0);if(tokenIsIdentifier(type))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id)):id;if(86===type)return this.resetPreviousNodeTrailingComments(id),this.parseDo(this.startNodeAtNode(id),!0)}return canBeArrow&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(id),[id],!1)):id}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(topicTokenType,topicTokenValue){const pipeProposal=this.getPluginOption("pipelineOperator","proposal");if(pipeProposal)return this.state.type=topicTokenType,this.state.value=topicTokenValue,this.state.pos--,this.state.end--,this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1),this.parseTopicReference(pipeProposal);throw this.unexpected()}parseTopicReference(pipeProposal){const node=this.startNode(),startLoc=this.state.startLoc,tokenType=this.state.type;return this.next(),this.finishTopicReference(node,startLoc,pipeProposal,tokenType)}finishTopicReference(node,startLoc,pipeProposal,tokenType){if(this.testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType)){const nodeType="smart"===pipeProposal?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===pipeProposal?ErrorMessages.PrimaryTopicNotAllowed:ErrorMessages.PipeTopicUnbound,{at:startLoc}),this.registerTopicReference(),this.finishNode(node,nodeType)}throw this.raise(ErrorMessages.PipeTopicUnconfiguredToken,{at:startLoc},tokenLabelName(tokenType))}testTopicReferenceConfiguration(pipeProposal,startLoc,tokenType){switch(pipeProposal){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(tokenType)}]);case"smart":return 27===tokenType;default:throw this.raise(ErrorMessages.PipeTopicRequiresHackPipes,{at:startLoc})}}parseAsyncArrowUnaryFunction(node){this.prodParam.enter(functionFlags(!0,this.prodParam.hasYield));const params=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(ErrorMessages.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(node,params,!0),node}parseDo(node,isAsync){this.expectPlugin("doExpressions"),isAsync&&this.expectPlugin("asyncDoExpressions"),node.async=isAsync,this.next();const oldLabels=this.state.labels;return this.state.labels=[],isAsync?(this.prodParam.enter(2),node.body=this.parseBlock(),this.prodParam.exit()):node.body=this.parseBlock(),this.state.labels=oldLabels,this.finishNode(node,"DoExpression")}parseSuper(){const node=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(ErrorMessages.UnexpectedSuper,{node}):this.raise(ErrorMessages.SuperNotAllowed,{node}),this.match(10)||this.match(0)||this.match(16)||this.raise(ErrorMessages.UnsupportedSuper,{node}),this.finishNode(node,"Super")}parsePrivateName(){const node=this.startNode(),id=this.startNodeAt(this.state.start+1,new Position(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),name=this.state.value;return this.next(),node.id=this.createIdentifier(id,name),this.finishNode(node,"PrivateName")}parseFunctionOrFunctionSent(){const node=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"function");return this.next(),this.match(98)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(node,meta,"sent")}return this.parseFunction(node)}parseMetaProperty(node,meta,propertyName){node.meta=meta;const containsEsc=this.state.containsEsc;return node.property=this.parseIdentifier(!0),(node.property.name!==propertyName||containsEsc)&&this.raise(ErrorMessages.UnsupportedMetaProperty,{node:node.property},meta.name,propertyName),this.finishNode(node,"MetaProperty")}parseImportMetaProperty(node){const id=this.createIdentifier(this.startNodeAtNode(node),"import");return this.next(),this.isContextual(96)&&(this.inModule||this.raise(SourceTypeModuleErrorMessages.ImportMetaOutsideModule,{node:id}),this.sawUnambiguousESM=!0),this.parseMetaProperty(node,id,"meta")}parseLiteralAtNode(value,type,node){return this.addExtra(node,"rawValue",value),this.addExtra(node,"raw",this.input.slice(node.start,this.state.end)),node.value=value,this.next(),this.finishNode(node,type)}parseLiteral(value,type){const node=this.startNode();return this.parseLiteralAtNode(value,type,node)}parseStringLiteral(value){return this.parseLiteral(value,"StringLiteral")}parseNumericLiteral(value){return this.parseLiteral(value,"NumericLiteral")}parseBigIntLiteral(value){return this.parseLiteral(value,"BigIntLiteral")}parseDecimalLiteral(value){return this.parseLiteral(value,"DecimalLiteral")}parseRegExpLiteral(value){const node=this.parseLiteral(value.value,"RegExpLiteral");return node.pattern=value.pattern,node.flags=value.flags,node}parseBooleanLiteral(value){const node=this.startNode();return node.value=value,this.next(),this.finishNode(node,"BooleanLiteral")}parseNullLiteral(){const node=this.startNode();return this.next(),this.finishNode(node,"NullLiteral")}parseParenAndDistinguishExpression(canBeArrow){const startPos=this.state.start,startLoc=this.state.startLoc;let val;this.next(),this.expressionScope.enter(new ArrowHeadParsingScope(1));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters,oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const innerStartPos=this.state.start,innerStartLoc=this.state.startLoc,exprList=[],refExpressionErrors=new ExpressionErrors;let spreadStartLoc,optionalCommaStartLoc,first=!0;for(;!this.match(11);){if(first)first=!1;else if(this.expect(12,null===refExpressionErrors.optionalParametersLoc?null:refExpressionErrors.optionalParametersLoc),this.match(11)){optionalCommaStartLoc=this.state.startLoc;break}if(this.match(21)){const spreadNodeStartPos=this.state.start,spreadNodeStartLoc=this.state.startLoc;if(spreadStartLoc=this.state.startLoc,exprList.push(this.parseParenItem(this.parseRestBinding(),spreadNodeStartPos,spreadNodeStartLoc)),!this.checkCommaAfterRest(41))break}else exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors,this.parseParenItem))}const innerEndLoc=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let arrowNode=this.startNodeAt(startPos,startLoc);if(canBeArrow&&this.shouldParseArrow(exprList)&&(arrowNode=this.parseArrow(arrowNode)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(arrowNode,exprList,!1),arrowNode;if(this.expressionScope.exit(),exprList.length||this.unexpected(this.state.lastTokStartLoc),optionalCommaStartLoc&&this.unexpected(optionalCommaStartLoc),spreadStartLoc&&this.unexpected(spreadStartLoc),this.checkExpressionErrors(refExpressionErrors,!0),this.toReferencedListDeep(exprList,!0),exprList.length>1?(val=this.startNodeAt(innerStartPos,innerStartLoc),val.expressions=exprList,this.finishNode(val,"SequenceExpression"),this.resetEndLocation(val,innerEndLoc)):val=exprList[0],!this.options.createParenthesizedExpressions)return this.addExtra(val,"parenthesized",!0),this.addExtra(val,"parenStart",startPos),this.takeSurroundingComments(val,startPos,indexes.get(this.state.lastTokEndLoc)),val;const parenExpression=this.startNodeAt(startPos,startLoc);return parenExpression.expression=val,this.finishNode(parenExpression,"ParenthesizedExpression"),parenExpression}shouldParseArrow(params){return!this.canInsertSemicolon()}parseArrow(node){if(this.eat(19))return node}parseParenItem(node,startPos,startLoc){return node}parseNewOrNewTarget(){const node=this.startNode();if(this.next(),this.match(16)){const meta=this.createIdentifier(this.startNodeAtNode(node),"new");this.next();const metaProp=this.parseMetaProperty(node,meta,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(ErrorMessages.UnexpectedNewTarget,{node:metaProp}),metaProp}return this.parseNew(node)}parseNew(node){return node.callee=this.parseNoCallExpr(),"Import"===node.callee.type?this.raise(ErrorMessages.ImportCallNotNewExpression,{node:node.callee}):this.isOptionalChain(node.callee)?this.raise(ErrorMessages.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(ErrorMessages.OptionalChainingNoNew,{at:this.state.startLoc}),this.parseNewArguments(node),this.finishNode(node,"NewExpression")}parseNewArguments(node){if(this.eat(10)){const args=this.parseExprList(11);this.toReferencedList(args),node.arguments=args}else node.arguments=[]}parseTemplateElement(isTagged){const{start,startLoc,end,value}=this.state,elemStart=start+1,elem=this.startNodeAt(elemStart,createPositionWithColumnOffset(startLoc,1));null===value&&(isTagged||this.raise(ErrorMessages.InvalidEscapeSequenceTemplate,{at:createPositionWithColumnOffset(startLoc,2)}));const isTail=this.match(24),endOffset=isTail?-1:-2,elemEnd=end+endOffset;return elem.value={raw:this.input.slice(elemStart,elemEnd).replace(/\r\n?/g,"\n"),cooked:null===value?null:value.slice(1,endOffset)},elem.tail=isTail,this.next(),this.finishNode(elem,"TemplateElement"),this.resetEndLocation(elem,createPositionWithColumnOffset(this.state.lastTokEndLoc,endOffset)),elem}parseTemplate(isTagged){const node=this.startNode();node.expressions=[];let curElt=this.parseTemplateElement(isTagged);for(node.quasis=[curElt];!curElt.tail;)node.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),node.quasis.push(curElt=this.parseTemplateElement(isTagged));return this.finishNode(node,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(close,isPattern,isRecord,refExpressionErrors){isRecord&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const propHash=Object.create(null);let first=!0;const node=this.startNode();for(node.properties=[],this.next();!this.match(close);){if(first)first=!1;else if(this.expect(12),this.match(close)){this.addTrailingCommaExtraToNode(node);break}let prop;isPattern?prop=this.parseBindingProperty():(prop=this.parsePropertyDefinition(refExpressionErrors),this.checkProto(prop,isRecord,propHash,refExpressionErrors)),isRecord&&!this.isObjectProperty(prop)&&"SpreadElement"!==prop.type&&this.raise(ErrorMessages.InvalidRecordProperty,{node:prop}),prop.shorthand&&this.addExtra(prop,"shorthand",!0),node.properties.push(prop)}this.next(),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody;let type="ObjectExpression";return isPattern?type="ObjectPattern":isRecord&&(type="RecordExpression"),this.finishNode(node,type)}addTrailingCommaExtraToNode(node){this.addExtra(node,"trailingComma",this.state.lastTokStart),this.addExtra(node,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(prop){return!prop.computed&&"Identifier"===prop.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(51))}parsePropertyDefinition(refExpressionErrors){let decorators=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(ErrorMessages.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)decorators.push(this.parseDecorator());const prop=this.startNode();let startPos,startLoc,isAsync=!1,isAccessor=!1;if(this.match(21))return decorators.length&&this.unexpected(),this.parseSpread();decorators.length&&(prop.decorators=decorators,decorators=[]),prop.method=!1,refExpressionErrors&&(startPos=this.state.start,startLoc=this.state.startLoc);let isGenerator=this.eat(51);this.parsePropertyNamePrefixOperator(prop);const containsEsc=this.state.containsEsc,key=this.parsePropertyName(prop);if(!isGenerator&&!containsEsc&&this.maybeAsyncOrAccessorProp(prop)){const keyName=key.name;"async"!==keyName||this.hasPrecedingLineBreak()||(isAsync=!0,this.resetPreviousNodeTrailingComments(key),isGenerator=this.eat(51),this.parsePropertyName(prop)),"get"!==keyName&&"set"!==keyName||(isAccessor=!0,this.resetPreviousNodeTrailingComments(key),prop.kind=keyName,this.match(51)&&(isGenerator=!0,this.raise(ErrorMessages.AccessorIsGenerator,{at:this.state.curPosition()},keyName),this.next()),this.parsePropertyName(prop))}return this.parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,!1,isAccessor,refExpressionErrors),prop}getGetterSetterExpectedParamCount(method){return"get"===method.kind?0:1}getObjectOrClassMethodParams(method){return method.params}checkGetterSetterParams(method){var _params;const paramCount=this.getGetterSetterExpectedParamCount(method),params=this.getObjectOrClassMethodParams(method);params.length!==paramCount&&this.raise("get"===method.kind?ErrorMessages.BadGetterArity:ErrorMessages.BadSetterArity,{node:method}),"set"===method.kind&&"RestElement"===(null==(_params=params[params.length-1])?void 0:_params.type)&&this.raise(ErrorMessages.BadSetterRestParameter,{node:method})}parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor){return isAccessor?(this.parseMethod(prop,isGenerator,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(prop),prop):isAsync||isGenerator||this.match(10)?(isPattern&&this.unexpected(),prop.kind="method",prop.method=!0,this.parseMethod(prop,isGenerator,isAsync,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors){if(prop.shorthand=!1,this.eat(14))return prop.value=isPattern?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(refExpressionErrors),this.finishNode(prop,"ObjectProperty");if(!prop.computed&&"Identifier"===prop.key.type){if(this.checkReservedWord(prop.key.name,prop.key.loc.start,!0,!1),isPattern)prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key));else if(this.match(29)){const shorthandAssignLoc=this.state.startLoc;null!=refExpressionErrors?null===refExpressionErrors.shorthandAssignLoc&&(refExpressionErrors.shorthandAssignLoc=shorthandAssignLoc):this.raise(ErrorMessages.InvalidCoverInitializedName,{at:shorthandAssignLoc}),prop.value=this.parseMaybeDefault(startPos,startLoc,cloneIdentifier(prop.key))}else prop.value=cloneIdentifier(prop.key);return prop.shorthand=!0,this.finishNode(prop,"ObjectProperty")}}parseObjPropValue(prop,startPos,startLoc,isGenerator,isAsync,isPattern,isAccessor,refExpressionErrors){const node=this.parseObjectMethod(prop,isGenerator,isAsync,isPattern,isAccessor)||this.parseObjectProperty(prop,startPos,startLoc,isPattern,refExpressionErrors);return node||this.unexpected(),node}parsePropertyName(prop){if(this.eat(0))prop.computed=!0,prop.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type,value}=this.state;let key;if(tokenIsKeywordOrIdentifier(type))key=this.parseIdentifier(!0);else switch(type){case 126:key=this.parseNumericLiteral(value);break;case 125:key=this.parseStringLiteral(value);break;case 127:key=this.parseBigIntLiteral(value);break;case 128:key=this.parseDecimalLiteral(value);break;case 130:this.raise(ErrorMessages.UnexpectedPrivateField,{at:createPositionWithColumnOffset(this.state.startLoc,1)}),key=this.parsePrivateName();break;default:throw this.unexpected()}prop.key=key,130!==type&&(prop.computed=!1)}return prop.key}initFunction(node,isAsync){node.id=null,node.generator=!1,node.async=!!isAsync}parseMethod(node,isGenerator,isAsync,isConstructor,allowDirectSuper,type,inClassScope=!1){this.initFunction(node,isAsync),node.generator=!!isGenerator;const allowModifiers=isConstructor;return this.scope.enter(18|(inClassScope?64:0)|(allowDirectSuper?32:0)),this.prodParam.enter(functionFlags(isAsync,node.generator)),this.parseFunctionParams(node,allowModifiers),this.parseFunctionBodyAndFinish(node,type,!0),this.prodParam.exit(),this.scope.exit(),node}parseArrayLike(close,canBePattern,isTuple,refExpressionErrors){isTuple&&this.expectPlugin("recordAndTuple");const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const node=this.startNode();return this.next(),node.elements=this.parseExprList(close,!isTuple,refExpressionErrors,node),this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,this.finishNode(node,isTuple?"TupleExpression":"ArrayExpression")}parseArrowExpression(node,params,isAsync,trailingCommaLoc){this.scope.enter(6);let flags=functionFlags(isAsync,!1);!this.match(5)&&this.prodParam.hasIn&&(flags|=8),this.prodParam.enter(flags),this.initFunction(node,isAsync);const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return params&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(node,params,trailingCommaLoc)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(node,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,this.finishNode(node,"ArrowFunctionExpression")}setArrowFunctionParameters(node,params,trailingCommaLoc){node.params=this.toAssignableList(params,trailingCommaLoc,!1)}parseFunctionBodyAndFinish(node,type,isMethod=!1){this.parseFunctionBody(node,!1,isMethod),this.finishNode(node,type)}parseFunctionBody(node,allowExpression,isMethod=!1){const isExpression=allowExpression&&!this.match(5);if(this.expressionScope.enter(newExpressionScope()),isExpression)node.body=this.parseMaybeAssign(),this.checkParams(node,!1,allowExpression,!1);else{const oldStrict=this.state.strict,oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),node.body=this.parseBlock(!0,!1,(hasStrictModeDirective=>{const nonSimple=!this.isSimpleParamList(node.params);if(hasStrictModeDirective&&nonSimple){const errorOrigin="method"!==node.kind&&"constructor"!==node.kind||!node.key?{node}:{at:node.key.loc.end};this.raise(ErrorMessages.IllegalLanguageModeDirective,errorOrigin)}const strictModeChanged=!oldStrict&&this.state.strict;this.checkParams(node,!(this.state.strict||allowExpression||isMethod||nonSimple),allowExpression,strictModeChanged),this.state.strict&&node.id&&this.checkLVal(node.id,"function name",65,void 0,void 0,strictModeChanged)})),this.prodParam.exit(),this.state.labels=oldLabels}this.expressionScope.exit()}isSimpleParamList(params){for(let i=0,len=params.length;i10)return;if(!function(word){return reservedWordLikeSet.has(word)}(word))return;if("yield"===word){if(this.prodParam.hasYield)return void this.raise(ErrorMessages.YieldBindingIdentifier,{at:startLoc})}else if("await"===word){if(this.prodParam.hasAwait)return void this.raise(ErrorMessages.AwaitBindingIdentifier,{at:startLoc});if(this.scope.inStaticBlock)return void this.raise(ErrorMessages.AwaitBindingIdentifierInStaticBlock,{at:startLoc});this.expressionScope.recordAsyncArrowParametersError(ErrorMessages.AwaitBindingIdentifier,startLoc)}else if("arguments"===word&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(ErrorMessages.ArgumentsInClass,{at:startLoc});if(checkKeywords&&function(word){return keywords.has(word)}(word))return void this.raise(ErrorMessages.UnexpectedKeyword,{at:startLoc},word);(this.state.strict?isBinding?isStrictBindReservedWord:isStrictReservedWord:isReservedWord)(word,this.inModule)&&this.raise(ErrorMessages.UnexpectedReservedWord,{at:startLoc},word)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(startPos,startLoc){const node=this.startNodeAt(startPos,startLoc);return this.expressionScope.recordParameterInitializerError(node.loc.start,ErrorMessages.AwaitExpressionFormalParameter),this.eat(51)&&this.raise(ErrorMessages.ObsoleteAwaitStar,{node}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(node.argument=this.parseMaybeUnary(null,!0)),this.finishNode(node,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type}=this.state;return 49===type||10===type||0===type||tokenIsTemplate(type)||129===type||52===type||this.hasPlugin("v8intrinsic")&&50===type}parseYield(){const node=this.startNode();this.expressionScope.recordParameterInitializerError(node.loc.start,ErrorMessages.YieldInParameter),this.next();let delegating=!1,argument=null;if(!this.hasPrecedingLineBreak())switch(delegating=this.eat(51),this.state.type){case 13:case 131:case 8:case 11:case 3:case 9:case 14:case 12:if(!delegating)break;default:argument=this.parseMaybeAssign()}return node.delegate=delegating,node.argument=argument,this.finishNode(node,"YieldExpression")}checkPipelineAtInfixOperator(left,leftStartLoc){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===left.type&&this.raise(ErrorMessages.PipelineHeadSequenceExpression,{at:leftStartLoc})}parseSmartPipelineBodyInStyle(childExpr,startPos,startLoc){const bodyNode=this.startNodeAt(startPos,startLoc);return this.isSimpleReference(childExpr)?(bodyNode.callee=childExpr,this.finishNode(bodyNode,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(startLoc),bodyNode.expression=childExpr,this.finishNode(bodyNode,"PipelineTopicExpression"))}isSimpleReference(expression){switch(expression.type){case"MemberExpression":return!expression.computed&&this.isSimpleReference(expression.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(startLoc){if(this.match(19))throw this.raise(ErrorMessages.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(ErrorMessages.PipelineTopicUnused,{at:startLoc})}withTopicBindingContext(callback){const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState}}withSmartMixTopicForbiddingContext(callback){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return callback();{const outerContextTopicState=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return callback()}finally{this.state.topicContext=outerContextTopicState}}}withSoloAwaitPermittingContext(callback){const outerContextSoloAwaitState=this.state.soloAwait;this.state.soloAwait=!0;try{return callback()}finally{this.state.soloAwait=outerContextSoloAwaitState}}allowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&~flags){this.prodParam.enter(8|flags);try{return callback()}finally{this.prodParam.exit()}}return callback()}disallowInAnd(callback){const flags=this.prodParam.currentFlags();if(8&flags){this.prodParam.enter(-9&flags);try{return callback()}finally{this.prodParam.exit()}}return callback()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(prec){const startPos=this.state.start,startLoc=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const oldInFSharpPipelineDirectBody=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const ret=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),startPos,startLoc,prec);return this.state.inFSharpPipelineDirectBody=oldInFSharpPipelineDirectBody,ret}parseModuleExpression(){this.expectPlugin("moduleBlocks");const node=this.startNode();this.next(),this.eat(5);const revertScopes=this.initializeScopes(!0);this.enterInitialScopes();const program=this.startNode();try{node.body=this.parseProgram(program,8,"module")}finally{revertScopes()}return this.eat(8),this.finishNode(node,"ModuleExpression")}parsePropertyNamePrefixOperator(prop){}}{parseTopLevel(file,program){return file.program=this.parseProgram(program),file.comments=this.state.comments,this.options.tokens&&(file.tokens=function(tokens,input){for(let i=0;i0)for(const[name,loc]of Array.from(this.scope.undefinedExports))this.raise(ErrorMessages.ModuleExportUndefined,{at:loc},name);return this.finishNode(program,"Program")}stmtToDirective(stmt){const directive=stmt;directive.type="Directive",directive.value=directive.expression,delete directive.expression;const directiveLiteral=directive.value,expressionValue=directiveLiteral.value,raw=this.input.slice(directiveLiteral.start,directiveLiteral.end),val=directiveLiteral.value=raw.slice(1,-1);return this.addExtra(directiveLiteral,"raw",raw),this.addExtra(directiveLiteral,"rawValue",val),this.addExtra(directiveLiteral,"expressionValue",expressionValue),directiveLiteral.type="DirectiveLiteral",directive}parseInterpreterDirective(){if(!this.match(28))return null;const node=this.startNode();return node.value=this.state.value,this.next(),this.finishNode(node,"InterpreterDirective")}isLet(context){return!!this.isContextual(95)&&this.isLetKeyword(context)}isLetKeyword(context){const next=this.nextTokenStart(),nextCh=this.codePointAtPos(next);if(92===nextCh||91===nextCh)return!0;if(context)return!1;if(123===nextCh)return!0;if(isIdentifierStart(nextCh)){if(keywordRelationalOperator.lastIndex=next,keywordRelationalOperator.test(this.input)){const endCh=this.codePointAtPos(keywordRelationalOperator.lastIndex);if(!isIdentifierChar(endCh)&&92!==endCh)return!1}return!0}return!1}parseStatement(context,topLevel){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(context,topLevel)}parseStatementContent(context,topLevel){let starttype=this.state.type;const node=this.startNode();let kind;switch(this.isLet(context)&&(starttype=70,kind="let"),starttype){case 56:return this.parseBreakContinueStatement(node,!0);case 59:return this.parseBreakContinueStatement(node,!1);case 60:return this.parseDebuggerStatement(node);case 86:return this.parseDoStatement(node);case 87:return this.parseForStatement(node);case 64:if(46===this.lookaheadCharCode())break;return context&&(this.state.strict?this.raise(ErrorMessages.StrictFunction,{at:this.state.startLoc}):"if"!==context&&"label"!==context&&this.raise(ErrorMessages.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(node,!1,!context);case 76:return context&&this.unexpected(),this.parseClass(node,!0);case 65:return this.parseIfStatement(node);case 66:return this.parseReturnStatement(node);case 67:return this.parseSwitchStatement(node);case 68:return this.parseThrowStatement(node);case 69:return this.parseTryStatement(node);case 71:case 70:return kind=kind||this.state.value,context&&"var"!==kind&&this.raise(ErrorMessages.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(node,kind);case 88:return this.parseWhileStatement(node);case 72:return this.parseWithStatement(node);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(node);case 79:{const nextTokenCharCode=this.lookaheadCharCode();if(40===nextTokenCharCode||46===nextTokenCharCode)break}case 78:{let result;return this.options.allowImportExportEverywhere||topLevel||this.raise(ErrorMessages.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),79===starttype?(result=this.parseImport(node),"ImportDeclaration"!==result.type||result.importKind&&"value"!==result.importKind||(this.sawUnambiguousESM=!0)):(result=this.parseExport(node),("ExportNamedDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&("ExportAllDeclaration"!==result.type||result.exportKind&&"value"!==result.exportKind)&&"ExportDefaultDeclaration"!==result.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(node),result}default:if(this.isAsyncFunction())return context&&this.raise(ErrorMessages.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(node,!0,!context)}const maybeName=this.state.value,expr=this.parseExpression();return tokenIsIdentifier(starttype)&&"Identifier"===expr.type&&this.eat(14)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}assertModuleNodeAllowed(node){this.options.allowImportExportEverywhere||this.inModule||this.raise(SourceTypeModuleErrorMessages.ImportOutsideModule,{node})}takeDecorators(node){const decorators=this.state.decoratorStack[this.state.decoratorStack.length-1];decorators.length&&(node.decorators=decorators,this.resetStartLocationFromNode(node,decorators[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(76)}parseDecorators(allowExport){const currentContextDecorators=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){const decorator=this.parseDecorator();currentContextDecorators.push(decorator)}if(this.match(78))allowExport||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ErrorMessages.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(ErrorMessages.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const node=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const startPos=this.state.start,startLoc=this.state.startLoc;let expr;if(this.eat(10))expr=this.parseExpression(),this.expect(11);else for(expr=this.parseIdentifier(!1);this.eat(16);){const node=this.startNodeAt(startPos,startLoc);node.object=expr,node.property=this.parseIdentifier(!0),node.computed=!1,expr=this.finishNode(node,"MemberExpression")}node.expression=this.parseMaybeDecoratorArguments(expr),this.state.decoratorStack.pop()}else node.expression=this.parseExprSubscripts();return this.finishNode(node,"Decorator")}parseMaybeDecoratorArguments(expr){if(this.eat(10)){const node=this.startNodeAtNode(expr);return node.callee=expr,node.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(node.arguments),this.finishNode(node,"CallExpression")}return expr}parseBreakContinueStatement(node,isBreak){return this.next(),this.isLineTerminator()?node.label=null:(node.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(node,isBreak),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")}verifyBreakContinue(node,isBreak){let i;for(i=0;ithis.parseStatement("do"))),this.state.labels.pop(),this.expect(88),node.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(node,"DoWhileStatement")}parseForStatement(node){this.next(),this.state.labels.push(loopLabel);let awaitAt=null;if(this.isAwaitAllowed()&&this.eatContextual(92)&&(awaitAt=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,null);const startsWithLet=this.isContextual(95),isLet=startsWithLet&&this.isLetKeyword();if(this.match(70)||this.match(71)||isLet){const init=this.startNode(),kind=isLet?"let":this.state.value;return this.next(),this.parseVar(init,!0,kind),this.finishNode(init,"VariableDeclaration"),(this.match(54)||this.isContextual(97))&&1===init.declarations.length?this.parseForIn(node,init,awaitAt):(null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init))}const startsWithAsync=this.isContextual(91),refExpressionErrors=new ExpressionErrors,init=this.parseExpression(!0,refExpressionErrors),isForOf=this.isContextual(97);if(isForOf&&(startsWithLet&&this.raise(ErrorMessages.ForOfLet,{node:init}),null===awaitAt&&startsWithAsync&&"Identifier"===init.type&&this.raise(ErrorMessages.ForOfAsync,{node:init})),isForOf||this.match(54)){this.toAssignable(init,!0);const description=isForOf?"for-of statement":"for-in statement";return this.checkLVal(init,description),this.parseForIn(node,init,awaitAt)}return this.checkExpressionErrors(refExpressionErrors,!0),null!==awaitAt&&this.unexpected(awaitAt),this.parseFor(node,init)}parseFunctionStatement(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,1|(declarationPosition?0:2),isAsync)}parseIfStatement(node){return this.next(),node.test=this.parseHeaderExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(62)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")}parseReturnStatement(node){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(ErrorMessages.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")}parseSwitchStatement(node){this.next(),node.discriminant=this.parseHeaderExpression();const cases=node.cases=[];let cur,sawDefault;for(this.expect(5),this.state.labels.push(switchLabel),this.scope.enter(0);!this.match(8);)if(this.match(57)||this.match(61)){const isCase=this.match(57);cur&&this.finishNode(cur,"SwitchCase"),cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raise(ErrorMessages.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),sawDefault=!0,cur.test=null),this.expect(14)}else cur?cur.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(node,"SwitchStatement")}parseThrowStatement(node){return this.next(),this.hasPrecedingLineBreak()&&this.raise(ErrorMessages.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")}parseCatchClauseParam(){const param=this.parseBindingAtom(),simple="Identifier"===param.type;return this.scope.enter(simple?8:0),this.checkLVal(param,"catch clause",9),param}parseTryStatement(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.match(58)){const clause=this.startNode();this.next(),this.match(10)?(this.expect(10),clause.param=this.parseCatchClauseParam(),this.expect(11)):(clause.param=null,this.scope.enter(0)),clause.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(63)?this.parseBlock():null,node.handler||node.finalizer||this.raise(ErrorMessages.NoCatchOrFinally,{node}),this.finishNode(node,"TryStatement")}parseVarStatement(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")}parseWhileStatement(node){return this.next(),node.test=this.parseHeaderExpression(),this.state.labels.push(loopLabel),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(node,"WhileStatement")}parseWithStatement(node){return this.state.strict&&this.raise(ErrorMessages.StrictWith,{at:this.state.startLoc}),this.next(),node.object=this.parseHeaderExpression(),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(node,"WithStatement")}parseEmptyStatement(node){return this.next(),this.finishNode(node,"EmptyStatement")}parseLabeledStatement(node,maybeName,expr,context){for(const label of this.state.labels)label.name===maybeName&&this.raise(ErrorMessages.LabelRedeclaration,{node:expr},maybeName);const kind=(token=this.state.type)>=86&&token<=88?"loop":this.match(67)?"switch":null;var token;for(let i=this.state.labels.length-1;i>=0;i--){const label=this.state.labels[i];if(label.statementStart!==node.start)break;label.statementStart=this.state.start,label.kind=kind}return this.state.labels.push({name:maybeName,kind,statementStart:this.state.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.state.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")}parseExpressionStatement(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")}parseBlock(allowDirectives=!1,createNewLexicalScope=!0,afterBlockParse){const node=this.startNode();return allowDirectives&&this.state.strictErrors.clear(),this.expect(5),createNewLexicalScope&&this.scope.enter(0),this.parseBlockBody(node,allowDirectives,!1,8,afterBlockParse),createNewLexicalScope&&this.scope.exit(),this.finishNode(node,"BlockStatement")}isValidDirective(stmt){return"ExpressionStatement"===stmt.type&&"StringLiteral"===stmt.expression.type&&!stmt.expression.extra.parenthesized}parseBlockBody(node,allowDirectives,topLevel,end,afterBlockParse){const body=node.body=[],directives=node.directives=[];this.parseBlockOrModuleBlockBody(body,allowDirectives?directives:void 0,topLevel,end,afterBlockParse)}parseBlockOrModuleBlockBody(body,directives,topLevel,end,afterBlockParse){const oldStrict=this.state.strict;let hasStrictModeDirective=!1,parsedNonDirective=!1;for(;!this.match(end);){const stmt=this.parseStatement(null,topLevel);if(directives&&!parsedNonDirective){if(this.isValidDirective(stmt)){const directive=this.stmtToDirective(stmt);directives.push(directive),hasStrictModeDirective||"use strict"!==directive.value.value||(hasStrictModeDirective=!0,this.setStrict(!0));continue}parsedNonDirective=!0,this.state.strictErrors.clear()}body.push(stmt)}afterBlockParse&&afterBlockParse.call(this,hasStrictModeDirective),oldStrict||this.setStrict(!1),this.next()}parseFor(node,init){return node.init=init,this.semicolon(!1),node.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),node.update=this.match(11)?null:this.parseExpression(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,"ForStatement")}parseForIn(node,init,awaitAt){const isForIn=this.match(54);return this.next(),isForIn?null!==awaitAt&&this.unexpected(awaitAt):node.await=null!==awaitAt,"VariableDeclaration"!==init.type||null==init.declarations[0].init||isForIn&&!this.state.strict&&"var"===init.kind&&"Identifier"===init.declarations[0].id.type||this.raise(ErrorMessages.ForInOfLoopInitializer,{node:init},isForIn?"for-in":"for-of"),"AssignmentPattern"===init.type&&this.raise(ErrorMessages.InvalidLhs,{node:init},"for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),node.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")}parseVar(node,isFor,kind){const declarations=node.declarations=[],isTypescript=this.hasPlugin("typescript");for(node.kind=kind;;){const decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(29)?decl.init=isFor?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==kind||this.match(54)||this.isContextual(97)?"Identifier"===decl.id.type||isFor&&(this.match(54)||this.isContextual(97))||this.raise(ErrorMessages.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc},"Complex binding patterns"):isTypescript||this.raise(ErrorMessages.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc},"Const declarations"),decl.init=null),declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(12))break}return node}parseVarId(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"variable declaration","var"===kind?5:9,void 0,"var"!==kind)}parseFunction(node,statement=0,isAsync=!1){const isStatement=1&statement,isHangingStatement=2&statement,requireId=!(!isStatement||4&statement);this.initFunction(node,isAsync),this.match(51)&&isHangingStatement&&this.raise(ErrorMessages.GeneratorInSingleStatementContext,{at:this.state.startLoc}),node.generator=this.eat(51),isStatement&&(node.id=this.parseFunctionId(requireId));const oldMaybeInArrowParameters=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(functionFlags(isAsync,node.generator)),isStatement||(node.id=this.parseFunctionId()),this.parseFunctionParams(node,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(node,isStatement?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),isStatement&&!isHangingStatement&&this.registerFunctionStatementId(node),this.state.maybeInArrowParameters=oldMaybeInArrowParameters,node}parseFunctionId(requireId){return requireId||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(node,allowModifiers){this.expect(10),this.expressionScope.enter(new ExpressionScope(3)),node.params=this.parseBindingList(11,41,!1,allowModifiers),this.expressionScope.exit()}registerFunctionStatementId(node){node.id&&this.scope.declareName(node.id.name,this.state.strict||node.generator||node.async?this.scope.treatFunctionsAsVar?5:9:17,node.id.loc.start)}parseClass(node,isStatement,optionalId){this.next(),this.takeDecorators(node);const oldStrict=this.state.strict;return this.state.strict=!0,this.parseClassId(node,isStatement,optionalId),this.parseClassSuper(node),node.body=this.parseClassBody(!!node.superClass,oldStrict),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(method){return!(method.computed||method.static||"constructor"!==method.key.name&&"constructor"!==method.key.value)}parseClassBody(hadSuperClass,oldStrict){this.classScope.enter();const state={hadConstructor:!1,hadSuperClass};let decorators=[];const classBody=this.startNode();if(classBody.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(decorators.length>0)throw this.raise(ErrorMessages.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){decorators.push(this.parseDecorator());continue}const member=this.startNode();decorators.length&&(member.decorators=decorators,this.resetStartLocationFromNode(member,decorators[0]),decorators=[]),this.parseClassMember(classBody,member,state),"constructor"===member.kind&&member.decorators&&member.decorators.length>0&&this.raise(ErrorMessages.DecoratorConstructor,{node:member})}})),this.state.strict=oldStrict,this.next(),decorators.length)throw this.raise(ErrorMessages.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(classBody,"ClassBody")}parseClassMemberFromModifier(classBody,member){const key=this.parseIdentifier(!0);if(this.isClassMethod()){const method=member;return method.kind="method",method.computed=!1,method.key=key,method.static=!1,this.pushClassMethod(classBody,method,!1,!1,!1,!1),!0}if(this.isClassProperty()){const prop=member;return prop.computed=!1,prop.key=key,prop.static=!1,classBody.body.push(this.parseClassProperty(prop)),!0}return this.resetPreviousNodeTrailingComments(key),!1}parseClassMember(classBody,member,state){const isStatic=this.isContextual(100);if(isStatic){if(this.parseClassMemberFromModifier(classBody,member))return;if(this.eat(5))return void this.parseClassStaticBlock(classBody,member)}this.parseClassMemberWithIsStatic(classBody,member,state,isStatic)}parseClassMemberWithIsStatic(classBody,member,state,isStatic){const publicMethod=member,privateMethod=member,publicProp=member,privateProp=member,method=publicMethod,publicMember=publicMethod;if(member.static=isStatic,this.parsePropertyNamePrefixOperator(member),this.eat(51)){method.kind="method";const isPrivateName=this.match(130);return this.parseClassElementName(method),isPrivateName?void this.pushClassPrivateMethod(classBody,privateMethod,!0,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(ErrorMessages.ConstructorIsGenerator,{node:publicMethod.key}),void this.pushClassMethod(classBody,publicMethod,!0,!1,!1,!1))}const isContextual=tokenIsIdentifier(this.state.type)&&!this.state.containsEsc,isPrivate=this.match(130),key=this.parseClassElementName(member),maybeQuestionTokenStartLoc=this.state.startLoc;if(this.parsePostMemberNameModifiers(publicMember),this.isClassMethod()){if(method.kind="method",isPrivate)return void this.pushClassPrivateMethod(classBody,privateMethod,!1,!1);const isConstructor=this.isNonstaticConstructor(publicMethod);let allowsDirectSuper=!1;isConstructor&&(publicMethod.kind="constructor",state.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(ErrorMessages.DuplicateConstructor,{node:key}),isConstructor&&this.hasPlugin("typescript")&&member.override&&this.raise(ErrorMessages.OverrideOnConstructor,{node:key}),state.hadConstructor=!0,allowsDirectSuper=state.hadSuperClass),this.pushClassMethod(classBody,publicMethod,!1,!1,isConstructor,allowsDirectSuper)}else if(this.isClassProperty())isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp);else if(isContextual&&"async"===key.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(key);const isGenerator=this.eat(51);publicMember.optional&&this.unexpected(maybeQuestionTokenStartLoc),method.kind="method";const isPrivate=this.match(130);this.parseClassElementName(method),this.parsePostMemberNameModifiers(publicMember),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,isGenerator,!0):(this.isNonstaticConstructor(publicMethod)&&this.raise(ErrorMessages.ConstructorIsAsync,{node:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,isGenerator,!0,!1,!1))}else if(!isContextual||"get"!==key.name&&"set"!==key.name||this.match(51)&&this.isLineTerminator())this.isLineTerminator()?isPrivate?this.pushClassPrivateProperty(classBody,privateProp):this.pushClassProperty(classBody,publicProp):this.unexpected();else{this.resetPreviousNodeTrailingComments(key),method.kind=key.name;const isPrivate=this.match(130);this.parseClassElementName(publicMethod),isPrivate?this.pushClassPrivateMethod(classBody,privateMethod,!1,!1):(this.isNonstaticConstructor(publicMethod)&&this.raise(ErrorMessages.ConstructorIsAccessor,{node:publicMethod.key}),this.pushClassMethod(classBody,publicMethod,!1,!1,!1,!1)),this.checkGetterSetterParams(publicMethod)}}parseClassElementName(member){const{type,value}=this.state;if(124!==type&&125!==type||!member.static||"prototype"!==value||this.raise(ErrorMessages.StaticPrototype,{at:this.state.startLoc}),130===type){"constructor"===value&&this.raise(ErrorMessages.ConstructorClassPrivateField,{at:this.state.startLoc});const key=this.parsePrivateName();return member.key=key,key}return this.parsePropertyName(member)}parseClassStaticBlock(classBody,member){var _member$decorators;this.scope.enter(208);const oldLabels=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const body=member.body=[];this.parseBlockOrModuleBlockBody(body,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=oldLabels,classBody.body.push(this.finishNode(member,"StaticBlock")),null!=(_member$decorators=member.decorators)&&_member$decorators.length&&this.raise(ErrorMessages.DecoratorStaticBlock,{node:member})}pushClassProperty(classBody,prop){prop.computed||"constructor"!==prop.key.name&&"constructor"!==prop.key.value||this.raise(ErrorMessages.ConstructorClassField,{node:prop.key}),classBody.body.push(this.parseClassProperty(prop))}pushClassPrivateProperty(classBody,prop){const node=this.parseClassPrivateProperty(prop);classBody.body.push(node),this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),0,node.key.loc.start)}pushClassMethod(classBody,method,isGenerator,isAsync,isConstructor,allowsDirectSuper){classBody.body.push(this.parseMethod(method,isGenerator,isAsync,isConstructor,allowsDirectSuper,"ClassMethod",!0))}pushClassPrivateMethod(classBody,method,isGenerator,isAsync){const node=this.parseMethod(method,isGenerator,isAsync,!1,!1,"ClassPrivateMethod",!0);classBody.body.push(node);const kind="get"===node.kind?node.static?6:2:"set"===node.kind?node.static?5:1:0;this.declareClassPrivateMethodInScope(node,kind)}declareClassPrivateMethodInScope(node,kind){this.classScope.declarePrivateName(this.getPrivateNameSV(node.key),kind,node.key.loc.start)}parsePostMemberNameModifiers(methodOrProp){}parseClassPrivateProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassPrivateProperty")}parseClassProperty(node){return this.parseInitializer(node),this.semicolon(),this.finishNode(node,"ClassProperty")}parseInitializer(node){this.scope.enter(80),this.expressionScope.enter(newExpressionScope()),this.prodParam.enter(0),node.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(node,isStatement,optionalId,bindingType=139){if(tokenIsIdentifier(this.state.type))node.id=this.parseIdentifier(),isStatement&&this.checkLVal(node.id,"class name",bindingType);else{if(!optionalId&&isStatement)throw this.raise(ErrorMessages.MissingClassName,{at:this.state.startLoc});node.id=null}}parseClassSuper(node){node.superClass=this.eat(77)?this.parseExprSubscripts():null}parseExport(node){const hasDefault=this.maybeParseExportDefaultSpecifier(node),parseAfterDefault=!hasDefault||this.eat(12),hasStar=parseAfterDefault&&this.eatExportStar(node),hasNamespace=hasStar&&this.maybeParseExportNamespaceSpecifier(node),parseAfterNamespace=parseAfterDefault&&(!hasNamespace||this.eat(12)),isFromRequired=hasDefault||hasStar;if(hasStar&&!hasNamespace)return hasDefault&&this.unexpected(),this.parseExportFrom(node,!0),this.finishNode(node,"ExportAllDeclaration");const hasSpecifiers=this.maybeParseExportNamedSpecifiers(node);if(hasDefault&&parseAfterDefault&&!hasStar&&!hasSpecifiers||hasNamespace&&parseAfterNamespace&&!hasSpecifiers)throw this.unexpected(null,5);let hasDeclaration;if(isFromRequired||hasSpecifiers?(hasDeclaration=!1,this.parseExportFrom(node,isFromRequired)):hasDeclaration=this.maybeParseExportDeclaration(node),isFromRequired||hasSpecifiers||hasDeclaration)return this.checkExport(node,!0,!1,!!node.source),this.finishNode(node,"ExportNamedDeclaration");if(this.eat(61))return node.declaration=this.parseExportDefaultExpression(),this.checkExport(node,!0,!0),this.finishNode(node,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(node){return this.eat(51)}maybeParseExportDefaultSpecifier(node){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const specifier=this.startNode();return specifier.exported=this.parseIdentifier(!0),node.specifiers=[this.finishNode(specifier,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(node){if(this.isContextual(89)){node.specifiers||(node.specifiers=[]);const specifier=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),specifier.exported=this.parseModuleExportName(),node.specifiers.push(this.finishNode(specifier,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(node){if(this.match(5)){node.specifiers||(node.specifiers=[]);const isTypeExport="type"===node.exportKind;return node.specifiers.push(...this.parseExportSpecifiers(isTypeExport)),node.source=null,node.declaration=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),!0}return!1}maybeParseExportDeclaration(node){return!!this.shouldParseExportDeclaration()&&(node.specifiers=[],node.source=null,this.hasPlugin("importAssertions")&&(node.assertions=[]),node.declaration=this.parseExportDeclaration(node),!0)}isAsyncFunction(){if(!this.isContextual(91))return!1;const next=this.nextTokenStart();return!lineBreak.test(this.input.slice(this.state.pos,next))&&this.isUnparsedContextual(next,"function")}parseExportDefaultExpression(){const expr=this.startNode(),isAsync=this.isAsyncFunction();if(this.match(64)||isAsync)return this.next(),isAsync&&this.next(),this.parseFunction(expr,5,isAsync);if(this.match(76))return this.parseClass(expr,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(ErrorMessages.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(expr,!0,!0);if(this.match(71)||this.match(70)||this.isLet())throw this.raise(ErrorMessages.UnsupportedDefaultExport,{at:this.state.startLoc});const res=this.parseMaybeAssignAllowIn();return this.semicolon(),res}parseExportDeclaration(node){return this.parseStatement(null)}isExportDefaultSpecifier(){const{type}=this.state;if(tokenIsIdentifier(type)){if(91===type&&!this.state.containsEsc||95===type)return!1;if((122===type||121===type)&&!this.state.containsEsc){const{type:nextType}=this.lookahead();if(tokenIsIdentifier(nextType)&&93!==nextType||5===nextType)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(61))return!1;const next=this.nextTokenStart(),hasFrom=this.isUnparsedContextual(next,"from");if(44===this.input.charCodeAt(next)||tokenIsIdentifier(this.state.type)&&hasFrom)return!0;if(this.match(61)&&hasFrom){const nextAfterFrom=this.input.charCodeAt(this.nextTokenStartSince(next+4));return 34===nextAfterFrom||39===nextAfterFrom}return!1}parseExportFrom(node,expect){if(this.eatContextual(93)){node.source=this.parseImportSource(),this.checkExport(node);const assertions=this.maybeParseImportAssertions();assertions&&(node.assertions=assertions)}else expect&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type}=this.state;if(26===type&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(ErrorMessages.DecoratorBeforeExport,{at:this.state.startLoc});return!0}return 70===type||71===type||64===type||76===type||this.isLet()||this.isAsyncFunction()}checkExport(node,checkNames,isDefault,isFrom){if(checkNames)if(isDefault){if(this.checkDuplicateExports(node,"default"),this.hasPlugin("exportDefaultFrom")){var _declaration$extra;const declaration=node.declaration;"Identifier"!==declaration.type||"from"!==declaration.name||declaration.end-declaration.start!=4||null!=(_declaration$extra=declaration.extra)&&_declaration$extra.parenthesized||this.raise(ErrorMessages.ExportDefaultFromAsIdentifier,{node:declaration})}}else if(node.specifiers&&node.specifiers.length)for(const specifier of node.specifiers){const{exported}=specifier,exportedName="Identifier"===exported.type?exported.name:exported.value;if(this.checkDuplicateExports(specifier,exportedName),!isFrom&&specifier.local){const{local}=specifier;"Identifier"!==local.type?this.raise(ErrorMessages.ExportBindingIsString,{node:specifier},local.value,exportedName):(this.checkReservedWord(local.name,local.loc.start,!0,!1),this.scope.checkLocalExport(local))}}else if(node.declaration)if("FunctionDeclaration"===node.declaration.type||"ClassDeclaration"===node.declaration.type){const id=node.declaration.id;if(!id)throw new Error("Assertion failure");this.checkDuplicateExports(node,id.name)}else if("VariableDeclaration"===node.declaration.type)for(const declaration of node.declaration.declarations)this.checkDeclaration(declaration.id);if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(ErrorMessages.UnsupportedDecoratorExport,{node})}checkDeclaration(node){if("Identifier"===node.type)this.checkDuplicateExports(node,node.name);else if("ObjectPattern"===node.type)for(const prop of node.properties)this.checkDeclaration(prop);else if("ArrayPattern"===node.type)for(const elem of node.elements)elem&&this.checkDeclaration(elem);else"ObjectProperty"===node.type?this.checkDeclaration(node.value):"RestElement"===node.type?this.checkDeclaration(node.argument):"AssignmentPattern"===node.type&&this.checkDeclaration(node.left)}checkDuplicateExports(node,name){this.exportedIdentifiers.has(name)&&this.raise("default"===name?ErrorMessages.DuplicateDefaultExport:ErrorMessages.DuplicateExport,{node},name),this.exportedIdentifiers.add(name)}parseExportSpecifiers(isInTypeExport){const nodes=[];let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else if(this.expect(12),this.eat(8))break;const isMaybeTypeOnly=this.isContextual(122),isString=this.match(125),node=this.startNode();node.local=this.parseModuleExportName(),nodes.push(this.parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly))}return nodes}parseExportSpecifier(node,isString,isInTypeExport,isMaybeTypeOnly){return this.eatContextual(89)?node.exported=this.parseModuleExportName():isString?node.exported=cloneStringLiteral(node.local):node.exported||(node.exported=cloneIdentifier(node.local)),this.finishNode(node,"ExportSpecifier")}parseModuleExportName(){if(this.match(125)){const result=this.parseStringLiteral(this.state.value),surrogate=result.value.match(loneSurrogate);return surrogate&&this.raise(ErrorMessages.ModuleExportNameHasLoneSurrogate,{node:result},surrogate[0].charCodeAt(0).toString(16)),result}return this.parseIdentifier(!0)}parseImport(node){if(node.specifiers=[],!this.match(125)){const parseNext=!this.maybeParseDefaultImportSpecifier(node)||this.eat(12),hasStar=parseNext&&this.maybeParseStarImportSpecifier(node);parseNext&&!hasStar&&this.parseNamedImportSpecifiers(node),this.expectContextual(93)}node.source=this.parseImportSource();const assertions=this.maybeParseImportAssertions();if(assertions)node.assertions=assertions;else{const attributes=this.maybeParseModuleAttributes();attributes&&(node.attributes=attributes)}return this.semicolon(),this.finishNode(node,"ImportDeclaration")}parseImportSource(){return this.match(125)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(node){return tokenIsIdentifier(this.state.type)}parseImportSpecifierLocal(node,specifier,type,contextDescription){specifier.local=this.parseIdentifier(),this.checkLVal(specifier.local,contextDescription,9),node.specifiers.push(this.finishNode(specifier,type))}parseAssertEntries(){const attrs=[],attrNames=new Set;do{if(this.match(8))break;const node=this.startNode(),keyName=this.state.value;if(attrNames.has(keyName)&&this.raise(ErrorMessages.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc},keyName),attrNames.add(keyName),this.match(125)?node.key=this.parseStringLiteral(keyName):node.key=this.parseIdentifier(!0),this.expect(14),!this.match(125))throw this.raise(ErrorMessages.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),this.finishNode(node,"ImportAttribute"),attrs.push(node)}while(this.eat(12));return attrs}maybeParseModuleAttributes(){if(!this.match(72)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const attrs=[],attributes=new Set;do{const node=this.startNode();if(node.key=this.parseIdentifier(!0),"type"!==node.key.name&&this.raise(ErrorMessages.ModuleAttributeDifferentFromType,{node:node.key},node.key.name),attributes.has(node.key.name)&&this.raise(ErrorMessages.ModuleAttributesWithDuplicateKeys,{node:node.key},node.key.name),attributes.add(node.key.name),this.expect(14),!this.match(125))throw this.raise(ErrorMessages.ModuleAttributeInvalidValue,{at:this.state.startLoc});node.value=this.parseStringLiteral(this.state.value),this.finishNode(node,"ImportAttribute"),attrs.push(node)}while(this.eat(12));return attrs}maybeParseImportAssertions(){if(!this.isContextual(90)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);const attrs=this.parseAssertEntries();return this.eat(8),attrs}maybeParseDefaultImportSpecifier(node){return!!this.shouldParseDefaultImport(node)&&(this.parseImportSpecifierLocal(node,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(node){if(this.match(51)){const specifier=this.startNode();return this.next(),this.expectContextual(89),this.parseImportSpecifierLocal(node,specifier,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(node){let first=!0;for(this.expect(5);!this.eat(8);){if(first)first=!1;else{if(this.eat(14))throw this.raise(ErrorMessages.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}const specifier=this.startNode(),importedIsString=this.match(125),isMaybeTypeOnly=this.isContextual(122);specifier.imported=this.parseModuleExportName();const importSpecifier=this.parseImportSpecifier(specifier,importedIsString,"type"===node.importKind||"typeof"===node.importKind,isMaybeTypeOnly);node.specifiers.push(importSpecifier)}}parseImportSpecifier(specifier,importedIsString,isInTypeOnlyImport,isMaybeTypeOnly){if(this.eatContextual(89))specifier.local=this.parseIdentifier();else{const{imported}=specifier;if(importedIsString)throw this.raise(ErrorMessages.ImportBindingIsString,{node:specifier},imported.value);this.checkReservedWord(imported.name,specifier.loc.start,!0,!0),specifier.local||(specifier.local=cloneIdentifier(imported))}return this.checkLVal(specifier.local,"import specifier",9),this.finishNode(specifier,"ImportSpecifier")}isThisParam(param){return"Identifier"===param.type&&"this"===param.name}}{constructor(options,input){super(options=function(opts){const options={};for(const key of Object.keys(defaultOptions))options[key]=opts&&null!=opts[key]?opts[key]:defaultOptions[key];return options}(options),input),this.options=options,this.initializeScopes(),this.plugins=function(plugins){const pluginMap=new Map;for(const plugin of plugins){const[name,options]=Array.isArray(plugin)?plugin:[plugin,{}];pluginMap.has(name)||pluginMap.set(name,options||{})}return pluginMap}(this.options.plugins),this.filename=options.sourceFilename}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const file=this.startNode(),program=this.startNode();return this.nextToken(),file.errors=null,this.parseTopLevel(file,program),file.errors=this.state.errors,file}}const tokTypes=function(internalTokenTypes){const tokenTypes={};for(const typeName of Object.keys(internalTokenTypes))tokenTypes[typeName]=getExportedToken(internalTokenTypes[typeName]);return tokenTypes}(tt);function getParser(options,input){let cls=Parser;return null!=options&&options.plugins&&(!function(plugins){if(hasPlugin(plugins,"decorators")){if(hasPlugin(plugins,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const decoratorsBeforeExport=getPluginOption(plugins,"decorators","decoratorsBeforeExport");if(null==decoratorsBeforeExport)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(hasPlugin(plugins,"flow")&&hasPlugin(plugins,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(hasPlugin(plugins,"placeholders")&&hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(hasPlugin(plugins,"pipelineOperator")){const proposal=getPluginOption(plugins,"pipelineOperator","proposal");if(!PIPELINE_PROPOSALS.includes(proposal)){const proposalList=PIPELINE_PROPOSALS.map((p=>`"${p}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`)}const tupleSyntaxIsHash=hasPlugin(plugins,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===proposal){if(hasPlugin(plugins,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(hasPlugin(plugins,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const topicToken=getPluginOption(plugins,"pipelineOperator","topicToken");if(!TOPIC_TOKENS.includes(topicToken)){const tokenList=TOPIC_TOKENS.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`)}if("#"===topicToken&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===proposal&&tupleSyntaxIsHash)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(hasPlugin(plugins,"moduleAttributes")){if(hasPlugin(plugins,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==getPluginOption(plugins,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(hasPlugin(plugins,"recordAndTuple")&&!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(getPluginOption(plugins,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+RECORD_AND_TUPLE_SYNTAX_TYPES.map((p=>`'${p}'`)).join(", "));if(hasPlugin(plugins,"asyncDoExpressions")&&!hasPlugin(plugins,"doExpressions")){const error=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw error.missingPlugins="doExpressions",error}}(options.plugins),cls=function(pluginsFromOptions){const pluginList=mixinPluginNames.filter((name=>hasPlugin(pluginsFromOptions,name))),key=pluginList.join("/");let cls=parserClassCache[key];if(!cls){cls=Parser;for(const plugin of pluginList)cls=mixinPlugins[plugin](cls);parserClassCache[key]=cls}return cls}(options.plugins)),new cls(options,input)}const parserClassCache={};exports.parse=function(input,options){var _options;if("unambiguous"!==(null==(_options=options)?void 0:_options.sourceType))return getParser(options,input).parse();options=Object.assign({},options);try{options.sourceType="module";const parser=getParser(options,input),ast=parser.parse();if(parser.sawUnambiguousESM)return ast;if(parser.ambiguousScriptDifferentAst)try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused){}else ast.program.sourceType="script";return ast}catch(moduleError){try{return options.sourceType="script",getParser(options,input).parse()}catch(_unused2){}throw moduleError}},exports.parseExpression=function(input,options){const parser=getParser(options,input);return parser.options.strictMode&&(parser.state.strict=!0),parser.getExpression()},exports.tokTypes=tokTypes},"./node_modules/@babel/plugin-proposal-decorators/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxDecorators=__webpack_require__("./node_modules/@babel/plugin-syntax-decorators/lib/index.js"),_helperCreateClassFeaturesPlugin=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),_transformerLegacy=__webpack_require__("./node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js"),_default=(0,_helperPluginUtils.declare)(((api,options)=>{api.assertVersion(7);const{legacy=!1}=options;if("boolean"!=typeof legacy)throw new Error("'legacy' must be a boolean.");const{decoratorsBeforeExport}=options;if(void 0===decoratorsBeforeExport){if(!legacy)throw new Error("The decorators plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you want to use the legacy decorators semantics, you can set the 'legacy: true' option.")}else{if(legacy)throw new Error("'decoratorsBeforeExport' can't be used with legacy decorators.");if("boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.")}return legacy?{name:"proposal-decorators",inherits:_pluginSyntaxDecorators.default,manipulateOptions({generatorOpts}){generatorOpts.decoratorsBeforeExport=decoratorsBeforeExport},visitor:_transformerLegacy.default}:(0,_helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({name:"proposal-decorators",api,feature:_helperCreateClassFeaturesPlugin.FEATURES.decorators,manipulateOptions({generatorOpts,parserOpts}){parserOpts.plugins.push(["decorators",{decoratorsBeforeExport}]),generatorOpts.decoratorsBeforeExport=decoratorsBeforeExport}})}));exports.default=_default},"./node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js");const buildClassDecorator=(0,_core.template)("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),buildClassPrototype=(0,_core.template)("\n CLASS_REF.prototype;\n"),buildGetDescriptor=(0,_core.template)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),buildGetObjectInitializer=(0,_core.template)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),WARNING_CALLS=new WeakSet;function applyEnsureOrdering(path){const identDecorators=(path.isClass()?[path].concat(path.get("body.body")):path.get("properties")).reduce(((acc,prop)=>acc.concat(prop.node.decorators||[])),[]).filter((decorator=>!_core.types.isIdentifier(decorator.expression)));if(0!==identDecorators.length)return _core.types.sequenceExpression(identDecorators.map((decorator=>{const expression=decorator.expression,id=decorator.expression=path.scope.generateDeclaredUidIdentifier("dec");return _core.types.assignmentExpression("=",id,expression)})).concat([path.node]))}function hasClassDecorators(classNode){return!(!classNode.decorators||!classNode.decorators.length)}function hasMethodDecorators(body){return body.some((node=>{var _node$decorators;return null==(_node$decorators=node.decorators)?void 0:_node$decorators.length}))}function applyTargetDecorators(path,state,decoratedProps){const name=path.scope.generateDeclaredUidIdentifier(path.isClass()?"class":"obj"),exprs=decoratedProps.reduce((function(acc,node){const decorators=node.decorators||[];if(node.decorators=null,0===decorators.length)return acc;if(node.computed)throw path.buildCodeFrameError("Computed method/property decorators are not yet supported.");const property=_core.types.isLiteral(node.key)?node.key:_core.types.stringLiteral(node.key.name),target=path.isClass()&&!node.static?buildClassPrototype({CLASS_REF:name}).expression:name;if(_core.types.isClassProperty(node,{static:!1})){const descriptor=path.scope.generateDeclaredUidIdentifier("descriptor"),initializer=node.value?_core.types.functionExpression(null,[],_core.types.blockStatement([_core.types.returnStatement(node.value)])):_core.types.nullLiteral();node.value=_core.types.callExpression(state.addHelper("initializerWarningHelper"),[descriptor,_core.types.thisExpression()]),WARNING_CALLS.add(node.value),acc.push(_core.types.assignmentExpression("=",_core.types.cloneNode(descriptor),_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"),[_core.types.cloneNode(target),_core.types.cloneNode(property),_core.types.arrayExpression(decorators.map((dec=>_core.types.cloneNode(dec.expression)))),_core.types.objectExpression([_core.types.objectProperty(_core.types.identifier("configurable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("enumerable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("writable"),_core.types.booleanLiteral(!0)),_core.types.objectProperty(_core.types.identifier("initializer"),initializer)])])))}else acc.push(_core.types.callExpression(state.addHelper("applyDecoratedDescriptor"),[_core.types.cloneNode(target),_core.types.cloneNode(property),_core.types.arrayExpression(decorators.map((dec=>_core.types.cloneNode(dec.expression)))),_core.types.isObjectProperty(node)||_core.types.isClassProperty(node,{static:!0})?buildGetObjectInitializer({TEMP:path.scope.generateDeclaredUidIdentifier("init"),TARGET:_core.types.cloneNode(target),PROPERTY:_core.types.cloneNode(property)}).expression:buildGetDescriptor({TARGET:_core.types.cloneNode(target),PROPERTY:_core.types.cloneNode(property)}).expression,_core.types.cloneNode(target)]));return acc}),[]);return _core.types.sequenceExpression([_core.types.assignmentExpression("=",_core.types.cloneNode(name),path.node),_core.types.sequenceExpression(exprs),_core.types.cloneNode(name)])}function decoratedClassToExpression({node,scope}){if(!hasClassDecorators(node)&&!hasMethodDecorators(node.body.body))return;const ref=node.id?_core.types.cloneNode(node.id):scope.generateUidIdentifier("class");return _core.types.variableDeclaration("let",[_core.types.variableDeclarator(ref,_core.types.toExpression(node))])}var _default={ExportDefaultDeclaration(path){const decl=path.get("declaration");if(!decl.isClassDeclaration())return;const replacement=decoratedClassToExpression(decl);if(replacement){const[varDeclPath]=path.replaceWithMultiple([replacement,_core.types.exportNamedDeclaration(null,[_core.types.exportSpecifier(_core.types.cloneNode(replacement.declarations[0].id),_core.types.identifier("default"))])]);decl.node.id||path.scope.registerDeclaration(varDeclPath)}},ClassDeclaration(path){const replacement=decoratedClassToExpression(path);replacement&&path.replaceWith(replacement)},ClassExpression(path,state){const decoratedClass=applyEnsureOrdering(path)||function(classPath){if(!hasClassDecorators(classPath.node))return;const decorators=classPath.node.decorators||[];classPath.node.decorators=null;const name=classPath.scope.generateDeclaredUidIdentifier("class");return decorators.map((dec=>dec.expression)).reverse().reduce((function(acc,decorator){return buildClassDecorator({CLASS_REF:_core.types.cloneNode(name),DECORATOR:_core.types.cloneNode(decorator),INNER:acc}).expression}),classPath.node)}(path)||function(path,state){if(hasMethodDecorators(path.node.body.body))return applyTargetDecorators(path,state,path.node.body.body)}(path,state);decoratedClass&&path.replaceWith(decoratedClass)},ObjectExpression(path,state){const decoratedObject=applyEnsureOrdering(path)||function(path,state){if(hasMethodDecorators(path.node.properties))return applyTargetDecorators(path,state,path.node.properties)}(path,state);decoratedObject&&path.replaceWith(decoratedObject)},AssignmentExpression(path,state){WARNING_CALLS.has(path.node.right)&&path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"),[_core.types.cloneNode(path.get("left.object").node),_core.types.stringLiteral(path.get("left.property").node.name||path.get("left.property").node.value),_core.types.cloneNode(path.get("right.arguments")[0].node),_core.types.cloneNode(path.get("right.arguments")[1].node)]))},CallExpression(path,state){3===path.node.arguments.length&&WARNING_CALLS.has(path.node.arguments[2])&&path.node.callee.name===state.addHelper("defineProperty").name&&path.replaceWith(_core.types.callExpression(state.addHelper("initializerDefineProperty"),[_core.types.cloneNode(path.get("arguments")[0].node),_core.types.cloneNode(path.get("arguments")[1].node),_core.types.cloneNode(path.get("arguments.2.arguments")[0].node),_core.types.cloneNode(path.get("arguments.2.arguments")[1].node)]))}};exports.default=_default},"./node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxNullishCoalescingOperator=__webpack_require__("./node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js"),_core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_default=(0,_helperPluginUtils.declare)(((api,{loose=!1})=>{var _api$assumption;api.assertVersion(7);const noDocumentAll=null!=(_api$assumption=api.assumption("noDocumentAll"))?_api$assumption:loose;return{name:"proposal-nullish-coalescing-operator",inherits:_pluginSyntaxNullishCoalescingOperator.default,visitor:{LogicalExpression(path){const{node,scope}=path;if("??"!==node.operator)return;let ref,assignment;if(scope.isStatic(node.left))ref=node.left,assignment=_core.types.cloneNode(node.left);else{if(scope.path.isPattern())return void path.replaceWith(_core.template.ast`(() => ${path.node})()`);ref=scope.generateUidIdentifierBasedOnNode(node.left),scope.push({id:_core.types.cloneNode(ref)}),assignment=_core.types.assignmentExpression("=",ref,node.left)}path.replaceWith(_core.types.conditionalExpression(noDocumentAll?_core.types.binaryExpression("!=",assignment,_core.types.nullLiteral()):_core.types.logicalExpression("&&",_core.types.binaryExpression("!==",assignment,_core.types.nullLiteral()),_core.types.binaryExpression("!==",_core.types.cloneNode(ref),scope.buildUndefinedNode())),_core.types.cloneNode(ref),node.right))}}}}));exports.default=_default},"./node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helperPluginUtils=__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js"),syntaxOptionalChaining=__webpack_require__("./node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js"),core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),helperSkipTransparentExpressionWrappers=__webpack_require__("./node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var syntaxOptionalChaining__default=_interopDefaultLegacy(syntaxOptionalChaining);function willPathCastToBoolean(path){const maybeWrapped=findOutermostTransparentParent(path),{node,parentPath}=maybeWrapped;if(parentPath.isLogicalExpression()){const{operator,right}=parentPath.node;if("&&"===operator||"||"===operator||"??"===operator&&node===right)return willPathCastToBoolean(parentPath)}if(parentPath.isSequenceExpression()){const{expressions}=parentPath.node;return expressions[expressions.length-1]!==node||willPathCastToBoolean(parentPath)}return parentPath.isConditional({test:node})||parentPath.isUnaryExpression({operator:"!"})||parentPath.isLoop({test:node})}function findOutermostTransparentParent(path){let maybeWrapped=path;return path.findParent((p=>{if(!helperSkipTransparentExpressionWrappers.isTransparentExprWrapper(p.node))return!0;maybeWrapped=p})),maybeWrapped}const{ast}=core.template.expression;function isSimpleMemberExpression(expression){return expression=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression),core.types.isIdentifier(expression)||core.types.isSuper(expression)||core.types.isMemberExpression(expression)&&!expression.computed&&isSimpleMemberExpression(expression.object)}function transform(path,{pureGetters,noDocumentAll}){const{scope}=path,maybeWrapped=findOutermostTransparentParent(path),{parentPath}=maybeWrapped,willReplacementCastToBoolean=willPathCastToBoolean(maybeWrapped);let isDeleteOperation=!1;const parentIsCall=parentPath.isCallExpression({callee:maybeWrapped.node})&&path.isOptionalMemberExpression(),optionals=[];let optionalPath=path;if(scope.path.isPattern()&&function(path){let optionalPath=path;const{scope}=path;for(;optionalPath.isOptionalMemberExpression()||optionalPath.isOptionalCallExpression();){const{node}=optionalPath,childKey=optionalPath.isOptionalMemberExpression()?"object":"callee",childPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get(childKey));if(node.optional)return!scope.isStatic(childPath.node);optionalPath=childPath}}(optionalPath))return void path.replaceWith(core.template.ast`(() => ${path.node})()`);for(;optionalPath.isOptionalMemberExpression()||optionalPath.isOptionalCallExpression();){const{node}=optionalPath;node.optional&&optionals.push(node),optionalPath.isOptionalMemberExpression()?(optionalPath.node.type="MemberExpression",optionalPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("object"))):optionalPath.isOptionalCallExpression()&&(optionalPath.node.type="CallExpression",optionalPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(optionalPath.get("callee")))}let replacementPath=path;parentPath.isUnaryExpression({operator:"delete"})&&(replacementPath=parentPath,isDeleteOperation=!0);for(let i=optionals.length-1;i>=0;i--){const node=optionals[i],isCall=core.types.isCallExpression(node),replaceKey=isCall?"callee":"object",chainWithTypes=node[replaceKey],chain=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);let ref,check;if(isCall&&core.types.isIdentifier(chain,{name:"eval"})?(check=ref=chain,node[replaceKey]=core.types.sequenceExpression([core.types.numericLiteral(0),ref])):pureGetters&&isCall&&isSimpleMemberExpression(chain)?check=ref=chainWithTypes:(ref=scope.maybeGenerateMemoised(chain),ref?(check=core.types.assignmentExpression("=",core.types.cloneNode(ref),chainWithTypes),node[replaceKey]=ref):check=ref=chainWithTypes),isCall&&core.types.isMemberExpression(chain))if(pureGetters&&isSimpleMemberExpression(chain))node.callee=chainWithTypes;else{const{object}=chain;let context=scope.maybeGenerateMemoised(object);context?chain.object=core.types.assignmentExpression("=",context,object):context=core.types.isSuper(object)?core.types.thisExpression():object,node.arguments.unshift(core.types.cloneNode(context)),node.callee=core.types.memberExpression(node.callee,core.types.identifier("call"))}let replacement=replacementPath.node;if(0===i&&parentIsCall){var _baseRef;const object=helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(replacement.object);let baseRef;pureGetters&&isSimpleMemberExpression(object)||(baseRef=scope.maybeGenerateMemoised(object),baseRef&&(replacement.object=core.types.assignmentExpression("=",baseRef,object))),replacement=core.types.callExpression(core.types.memberExpression(replacement,core.types.identifier("bind")),[core.types.cloneNode(null!=(_baseRef=baseRef)?_baseRef:object)])}if(willReplacementCastToBoolean){const nonNullishCheck=noDocumentAll?ast`${core.types.cloneNode(check)} != null`:ast` ${core.types.cloneNode(check)} !== null && ${core.types.cloneNode(ref)} !== void 0`;replacementPath.replaceWith(core.types.logicalExpression("&&",nonNullishCheck,replacement)),replacementPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("right"))}else{const nullishCheck=noDocumentAll?ast`${core.types.cloneNode(check)} == null`:ast` ${core.types.cloneNode(check)} === null || ${core.types.cloneNode(ref)} === void 0`,returnValue=isDeleteOperation?ast`true`:ast`void 0`;replacementPath.replaceWith(core.types.conditionalExpression(nullishCheck,returnValue,replacement)),replacementPath=helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers(replacementPath.get("alternate"))}}}var index=helperPluginUtils.declare(((api,options)=>{var _api$assumption,_api$assumption2;api.assertVersion(7);const{loose=!1}=options,noDocumentAll=null!=(_api$assumption=api.assumption("noDocumentAll"))?_api$assumption:loose,pureGetters=null!=(_api$assumption2=api.assumption("pureGetters"))?_api$assumption2:loose;return{name:"proposal-optional-chaining",inherits:syntaxOptionalChaining__default.default.default,visitor:{"OptionalCallExpression|OptionalMemberExpression"(path){transform(path,{noDocumentAll,pureGetters})}}}}));exports.default=index,exports.transform=transform},"./node_modules/@babel/plugin-syntax-class-properties/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}})));exports.default=_default},"./node_modules/@babel/plugin-syntax-decorators/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(((api,options)=>{api.assertVersion(7);const{legacy=!1}=options;if("boolean"!=typeof legacy)throw new Error("'legacy' must be a boolean.");const{decoratorsBeforeExport}=options;if(void 0===decoratorsBeforeExport){if(!legacy)throw new Error("The '@babel/plugin-syntax-decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you want to use the legacy decorators semantics, you can set the 'legacy: true' option.")}else{if(legacy)throw new Error("'decoratorsBeforeExport' can't be used with legacy decorators.");if("boolean"!=typeof decoratorsBeforeExport)throw new Error("'decoratorsBeforeExport' must be a boolean.")}return{name:"syntax-decorators",manipulateOptions(opts,parserOpts){parserOpts.plugins.push(legacy?"decorators-legacy":["decorators",{decoratorsBeforeExport}])}}}));exports.default=_default},"./node_modules/@babel/plugin-syntax-nullish-coalescing-operator/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("nullishCoalescingOperator")}})));exports.default=_default},"./node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((api=>(api.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions(opts,parserOpts){parserOpts.plugins.push("optionalChaining")}})));exports.default=_default},"./node_modules/@babel/plugin-syntax-typescript/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function removePlugin(plugins,name){const indices=[];plugins.forEach(((plugin,i)=>{(Array.isArray(plugin)?plugin[0]:plugin)===name&&indices.unshift(i)}));for(const i of indices)plugins.splice(i,1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(((api,{isTSX,disallowAmbiguousJSXLike})=>(api.assertVersion(7),{name:"syntax-typescript",manipulateOptions(opts,parserOpts){const{plugins}=parserOpts;removePlugin(plugins,"flow"),removePlugin(plugins,"jsx"),parserOpts.plugins.push(["typescript",{disallowAmbiguousJSXLike}],"classProperties"),parserOpts.plugins.push("objectRestSpread"),isTSX&&parserOpts.plugins.push("jsx")}})));exports.default=_default},"./node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js"),_helperModuleTransforms=__webpack_require__("./node_modules/@babel/helper-module-transforms/lib/index.js"),_helperSimpleAccess=__webpack_require__("./node_modules/@babel/helper-simple-access/lib/index.js"),_core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_utils=__webpack_require__("./node_modules/babel-plugin-dynamic-import-node/utils.js"),_default=(0,_helperPluginUtils.declare)(((api,options)=>{var _api$assumption,_api$assumption2,_api$assumption3;api.assertVersion(7);const transformImportCall=(0,_utils.createDynamicImportTransform)(api),{strictNamespace=!1,mjsStrictNamespace=!0,allowTopLevelThis,strict,strictMode,noInterop,importInterop,lazy=!1,allowCommonJSExports=!0}=options,constantReexports=null!=(_api$assumption=api.assumption("constantReexports"))?_api$assumption:options.loose,enumerableModuleMeta=null!=(_api$assumption2=api.assumption("enumerableModuleMeta"))?_api$assumption2:options.loose,noIncompleteNsImportDetection=null!=(_api$assumption3=api.assumption("noIncompleteNsImportDetection"))&&_api$assumption3;if(!("boolean"==typeof lazy||"function"==typeof lazy||Array.isArray(lazy)&&lazy.every((item=>"string"==typeof item))))throw new Error(".lazy must be a boolean, array of strings, or a function");if("boolean"!=typeof strictNamespace)throw new Error(".strictNamespace must be a boolean, or undefined");if("boolean"!=typeof mjsStrictNamespace)throw new Error(".mjsStrictNamespace must be a boolean, or undefined");const getAssertion=localName=>_core.template.expression.ast` (function(){ throw new Error( "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file."); })() `,moduleExportsVisitor={ReferencedIdentifier(path){const localName=path.node.name;if("module"!==localName&&"exports"!==localName)return;const localBinding=path.scope.getBinding(localName);this.scope.getBinding(localName)!==localBinding||path.parentPath.isObjectProperty({value:path.node})&&path.parentPath.parentPath.isObjectPattern()||path.parentPath.isAssignmentExpression({left:path.node})||path.isAssignmentExpression({left:path.node})||path.replaceWith(getAssertion(localName))},AssignmentExpression(path){const left=path.get("left");if(left.isIdentifier()){const localName=path.node.name;if("module"!==localName&&"exports"!==localName)return;const localBinding=path.scope.getBinding(localName);if(this.scope.getBinding(localName)!==localBinding)return;const right=path.get("right");right.replaceWith(_core.types.sequenceExpression([right.node,getAssertion(localName)]))}else if(left.isPattern()){const ids=left.getOuterBindingIdentifiers(),localName=Object.keys(ids).filter((localName=>("module"===localName||"exports"===localName)&&this.scope.getBinding(localName)===path.scope.getBinding(localName)))[0];if(localName){const right=path.get("right");right.replaceWith(_core.types.sequenceExpression([right.node,getAssertion(localName)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs")},visitor:{CallExpression(path){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(!path.get("callee").isImport())return;let{scope}=path;do{scope.rename("require")}while(scope=scope.parent);transformImportCall(this,path.get("callee"))},Program:{exit(path,state){if(!(0,_helperModuleTransforms.isModule)(path))return;path.scope.rename("exports"),path.scope.rename("module"),path.scope.rename("require"),path.scope.rename("__filename"),path.scope.rename("__dirname"),allowCommonJSExports||((0,_helperSimpleAccess.default)(path,new Set(["module","exports"])),path.traverse(moduleExportsVisitor,{scope:path.scope}));let moduleName=(0,_helperModuleTransforms.getModuleName)(this.file.opts,options);moduleName&&(moduleName=_core.types.stringLiteral(moduleName));const{meta,headers}=(0,_helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path,{exportName:"exports",constantReexports,enumerableModuleMeta,strict,strictMode,allowTopLevelThis,noInterop,importInterop,lazy,esNamespaceOnly:"string"==typeof state.filename&&/\.mjs$/.test(state.filename)?mjsStrictNamespace:strictNamespace,noIncompleteNsImportDetection});for(const[source,metadata]of meta.source){const loadExpr=_core.types.callExpression(_core.types.identifier("require"),[_core.types.stringLiteral(source)]);let header;if((0,_helperModuleTransforms.isSideEffectImport)(metadata)){if(metadata.lazy)throw new Error("Assertion failure");header=_core.types.expressionStatement(loadExpr)}else{const init=(0,_helperModuleTransforms.wrapInterop)(path,loadExpr,metadata.interop)||loadExpr;header=metadata.lazy?_core.template.ast` function ${metadata.name}() { const data = ${init}; ${metadata.name} = function(){ return data; }; return data; } `:_core.template.ast` var ${metadata.name} = ${init}; `}header.loc=metadata.loc,headers.push(header),headers.push(...(0,_helperModuleTransforms.buildNamespaceInitStatements)(meta,metadata,constantReexports))}(0,_helperModuleTransforms.ensureStatementsHoisted)(headers),path.unshiftContainer("body",headers),path.get("body").forEach((path=>{-1!==headers.indexOf(path.node)&&path.isVariableDeclaration()&&path.scope.registerDeclaration(path)}))}}}}}));exports.default=_default},"./node_modules/@babel/plugin-transform-typescript/lib/const-enum.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,t){const{name}=path.node.id,parentIsExport=path.parentPath.isExportNamedDeclaration();let isExported=parentIsExport;!isExported&&t.isProgram(path.parent)&&(isExported=path.parent.body.some((stmt=>t.isExportNamedDeclaration(stmt)&&!stmt.source&&stmt.specifiers.some((spec=>t.isExportSpecifier(spec)&&spec.local.name===name)))));const entries=(0,_enum.translateEnumValues)(path,t);if(isExported){const obj=t.objectExpression(entries.map((([name,value])=>t.objectProperty(t.isValidIdentifier(name)?t.identifier(name):t.stringLiteral(name),value))));return void(path.scope.hasOwnBinding(name)?(parentIsExport?path.parentPath:path).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[path.node.id,obj]))):(path.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(path.node.id,obj)])),path.scope.registerDeclaration(path)))}const entriesMap=new Map(entries);path.scope.path.traverse({Scope(path){path.scope.hasOwnBinding(name)&&path.skip()},MemberExpression(path){if(!t.isIdentifier(path.node.object,{name}))return;let key;if(path.node.computed){if(!t.isStringLiteral(path.node.property))return;key=path.node.property.value}else{if(!t.isIdentifier(path.node.property))return;key=path.node.property.name}entriesMap.has(key)&&path.replaceWith(t.cloneNode(entriesMap.get(key)))}}),path.remove()};var _enum=__webpack_require__("./node_modules/@babel/plugin-transform-typescript/lib/enum.js")},"./node_modules/@babel/plugin-transform-typescript/lib/enum.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,t){const{node}=path;if(node.declare)return void path.remove();const name=node.id.name,fill=function(path,t,id){const assignments=translateEnumValues(path,t).map((([memberName,memberValue])=>{return isString=t.isStringLiteral(memberValue),options={ENUM:t.cloneNode(id),NAME:memberName,VALUE:memberValue},(isString?buildStringAssignment:buildNumericAssignment)(options);var isString,options}));return buildEnumWrapper({ID:t.cloneNode(id),ASSIGNMENTS:assignments})}(path,t,node.id);switch(path.parent.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":if(path.insertAfter(fill),function seen(parentPath){if(parentPath.isExportDeclaration())return seen(parentPath.parentPath);return!!parentPath.getData(name)||(parentPath.setData(name,!0),!1)}(path.parentPath))path.remove();else{const isGlobal=t.isProgram(path.parent);path.scope.registerDeclaration(path.replaceWith(function(id,t,kind){return t.variableDeclaration(kind,[t.variableDeclarator(id)])}(node.id,t,isGlobal?"var":"let"))[0])}break;default:throw new Error(`Unexpected enum parent '${path.parent.type}`)}},exports.translateEnumValues=translateEnumValues;var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_assert=__webpack_require__("assert");const buildEnumWrapper=(0,_core.template)("\n (function (ID) {\n ASSIGNMENTS;\n })(ID || (ID = {}));\n"),buildStringAssignment=(0,_core.template)('\n ENUM["NAME"] = VALUE;\n'),buildNumericAssignment=(0,_core.template)('\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n');function ReferencedIdentifier(expr,state){const{seen,path,t}=state,name=expr.node.name;seen.has(name)&&!expr.scope.hasOwnBinding(name)&&(expr.replaceWith(t.memberExpression(t.cloneNode(path.node.id),t.cloneNode(expr.node))),expr.skip())}const enumSelfReferenceVisitor={ReferencedIdentifier};function translateEnumValues(path,t){const seen=new Map;let lastName,constValue=-1;return path.get("members").map((memberPath=>{const member=memberPath.node,name=t.isIdentifier(member.id)?member.id.name:member.id.value,initializer=member.initializer;let value;if(initializer)if(constValue=function(expr,seen){return evalConstant(expr);function evalConstant(expr){switch(expr.type){case"StringLiteral":return expr.value;case"UnaryExpression":return evalUnaryExpression(expr);case"BinaryExpression":return evalBinaryExpression(expr);case"NumericLiteral":return expr.value;case"ParenthesizedExpression":return evalConstant(expr.expression);case"Identifier":return seen.get(expr.name);case"TemplateLiteral":if(1===expr.quasis.length)return expr.quasis[0].value.cooked;default:return}}function evalUnaryExpression({argument,operator}){const value=evalConstant(argument);if(void 0!==value)switch(operator){case"+":return value;case"-":return-value;case"~":return~value;default:return}}function evalBinaryExpression(expr){const left=evalConstant(expr.left);if(void 0===left)return;const right=evalConstant(expr.right);if(void 0!==right)switch(expr.operator){case"|":return left|right;case"&":return left&right;case">>":return left>>right;case">>>":return left>>>right;case"<<":return left<{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _helperPluginUtils=__webpack_require__("./node_modules/@babel/helper-plugin-utils/lib/index.js"),_pluginSyntaxTypescript=__webpack_require__("./node_modules/@babel/plugin-syntax-typescript/lib/index.js"),_core=__webpack_require__("./node_modules/@babel/core/lib/index.js"),_helperCreateClassFeaturesPlugin=__webpack_require__("./node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),_constEnum=__webpack_require__("./node_modules/@babel/plugin-transform-typescript/lib/const-enum.js"),_enum=__webpack_require__("./node_modules/@babel/plugin-transform-typescript/lib/enum.js"),_namespace=__webpack_require__("./node_modules/@babel/plugin-transform-typescript/lib/namespace.js");function isInType(path){switch(path.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"ExportSpecifier":return"type"===path.parentPath.parent.exportKind;default:return!1}}const GLOBAL_TYPES=new WeakMap,NEEDS_EXPLICIT_ESM=new WeakMap,PARSED_PARAMS=new WeakSet;function isGlobalType(path,name){const program=path.find((path=>path.isProgram())).node;return!path.scope.hasOwnBinding(name)&&(!!GLOBAL_TYPES.get(program).has(name)||(console.warn(`The exported identifier "${name}" is not declared in Babel's scope tracker\nas a JavaScript value binding, and "@babel/plugin-transform-typescript"\nnever encountered it as a TypeScript type declaration.\nIt will be treated as a JavaScript value.\n\nThis problem is likely caused by another plugin injecting\n"${name}" without registering it in the scope tracker. If you are the author\n of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1))}function registerGlobalType(programNode,name){GLOBAL_TYPES.get(programNode).add(name)}var _default=(0,_helperPluginUtils.declare)(((api,opts)=>{api.assertVersion(7);const JSX_PRAGMA_REGEX=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces=!0,jsxPragma="React.createElement",jsxPragmaFrag="React.Fragment",onlyRemoveTypeImports=!1,optimizeConstEnums=!1}=opts;var{allowDeclareFields=!1}=opts;const classMemberVisitors={field(path){const{node}=path;if(!allowDeclareFields&&node.declare)throw path.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(node.declare){if(node.value)throw path.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");node.decorators||path.remove()}else if(node.definite){if(node.value)throw path.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");allowDeclareFields||node.decorators||path.remove()}else allowDeclareFields||node.value||node.decorators||_core.types.isClassPrivateProperty(node)||path.remove();node.accessibility&&(node.accessibility=null),node.abstract&&(node.abstract=null),node.readonly&&(node.readonly=null),node.optional&&(node.optional=null),node.typeAnnotation&&(node.typeAnnotation=null),node.definite&&(node.definite=null),node.declare&&(node.declare=null),node.override&&(node.override=null)},method({node}){node.accessibility&&(node.accessibility=null),node.abstract&&(node.abstract=null),node.optional&&(node.optional=null),node.override&&(node.override=null)},constructor(path,classPath){path.node.accessibility&&(path.node.accessibility=null);const parameterProperties=[];for(const param of path.node.params)"TSParameterProperty"!==param.type||PARSED_PARAMS.has(param.parameter)||(PARSED_PARAMS.add(param.parameter),parameterProperties.push(param.parameter));if(parameterProperties.length){const assigns=parameterProperties.map((p=>{let id;if(_core.types.isIdentifier(p))id=p;else{if(!_core.types.isAssignmentPattern(p)||!_core.types.isIdentifier(p.left))throw path.buildCodeFrameError("Parameter properties can not be destructuring patterns.");id=p.left}return _core.template.statement.ast` this.${_core.types.cloneNode(id)} = ${_core.types.cloneNode(id)}`}));(0,_helperCreateClassFeaturesPlugin.injectInitialization)(classPath,path,assigns)}}};return{name:"transform-typescript",inherits:_pluginSyntaxTypescript.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(path,state){const{file}=state;let fileJsxPragma=null,fileJsxPragmaFrag=null;const programNode=path.node;if(GLOBAL_TYPES.has(programNode)||GLOBAL_TYPES.set(programNode,new Set),file.ast.comments)for(const comment of file.ast.comments){const jsxMatches=JSX_PRAGMA_REGEX.exec(comment.value);jsxMatches&&(jsxMatches[1]?fileJsxPragmaFrag=jsxMatches[2]:fileJsxPragma=jsxMatches[2])}let pragmaImportName=fileJsxPragma||jsxPragma;pragmaImportName&&([pragmaImportName]=pragmaImportName.split("."));let pragmaFragImportName=fileJsxPragmaFrag||jsxPragmaFrag;pragmaFragImportName&&([pragmaFragImportName]=pragmaFragImportName.split("."));for(let stmt of path.get("body"))if(stmt.isImportDeclaration()){if(NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),"type"===stmt.node.importKind){for(const specifier of stmt.node.specifiers)registerGlobalType(programNode,specifier.local.name);stmt.remove();continue}const importsToRemove=new Set,specifiersLength=stmt.node.specifiers.length,isAllSpecifiersElided=()=>specifiersLength>0&&specifiersLength===importsToRemove.size;for(const specifier of stmt.node.specifiers)if("ImportSpecifier"===specifier.type&&"type"===specifier.importKind){registerGlobalType(programNode,specifier.local.name);const binding=stmt.scope.getBinding(specifier.local.name);binding&&importsToRemove.add(binding.path)}if(onlyRemoveTypeImports)NEEDS_EXPLICIT_ESM.set(path.node,!1);else{if(0===stmt.node.specifiers.length){NEEDS_EXPLICIT_ESM.set(path.node,!1);continue}for(const specifier of stmt.node.specifiers){const binding=stmt.scope.getBinding(specifier.local.name);binding&&!importsToRemove.has(binding.path)&&(isImportTypeOnly({binding,programPath:path,pragmaImportName,pragmaFragImportName})?importsToRemove.add(binding.path):NEEDS_EXPLICIT_ESM.set(path.node,!1))}}if(isAllSpecifiersElided())stmt.remove();else for(const importPath of importsToRemove)importPath.remove()}else if(stmt.isExportDeclaration()&&(stmt=stmt.get("declaration")),stmt.isVariableDeclaration({declare:!0}))for(const name of Object.keys(stmt.getBindingIdentifiers()))registerGlobalType(programNode,name);else(stmt.isTSTypeAliasDeclaration()||stmt.isTSDeclareFunction()&&stmt.get("id").isIdentifier()||stmt.isTSInterfaceDeclaration()||stmt.isClassDeclaration({declare:!0})||stmt.isTSEnumDeclaration({declare:!0})||stmt.isTSModuleDeclaration({declare:!0})&&stmt.get("id").isIdentifier())&®isterGlobalType(programNode,stmt.node.id.name)},exit(path){"module"===path.node.sourceType&&NEEDS_EXPLICIT_ESM.get(path.node)&&path.pushContainer("body",_core.types.exportNamedDeclaration())}},ExportNamedDeclaration(path,state){NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),"type"!==path.node.exportKind?path.node.source&&path.node.specifiers.length>0&&path.node.specifiers.every((specifier=>"ExportSpecifier"===specifier.type&&"type"===specifier.exportKind))||!path.node.source&&path.node.specifiers.length>0&&path.node.specifiers.every((specifier=>_core.types.isExportSpecifier(specifier)&&isGlobalType(path,specifier.local.name)))?path.remove():NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!1):path.remove()},ExportSpecifier(path){(!path.parent.source&&isGlobalType(path,path.node.local.name)||"type"===path.node.exportKind)&&path.remove()},ExportDefaultDeclaration(path,state){NEEDS_EXPLICIT_ESM.has(state.file.ast.program)||NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!0),_core.types.isIdentifier(path.node.declaration)&&isGlobalType(path,path.node.declaration.name)?path.remove():NEEDS_EXPLICIT_ESM.set(state.file.ast.program,!1)},TSDeclareFunction(path){path.remove()},TSDeclareMethod(path){path.remove()},VariableDeclaration(path){path.node.declare&&path.remove()},VariableDeclarator({node}){node.definite&&(node.definite=null)},TSIndexSignature(path){path.remove()},ClassDeclaration(path){const{node}=path;node.declare&&path.remove()},Class(path){const{node}=path;node.typeParameters&&(node.typeParameters=null),node.superTypeParameters&&(node.superTypeParameters=null),node.implements&&(node.implements=null),node.abstract&&(node.abstract=null),path.get("body.body").forEach((child=>{child.isClassMethod()||child.isClassPrivateMethod()?"constructor"===child.node.kind?classMemberVisitors.constructor(child,path):classMemberVisitors.method(child):(child.isClassProperty()||child.isClassPrivateProperty())&&classMemberVisitors.field(child)}))},Function(path){const{node,scope}=path;node.typeParameters&&(node.typeParameters=null),node.returnType&&(node.returnType=null);const params=node.params;params.length>0&&_core.types.isIdentifier(params[0],{name:"this"})&¶ms.shift();const paramsPath=path.get("params");for(const p of paramsPath)"TSParameterProperty"===p.type&&(p.replaceWith(p.get("parameter")),scope.registerBinding("param",p))},TSModuleDeclaration(path){(0,_namespace.default)(path,_core.types,allowNamespaces)},TSInterfaceDeclaration(path){path.remove()},TSTypeAliasDeclaration(path){path.remove()},TSEnumDeclaration(path){optimizeConstEnums&&path.node.const?(0,_constEnum.default)(path,_core.types):(0,_enum.default)(path,_core.types)},TSImportEqualsDeclaration(path){if(_core.types.isTSExternalModuleReference(path.node.moduleReference))throw path.buildCodeFrameError(`\`import ${path.node.id.name} = require('${path.node.moduleReference.expression.value}')\` is not supported by @babel/plugin-transform-typescript\nPlease consider using \`import ${path.node.id.name} from '${path.node.moduleReference.expression.value}';\` alongside Typescript's --allowSyntheticDefaultImports option.`);path.replaceWith(_core.types.variableDeclaration("var",[_core.types.variableDeclarator(path.node.id,entityNameToExpr(path.node.moduleReference))]))},TSExportAssignment(path){throw path.buildCodeFrameError("`export =` is not supported by @babel/plugin-transform-typescript\nPlease consider using `export ;`.")},TSTypeAssertion(path){path.replaceWith(path.node.expression)},TSAsExpression(path){let{node}=path;do{node=node.expression}while(_core.types.isTSAsExpression(node));path.replaceWith(node)},TSNonNullExpression(path){path.replaceWith(path.node.expression)},CallExpression(path){path.node.typeParameters=null},OptionalCallExpression(path){path.node.typeParameters=null},NewExpression(path){path.node.typeParameters=null},JSXOpeningElement(path){path.node.typeParameters=null},TaggedTemplateExpression(path){path.node.typeParameters=null}}};function entityNameToExpr(node){return _core.types.isTSQualifiedName(node)?_core.types.memberExpression(entityNameToExpr(node.left),node.right):node}function visitPattern({node}){node.typeAnnotation&&(node.typeAnnotation=null),_core.types.isIdentifier(node)&&node.optional&&(node.optional=null)}function isImportTypeOnly({binding,programPath,pragmaImportName,pragmaFragImportName}){for(const path of binding.referencePaths)if(!isInType(path))return!1;if(binding.identifier.name!==pragmaImportName&&binding.identifier.name!==pragmaFragImportName)return!0;let sourceFileHasJsx=!1;return programPath.traverse({"JSXElement|JSXFragment"(path){sourceFileHasJsx=!0,path.stop()}}),!sourceFileHasJsx}}));exports.default=_default},"./node_modules/@babel/plugin-transform-typescript/lib/namespace.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(path,t,allowNamespaces){if(path.node.declare||"StringLiteral"===path.node.id.type)return void path.remove();if(!allowNamespaces)throw path.hub.file.buildCodeFrameError(path.node.id,"Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const name=path.node.id.name,value=handleNested(path,t,t.cloneDeep(path.node)),bound=path.scope.hasOwnBinding(name);"ExportNamedDeclaration"===path.parent.type?bound?path.parentPath.replaceWith(value):(path.parentPath.insertAfter(value),path.replaceWith(getDeclaration(t,name)),path.scope.registerDeclaration(path.parentPath)):bound?path.replaceWith(value):path.scope.registerDeclaration(path.replaceWithMultiple([getDeclaration(t,name),value])[0])};var _core=__webpack_require__("./node_modules/@babel/core/lib/index.js");function getDeclaration(t,name){return t.variableDeclaration("let",[t.variableDeclarator(t.identifier(name))])}function getMemberExpression(t,name,itemName){return t.memberExpression(t.identifier(name),t.identifier(itemName))}function handleVariableDeclaration(node,name,hub){if("const"!==node.kind)throw hub.file.buildCodeFrameError(node,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");const{declarations}=node;if(declarations.every((declarator=>_core.types.isIdentifier(declarator.id)))){for(const declarator of declarations)declarator.init=_core.types.assignmentExpression("=",getMemberExpression(_core.types,name,declarator.id.name),declarator.init);return[node]}const bindingIdentifiers=_core.types.getBindingIdentifiers(node),assignments=[];for(const idName in bindingIdentifiers)assignments.push(_core.types.assignmentExpression("=",getMemberExpression(_core.types,name,idName),_core.types.cloneNode(bindingIdentifiers[idName])));return[node,_core.types.expressionStatement(_core.types.sequenceExpression(assignments))]}function buildNestedAmbiendModuleError(path,node){throw path.hub.buildError(node,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function handleNested(path,t,node,parentExport){const names=new Set,realName=node.id;t.assertIdentifier(realName);const name=path.scope.generateUid(realName.name),namespaceTopLevel=t.isTSModuleBlock(node.body)?node.body.body:[t.exportNamedDeclaration(node.body)];for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function createTemplateBuilder(formatter,defaultOpts){const templateFnCache=new WeakMap,templateAstCache=new WeakMap,cachedOpts=defaultOpts||(0,_options.validate)(null);return Object.assign(((tpl,...args)=>{if("string"==typeof tpl){if(args.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,_string.default)(formatter,tpl,(0,_options.merge)(cachedOpts,(0,_options.validate)(args[0]))))}if(Array.isArray(tpl)){let builder=templateFnCache.get(tpl);return builder||(builder=(0,_literal.default)(formatter,tpl,cachedOpts),templateFnCache.set(tpl,builder)),extendedTrace(builder(args))}if("object"==typeof tpl&&tpl){if(args.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(formatter,(0,_options.merge)(cachedOpts,(0,_options.validate)(tpl)))}throw new Error("Unexpected template param "+typeof tpl)}),{ast:(tpl,...args)=>{if("string"==typeof tpl){if(args.length>1)throw new Error("Unexpected extra params.");return(0,_string.default)(formatter,tpl,(0,_options.merge)((0,_options.merge)(cachedOpts,(0,_options.validate)(args[0])),NO_PLACEHOLDER))()}if(Array.isArray(tpl)){let builder=templateAstCache.get(tpl);return builder||(builder=(0,_literal.default)(formatter,tpl,(0,_options.merge)(cachedOpts,NO_PLACEHOLDER)),templateAstCache.set(tpl,builder)),builder(args)()}throw new Error("Unexpected template param "+typeof tpl)}})};var _options=__webpack_require__("./node_modules/@babel/template/lib/options.js"),_string=__webpack_require__("./node_modules/@babel/template/lib/string.js"),_literal=__webpack_require__("./node_modules/@babel/template/lib/literal.js");const NO_PLACEHOLDER=(0,_options.validate)({placeholderPattern:!1});function extendedTrace(fn){let rootStack="";try{throw new Error}catch(error){error.stack&&(rootStack=error.stack.split("\n").slice(3).join("\n"))}return arg=>{try{return fn(arg)}catch(err){throw err.stack+=`\n =============\n${rootStack}`,err}}}},"./node_modules/@babel/template/lib/formatters.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.statements=exports.statement=exports.smart=exports.program=exports.expression=void 0;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{assertExpressionStatement}=_t;function makeStatementFormatter(fn){return{code:str=>`/* @babel/template */;\n${str}`,validate:()=>{},unwrap:ast=>fn(ast.program.body.slice(1))}}const smart=makeStatementFormatter((body=>body.length>1?body:body[0]));exports.smart=smart;const statements=makeStatementFormatter((body=>body));exports.statements=statements;const statement=makeStatementFormatter((body=>{if(0===body.length)throw new Error("Found nothing to return.");if(body.length>1)throw new Error("Found multiple statements but wanted one");return body[0]}));exports.statement=statement;const expression={code:str=>`(\n${str}\n)`,validate:ast=>{if(ast.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===expression.unwrap(ast).start)throw new Error("Parse result included parens.")},unwrap:({program})=>{const[stmt]=program.body;return assertExpressionStatement(stmt),stmt.expression}};exports.expression=expression;exports.program={code:str=>str,validate:()=>{},unwrap:ast=>ast.program}},"./node_modules/@babel/template/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.statements=exports.statement=exports.smart=exports.program=exports.expression=exports.default=void 0;var formatters=__webpack_require__("./node_modules/@babel/template/lib/formatters.js"),_builder=__webpack_require__("./node_modules/@babel/template/lib/builder.js");const smart=(0,_builder.default)(formatters.smart);exports.smart=smart;const statement=(0,_builder.default)(formatters.statement);exports.statement=statement;const statements=(0,_builder.default)(formatters.statements);exports.statements=statements;const expression=(0,_builder.default)(formatters.expression);exports.expression=expression;const program=(0,_builder.default)(formatters.program);exports.program=program;var _default=Object.assign(smart.bind(void 0),{smart,statement,statements,expression,program,ast:smart.ast});exports.default=_default},"./node_modules/@babel/template/lib/literal.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,tpl,opts){const{metadata,names}=function(formatter,tpl,opts){let names,nameSet,metadata,prefix="";do{prefix+="$";const result=buildTemplateCode(tpl,prefix);names=result.names,nameSet=new Set(names),metadata=(0,_parse.default)(formatter,formatter.code(result.code),{parser:opts.parser,placeholderWhitelist:new Set(result.names.concat(opts.placeholderWhitelist?Array.from(opts.placeholderWhitelist):[])),placeholderPattern:opts.placeholderPattern,preserveComments:opts.preserveComments,syntacticPlaceholders:opts.syntacticPlaceholders})}while(metadata.placeholders.some((placeholder=>placeholder.isDuplicate&&nameSet.has(placeholder.name))));return{metadata,names}}(formatter,tpl,opts);return arg=>{const defaultReplacements={};return arg.forEach(((replacement,i)=>{defaultReplacements[names[i]]=replacement})),arg=>{const replacements=(0,_options.normalizeReplacements)(arg);return replacements&&Object.keys(replacements).forEach((key=>{if(Object.prototype.hasOwnProperty.call(defaultReplacements,key))throw new Error("Unexpected replacement overlap.")})),formatter.unwrap((0,_populate.default)(metadata,replacements?Object.assign(replacements,defaultReplacements):defaultReplacements))}}};var _options=__webpack_require__("./node_modules/@babel/template/lib/options.js"),_parse=__webpack_require__("./node_modules/@babel/template/lib/parse.js"),_populate=__webpack_require__("./node_modules/@babel/template/lib/populate.js");function buildTemplateCode(tpl,prefix){const names=[];let code=tpl[0];for(let i=1;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.merge=function(a,b){const{placeholderWhitelist=a.placeholderWhitelist,placeholderPattern=a.placeholderPattern,preserveComments=a.preserveComments,syntacticPlaceholders=a.syntacticPlaceholders}=b;return{parser:Object.assign({},a.parser,b.parser),placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}},exports.normalizeReplacements=function(replacements){if(Array.isArray(replacements))return replacements.reduce(((acc,replacement,i)=>(acc["$"+i]=replacement,acc)),{});if("object"==typeof replacements||null==replacements)return replacements||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},exports.validate=function(opts){if(null!=opts&&"object"!=typeof opts)throw new Error("Unknown template options.");const _ref=opts||{},{placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}=_ref,parser=function(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(_ref,_excluded);if(null!=placeholderWhitelist&&!(placeholderWhitelist instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=placeholderPattern&&!(placeholderPattern instanceof RegExp)&&!1!==placeholderPattern)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=preserveComments&&"boolean"!=typeof preserveComments)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=syntacticPlaceholders&&"boolean"!=typeof syntacticPlaceholders)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===syntacticPlaceholders&&(null!=placeholderWhitelist||null!=placeholderPattern))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser,placeholderWhitelist:placeholderWhitelist||void 0,placeholderPattern:null==placeholderPattern?void 0:placeholderPattern,preserveComments:null==preserveComments?void 0:preserveComments,syntacticPlaceholders:null==syntacticPlaceholders?void 0:syntacticPlaceholders}};const _excluded=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},"./node_modules/@babel/template/lib/parse.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,code,opts){const{placeholderWhitelist,placeholderPattern,preserveComments,syntacticPlaceholders}=opts,ast=function(code,parserOpts,syntacticPlaceholders){const plugins=(parserOpts.plugins||[]).slice();!1!==syntacticPlaceholders&&plugins.push("placeholders");parserOpts=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},parserOpts,{plugins});try{return(0,_parser.parse)(code,parserOpts)}catch(err){const loc=err.loc;throw loc&&(err.message+="\n"+(0,_codeFrame.codeFrameColumns)(code,{start:loc}),err.code="BABEL_TEMPLATE_PARSE_ERROR"),err}}(code,opts.parser,syntacticPlaceholders);removePropertiesDeep(ast,{preserveComments}),formatter.validate(ast);const syntactic={placeholders:[],placeholderNames:new Set},legacy={placeholders:[],placeholderNames:new Set},isLegacyRef={value:void 0};return traverse(ast,placeholderVisitorHandler,{syntactic,legacy,isLegacyRef,placeholderWhitelist,placeholderPattern,syntacticPlaceholders}),Object.assign({ast},isLegacyRef.value?legacy:syntactic)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_parser=__webpack_require__("./node_modules/@babel/parser/lib/index.js"),_codeFrame=__webpack_require__("./stubs/babel_codeframe.js");const{isCallExpression,isExpressionStatement,isFunction,isIdentifier,isJSXIdentifier,isNewExpression,isPlaceholder,isStatement,isStringLiteral,removePropertiesDeep,traverse}=_t,PATTERN=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(node,ancestors,state){var _state$placeholderWhi;let name;if(isPlaceholder(node)){if(!1===state.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");name=node.name.name,state.isLegacyRef.value=!1}else{if(!1===state.isLegacyRef.value||state.syntacticPlaceholders)return;if(isIdentifier(node)||isJSXIdentifier(node))name=node.name,state.isLegacyRef.value=!0;else{if(!isStringLiteral(node))return;name=node.value,state.isLegacyRef.value=!0}}if(!state.isLegacyRef.value&&(null!=state.placeholderPattern||null!=state.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(state.isLegacyRef.value&&(!1===state.placeholderPattern||!(state.placeholderPattern||PATTERN).test(name))&&(null==(_state$placeholderWhi=state.placeholderWhitelist)||!_state$placeholderWhi.has(name)))return;ancestors=ancestors.slice();const{node:parent,key}=ancestors[ancestors.length-1];let type;isStringLiteral(node)||isPlaceholder(node,{expectedNode:"StringLiteral"})?type="string":isNewExpression(parent)&&"arguments"===key||isCallExpression(parent)&&"arguments"===key||isFunction(parent)&&"params"===key?type="param":isExpressionStatement(parent)&&!isPlaceholder(node)?(type="statement",ancestors=ancestors.slice(0,-1)):type=isStatement(node)&&isPlaceholder(node)?"statement":"other";const{placeholders,placeholderNames}=state.isLegacyRef.value?state.legacy:state.syntactic;placeholders.push({name,type,resolve:ast=>function(ast,ancestors){let parent=ast;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(metadata,replacements){const ast=cloneNode(metadata.ast);replacements&&(metadata.placeholders.forEach((placeholder=>{if(!Object.prototype.hasOwnProperty.call(replacements,placeholder.name)){const placeholderName=placeholder.name;throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}\n - { placeholderPattern: /^${placeholderName}$/ }`)}})),Object.keys(replacements).forEach((key=>{if(!metadata.placeholderNames.has(key))throw new Error(`Unknown substitution "${key}" given`)})));return metadata.placeholders.slice().reverse().forEach((placeholder=>{try{!function(placeholder,ast,replacement){placeholder.isDuplicate&&(Array.isArray(replacement)?replacement=replacement.map((node=>cloneNode(node))):"object"==typeof replacement&&(replacement=cloneNode(replacement)));const{parent,key,index}=placeholder.resolve(ast);if("string"===placeholder.type){if("string"==typeof replacement&&(replacement=stringLiteral(replacement)),!replacement||!isStringLiteral(replacement))throw new Error("Expected string substitution")}else if("statement"===placeholder.type)void 0===index?replacement?Array.isArray(replacement)?replacement=blockStatement(replacement):"string"==typeof replacement?replacement=expressionStatement(identifier(replacement)):isStatement(replacement)||(replacement=expressionStatement(replacement)):replacement=emptyStatement():replacement&&!Array.isArray(replacement)&&("string"==typeof replacement&&(replacement=identifier(replacement)),isStatement(replacement)||(replacement=expressionStatement(replacement)));else if("param"===placeholder.type){if("string"==typeof replacement&&(replacement=identifier(replacement)),void 0===index)throw new Error("Assertion failure.")}else if("string"==typeof replacement&&(replacement=identifier(replacement)),Array.isArray(replacement))throw new Error("Cannot replace single expression with an array.");if(void 0===index)validate(parent,key,replacement),parent[key]=replacement;else{const items=parent[key].slice();"statement"===placeholder.type||"param"===placeholder.type?null==replacement?items.splice(index,1):Array.isArray(replacement)?items.splice(index,1,...replacement):items[index]=replacement:items[index]=replacement,validate(parent,key,items),parent[key]=items}}(placeholder,ast,replacements&&replacements[placeholder.name]||null)}catch(e){throw e.message=`@babel/template placeholder "${placeholder.name}": ${e.message}`,e}})),ast};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{blockStatement,cloneNode,emptyStatement,expressionStatement,identifier,isStatement,isStringLiteral,stringLiteral,validate}=_t},"./node_modules/@babel/template/lib/string.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(formatter,code,opts){let metadata;return code=formatter.code(code),arg=>{const replacements=(0,_options.normalizeReplacements)(arg);return metadata||(metadata=(0,_parse.default)(formatter,code,opts)),formatter.unwrap((0,_populate.default)(metadata,replacements))}};var _options=__webpack_require__("./node_modules/@babel/template/lib/options.js"),_parse=__webpack_require__("./node_modules/@babel/template/lib/parse.js"),_populate=__webpack_require__("./node_modules/@babel/template/lib/populate.js")},"./node_modules/@babel/traverse/lib/cache.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.clear=function(){clearPath(),clearScope()},exports.clearPath=clearPath,exports.clearScope=clearScope,exports.scope=exports.path=void 0;let path=new WeakMap;exports.path=path;let scope=new WeakMap;function clearPath(){exports.path=path=new WeakMap}function clearScope(){exports.scope=scope=new WeakMap}exports.scope=scope},"./node_modules/@babel/traverse/lib/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _path=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t;exports.default=class{constructor(scope,opts,state,parentPath){this.queue=null,this.priorityQueue=null,this.parentPath=parentPath,this.scope=scope,this.state=state,this.opts=opts}shouldVisit(node){const opts=this.opts;if(opts.enter||opts.exit)return!0;if(opts[node.type])return!0;const keys=VISITOR_KEYS[node.type];if(null==keys||!keys.length)return!1;for(const key of keys)if(node[key])return!0;return!1}create(node,obj,key,listKey){return _path.default.get({parentPath:this.parentPath,parent:node,container:obj,key,listKey})}maybeQueue(path,notPriority){this.queue&&(notPriority?this.queue.push(path):this.priorityQueue.push(path))}visitMultiple(container,parent,listKey){if(0===container.length)return!1;const queue=[];for(let key=0;key{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(node,msg,Error=TypeError){return new Error(msg)}}},"./node_modules/@babel/traverse/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Hub",{enumerable:!0,get:function(){return _hub.default}}),Object.defineProperty(exports,"NodePath",{enumerable:!0,get:function(){return _path.default}}),Object.defineProperty(exports,"Scope",{enumerable:!0,get:function(){return _scope.default}}),exports.visitors=exports.default=void 0;var visitors=__webpack_require__("./node_modules/@babel/traverse/lib/visitors.js");exports.visitors=visitors;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js"),_traverseNode=__webpack_require__("./node_modules/@babel/traverse/lib/traverse-node.js"),_path=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js"),_scope=__webpack_require__("./node_modules/@babel/traverse/lib/scope/index.js"),_hub=__webpack_require__("./node_modules/@babel/traverse/lib/hub.js");const{VISITOR_KEYS,removeProperties,traverseFast}=_t;function traverse(parent,opts={},scope,state,parentPath){if(parent){if(!opts.noScope&&!scope&&"Program"!==parent.type&&"File"!==parent.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${parent.type} node without passing scope and parentPath.`);VISITOR_KEYS[parent.type]&&(visitors.explode(opts),(0,_traverseNode.traverseNode)(parent,opts,scope,state,parentPath))}}var _default=traverse;function hasDenylistedType(path,state){path.node.type===state.type&&(state.has=!0,path.stop())}exports.default=_default,traverse.visitors=visitors,traverse.verify=visitors.verify,traverse.explode=visitors.explode,traverse.cheap=function(node,enter){return traverseFast(node,enter)},traverse.node=function(node,opts,scope,state,path,skipKeys){(0,_traverseNode.traverseNode)(node,opts,scope,state,path,skipKeys)},traverse.clearNode=function(node,opts){removeProperties(node,opts),cache.path.delete(node)},traverse.removeProperties=function(tree,opts){return traverseFast(tree,traverse.clearNode,opts),tree},traverse.hasType=function(tree,type,denylistTypes){if(null!=denylistTypes&&denylistTypes.includes(tree.type))return!1;if(tree.type===type)return!0;const state={has:!1,type};return traverse(tree,{noScope:!0,denylist:denylistTypes,enter:hasDenylistedType},null,state),state.has},traverse.cache=cache},"./node_modules/@babel/traverse/lib/path/ancestry.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.find=function(callback){let path=this;do{if(callback(path))return path}while(path=path.parentPath);return null},exports.findParent=function(callback){let path=this;for(;path=path.parentPath;)if(callback(path))return path;return null},exports.getAncestry=function(){let path=this;const paths=[];do{paths.push(path)}while(path=path.parentPath);return paths},exports.getDeepestCommonAncestorFrom=function(paths,filter){if(!paths.length)return this;if(1===paths.length)return paths[0];let lastCommonIndex,lastCommon,minDepth=1/0;const ancestries=paths.map((path=>{const ancestry=[];do{ancestry.unshift(path)}while((path=path.parentPath)&&path!==this);return ancestry.lengthkeys.indexOf(path.parentKey)&&(earliest=path)}return earliest}))},exports.getFunctionParent=function(){return this.findParent((p=>p.isFunction()))},exports.getStatementParent=function(){let path=this;do{if(!path.parentPath||Array.isArray(path.container)&&path.isStatement())break;path=path.parentPath}while(path);if(path&&(path.isProgram()||path.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return path},exports.inType=function(...candidateTypes){let path=this;for(;path;){for(const type of candidateTypes)if(path.node.type===type)return!0;path=path.parentPath}return!1},exports.isAncestor=function(maybeDescendant){return maybeDescendant.isDescendant(this)},exports.isDescendant=function(maybeAncestor){return!!this.findParent((parent=>parent===maybeAncestor))};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js");const{VISITOR_KEYS}=_t},"./node_modules/@babel/traverse/lib/path/comments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addComment=function(type,content,line){_addComment(this.node,type,content,line)},exports.addComments=function(type,comments){_addComments(this.node,type,comments)},exports.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const node=this.node;if(!node)return;const trailing=node.trailingComments,leading=node.leadingComments;if(!trailing&&!leading)return;const prev=this.getSibling(this.key-1),next=this.getSibling(this.key+1),hasPrev=Boolean(prev.node),hasNext=Boolean(next.node);hasPrev&&!hasNext?prev.addComments("trailing",trailing):hasNext&&!hasPrev&&next.addComments("leading",leading)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{addComment:_addComment,addComments:_addComments}=_t},"./node_modules/@babel/traverse/lib/path/context.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._call=function(fns){if(!fns)return!1;for(const fn of fns){if(!fn)continue;const node=this.node;if(!node)return!0;const ret=fn.call(this.state,this,this.state);if(ret&&"object"==typeof ret&&"function"==typeof ret.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(ret)throw new Error(`Unexpected return value from visitor method ${fn}`);if(this.node!==node)return!0;if(this._traverseFlags>0)return!0}return!1},exports._getQueueContexts=function(){let path=this,contexts=this.contexts;for(;!contexts.length&&(path=path.parentPath,path);)contexts=path.contexts;return contexts},exports._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let i=0;i-1},exports.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},exports.pushContext=function(context){this.contexts.push(context),this.setContext(context)},exports.requeue=function(pathToQueue=this){if(pathToQueue.removed)return;const contexts=this.contexts;for(const context of contexts)context.maybeQueue(pathToQueue)},exports.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},exports.setContext=function(context){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,context&&(this.context=context,this.state=context.state,this.opts=context.opts);return this.setScope(),this},exports.setKey=function(key){var _this$node;this.key=key,this.node=this.container[this.key],this.type=null==(_this$node=this.node)?void 0:_this$node.type},exports.setScope=function(){if(this.opts&&this.opts.noScope)return;let target,path=this.parentPath;"key"===this.key&&path.isMethod()&&(path=path.parentPath);for(;path&&!target;){if(path.opts&&path.opts.noScope)return;target=path.scope,path=path.parentPath}this.scope=this.getScope(target),this.scope&&this.scope.init()},exports.setup=function(parentPath,container,listKey,key){this.listKey=listKey,this.container=container,this.parentPath=parentPath||this.parentPath,this.setKey(key)},exports.skip=function(){this.shouldSkip=!0},exports.skipKey=function(key){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[key]=!0},exports.stop=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.SHOULD_STOP},exports.visit=function(){if(!this.node)return!1;if(this.isDenylisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;const currentContext=this.context;if(this.shouldSkip||this.call("enter"))return this.debug("Skip..."),this.shouldStop;return restoreContext(this,currentContext),this.debug("Recursing into..."),this.shouldStop=(0,_traverseNode.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),restoreContext(this,currentContext),this.call("exit"),this.shouldStop};var _traverseNode=__webpack_require__("./node_modules/@babel/traverse/lib/traverse-node.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js");function restoreContext(path,context){path.context!==context&&(path.context=context,path.state=context.state,path.opts=context.opts)}},"./node_modules/@babel/traverse/lib/path/conversion.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrowFunctionToExpression=function({allowInsertArrow=!0,specCompliant=!1,noNewArrows=!specCompliant}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const{thisBinding,fnPath:fn}=hoistFunctionEnvironment(this,noNewArrows,allowInsertArrow);if(fn.ensureBlock(),fn.node.type="FunctionExpression",!noNewArrows){const checkBinding=thisBinding?null:fn.scope.generateUidIdentifier("arrowCheckId");checkBinding&&fn.parentPath.scope.push({id:checkBinding,init:objectExpression([])}),fn.get("body").unshiftContainer("body",expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"),[thisExpression(),identifier(checkBinding?checkBinding.name:thisBinding)]))),fn.replaceWith(callExpression(memberExpression((0,_helperFunctionName.default)(this,!0)||fn.node,identifier("bind")),[checkBinding?identifier(checkBinding.name):thisExpression()]))}},exports.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},exports.ensureBlock=function(){const body=this.get("body"),bodyNode=body.node;if(Array.isArray(body))throw new Error("Can't convert array path to a block statement");if(!bodyNode)throw new Error("Can't convert node without a body");if(body.isBlockStatement())return bodyNode;const statements=[];let key,listKey,stringPath="body";body.isStatement()?(listKey="body",key=0,statements.push(body.node)):(stringPath+=".body.0",this.isFunction()?(key="argument",statements.push(returnStatement(body.node))):(key="expression",statements.push(expressionStatement(body.node))));this.node.body=blockStatement(statements);const parentPath=this.get(stringPath);return body.setup(parentPath,listKey?parentPath.node[listKey]:parentPath.node,listKey,key),this.node},exports.toComputedKey=function(){let key;if(this.isMemberExpression())key=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");key=this.node.key}this.node.computed||isIdentifier(key)&&(key=stringLiteral(key.name));return key},exports.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_helperEnvironmentVisitor=__webpack_require__("./node_modules/@babel/helper-environment-visitor/lib/index.js"),_helperFunctionName=__webpack_require__("./node_modules/@babel/helper-function-name/lib/index.js"),_visitors=__webpack_require__("./node_modules/@babel/traverse/lib/visitors.js");const{arrowFunctionExpression,assignmentExpression,binaryExpression,blockStatement,callExpression,conditionalExpression,expressionStatement,identifier,isIdentifier,jsxIdentifier,logicalExpression,LOGICAL_OPERATORS,memberExpression,metaProperty,numericLiteral,objectExpression,restElement,returnStatement,sequenceExpression,spreadElement,stringLiteral,super:_super,thisExpression,toExpression,unaryExpression}=_t;const getSuperCallsVisitor=(0,_visitors.merge)([{CallExpression(child,{allSuperCalls}){child.get("callee").isSuper()&&allSuperCalls.push(child)}},_helperEnvironmentVisitor.default]);function hoistFunctionEnvironment(fnPath,noNewArrows=!0,allowInsertArrow=!0){let arrowParent,thisEnvFn=fnPath.findParent((p=>p.isArrowFunctionExpression()?(null!=arrowParent||(arrowParent=p),!1):p.isFunction()||p.isProgram()||p.isClassProperty({static:!1})||p.isClassPrivateProperty({static:!1})));const inConstructor=thisEnvFn.isClassMethod({kind:"constructor"});if(thisEnvFn.isClassProperty()||thisEnvFn.isClassPrivateProperty())if(arrowParent)thisEnvFn=arrowParent;else{if(!allowInsertArrow)throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");fnPath.replaceWith(callExpression(arrowFunctionExpression([],toExpression(fnPath.node)),[])),thisEnvFn=fnPath.get("callee"),fnPath=thisEnvFn.get("body")}const{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}=function(fnPath){const thisPaths=[],argumentsPaths=[],newTargetPaths=[],superProps=[],superCalls=[];return fnPath.traverse(getScopeInformationVisitor,{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}),{thisPaths,argumentsPaths,newTargetPaths,superProps,superCalls}}(fnPath);if(inConstructor&&superCalls.length>0){if(!allowInsertArrow)throw superCalls[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const allSuperCalls=[];thisEnvFn.traverse(getSuperCallsVisitor,{allSuperCalls});const superBinding=function(thisEnvFn){return getBinding(thisEnvFn,"supercall",(()=>{const argsBinding=thisEnvFn.scope.generateUidIdentifier("args");return arrowFunctionExpression([restElement(argsBinding)],callExpression(_super(),[spreadElement(identifier(argsBinding.name))]))}))}(thisEnvFn);allSuperCalls.forEach((superCall=>{const callee=identifier(superBinding);callee.loc=superCall.node.callee.loc,superCall.get("callee").replaceWith(callee)}))}if(argumentsPaths.length>0){const argumentsBinding=getBinding(thisEnvFn,"arguments",(()=>{const args=()=>identifier("arguments");return thisEnvFn.scope.path.isProgram()?conditionalExpression(binaryExpression("===",unaryExpression("typeof",args()),stringLiteral("undefined")),thisEnvFn.scope.buildUndefinedNode(),args()):args()}));argumentsPaths.forEach((argumentsChild=>{const argsRef=identifier(argumentsBinding);argsRef.loc=argumentsChild.node.loc,argumentsChild.replaceWith(argsRef)}))}if(newTargetPaths.length>0){const newTargetBinding=getBinding(thisEnvFn,"newtarget",(()=>metaProperty(identifier("new"),identifier("target"))));newTargetPaths.forEach((targetChild=>{const targetRef=identifier(newTargetBinding);targetRef.loc=targetChild.node.loc,targetChild.replaceWith(targetRef)}))}if(superProps.length>0){if(!allowInsertArrow)throw superProps[0].buildCodeFrameError("Unable to handle nested super.prop usage");superProps.reduce(((acc,superProp)=>acc.concat(function(superProp){if(superProp.parentPath.isAssignmentExpression()&&"="!==superProp.parentPath.node.operator){const assignmentPath=superProp.parentPath,op=assignmentPath.node.operator.slice(0,-1),value=assignmentPath.node.right,isLogicalAssignment=function(op){return LOGICAL_OPERATORS.includes(op)}(op);if(superProp.node.computed){const tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,assignmentExpression("=",tmp,property),!0)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(tmp.name),!0),value))}else{const object=superProp.node.object,property=superProp.node.property;assignmentPath.get("left").replaceWith(memberExpression(object,property)),assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment?"=":op,memberExpression(object,identifier(property.name)),value))}return isLogicalAssignment?assignmentPath.replaceWith(logicalExpression(op,assignmentPath.node.left,assignmentPath.node.right)):assignmentPath.node.operator="=",[assignmentPath.get("left"),assignmentPath.get("right").get("left")]}if(superProp.parentPath.isUpdateExpression()){const updateExpr=superProp.parentPath,tmp=superProp.scope.generateDeclaredUidIdentifier("tmp"),computedKey=superProp.node.computed?superProp.scope.generateDeclaredUidIdentifier("prop"):null,parts=[assignmentExpression("=",tmp,memberExpression(superProp.node.object,computedKey?assignmentExpression("=",computedKey,superProp.node.property):superProp.node.property,superProp.node.computed)),assignmentExpression("=",memberExpression(superProp.node.object,computedKey?identifier(computedKey.name):superProp.node.property,superProp.node.computed),binaryExpression(superProp.parentPath.node.operator[0],identifier(tmp.name),numericLiteral(1)))];superProp.parentPath.node.prefix||parts.push(identifier(tmp.name)),updateExpr.replaceWith(sequenceExpression(parts));return[updateExpr.get("expressions.0.right"),updateExpr.get("expressions.1.left")]}return[superProp];function rightExpression(op,left,right){return"="===op?assignmentExpression("=",left,right):binaryExpression(op,left,right)}}(superProp))),[]).forEach((superProp=>{const key=superProp.node.computed?"":superProp.get("property").node.name,isAssignment=superProp.parentPath.isAssignmentExpression({left:superProp.node}),isCall=superProp.parentPath.isCallExpression({callee:superProp.node}),superBinding=function(thisEnvFn,isAssignment,propName){return getBinding(thisEnvFn,`superprop_${isAssignment?"set":"get"}:${propName||""}`,(()=>{const argsList=[];let fnBody;if(propName)fnBody=memberExpression(_super(),identifier(propName));else{const method=thisEnvFn.scope.generateUidIdentifier("prop");argsList.unshift(method),fnBody=memberExpression(_super(),identifier(method.name),!0)}if(isAssignment){const valueIdent=thisEnvFn.scope.generateUidIdentifier("value");argsList.push(valueIdent),fnBody=assignmentExpression("=",fnBody,identifier(valueIdent.name))}return arrowFunctionExpression(argsList,fnBody)}))}(thisEnvFn,isAssignment,key),args=[];if(superProp.node.computed&&args.push(superProp.get("property").node),isAssignment){const value=superProp.parentPath.node.right;args.push(value)}const call=callExpression(identifier(superBinding),args);isCall?(superProp.parentPath.unshiftContainer("arguments",thisExpression()),superProp.replaceWith(memberExpression(call,identifier("call"))),thisPaths.push(superProp.parentPath.get("arguments.0"))):isAssignment?superProp.parentPath.replaceWith(call):superProp.replaceWith(call)}))}let thisBinding;return(thisPaths.length>0||!noNewArrows)&&(thisBinding=function(thisEnvFn,inConstructor){return getBinding(thisEnvFn,"this",(thisBinding=>{if(!inConstructor||!hasSuperClass(thisEnvFn))return thisExpression();thisEnvFn.traverse(assignSuperThisVisitor,{supers:new WeakSet,thisBinding})}))}(thisEnvFn,inConstructor),(noNewArrows||inConstructor&&hasSuperClass(thisEnvFn))&&(thisPaths.forEach((thisChild=>{const thisRef=thisChild.isJSX()?jsxIdentifier(thisBinding):identifier(thisBinding);thisRef.loc=thisChild.node.loc,thisChild.replaceWith(thisRef)})),noNewArrows||(thisBinding=null))),{thisBinding,fnPath}}function hasSuperClass(thisEnvFn){return thisEnvFn.isClassMethod()&&!!thisEnvFn.parentPath.parentPath.node.superClass}const assignSuperThisVisitor=(0,_visitors.merge)([{CallExpression(child,{supers,thisBinding}){child.get("callee").isSuper()&&(supers.has(child.node)||(supers.add(child.node),child.replaceWithMultiple([child.node,assignmentExpression("=",identifier(thisBinding),identifier("this"))])))}},_helperEnvironmentVisitor.default]);function getBinding(thisEnvFn,key,init){const cacheKey="binding:"+key;let data=thisEnvFn.getData(cacheKey);if(!data){const id=thisEnvFn.scope.generateUidIdentifier(key);data=id.name,thisEnvFn.setData(cacheKey,data),thisEnvFn.scope.push({id,init:init(data)})}return data}const getScopeInformationVisitor=(0,_visitors.merge)([{ThisExpression(child,{thisPaths}){thisPaths.push(child)},JSXIdentifier(child,{thisPaths}){"this"===child.node.name&&(child.parentPath.isJSXMemberExpression({object:child.node})||child.parentPath.isJSXOpeningElement({name:child.node}))&&thisPaths.push(child)},CallExpression(child,{superCalls}){child.get("callee").isSuper()&&superCalls.push(child)},MemberExpression(child,{superProps}){child.get("object").isSuper()&&superProps.push(child)},Identifier(child,{argumentsPaths}){if(!child.isReferencedIdentifier({name:"arguments"}))return;let curr=child.scope;do{if(curr.hasOwnBinding("arguments"))return void curr.rename("arguments");if(curr.path.isFunction()&&!curr.path.isArrowFunctionExpression())break}while(curr=curr.parent);argumentsPaths.push(child)},MetaProperty(child,{newTargetPaths}){child.get("meta").isIdentifier({name:"new"})&&child.get("property").isIdentifier({name:"target"})&&newTargetPaths.push(child)}},_helperEnvironmentVisitor.default])},"./node_modules/@babel/traverse/lib/path/evaluation.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.evaluate=function(){const state={confident:!0,deoptPath:null,seen:new Map};let value=evaluateCached(this,state);state.confident||(value=void 0);return{confident:state.confident,deopt:state.deoptPath,value}},exports.evaluateTruthy=function(){const res=this.evaluate();if(res.confident)return!!res.value};const VALID_CALLEES=["String","Number","Math"],INVALID_METHODS=["random"];function deopt(path,state){state.confident&&(state.deoptPath=path,state.confident=!1)}function evaluateCached(path,state){const{node}=path,{seen}=state;if(seen.has(node)){const existing=seen.get(node);return existing.resolved?existing.value:void deopt(path,state)}{const item={resolved:!1};seen.set(node,item);const val=function(path,state){if(!state.confident)return;if(path.isSequenceExpression()){const exprs=path.get("expressions");return evaluateCached(exprs[exprs.length-1],state)}if(path.isStringLiteral()||path.isNumericLiteral()||path.isBooleanLiteral())return path.node.value;if(path.isNullLiteral())return null;if(path.isTemplateLiteral())return evaluateQuasis(path,path.node.quasis,state);if(path.isTaggedTemplateExpression()&&path.get("tag").isMemberExpression()){const object=path.get("tag.object"),{node:{name}}=object,property=path.get("tag.property");if(object.isIdentifier()&&"String"===name&&!path.scope.getBinding(name)&&property.isIdentifier()&&"raw"===property.node.name)return evaluateQuasis(path,path.node.quasi.quasis,state,!0)}if(path.isConditionalExpression()){const testResult=evaluateCached(path.get("test"),state);if(!state.confident)return;return evaluateCached(testResult?path.get("consequent"):path.get("alternate"),state)}if(path.isExpressionWrapper())return evaluateCached(path.get("expression"),state);if(path.isMemberExpression()&&!path.parentPath.isCallExpression({callee:path.node})){const property=path.get("property"),object=path.get("object");if(object.isLiteral()&&property.isIdentifier()){const value=object.node.value,type=typeof value;if("number"===type||"string"===type)return value[property.node.name]}}if(path.isReferencedIdentifier()){const binding=path.scope.getBinding(path.node.name);if(binding&&binding.constantViolations.length>0)return deopt(binding.path,state);if(binding&&path.node.start":return left>right;case"<=":return left<=right;case">=":return left>=right;case"==":return left==right;case"!=":return left!=right;case"===":return left===right;case"!==":return left!==right;case"|":return left|right;case"&":return left&right;case"^":return left^right;case"<<":return left<>":return left>>right;case">>>":return left>>>right}}if(path.isCallExpression()){const callee=path.get("callee");let context,func;if(callee.isIdentifier()&&!path.scope.getBinding(callee.node.name)&&VALID_CALLEES.indexOf(callee.node.name)>=0&&(func=global[callee.node.name]),callee.isMemberExpression()){const object=callee.get("object"),property=callee.get("property");if(object.isIdentifier()&&property.isIdentifier()&&VALID_CALLEES.indexOf(object.node.name)>=0&&INVALID_METHODS.indexOf(property.node.name)<0&&(context=global[object.node.name],func=context[property.node.name]),object.isLiteral()&&property.isIdentifier()){const type=typeof object.node.value;"string"!==type&&"number"!==type||(context=object.node.value,func=context[property.node.name])}}if(func){const args=path.get("arguments").map((arg=>evaluateCached(arg,state)));if(!state.confident)return;return func.apply(context,args)}}deopt(path,state)}(path,state);return state.confident&&(item.resolved=!0,item.value=val),val}}function evaluateQuasis(path,quasis,state,raw=!1){let str="",i=0;const exprs=path.get("expressions");for(const elem of quasis){if(!state.confident)break;str+=raw?elem.value.raw:elem.value.cooked;const expr=exprs[i++];expr&&(str+=String(evaluateCached(expr,state)))}if(state.confident)return str}},"./node_modules/@babel/traverse/lib/path/family.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._getKey=function(key,context){const node=this.node,container=node[key];return Array.isArray(container)?container.map(((_,i)=>_index.default.get({listKey:key,parentPath:this,parent:node,container,key:i}).setContext(context))):_index.default.get({parentPath:this,parent:node,container:node,key}).setContext(context)},exports._getPattern=function(parts,context){let path=this;for(const part of parts)path="."===part?path.parentPath:Array.isArray(path)?path[part]:path.get(part,context);return path},exports.get=function(key,context=!0){!0===context&&(context=this.context);const parts=key.split(".");return 1===parts.length?this._getKey(key,context):this._getPattern(parts,context)},exports.getAllNextSiblings=function(){let _key=this.key,sibling=this.getSibling(++_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(++_key);return siblings},exports.getAllPrevSiblings=function(){let _key=this.key,sibling=this.getSibling(--_key);const siblings=[];for(;sibling.node;)siblings.push(sibling),sibling=this.getSibling(--_key);return siblings},exports.getBindingIdentifierPaths=function(duplicates=!1,outerOnly=!1){const search=[this],ids=Object.create(null);for(;search.length;){const id=search.shift();if(!id)continue;if(!id.node)continue;const keys=_getBindingIdentifiers.keys[id.node.type];if(id.isIdentifier())if(duplicates){(ids[id.node.name]=ids[id.node.name]||[]).push(id)}else ids[id.node.name]=id;else if(id.isExportDeclaration()){const declaration=id.get("declaration");isDeclaration(declaration)&&search.push(declaration)}else{if(outerOnly){if(id.isFunctionDeclaration()){search.push(id.get("id"));continue}if(id.isFunctionExpression())continue}if(keys)for(let i=0;ir.path))},exports.getNextSibling=function(){return this.getSibling(this.key+1)},exports.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},exports.getOuterBindingIdentifierPaths=function(duplicates){return this.getBindingIdentifierPaths(duplicates,!0)},exports.getOuterBindingIdentifiers=function(duplicates){return _getOuterBindingIdentifiers(this.node,duplicates)},exports.getPrevSibling=function(){return this.getSibling(this.key-1)},exports.getSibling=function(key){return _index.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key}).setContext(this.context)};var _index=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{getBindingIdentifiers:_getBindingIdentifiers,getOuterBindingIdentifiers:_getOuterBindingIdentifiers,isDeclaration,numericLiteral,unaryExpression}=_t;function addCompletionRecords(path,records,context){return path&&records.push(..._getCompletionRecords(path,context)),records}function normalCompletionToBreak(completions){completions.forEach((c=>{c.type=1}))}function replaceBreakStatementInBreakCompletion(completions,reachable){completions.forEach((c=>{c.path.isBreakStatement({label:null})&&(reachable?c.path.replaceWith(unaryExpression("void",numericLiteral(0))):c.path.remove())}))}function getStatementListCompletion(paths,context){const completions=[];if(context.canHaveBreak){let lastNormalCompletions=[];for(let i=0;i0&&statementCompletions.every((c=>1===c.type))){lastNormalCompletions.length>0&&statementCompletions.every((c=>c.path.isBreakStatement({label:null})))?(normalCompletionToBreak(lastNormalCompletions),completions.push(...lastNormalCompletions),lastNormalCompletions.some((c=>c.path.isDeclaration()))&&(completions.push(...statementCompletions),replaceBreakStatementInBreakCompletion(statementCompletions,!0)),replaceBreakStatementInBreakCompletion(statementCompletions,!1)):(completions.push(...statementCompletions),context.shouldPopulateBreak||replaceBreakStatementInBreakCompletion(statementCompletions,!0));break}if(i===paths.length-1)completions.push(...statementCompletions);else{lastNormalCompletions=[];for(let i=0;i=0;i--){const pathCompletions=_getCompletionRecords(paths[i],context);if(pathCompletions.length>1||1===pathCompletions.length&&!pathCompletions[0].path.isVariableDeclaration()){completions.push(...pathCompletions);break}}return completions}function _getCompletionRecords(path,context){let records=[];if(path.isIfStatement())records=addCompletionRecords(path.get("consequent"),records,context),records=addCompletionRecords(path.get("alternate"),records,context);else{if(path.isDoExpression()||path.isFor()||path.isWhile()||path.isLabeledStatement())return addCompletionRecords(path.get("body"),records,context);if(path.isProgram()||path.isBlockStatement())return getStatementListCompletion(path.get("body"),context);if(path.isFunction())return _getCompletionRecords(path.get("body"),context);if(path.isTryStatement())records=addCompletionRecords(path.get("block"),records,context),records=addCompletionRecords(path.get("handler"),records,context);else{if(path.isCatchClause())return addCompletionRecords(path.get("body"),records,context);if(path.isSwitchStatement())return function(cases,records,context){let lastNormalCompletions=[];for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.SHOULD_STOP=exports.SHOULD_SKIP=exports.REMOVED=void 0;var virtualTypes=__webpack_require__("./node_modules/@babel/traverse/lib/path/lib/virtual-types.js"),_debug=__webpack_require__("./node_modules/debug/src/index.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_scope=__webpack_require__("./node_modules/@babel/traverse/lib/scope/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),t=_t,_cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js"),_generator=__webpack_require__("./node_modules/@babel/generator/lib/index.js"),NodePath_ancestry=__webpack_require__("./node_modules/@babel/traverse/lib/path/ancestry.js"),NodePath_inference=__webpack_require__("./node_modules/@babel/traverse/lib/path/inference/index.js"),NodePath_replacement=__webpack_require__("./node_modules/@babel/traverse/lib/path/replacement.js"),NodePath_evaluation=__webpack_require__("./node_modules/@babel/traverse/lib/path/evaluation.js"),NodePath_conversion=__webpack_require__("./node_modules/@babel/traverse/lib/path/conversion.js"),NodePath_introspection=__webpack_require__("./node_modules/@babel/traverse/lib/path/introspection.js"),NodePath_context=__webpack_require__("./node_modules/@babel/traverse/lib/path/context.js"),NodePath_removal=__webpack_require__("./node_modules/@babel/traverse/lib/path/removal.js"),NodePath_modification=__webpack_require__("./node_modules/@babel/traverse/lib/path/modification.js"),NodePath_family=__webpack_require__("./node_modules/@babel/traverse/lib/path/family.js"),NodePath_comments=__webpack_require__("./node_modules/@babel/traverse/lib/path/comments.js");const{validate}=_t,debug=_debug("babel");exports.REMOVED=1;exports.SHOULD_STOP=2;exports.SHOULD_SKIP=4;class NodePath{constructor(hub,parent){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=parent,this.hub=hub,this.data=null,this.context=null,this.scope=null}static get({hub,parentPath,parent,container,listKey,key}){if(!hub&&parentPath&&(hub=parentPath.hub),!parent)throw new Error("To get a node path the parent needs to exist");const targetNode=container[key];let paths=_cache.path.get(parent);paths||(paths=new Map,_cache.path.set(parent,paths));let path=paths.get(targetNode);return path||(path=new NodePath(hub,parent),targetNode&&paths.set(targetNode,path)),path.setup(parentPath,container,listKey,key),path}getScope(scope){return this.isScope()?new _scope.default(this):scope}setData(key,val){return null==this.data&&(this.data=Object.create(null)),this.data[key]=val}getData(key,def){null==this.data&&(this.data=Object.create(null));let val=this.data[key];return void 0===val&&void 0!==def&&(val=this.data[key]=def),val}buildCodeFrameError(msg,Error=SyntaxError){return this.hub.buildError(this.node,msg,Error)}traverse(visitor,state){(0,_index.default)(this.node,visitor,this.scope,state,this)}set(key,node){validate(this.node,key,node),this.node[key]=node}getPathLocation(){const parts=[];let path=this;do{let key=path.key;path.inList&&(key=`${path.listKey}[${key}]`),parts.unshift(key)}while(path=path.parentPath);return parts.join(".")}debug(message){debug.enabled&&debug(`${this.getPathLocation()} ${this.type}: ${message}`)}toString(){return(0,_generator.default)(this.node).code}get inList(){return!!this.listKey}set inList(inList){inList||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(4&this._traverseFlags)}set shouldSkip(v){v?this._traverseFlags|=4:this._traverseFlags&=-5}get shouldStop(){return!!(2&this._traverseFlags)}set shouldStop(v){v?this._traverseFlags|=2:this._traverseFlags&=-3}get removed(){return!!(1&this._traverseFlags)}set removed(v){v?this._traverseFlags|=1:this._traverseFlags&=-2}}Object.assign(NodePath.prototype,NodePath_ancestry,NodePath_inference,NodePath_replacement,NodePath_evaluation,NodePath_conversion,NodePath_introspection,NodePath_context,NodePath_removal,NodePath_modification,NodePath_family,NodePath_comments);for(const type of t.TYPES){const typeKey=`is${type}`,fn=t[typeKey];NodePath.prototype[typeKey]=function(opts){return fn(this.node,opts)},NodePath.prototype[`assert${type}`]=function(opts){if(!fn(this.node,opts))throw new TypeError(`Expected node path of type ${type}`)}}for(const type of Object.keys(virtualTypes)){if("_"===type[0])continue;t.TYPES.indexOf(type)<0&&t.TYPES.push(type);const virtualType=virtualTypes[type];NodePath.prototype[`is${type}`]=function(opts){return virtualType.checkPath(this,opts)}}var _default=NodePath;exports.default=_default},"./node_modules/@babel/traverse/lib/path/inference/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._getTypeAnnotation=function(){const node=this.node;if(!node){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const declar=this.parentPath.parentPath,declarParent=declar.parentPath;return"left"===declar.key&&declarParent.isForInStatement()?stringTypeAnnotation():"left"===declar.key&&declarParent.isForOfStatement()?anyTypeAnnotation():voidTypeAnnotation()}return}if(node.typeAnnotation)return node.typeAnnotation;if(typeAnnotationInferringNodes.has(node))return;typeAnnotationInferringNodes.add(node);try{var _inferer;let inferer=inferers[node.type];if(inferer)return inferer.call(this,node);if(inferer=inferers[this.parentPath.type],null!=(_inferer=inferer)&&_inferer.validParent)return this.parentPath.getTypeAnnotation()}finally{typeAnnotationInferringNodes.delete(node)}},exports.baseTypeStrictlyMatches=function(rightArg){const left=this.getTypeAnnotation(),right=rightArg.getTypeAnnotation();if(!isAnyTypeAnnotation(left)&&isFlowBaseAnnotation(left))return right.type===left.type;return!1},exports.couldBeBaseType=function(name){const type=this.getTypeAnnotation();if(isAnyTypeAnnotation(type))return!0;if(isUnionTypeAnnotation(type)){for(const type2 of type.types)if(isAnyTypeAnnotation(type2)||_isBaseType(name,type2,!0))return!0;return!1}return _isBaseType(name,type,!0)},exports.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;let type=this._getTypeAnnotation()||anyTypeAnnotation();isTypeAnnotation(type)&&(type=type.typeAnnotation);return this.typeAnnotation=type},exports.isBaseType=function(baseName,soft){return _isBaseType(baseName,this.getTypeAnnotation(),soft)},exports.isGenericType=function(genericName){const type=this.getTypeAnnotation();return isGenericTypeAnnotation(type)&&isIdentifier(type.id,{name:genericName})};var inferers=__webpack_require__("./node_modules/@babel/traverse/lib/path/inference/inferers.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{anyTypeAnnotation,isAnyTypeAnnotation,isBooleanTypeAnnotation,isEmptyTypeAnnotation,isFlowBaseAnnotation,isGenericTypeAnnotation,isIdentifier,isMixedTypeAnnotation,isNumberTypeAnnotation,isStringTypeAnnotation,isTypeAnnotation,isUnionTypeAnnotation,isVoidTypeAnnotation,stringTypeAnnotation,voidTypeAnnotation}=_t;const typeAnnotationInferringNodes=new WeakSet;function _isBaseType(baseName,type,soft){if("string"===baseName)return isStringTypeAnnotation(type);if("number"===baseName)return isNumberTypeAnnotation(type);if("boolean"===baseName)return isBooleanTypeAnnotation(type);if("any"===baseName)return isAnyTypeAnnotation(type);if("mixed"===baseName)return isMixedTypeAnnotation(type);if("empty"===baseName)return isEmptyTypeAnnotation(type);if("void"===baseName)return isVoidTypeAnnotation(type);if(soft)return!1;throw new Error(`Unknown base type ${baseName}`)}},"./node_modules/@babel/traverse/lib/path/inference/inferer-reference.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if(!this.isReferenced())return;const binding=this.scope.getBinding(node.name);if(binding)return binding.identifier.typeAnnotation?binding.identifier.typeAnnotation:function(binding,path,name){const types=[],functionConstantViolations=[];let constantViolations=getConstantViolationsBefore(binding,path,functionConstantViolations);const testType=getConditionalAnnotation(binding,path,name);if(testType){const testConstantViolations=getConstantViolationsBefore(binding,testType.ifStatement);constantViolations=constantViolations.filter((path=>testConstantViolations.indexOf(path)<0)),types.push(testType.typeAnnotation)}if(constantViolations.length){constantViolations.push(...functionConstantViolations);for(const violation of constantViolations)types.push(violation.getTypeAnnotation())}if(!types.length)return;if(isTSTypeAnnotation(types[0])&&createTSUnionType)return createTSUnionType(types);if(createFlowUnionType)return createFlowUnionType(types);return createUnionTypeAnnotation(types)}(binding,this,node.name);if("undefined"===node.name)return voidTypeAnnotation();if("NaN"===node.name||"Infinity"===node.name)return numberTypeAnnotation();node.name};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{BOOLEAN_NUMBER_BINARY_OPERATORS,createFlowUnionType,createTSUnionType,createTypeAnnotationBasedOnTypeof,createUnionTypeAnnotation,isTSTypeAnnotation,numberTypeAnnotation,voidTypeAnnotation}=_t;function getConstantViolationsBefore(binding,path,functions){const violations=binding.constantViolations.slice();return violations.unshift(binding.path),violations.filter((violation=>{const status=(violation=violation.resolve())._guessExecutionStatusRelativeTo(path);return functions&&"unknown"===status&&functions.push(violation),"before"===status}))}function inferAnnotationFromBinaryExpression(name,path){const operator=path.node.operator,right=path.get("right").resolve(),left=path.get("left").resolve();let target,typeofPath,typePath;if(left.isIdentifier({name})?target=right:right.isIdentifier({name})&&(target=left),target)return"==="===operator?target.getTypeAnnotation():BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator)>=0?numberTypeAnnotation():void 0;if("==="!==operator&&"=="!==operator)return;if(left.isUnaryExpression({operator:"typeof"})?(typeofPath=left,typePath=right):right.isUnaryExpression({operator:"typeof"})&&(typeofPath=right,typePath=left),!typeofPath)return;if(!typeofPath.get("argument").isIdentifier({name}))return;if(typePath=typePath.resolve(),!typePath.isLiteral())return;const typeValue=typePath.node.value;return"string"==typeof typeValue?createTypeAnnotationBasedOnTypeof(typeValue):void 0}function getConditionalAnnotation(binding,path,name){const ifStatement=function(binding,path,name){let parentPath;for(;parentPath=path.parentPath;){if(parentPath.isIfStatement()||parentPath.isConditionalExpression()){if("test"===path.key)return;return parentPath}if(parentPath.isFunction()&&parentPath.parentPath.scope.getBinding(name)!==binding)return;path=parentPath}}(binding,path,name);if(!ifStatement)return;const paths=[ifStatement.get("test")],types=[];for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArrayExpression=ArrayExpression,exports.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},exports.BinaryExpression=function(node){const operator=node.operator;if(NUMBER_BINARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(BOOLEAN_BINARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation();if("+"===operator){const right=this.get("right"),left=this.get("left");return left.isBaseType("number")&&right.isBaseType("number")?numberTypeAnnotation():left.isBaseType("string")||right.isBaseType("string")?stringTypeAnnotation():unionTypeAnnotation([stringTypeAnnotation(),numberTypeAnnotation()])}},exports.BooleanLiteral=function(){return booleanTypeAnnotation()},exports.CallExpression=function(){const{callee}=this.node;if(isObjectKeys(callee))return arrayTypeAnnotation(stringTypeAnnotation());if(isArrayFrom(callee)||isObjectValues(callee))return arrayTypeAnnotation(anyTypeAnnotation());if(isObjectEntries(callee))return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(),anyTypeAnnotation()]));return resolveCall(this.get("callee"))},exports.ConditionalExpression=function(){const argumentTypes=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];if(isTSTypeAnnotation(argumentTypes[0])&&createTSUnionType)return createTSUnionType(argumentTypes);if(createFlowUnionType)return createFlowUnionType(argumentTypes);return createUnionTypeAnnotation(argumentTypes)},exports.ClassDeclaration=exports.ClassExpression=exports.FunctionDeclaration=exports.ArrowFunctionExpression=exports.FunctionExpression=function(){return genericTypeAnnotation(identifier("Function"))},Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _infererReference.default}}),exports.LogicalExpression=function(){const argumentTypes=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];if(isTSTypeAnnotation(argumentTypes[0])&&createTSUnionType)return createTSUnionType(argumentTypes);if(createFlowUnionType)return createFlowUnionType(argumentTypes);return createUnionTypeAnnotation(argumentTypes)},exports.NewExpression=function(node){if(this.get("callee").isIdentifier())return genericTypeAnnotation(node.callee)},exports.NullLiteral=function(){return nullLiteralTypeAnnotation()},exports.NumericLiteral=function(){return numberTypeAnnotation()},exports.ObjectExpression=function(){return genericTypeAnnotation(identifier("Object"))},exports.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},exports.RegExpLiteral=function(){return genericTypeAnnotation(identifier("RegExp"))},exports.RestElement=RestElement,exports.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},exports.StringLiteral=function(){return stringTypeAnnotation()},exports.TaggedTemplateExpression=function(){return resolveCall(this.get("tag"))},exports.TemplateLiteral=function(){return stringTypeAnnotation()},exports.TypeCastExpression=TypeCastExpression,exports.UnaryExpression=function(node){const operator=node.operator;if("void"===operator)return voidTypeAnnotation();if(NUMBER_UNARY_OPERATORS.indexOf(operator)>=0)return numberTypeAnnotation();if(STRING_UNARY_OPERATORS.indexOf(operator)>=0)return stringTypeAnnotation();if(BOOLEAN_UNARY_OPERATORS.indexOf(operator)>=0)return booleanTypeAnnotation()},exports.UpdateExpression=function(node){const operator=node.operator;if("++"===operator||"--"===operator)return numberTypeAnnotation()},exports.VariableDeclarator=function(){var _type;if(!this.get("id").isIdentifier())return;const init=this.get("init");let type=init.getTypeAnnotation();"AnyTypeAnnotation"===(null==(_type=type)?void 0:_type.type)&&init.isCallExpression()&&init.get("callee").isIdentifier({name:"Array"})&&!init.scope.hasBinding("Array",!0)&&(type=ArrayExpression());return type};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_infererReference=__webpack_require__("./node_modules/@babel/traverse/lib/path/inference/inferer-reference.js");const{BOOLEAN_BINARY_OPERATORS,BOOLEAN_UNARY_OPERATORS,NUMBER_BINARY_OPERATORS,NUMBER_UNARY_OPERATORS,STRING_UNARY_OPERATORS,anyTypeAnnotation,arrayTypeAnnotation,booleanTypeAnnotation,buildMatchMemberExpression,createFlowUnionType,createTSUnionType,createUnionTypeAnnotation,genericTypeAnnotation,identifier,isTSTypeAnnotation,nullLiteralTypeAnnotation,numberTypeAnnotation,stringTypeAnnotation,tupleTypeAnnotation,unionTypeAnnotation,voidTypeAnnotation}=_t;function TypeCastExpression(node){return node.typeAnnotation}function ArrayExpression(){return genericTypeAnnotation(identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,RestElement.validParent=!0;const isArrayFrom=buildMatchMemberExpression("Array.from"),isObjectKeys=buildMatchMemberExpression("Object.keys"),isObjectValues=buildMatchMemberExpression("Object.values"),isObjectEntries=buildMatchMemberExpression("Object.entries");function resolveCall(callee){if((callee=callee.resolve()).isFunction()){if(callee.is("async"))return callee.is("generator")?genericTypeAnnotation(identifier("AsyncIterator")):genericTypeAnnotation(identifier("Promise"));if(callee.node.returnType)return callee.node.returnType}}},"./node_modules/@babel/traverse/lib/path/introspection.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._guessExecutionStatusRelativeTo=function(target){const funcParent={this:getOuterFunction(this),target:getOuterFunction(target)};if(funcParent.target.node!==funcParent.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(funcParent.target);const paths={target:target.getAncestry(),this:this.getAncestry()};if(paths.target.indexOf(this)>=0)return"after";if(paths.this.indexOf(target)>=0)return"before";let commonPath;const commonIndex={target:0,this:0};for(;!commonPath&&commonIndex.this=0?commonPath=path:commonIndex.this++}if(!commonPath)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(isExecutionUncertainInList(paths.this,commonIndex.this-1)||isExecutionUncertainInList(paths.target,commonIndex.target-1))return"unknown";const divergence={this:paths.this[commonIndex.this-1],target:paths.target[commonIndex.target-1]};if(divergence.target.listKey&&divergence.this.listKey&&divergence.target.container===divergence.this.container)return divergence.target.key>divergence.this.key?"before":"after";const keys=VISITOR_KEYS[commonPath.type],keyPosition={this:keys.indexOf(divergence.this.parentKey),target:keys.indexOf(divergence.target.parentKey)};return keyPosition.target>keyPosition.this?"before":"after"},exports._guessExecutionStatusRelativeToDifferentFunctions=function(target){if(!target.isFunctionDeclaration()||target.parentPath.isExportDeclaration())return"unknown";const binding=target.scope.getBinding(target.node.id.name);if(!binding.references)return"before";const referencePaths=binding.referencePaths;let allStatus;for(const path of referencePaths){if(!!path.find((path=>path.node===target.node)))continue;if("callee"!==path.key||!path.parentPath.isCallExpression())return"unknown";if(executionOrderCheckedNodes.has(path.node))continue;executionOrderCheckedNodes.add(path.node);const status=this._guessExecutionStatusRelativeTo(path);if(executionOrderCheckedNodes.delete(path.node),allStatus&&allStatus!==status)return"unknown";allStatus=status}return allStatus},exports._resolve=function(dangerous,resolved){if(resolved&&resolved.indexOf(this)>=0)return;if((resolved=resolved||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(dangerous,resolved)}else if(this.isReferencedIdentifier()){const binding=this.scope.getBinding(this.node.name);if(!binding)return;if(!binding.constant)return;if("module"===binding.kind)return;if(binding.path!==this){const ret=binding.path.resolve(dangerous,resolved);if(this.find((parent=>parent.node===ret.node)))return;return ret}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(dangerous,resolved);if(dangerous&&this.isMemberExpression()){const targetKey=this.toComputedKey();if(!isLiteral(targetKey))return;const targetName=targetKey.value,target=this.get("object").resolve(dangerous,resolved);if(target.isObjectExpression()){const props=target.get("properties");for(const prop of props){if(!prop.isProperty())continue;const key=prop.get("key");let match=prop.isnt("computed")&&key.isIdentifier({name:targetName});if(match=match||key.isLiteral({value:targetName}),match)return prop.get("value").resolve(dangerous,resolved)}}else if(target.isArrayExpression()&&!isNaN(+targetName)){const elem=target.get("elements")[targetName];if(elem)return elem.resolve(dangerous,resolved)}}}},exports.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},exports.canSwapBetweenExpressionAndStatement=function(replacement){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return isBlockStatement(replacement);if(this.isBlockStatement())return isExpression(replacement);return!1},exports.equals=function(key,value){return this.node[key]===value},exports.getSource=function(){const node=this.node;if(node.end){const code=this.hub.getCode();if(code)return code.slice(node.start,node.end)}return""},exports.has=has,exports.is=void 0,exports.isCompletionRecord=function(allowInsideFunction){let path=this,first=!0;do{const container=path.container;if(path.isFunction()&&!first)return!!allowInsideFunction;if(first=!1,Array.isArray(container)&&path.key!==container.length-1)return!1}while((path=path.parentPath)&&!path.isProgram());return!0},exports.isConstantExpression=function(){if(this.isIdentifier()){const binding=this.scope.getBinding(this.node.name);return!!binding&&binding.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((expression=>expression.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},exports.isInStrictMode=function(){const start=this.isProgram()?this:this.parentPath;return!!start.find((path=>{if(path.isProgram({sourceType:"module"}))return!0;if(path.isClass())return!0;if(!path.isProgram()&&!path.isFunction())return!1;if(path.isArrowFunctionExpression()&&!path.get("body").isBlockStatement())return!1;const body=path.isFunction()?path.node.body:path.node;for(const directive of body.directives)if("use strict"===directive.value.value)return!0}))},exports.isNodeType=function(type){return isType(this.type,type)},exports.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!isBlockStatement(this.container)&&STATEMENT_OR_BLOCK_KEYS.includes(this.key)},exports.isStatic=function(){return this.scope.isStatic(this.node)},exports.isnt=function(key){return!this.has(key)},exports.matchesPattern=function(pattern,allowPartial){return _matchesPattern(this.node,pattern,allowPartial)},exports.referencesImport=function(moduleSource,importName){if(!this.isReferencedIdentifier()){if((this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?isStringLiteral(this.node.property,{value:importName}):this.node.property.name===importName)){const object=this.get("object");return object.isReferencedIdentifier()&&object.referencesImport(moduleSource,"*")}return!1}const binding=this.scope.getBinding(this.node.name);if(!binding||"module"!==binding.kind)return!1;const path=binding.path,parent=path.parentPath;if(!parent.isImportDeclaration())return!1;if(parent.node.source.value!==moduleSource)return!1;if(!importName)return!0;if(path.isImportDefaultSpecifier()&&"default"===importName)return!0;if(path.isImportNamespaceSpecifier()&&"*"===importName)return!0;if(path.isImportSpecifier()&&isIdentifier(path.node.imported,{name:importName}))return!0;return!1},exports.resolve=function(dangerous,resolved){return this._resolve(dangerous,resolved)||this},exports.willIMaybeExecuteBefore=function(target){return"after"!==this._guessExecutionStatusRelativeTo(target)};var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{STATEMENT_OR_BLOCK_KEYS,VISITOR_KEYS,isBlockStatement,isExpression,isIdentifier,isLiteral,isStringLiteral,isType,matchesPattern:_matchesPattern}=_t;function has(key){const val=this.node&&this.node[key];return val&&Array.isArray(val)?!!val.length:!!val}const is=has;function getOuterFunction(path){return(path.scope.getFunctionParent()||path.scope.getProgramParent()).path}function isExecutionUncertain(type,key){switch(type){case"LogicalExpression":case"AssignmentPattern":return"right"===key;case"ConditionalExpression":case"IfStatement":return"consequent"===key||"alternate"===key;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===key;case"ForStatement":return"body"===key||"update"===key;case"SwitchStatement":return"cases"===key;case"TryStatement":return"handler"===key;case"OptionalMemberExpression":return"property"===key;case"OptionalCallExpression":return"arguments"===key;default:return!1}}function isExecutionUncertainInList(paths,maxIndex){for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_t2=_t;const{react}=_t,{cloneNode,jsxExpressionContainer,variableDeclaration,variableDeclarator}=_t2,referenceVisitor={ReferencedIdentifier(path,state){if(path.isJSXIdentifier()&&react.isCompatTag(path.node.name)&&!path.parentPath.isJSXMemberExpression())return;if("this"===path.node.name){let scope=path.scope;do{if(scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break}while(scope=scope.parent);scope&&state.breakOnScopePaths.push(scope.path)}const binding=path.scope.getBinding(path.node.name);if(binding){for(const violation of binding.constantViolations)if(violation.scope!==binding.path.scope)return state.mutableBinding=!0,void path.stop();binding===state.scope.getBinding(path.node.name)&&(state.bindings[path.node.name]=binding)}}};exports.default=class{constructor(path,scope){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=scope,this.path=path,this.attachAfter=!1}isCompatibleScope(scope){for(const key of Object.keys(this.bindings)){const binding=this.bindings[key];if(!scope.bindingIdentifierEquals(key,binding.identifier))return!1}return!0}getCompatibleScopes(){let scope=this.path.scope;do{if(!this.isCompatibleScope(scope))break;if(this.scopes.push(scope),this.breakOnScopePaths.indexOf(scope.path)>=0)break}while(scope=scope.parent)}getAttachmentPath(){let path=this._getAttachmentPath();if(!path)return;let targetScope=path.scope;if(targetScope.path===path&&(targetScope=path.scope.parent),targetScope.path.isProgram()||targetScope.path.isFunction())for(const name of Object.keys(this.bindings)){if(!targetScope.hasOwnBinding(name))continue;const binding=this.bindings[name];if("param"===binding.kind||"params"===binding.path.parentKey)continue;if(this.getAttachmentParentForPath(binding.path).key>=path.key){this.attachAfter=!0,path=binding.path;for(const violationPath of binding.constantViolations)this.getAttachmentParentForPath(violationPath).key>path.key&&(path=violationPath)}}return path}_getAttachmentPath(){const scope=this.scopes.pop();if(scope)if(scope.path.isFunction()){if(!this.hasOwnParamBindings(scope))return this.getNextScopeAttachmentParent();{if(this.scope===scope)return;const bodies=scope.path.get("body").get("body");for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hooks=void 0;exports.hooks=[function(self,parent){if("test"===self.key&&(parent.isWhile()||parent.isSwitchCase())||"declaration"===self.key&&parent.isExportDeclaration()||"body"===self.key&&parent.isLabeledStatement()||"declarations"===self.listKey&&parent.isVariableDeclaration()&&1===parent.node.declarations.length||"expression"===self.key&&parent.isExpressionStatement())return parent.remove(),!0},function(self,parent){if(parent.isSequenceExpression()&&1===parent.node.expressions.length)return parent.replaceWith(parent.node.expressions[0]),!0},function(self,parent){if(parent.isBinary())return"left"===self.key?parent.replaceWith(parent.node.right):parent.replaceWith(parent.node.left),!0},function(self,parent){if(parent.isIfStatement()&&("consequent"===self.key||"alternate"===self.key)||"body"===self.key&&(parent.isLoop()||parent.isArrowFunctionExpression()))return self.replaceWith({type:"BlockStatement",body:[]}),!0}]},"./node_modules/@babel/traverse/lib/path/lib/virtual-types.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Var=exports.User=exports.Statement=exports.SpreadProperty=exports.Scope=exports.RestProperty=exports.ReferencedMemberExpression=exports.ReferencedIdentifier=exports.Referenced=exports.Pure=exports.NumericLiteralTypeAnnotation=exports.Generated=exports.ForAwaitStatement=exports.Flow=exports.Expression=exports.ExistentialTypeParam=exports.BlockScoped=exports.BindingIdentifier=void 0;var _t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{isBinding,isBlockScoped,isExportDeclaration,isExpression,isFlow,isForStatement,isForXStatement,isIdentifier,isImportDeclaration,isImportSpecifier,isJSXIdentifier,isJSXMemberExpression,isMemberExpression,isReferenced,isScope,isStatement,isVar,isVariableDeclaration,react}=_t,{isCompatTag}=react,ReferencedIdentifier={types:["Identifier","JSXIdentifier"],checkPath(path,opts){const{node,parent}=path;if(!isIdentifier(node,opts)&&!isJSXMemberExpression(parent,opts)){if(!isJSXIdentifier(node,opts))return!1;if(isCompatTag(node.name))return!1}return isReferenced(node,parent,path.parentPath.parent)}};exports.ReferencedIdentifier=ReferencedIdentifier;const ReferencedMemberExpression={types:["MemberExpression"],checkPath:({node,parent})=>isMemberExpression(node)&&isReferenced(node,parent)};exports.ReferencedMemberExpression=ReferencedMemberExpression;const BindingIdentifier={types:["Identifier"],checkPath(path){const{node,parent}=path,grandparent=path.parentPath.parent;return isIdentifier(node)&&isBinding(node,parent,grandparent)}};exports.BindingIdentifier=BindingIdentifier;const Statement={types:["Statement"],checkPath({node,parent}){if(isStatement(node)){if(isVariableDeclaration(node)){if(isForXStatement(parent,{left:node}))return!1;if(isForStatement(parent,{init:node}))return!1}return!0}return!1}};exports.Statement=Statement;const Expression={types:["Expression"],checkPath:path=>path.isIdentifier()?path.isReferencedIdentifier():isExpression(path.node)};exports.Expression=Expression;const Scope={types:["Scopable","Pattern"],checkPath:path=>isScope(path.node,path.parent)};exports.Scope=Scope;const Referenced={checkPath:path=>isReferenced(path.node,path.parent)};exports.Referenced=Referenced;const BlockScoped={checkPath:path=>isBlockScoped(path.node)};exports.BlockScoped=BlockScoped;const Var={types:["VariableDeclaration"],checkPath:path=>isVar(path.node)};exports.Var=Var;const User={checkPath:path=>path.node&&!!path.node.loc};exports.User=User;const Generated={checkPath:path=>!path.isUser()};exports.Generated=Generated;const Pure={checkPath:(path,opts)=>path.scope.isPure(path.node,opts)};exports.Pure=Pure;const Flow={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:({node})=>!!isFlow(node)||(isImportDeclaration(node)?"type"===node.importKind||"typeof"===node.importKind:isExportDeclaration(node)?"type"===node.exportKind:!!isImportSpecifier(node)&&("type"===node.importKind||"typeof"===node.importKind))};exports.Flow=Flow;const RestProperty={types:["RestElement"],checkPath:path=>path.parentPath&&path.parentPath.isObjectPattern()};exports.RestProperty=RestProperty;const SpreadProperty={types:["RestElement"],checkPath:path=>path.parentPath&&path.parentPath.isObjectExpression()};exports.SpreadProperty=SpreadProperty;exports.ExistentialTypeParam={types:["ExistsTypeAnnotation"]};exports.NumericLiteralTypeAnnotation={types:["NumberLiteralTypeAnnotation"]};const ForAwaitStatement={types:["ForOfStatement"],checkPath:({node})=>!0===node.await};exports.ForAwaitStatement=ForAwaitStatement},"./node_modules/@babel/traverse/lib/path/modification.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._containerInsert=function(from,nodes){this.updateSiblingKeys(from,nodes.length);const paths=[];this.container.splice(from,0,...nodes);for(let i=0;iisExpression(node)?expressionStatement(node):node)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!parentPath.isJSXElement()||parentPath.isForStatement()&&"init"===this.key){if(this.node){const node=this.node;let{scope}=this;if(scope.path.isPattern())return assertExpression(node),this.replaceWith(callExpression(arrowFunctionExpression([],node),[])),this.get("callee.body").insertAfter(nodes),[this];parentPath.isMethod({computed:!0,key:node})&&(scope=scope.parent);const temp=scope.generateDeclaredUidIdentifier();nodes.unshift(expressionStatement(assignmentExpression("=",cloneNode(temp),node))),nodes.push(expressionStatement(cloneNode(temp)))}return this.replaceExpressionWithStatements(nodes)}if(Array.isArray(this.container))return this._containerInsertAfter(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.pushContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.insertBefore=function(nodes_){this._assertUnremoved();const nodes=this._verifyNodeList(nodes_),{parentPath}=this;if(parentPath.isExpressionStatement()||parentPath.isLabeledStatement()||parentPath.isExportNamedDeclaration()||parentPath.isExportDefaultDeclaration()&&this.isDeclaration())return parentPath.insertBefore(nodes);if(this.isNodeType("Expression")&&!this.isJSXElement()||parentPath.isForStatement()&&"init"===this.key)return this.node&&nodes.push(this.node),this.replaceExpressionWithStatements(nodes);if(Array.isArray(this.container))return this._containerInsertBefore(nodes);if(this.isStatementOrBlock()){const node=this.node,shouldInsertCurrentNode=node&&(!this.isExpressionStatement()||null!=node.expression);return this.replaceWith(blockStatement(shouldInsertCurrentNode?[node]:[])),this.unshiftContainer("body",nodes)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},exports.pushContainer=function(listKey,nodes){this._assertUnremoved();const verifiedNodes=this._verifyNodeList(nodes),container=this.node[listKey];return _index.default.get({parentPath:this,parent:this.node,container,listKey,key:container.length}).setContext(this.context).replaceWithMultiple(verifiedNodes)},exports.unshiftContainer=function(listKey,nodes){this._assertUnremoved(),nodes=this._verifyNodeList(nodes);return _index.default.get({parentPath:this,parent:this.node,container:this.node[listKey],listKey,key:0}).setContext(this.context)._containerInsertBefore(nodes)},exports.updateSiblingKeys=function(fromIndex,incrementBy){if(!this.parent)return;const paths=_cache.path.get(this.parent);for(const[,path]of paths)path.key>=fromIndex&&(path.key+=incrementBy)};var _cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js"),_hoister=__webpack_require__("./node_modules/@babel/traverse/lib/path/lib/hoister.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{arrowFunctionExpression,assertExpression,assignmentExpression,blockStatement,callExpression,cloneNode,expressionStatement,isExpression}=_t},"./node_modules/@babel/traverse/lib/path/removal.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")},exports._callRemovalHooks=function(){for(const fn of _removalHooks.hooks)if(fn(this,this.parentPath))return!0},exports._markRemoved=function(){this._traverseFlags|=_index.SHOULD_SKIP|_index.REMOVED,this.parent&&_cache.path.get(this.parent).delete(this.node);this.node=null},exports._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},exports._removeFromScope=function(){const bindings=this.getBindingIdentifiers();Object.keys(bindings).forEach((name=>this.scope.removeBinding(name)))},exports.remove=function(){var _this$opts;this._assertUnremoved(),this.resync(),null!=(_this$opts=this.opts)&&_this$opts.noScope||this._removeFromScope();if(this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()};var _removalHooks=__webpack_require__("./node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"),_cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js")},"./node_modules/@babel/traverse/lib/path/replacement.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports._replaceWith=function(node){var _pathCache$get2;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?validate(this.parent,this.key,[node]):validate(this.parent,this.key,node);this.debug(`Replace with ${null==node?void 0:node.type}`),null==(_pathCache$get2=_cache.path.get(this.parent))||_pathCache$get2.set(node,this).delete(this.node),this.node=this.container[this.key]=node},exports.replaceExpressionWithStatements=function(nodes){this.resync();const nodesAsSequenceExpression=toSequenceExpression(nodes,this.scope);if(nodesAsSequenceExpression)return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions");const functionParent=this.getFunctionParent(),isParentAsync=null==functionParent?void 0:functionParent.is("async"),isParentGenerator=null==functionParent?void 0:functionParent.is("generator"),container=arrowFunctionExpression([],blockStatement(nodes));this.replaceWith(callExpression(container,[]));const callee=this.get("callee");(0,_helperHoistVariables.default)(callee.get("body"),(id=>{this.scope.push({id})}),"var");const completionRecords=this.get("callee").getCompletionRecords();for(const path of completionRecords){if(!path.isExpressionStatement())continue;const loop=path.findParent((path=>path.isLoop()));if(loop){let uid=loop.getData("expressionReplacementReturnUid");uid?uid=identifier(uid.name):(uid=callee.scope.generateDeclaredUidIdentifier("ret"),callee.get("body").pushContainer("body",returnStatement(cloneNode(uid))),loop.setData("expressionReplacementReturnUid",uid)),path.get("expression").replaceWith(assignmentExpression("=",cloneNode(uid),path.node.expression))}else path.replaceWith(returnStatement(path.node.expression))}callee.arrowFunctionToExpression();const newCallee=callee,needToAwaitFunction=isParentAsync&&_index.default.hasType(this.get("callee.body").node,"AwaitExpression",FUNCTION_TYPES),needToYieldFunction=isParentGenerator&&_index.default.hasType(this.get("callee.body").node,"YieldExpression",FUNCTION_TYPES);needToAwaitFunction&&(newCallee.set("async",!0),needToYieldFunction||this.replaceWith(awaitExpression(this.node)));needToYieldFunction&&(newCallee.set("generator",!0),this.replaceWith(yieldExpression(this.node,!0)));return newCallee.get("body.body")},exports.replaceInline=function(nodes){if(this.resync(),Array.isArray(nodes)){if(Array.isArray(this.container)){nodes=this._verifyNodeList(nodes);const paths=this._containerInsertAfter(nodes);return this.remove(),paths}return this.replaceWithMultiple(nodes)}return this.replaceWith(nodes)},exports.replaceWith=function(replacement){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");replacement instanceof _index2.default&&(replacement=replacement.node);if(!replacement)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===replacement)return[this];if(this.isProgram()&&!isProgram(replacement))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(replacement))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof replacement)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let nodePath="";this.isNodeType("Statement")&&isExpression(replacement)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(replacement)||this.parentPath.isExportDefaultDeclaration()||(replacement=expressionStatement(replacement),nodePath="expression"));if(this.isNodeType("Expression")&&isStatement(replacement)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(replacement))return this.replaceExpressionWithStatements([replacement]);const oldNode=this.node;oldNode&&(inheritsComments(replacement,oldNode),removeComments(oldNode));return this._replaceWith(replacement),this.type=replacement.type,this.setScope(),this.requeue(),[nodePath?this.get(nodePath):this]},exports.replaceWithMultiple=function(nodes){var _pathCache$get;this.resync(),nodes=this._verifyNodeList(nodes),inheritLeadingComments(nodes[0],this.node),inheritTrailingComments(nodes[nodes.length-1],this.node),null==(_pathCache$get=_cache.path.get(this.parent))||_pathCache$get.delete(this.node),this.node=this.container[this.key]=null;const paths=this.insertAfter(nodes);this.node?this.requeue():this.remove();return paths},exports.replaceWithSourceString=function(replacement){this.resync();try{replacement=`(${replacement})`,replacement=(0,_parser.parse)(replacement)}catch(err){const loc=err.loc;throw loc&&(err.message+=" - make sure this is an expression.\n"+(0,_codeFrame.codeFrameColumns)(replacement,{start:{line:loc.line,column:loc.column+1}}),err.code="BABEL_REPLACE_SOURCE_ERROR"),err}return replacement=replacement.program.body[0].expression,_index.default.removeProperties(replacement),this.replaceWith(replacement)};var _codeFrame=__webpack_require__("./stubs/babel_codeframe.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_index2=__webpack_require__("./node_modules/@babel/traverse/lib/path/index.js"),_cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js"),_parser=__webpack_require__("./node_modules/@babel/parser/lib/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_helperHoistVariables=__webpack_require__("./node_modules/@babel/helper-hoist-variables/lib/index.js");const{FUNCTION_TYPES,arrowFunctionExpression,assignmentExpression,awaitExpression,blockStatement,callExpression,cloneNode,expressionStatement,identifier,inheritLeadingComments,inheritTrailingComments,inheritsComments,isExpression,isProgram,isStatement,removeComments,returnStatement,toSequenceExpression,validate,yieldExpression}=_t},"./node_modules/@babel/traverse/lib/scope/binding.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;exports.default=class{constructor({identifier,scope,path,kind}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=identifier,this.scope=scope,this.path=path,this.kind=kind,this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(value){this.hasDeoptedValue||(this.hasValue=!0,this.value=value)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(path){this.constant=!1,-1===this.constantViolations.indexOf(path)&&this.constantViolations.push(path)}reference(path){-1===this.referencePaths.indexOf(path)&&(this.referenced=!0,this.references++,this.referencePaths.push(path))}dereference(){this.references--,this.referenced=!!this.references}}},"./node_modules/@babel/traverse/lib/scope/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _renamer=__webpack_require__("./node_modules/@babel/traverse/lib/scope/lib/renamer.js"),_index=__webpack_require__("./node_modules/@babel/traverse/lib/index.js"),_binding=__webpack_require__("./node_modules/@babel/traverse/lib/scope/binding.js"),_globals=__webpack_require__("./node_modules/@babel/traverse/node_modules/globals/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js"),_cache=__webpack_require__("./node_modules/@babel/traverse/lib/cache.js");const{NOT_LOCAL_BINDING,callExpression,cloneNode,getBindingIdentifiers,identifier,isArrayExpression,isBinary,isClass,isClassBody,isClassDeclaration,isExportAllDeclaration,isExportDefaultDeclaration,isExportNamedDeclaration,isFunctionDeclaration,isIdentifier,isImportDeclaration,isLiteral,isMethod,isModuleDeclaration,isModuleSpecifier,isObjectExpression,isProperty,isPureish,isSuper,isTaggedTemplateExpression,isTemplateLiteral,isThisExpression,isUnaryExpression,isVariableDeclaration,matchesPattern,memberExpression,numericLiteral,toIdentifier,unaryExpression,variableDeclaration,variableDeclarator}=_t;function gatherNodeParts(node,parts){switch(null==node?void 0:node.type){default:if(isModuleDeclaration(node))if((isExportAllDeclaration(node)||isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.source)gatherNodeParts(node.source,parts);else if((isExportNamedDeclaration(node)||isImportDeclaration(node))&&node.specifiers&&node.specifiers.length)for(const e of node.specifiers)gatherNodeParts(e,parts);else(isExportDefaultDeclaration(node)||isExportNamedDeclaration(node))&&node.declaration&&gatherNodeParts(node.declaration,parts);else isModuleSpecifier(node)?gatherNodeParts(node.local,parts):isLiteral(node)&&parts.push(node.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(node.object,parts),gatherNodeParts(node.property,parts);break;case"Identifier":case"JSXIdentifier":case"JSXOpeningElement":parts.push(node.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(node.callee,parts);break;case"ObjectExpression":case"ObjectPattern":for(const e of node.properties)gatherNodeParts(e,parts);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":gatherNodeParts(node.argument,parts);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(node.key,parts);break;case"ThisExpression":parts.push("this");break;case"Super":parts.push("super");break;case"Import":parts.push("import");break;case"DoExpression":parts.push("do");break;case"YieldExpression":parts.push("yield"),gatherNodeParts(node.argument,parts);break;case"AwaitExpression":parts.push("await"),gatherNodeParts(node.argument,parts);break;case"AssignmentExpression":gatherNodeParts(node.left,parts);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":gatherNodeParts(node.id,parts);break;case"ParenthesizedExpression":gatherNodeParts(node.expression,parts);break;case"MetaProperty":gatherNodeParts(node.meta,parts),gatherNodeParts(node.property,parts);break;case"JSXElement":gatherNodeParts(node.openingElement,parts);break;case"JSXFragment":gatherNodeParts(node.openingFragment,parts);break;case"JSXOpeningFragment":parts.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(node.namespace,parts),gatherNodeParts(node.name,parts)}}const collectorVisitor={ForStatement(path){const declar=path.get("init");if(declar.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",declar)}},Declaration(path){if(path.isBlockScoped())return;if(path.isImportDeclaration())return;if(path.isExportDeclaration())return;(path.scope.getFunctionParent()||path.scope.getProgramParent()).registerDeclaration(path)},ImportDeclaration(path){path.scope.getBlockParent().registerDeclaration(path)},ReferencedIdentifier(path,state){state.references.push(path)},ForXStatement(path,state){const left=path.get("left");if(left.isPattern()||left.isIdentifier())state.constantViolations.push(path);else if(left.isVar()){const{scope}=path;(scope.getFunctionParent()||scope.getProgramParent()).registerBinding("var",left)}},ExportDeclaration:{exit(path){const{node,scope}=path;if(isExportAllDeclaration(node))return;const declar=node.declaration;if(isClassDeclaration(declar)||isFunctionDeclaration(declar)){const id=declar.id;if(!id)return;const binding=scope.getBinding(id.name);null==binding||binding.reference(path)}else if(isVariableDeclaration(declar))for(const decl of declar.declarations)for(const name of Object.keys(getBindingIdentifiers(decl))){const binding=scope.getBinding(name);null==binding||binding.reference(path)}}},LabeledStatement(path){path.scope.getBlockParent().registerDeclaration(path)},AssignmentExpression(path,state){state.assignments.push(path)},UpdateExpression(path,state){state.constantViolations.push(path)},UnaryExpression(path,state){"delete"===path.node.operator&&state.constantViolations.push(path)},BlockScoped(path){let scope=path.scope;scope.path===path&&(scope=scope.parent);if(scope.getBlockParent().registerDeclaration(path),path.isClassDeclaration()&&path.node.id){const name=path.node.id.name;path.scope.bindings[name]=path.scope.parent.getBinding(name)}},CatchClause(path){path.scope.registerBinding("let",path)},Function(path){const params=path.get("params");for(const param of params)path.scope.registerBinding("param",param);path.isFunctionExpression()&&path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path.get("id"),path)},ClassExpression(path){path.has("id")&&!path.get("id").node[NOT_LOCAL_BINDING]&&path.scope.registerBinding("local",path)}};let uid=0;class Scope{constructor(path){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node}=path,cached=_cache.scope.get(node);if((null==cached?void 0:cached.path)===path)return cached;_cache.scope.set(node,this),this.uid=uid++,this.block=node,this.path=path,this.labels=new Map,this.inited=!1}get parent(){var _parent;let parent,path=this.path;do{const isKey="key"===path.key;path=path.parentPath,isKey&&path.isMethod()&&(path=path.parentPath),path&&path.isScope()&&(parent=path)}while(path&&!parent);return null==(_parent=parent)?void 0:_parent.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(node,opts,state){(0,_index.default)(node,opts,this,state,this.path)}generateDeclaredUidIdentifier(name){const id=this.generateUidIdentifier(name);return this.push({id}),cloneNode(id)}generateUidIdentifier(name){return identifier(this.generateUid(name))}generateUid(name="temp"){let uid;name=toIdentifier(name).replace(/^_+/,"").replace(/[0-9]+$/g,"");let i=1;do{uid=this._generateUid(name,i),i++}while(this.hasLabel(uid)||this.hasBinding(uid)||this.hasGlobal(uid)||this.hasReference(uid));const program=this.getProgramParent();return program.references[uid]=!0,program.uids[uid]=!0,uid}_generateUid(name,i){let id=name;return i>1&&(id+=i),`_${id}`}generateUidBasedOnNode(node,defaultName){const parts=[];gatherNodeParts(node,parts);let id=parts.join("$");return id=id.replace(/^_/,"")||defaultName||"ref",this.generateUid(id.slice(0,20))}generateUidIdentifierBasedOnNode(node,defaultName){return identifier(this.generateUidBasedOnNode(node,defaultName))}isStatic(node){if(isThisExpression(node)||isSuper(node))return!0;if(isIdentifier(node)){const binding=this.getBinding(node.name);return binding?binding.constant:this.hasBinding(node.name)}return!1}maybeGenerateMemoised(node,dontPush){if(this.isStatic(node))return null;{const id=this.generateUidIdentifierBasedOnNode(node);return dontPush?id:(this.push({id}),cloneNode(id))}}checkBlockScopedCollisions(local,kind,name,id){if("param"===kind)return;if("local"===local.kind)return;if("let"===kind||"let"===local.kind||"const"===local.kind||"module"===local.kind||"param"===local.kind&&"const"===kind)throw this.hub.buildError(id,`Duplicate declaration "${name}"`,TypeError)}rename(oldName,newName,block){const binding=this.getBinding(oldName);if(binding)return newName=newName||this.generateUidIdentifier(oldName).name,new _renamer.default(binding,oldName,newName).rename(block)}_renameFromMap(map,oldName,newName,value){map[oldName]&&(map[newName]=value,map[oldName]=null)}dump(){const sep="-".repeat(60);console.log(sep);let scope=this;do{console.log("#",scope.block.type);for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];console.log(" -",name,{constant:binding.constant,references:binding.references,violations:binding.constantViolations.length,kind:binding.kind})}}while(scope=scope.parent);console.log(sep)}toArray(node,i,arrayLikeIsIterable){if(isIdentifier(node)){const binding=this.getBinding(node.name);if(null!=binding&&binding.constant&&binding.path.isGenericType("Array"))return node}if(isArrayExpression(node))return node;if(isIdentifier(node,{name:"arguments"}))return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"),identifier("prototype")),identifier("slice")),identifier("call")),[node]);let helperName;const args=[node];return!0===i?helperName="toConsumableArray":i?(args.push(numericLiteral(i)),helperName="slicedToArray"):helperName="toArray",arrayLikeIsIterable&&(args.unshift(this.hub.addHelper(helperName)),helperName="maybeArrayLike"),callExpression(this.hub.addHelper(helperName),args)}hasLabel(name){return!!this.getLabel(name)}getLabel(name){return this.labels.get(name)}registerLabel(path){this.labels.set(path.node.label.name,path)}registerDeclaration(path){if(path.isLabeledStatement())this.registerLabel(path);else if(path.isFunctionDeclaration())this.registerBinding("hoisted",path.get("id"),path);else if(path.isVariableDeclaration()){const declarations=path.get("declarations");for(const declar of declarations)this.registerBinding(path.node.kind,declar)}else if(path.isClassDeclaration()){if(path.node.declare)return;this.registerBinding("let",path)}else if(path.isImportDeclaration()){const specifiers=path.get("specifiers");for(const specifier of specifiers)this.registerBinding("module",specifier)}else if(path.isExportDeclaration()){const declar=path.get("declaration");(declar.isClassDeclaration()||declar.isFunctionDeclaration()||declar.isVariableDeclaration())&&this.registerDeclaration(declar)}else this.registerBinding("unknown",path)}buildUndefinedNode(){return unaryExpression("void",numericLiteral(0),!0)}registerConstantViolation(path){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids)){const binding=this.getBinding(name);binding&&binding.reassign(path)}}registerBinding(kind,path,bindingPath=path){if(!kind)throw new ReferenceError("no `kind`");if(path.isVariableDeclaration()){const declarators=path.get("declarations");for(const declar of declarators)this.registerBinding(kind,declar);return}const parent=this.getProgramParent(),ids=path.getOuterBindingIdentifiers(!0);for(const name of Object.keys(ids)){parent.references[name]=!0;for(const id of ids[name]){const local=this.getOwnBinding(name);if(local){if(local.identifier===id)continue;this.checkBlockScopedCollisions(local,kind,name,id)}local?this.registerConstantViolation(bindingPath):this.bindings[name]=new _binding.default({identifier:id,scope:this,path:bindingPath,kind})}}}addGlobal(node){this.globals[node.name]=node}hasUid(name){let scope=this;do{if(scope.uids[name])return!0}while(scope=scope.parent);return!1}hasGlobal(name){let scope=this;do{if(scope.globals[name])return!0}while(scope=scope.parent);return!1}hasReference(name){return!!this.getProgramParent().references[name]}isPure(node,constantsOnly){if(isIdentifier(node)){const binding=this.getBinding(node.name);return!!binding&&(!constantsOnly||binding.constant)}if(isClass(node))return!(node.superClass&&!this.isPure(node.superClass,constantsOnly))&&this.isPure(node.body,constantsOnly);if(isClassBody(node)){for(const method of node.body)if(!this.isPure(method,constantsOnly))return!1;return!0}if(isBinary(node))return this.isPure(node.left,constantsOnly)&&this.isPure(node.right,constantsOnly);if(isArrayExpression(node)){for(const elem of node.elements)if(!this.isPure(elem,constantsOnly))return!1;return!0}if(isObjectExpression(node)){for(const prop of node.properties)if(!this.isPure(prop,constantsOnly))return!1;return!0}if(isMethod(node))return!(node.computed&&!this.isPure(node.key,constantsOnly))&&("get"!==node.kind&&"set"!==node.kind);if(isProperty(node))return!(node.computed&&!this.isPure(node.key,constantsOnly))&&this.isPure(node.value,constantsOnly);if(isUnaryExpression(node))return this.isPure(node.argument,constantsOnly);if(isTaggedTemplateExpression(node))return matchesPattern(node.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(node.quasi,constantsOnly);if(isTemplateLiteral(node)){for(const expression of node.expressions)if(!this.isPure(expression,constantsOnly))return!1;return!0}return isPureish(node)}setData(key,val){return this.data[key]=val}getData(key){let scope=this;do{const data=scope.data[key];if(null!=data)return data}while(scope=scope.parent)}removeData(key){let scope=this;do{null!=scope.data[key]&&(scope.data[key]=null)}while(scope=scope.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const path=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const programParent=this.getProgramParent();if(programParent.crawling)return;const state={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==path.type&&collectorVisitor._exploded){for(const visit of collectorVisitor.enter)visit(path,state);const typeVisitors=collectorVisitor[path.type];if(typeVisitors)for(const visit of typeVisitors.enter)visit(path,state)}path.traverse(collectorVisitor,state),this.crawling=!1;for(const path of state.assignments){const ids=path.getBindingIdentifiers();for(const name of Object.keys(ids))path.scope.getBinding(name)||programParent.addGlobal(ids[name]);path.scope.registerConstantViolation(path)}for(const ref of state.references){const binding=ref.scope.getBinding(ref.node.name);binding?binding.reference(ref):programParent.addGlobal(ref.node)}for(const path of state.constantViolations)path.scope.registerConstantViolation(path)}push(opts){let path=this.path;path.isBlockStatement()||path.isProgram()||(path=this.getBlockParent().path),path.isSwitchStatement()&&(path=(this.getFunctionParent()||this.getProgramParent()).path),(path.isLoop()||path.isCatchClause()||path.isFunction())&&(path.ensureBlock(),path=path.get("body"));const unique=opts.unique,kind=opts.kind||"var",blockHoist=null==opts._blockHoist?2:opts._blockHoist,dataKey=`declaration:${kind}:${blockHoist}`;let declarPath=!unique&&path.getData(dataKey);if(!declarPath){const declar=variableDeclaration(kind,[]);declar._blockHoist=blockHoist,[declarPath]=path.unshiftContainer("body",[declar]),unique||path.setData(dataKey,declarPath)}const declarator=variableDeclarator(opts.id,opts.init);declarPath.node.declarations.push(declarator),this.registerBinding(kind,declarPath.get("declarations").pop())}getProgramParent(){let scope=this;do{if(scope.path.isProgram())return scope}while(scope=scope.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let scope=this;do{if(scope.path.isFunctionParent())return scope}while(scope=scope.parent);return null}getBlockParent(){let scope=this;do{if(scope.path.isBlockParent())return scope}while(scope=scope.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const ids=Object.create(null);let scope=this;do{for(const key of Object.keys(scope.bindings))key in ids==!1&&(ids[key]=scope.bindings[key]);scope=scope.parent}while(scope);return ids}getAllBindingsOfKind(...kinds){const ids=Object.create(null);for(const kind of kinds){let scope=this;do{for(const name of Object.keys(scope.bindings)){const binding=scope.bindings[name];binding.kind===kind&&(ids[name]=binding)}scope=scope.parent}while(scope)}return ids}bindingIdentifierEquals(name,node){return this.getBindingIdentifier(name)===node}getBinding(name){let previousPath,scope=this;do{const binding=scope.getOwnBinding(name);var _previousPath;if(binding){if(null==(_previousPath=previousPath)||!_previousPath.isPattern()||"param"===binding.kind||"local"===binding.kind)return binding}else if(!binding&&"arguments"===name&&scope.path.isFunction()&&!scope.path.isArrowFunctionExpression())break;previousPath=scope.path}while(scope=scope.parent)}getOwnBinding(name){return this.bindings[name]}getBindingIdentifier(name){var _this$getBinding;return null==(_this$getBinding=this.getBinding(name))?void 0:_this$getBinding.identifier}getOwnBindingIdentifier(name){const binding=this.bindings[name];return null==binding?void 0:binding.identifier}hasOwnBinding(name){return!!this.getOwnBinding(name)}hasBinding(name,noGlobals){return!!name&&(!!this.hasOwnBinding(name)||(!!this.parentHasBinding(name,noGlobals)||(!!this.hasUid(name)||(!(noGlobals||!Scope.globals.includes(name))||!(noGlobals||!Scope.contextVariables.includes(name))))))}parentHasBinding(name,noGlobals){var _this$parent;return null==(_this$parent=this.parent)?void 0:_this$parent.hasBinding(name,noGlobals)}moveBindingTo(name,scope){const info=this.getBinding(name);info&&(info.scope.removeOwnBinding(name),info.scope=scope,scope.bindings[name]=info)}removeOwnBinding(name){delete this.bindings[name]}removeBinding(name){var _this$getBinding2;null==(_this$getBinding2=this.getBinding(name))||_this$getBinding2.scope.removeOwnBinding(name);let scope=this;do{scope.uids[name]&&(scope.uids[name]=!1)}while(scope=scope.parent)}}exports.default=Scope,Scope.globals=Object.keys(_globals.builtin),Scope.contextVariables=["arguments","undefined","Infinity","NaN"]},"./node_modules/@babel/traverse/lib/scope/lib/renamer.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;__webpack_require__("./node_modules/@babel/traverse/lib/scope/binding.js");var _helperSplitExportDeclaration=__webpack_require__("./node_modules/@babel/helper-split-export-declaration/lib/index.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS,assignmentExpression,identifier,toExpression,variableDeclaration,variableDeclarator}=_t,renameVisitor={ReferencedIdentifier({node},state){node.name===state.oldName&&(node.name=state.newName)},Scope(path,state){path.scope.bindingIdentifierEquals(state.oldName,state.binding.identifier)||function(path){if(!path.isMethod()||!path.node.computed)return void path.skip();const keys=VISITOR_KEYS[path.type];for(const key of keys)"key"!==key&&path.skipKey(key)}(path)},"AssignmentExpression|Declaration|VariableDeclarator"(path,state){if(path.isVariableDeclaration())return;const ids=path.getOuterBindingIdentifiers();for(const name in ids)name===state.oldName&&(ids[name].name=state.newName)}};exports.default=class{constructor(binding,oldName,newName){this.newName=newName,this.oldName=oldName,this.binding=binding}maybeConvertFromExportDeclaration(parentDeclar){const maybeExportDeclar=parentDeclar.parentPath;maybeExportDeclar.isExportDeclaration()&&(maybeExportDeclar.isExportDefaultDeclaration()&&!maybeExportDeclar.get("declaration").node.id||(0,_helperSplitExportDeclaration.default)(maybeExportDeclar))}maybeConvertFromClassFunctionDeclaration(path){}maybeConvertFromClassFunctionExpression(path){}rename(block){const{binding,oldName,newName}=this,{scope,path}=binding,parentDeclar=path.find((path=>path.isDeclaration()||path.isFunctionExpression()||path.isClassExpression()));if(parentDeclar){parentDeclar.getOuterBindingIdentifiers()[oldName]===binding.identifier&&this.maybeConvertFromExportDeclaration(parentDeclar)}const blockToTraverse=block||scope.block;"SwitchStatement"===(null==blockToTraverse?void 0:blockToTraverse.type)?blockToTraverse.cases.forEach((c=>{scope.traverse(c,renameVisitor,this)})):scope.traverse(blockToTraverse,renameVisitor,this),block||(scope.removeOwnBinding(oldName),scope.bindings[newName]=binding,this.binding.identifier.name=newName),parentDeclar&&(this.maybeConvertFromClassFunctionDeclaration(parentDeclar),this.maybeConvertFromClassFunctionExpression(parentDeclar))}}},"./node_modules/@babel/traverse/lib/traverse-node.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.traverseNode=function(node,opts,scope,state,path,skipKeys){const keys=VISITOR_KEYS[node.type];if(!keys)return!1;const context=new _context.default(scope,opts,state,path);for(const key of keys)if((!skipKeys||!skipKeys[key])&&context.visit(node,key))return!0;return!1};var _context=__webpack_require__("./node_modules/@babel/traverse/lib/context.js"),_t=__webpack_require__("./node_modules/@babel/types/lib/index.js");const{VISITOR_KEYS}=_t},"./node_modules/@babel/traverse/lib/visitors.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.explode=explode,exports.merge=function(visitors,states=[],wrapper){const rootVisitor={};for(let i=0;ifn.toString()),newFn})),newVisitor[key]=fns)}return newVisitor}function ensureCallbackArrays(obj){obj.enter&&!Array.isArray(obj.enter)&&(obj.enter=[obj.enter]),obj.exit&&!Array.isArray(obj.exit)&&(obj.exit=[obj.exit])}function wrapCheck(wrapper,fn){const newFn=function(path){if(wrapper.checkPath(path))return fn.apply(this,arguments)};return newFn.toString=()=>fn.toString(),newFn}function shouldIgnoreKey(key){return"_"===key[0]||("enter"===key||"exit"===key||"shouldSkip"===key||("denylist"===key||"noScope"===key||"skipKeys"===key||"blacklist"===key))}function mergePair(dest,src){for(const key of Object.keys(src))dest[key]=[].concat(dest[key]||[],src[key])}},"./node_modules/@babel/traverse/node_modules/globals/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/@babel/traverse/node_modules/globals/globals.json")},"./node_modules/@babel/types/lib/asserts/assertNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if(!(0,_isNode.default)(node)){var _node$type;const type=null!=(_node$type=null==node?void 0:node.type)?_node$type:JSON.stringify(node);throw new TypeError(`Not a valid node of type "${type}"`)}};var _isNode=__webpack_require__("./node_modules/@babel/types/lib/validators/isNode.js")},"./node_modules/@babel/types/lib/asserts/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertAnyTypeAnnotation=function(node,opts){assert("AnyTypeAnnotation",node,opts)},exports.assertArgumentPlaceholder=function(node,opts){assert("ArgumentPlaceholder",node,opts)},exports.assertArrayExpression=function(node,opts){assert("ArrayExpression",node,opts)},exports.assertArrayPattern=function(node,opts){assert("ArrayPattern",node,opts)},exports.assertArrayTypeAnnotation=function(node,opts){assert("ArrayTypeAnnotation",node,opts)},exports.assertArrowFunctionExpression=function(node,opts){assert("ArrowFunctionExpression",node,opts)},exports.assertAssignmentExpression=function(node,opts){assert("AssignmentExpression",node,opts)},exports.assertAssignmentPattern=function(node,opts){assert("AssignmentPattern",node,opts)},exports.assertAwaitExpression=function(node,opts){assert("AwaitExpression",node,opts)},exports.assertBigIntLiteral=function(node,opts){assert("BigIntLiteral",node,opts)},exports.assertBinary=function(node,opts){assert("Binary",node,opts)},exports.assertBinaryExpression=function(node,opts){assert("BinaryExpression",node,opts)},exports.assertBindExpression=function(node,opts){assert("BindExpression",node,opts)},exports.assertBlock=function(node,opts){assert("Block",node,opts)},exports.assertBlockParent=function(node,opts){assert("BlockParent",node,opts)},exports.assertBlockStatement=function(node,opts){assert("BlockStatement",node,opts)},exports.assertBooleanLiteral=function(node,opts){assert("BooleanLiteral",node,opts)},exports.assertBooleanLiteralTypeAnnotation=function(node,opts){assert("BooleanLiteralTypeAnnotation",node,opts)},exports.assertBooleanTypeAnnotation=function(node,opts){assert("BooleanTypeAnnotation",node,opts)},exports.assertBreakStatement=function(node,opts){assert("BreakStatement",node,opts)},exports.assertCallExpression=function(node,opts){assert("CallExpression",node,opts)},exports.assertCatchClause=function(node,opts){assert("CatchClause",node,opts)},exports.assertClass=function(node,opts){assert("Class",node,opts)},exports.assertClassBody=function(node,opts){assert("ClassBody",node,opts)},exports.assertClassDeclaration=function(node,opts){assert("ClassDeclaration",node,opts)},exports.assertClassExpression=function(node,opts){assert("ClassExpression",node,opts)},exports.assertClassImplements=function(node,opts){assert("ClassImplements",node,opts)},exports.assertClassMethod=function(node,opts){assert("ClassMethod",node,opts)},exports.assertClassPrivateMethod=function(node,opts){assert("ClassPrivateMethod",node,opts)},exports.assertClassPrivateProperty=function(node,opts){assert("ClassPrivateProperty",node,opts)},exports.assertClassProperty=function(node,opts){assert("ClassProperty",node,opts)},exports.assertCompletionStatement=function(node,opts){assert("CompletionStatement",node,opts)},exports.assertConditional=function(node,opts){assert("Conditional",node,opts)},exports.assertConditionalExpression=function(node,opts){assert("ConditionalExpression",node,opts)},exports.assertContinueStatement=function(node,opts){assert("ContinueStatement",node,opts)},exports.assertDebuggerStatement=function(node,opts){assert("DebuggerStatement",node,opts)},exports.assertDecimalLiteral=function(node,opts){assert("DecimalLiteral",node,opts)},exports.assertDeclaration=function(node,opts){assert("Declaration",node,opts)},exports.assertDeclareClass=function(node,opts){assert("DeclareClass",node,opts)},exports.assertDeclareExportAllDeclaration=function(node,opts){assert("DeclareExportAllDeclaration",node,opts)},exports.assertDeclareExportDeclaration=function(node,opts){assert("DeclareExportDeclaration",node,opts)},exports.assertDeclareFunction=function(node,opts){assert("DeclareFunction",node,opts)},exports.assertDeclareInterface=function(node,opts){assert("DeclareInterface",node,opts)},exports.assertDeclareModule=function(node,opts){assert("DeclareModule",node,opts)},exports.assertDeclareModuleExports=function(node,opts){assert("DeclareModuleExports",node,opts)},exports.assertDeclareOpaqueType=function(node,opts){assert("DeclareOpaqueType",node,opts)},exports.assertDeclareTypeAlias=function(node,opts){assert("DeclareTypeAlias",node,opts)},exports.assertDeclareVariable=function(node,opts){assert("DeclareVariable",node,opts)},exports.assertDeclaredPredicate=function(node,opts){assert("DeclaredPredicate",node,opts)},exports.assertDecorator=function(node,opts){assert("Decorator",node,opts)},exports.assertDirective=function(node,opts){assert("Directive",node,opts)},exports.assertDirectiveLiteral=function(node,opts){assert("DirectiveLiteral",node,opts)},exports.assertDoExpression=function(node,opts){assert("DoExpression",node,opts)},exports.assertDoWhileStatement=function(node,opts){assert("DoWhileStatement",node,opts)},exports.assertEmptyStatement=function(node,opts){assert("EmptyStatement",node,opts)},exports.assertEmptyTypeAnnotation=function(node,opts){assert("EmptyTypeAnnotation",node,opts)},exports.assertEnumBody=function(node,opts){assert("EnumBody",node,opts)},exports.assertEnumBooleanBody=function(node,opts){assert("EnumBooleanBody",node,opts)},exports.assertEnumBooleanMember=function(node,opts){assert("EnumBooleanMember",node,opts)},exports.assertEnumDeclaration=function(node,opts){assert("EnumDeclaration",node,opts)},exports.assertEnumDefaultedMember=function(node,opts){assert("EnumDefaultedMember",node,opts)},exports.assertEnumMember=function(node,opts){assert("EnumMember",node,opts)},exports.assertEnumNumberBody=function(node,opts){assert("EnumNumberBody",node,opts)},exports.assertEnumNumberMember=function(node,opts){assert("EnumNumberMember",node,opts)},exports.assertEnumStringBody=function(node,opts){assert("EnumStringBody",node,opts)},exports.assertEnumStringMember=function(node,opts){assert("EnumStringMember",node,opts)},exports.assertEnumSymbolBody=function(node,opts){assert("EnumSymbolBody",node,opts)},exports.assertExistsTypeAnnotation=function(node,opts){assert("ExistsTypeAnnotation",node,opts)},exports.assertExportAllDeclaration=function(node,opts){assert("ExportAllDeclaration",node,opts)},exports.assertExportDeclaration=function(node,opts){assert("ExportDeclaration",node,opts)},exports.assertExportDefaultDeclaration=function(node,opts){assert("ExportDefaultDeclaration",node,opts)},exports.assertExportDefaultSpecifier=function(node,opts){assert("ExportDefaultSpecifier",node,opts)},exports.assertExportNamedDeclaration=function(node,opts){assert("ExportNamedDeclaration",node,opts)},exports.assertExportNamespaceSpecifier=function(node,opts){assert("ExportNamespaceSpecifier",node,opts)},exports.assertExportSpecifier=function(node,opts){assert("ExportSpecifier",node,opts)},exports.assertExpression=function(node,opts){assert("Expression",node,opts)},exports.assertExpressionStatement=function(node,opts){assert("ExpressionStatement",node,opts)},exports.assertExpressionWrapper=function(node,opts){assert("ExpressionWrapper",node,opts)},exports.assertFile=function(node,opts){assert("File",node,opts)},exports.assertFlow=function(node,opts){assert("Flow",node,opts)},exports.assertFlowBaseAnnotation=function(node,opts){assert("FlowBaseAnnotation",node,opts)},exports.assertFlowDeclaration=function(node,opts){assert("FlowDeclaration",node,opts)},exports.assertFlowPredicate=function(node,opts){assert("FlowPredicate",node,opts)},exports.assertFlowType=function(node,opts){assert("FlowType",node,opts)},exports.assertFor=function(node,opts){assert("For",node,opts)},exports.assertForInStatement=function(node,opts){assert("ForInStatement",node,opts)},exports.assertForOfStatement=function(node,opts){assert("ForOfStatement",node,opts)},exports.assertForStatement=function(node,opts){assert("ForStatement",node,opts)},exports.assertForXStatement=function(node,opts){assert("ForXStatement",node,opts)},exports.assertFunction=function(node,opts){assert("Function",node,opts)},exports.assertFunctionDeclaration=function(node,opts){assert("FunctionDeclaration",node,opts)},exports.assertFunctionExpression=function(node,opts){assert("FunctionExpression",node,opts)},exports.assertFunctionParent=function(node,opts){assert("FunctionParent",node,opts)},exports.assertFunctionTypeAnnotation=function(node,opts){assert("FunctionTypeAnnotation",node,opts)},exports.assertFunctionTypeParam=function(node,opts){assert("FunctionTypeParam",node,opts)},exports.assertGenericTypeAnnotation=function(node,opts){assert("GenericTypeAnnotation",node,opts)},exports.assertIdentifier=function(node,opts){assert("Identifier",node,opts)},exports.assertIfStatement=function(node,opts){assert("IfStatement",node,opts)},exports.assertImmutable=function(node,opts){assert("Immutable",node,opts)},exports.assertImport=function(node,opts){assert("Import",node,opts)},exports.assertImportAttribute=function(node,opts){assert("ImportAttribute",node,opts)},exports.assertImportDeclaration=function(node,opts){assert("ImportDeclaration",node,opts)},exports.assertImportDefaultSpecifier=function(node,opts){assert("ImportDefaultSpecifier",node,opts)},exports.assertImportNamespaceSpecifier=function(node,opts){assert("ImportNamespaceSpecifier",node,opts)},exports.assertImportSpecifier=function(node,opts){assert("ImportSpecifier",node,opts)},exports.assertIndexedAccessType=function(node,opts){assert("IndexedAccessType",node,opts)},exports.assertInferredPredicate=function(node,opts){assert("InferredPredicate",node,opts)},exports.assertInterfaceDeclaration=function(node,opts){assert("InterfaceDeclaration",node,opts)},exports.assertInterfaceExtends=function(node,opts){assert("InterfaceExtends",node,opts)},exports.assertInterfaceTypeAnnotation=function(node,opts){assert("InterfaceTypeAnnotation",node,opts)},exports.assertInterpreterDirective=function(node,opts){assert("InterpreterDirective",node,opts)},exports.assertIntersectionTypeAnnotation=function(node,opts){assert("IntersectionTypeAnnotation",node,opts)},exports.assertJSX=function(node,opts){assert("JSX",node,opts)},exports.assertJSXAttribute=function(node,opts){assert("JSXAttribute",node,opts)},exports.assertJSXClosingElement=function(node,opts){assert("JSXClosingElement",node,opts)},exports.assertJSXClosingFragment=function(node,opts){assert("JSXClosingFragment",node,opts)},exports.assertJSXElement=function(node,opts){assert("JSXElement",node,opts)},exports.assertJSXEmptyExpression=function(node,opts){assert("JSXEmptyExpression",node,opts)},exports.assertJSXExpressionContainer=function(node,opts){assert("JSXExpressionContainer",node,opts)},exports.assertJSXFragment=function(node,opts){assert("JSXFragment",node,opts)},exports.assertJSXIdentifier=function(node,opts){assert("JSXIdentifier",node,opts)},exports.assertJSXMemberExpression=function(node,opts){assert("JSXMemberExpression",node,opts)},exports.assertJSXNamespacedName=function(node,opts){assert("JSXNamespacedName",node,opts)},exports.assertJSXOpeningElement=function(node,opts){assert("JSXOpeningElement",node,opts)},exports.assertJSXOpeningFragment=function(node,opts){assert("JSXOpeningFragment",node,opts)},exports.assertJSXSpreadAttribute=function(node,opts){assert("JSXSpreadAttribute",node,opts)},exports.assertJSXSpreadChild=function(node,opts){assert("JSXSpreadChild",node,opts)},exports.assertJSXText=function(node,opts){assert("JSXText",node,opts)},exports.assertLVal=function(node,opts){assert("LVal",node,opts)},exports.assertLabeledStatement=function(node,opts){assert("LabeledStatement",node,opts)},exports.assertLiteral=function(node,opts){assert("Literal",node,opts)},exports.assertLogicalExpression=function(node,opts){assert("LogicalExpression",node,opts)},exports.assertLoop=function(node,opts){assert("Loop",node,opts)},exports.assertMemberExpression=function(node,opts){assert("MemberExpression",node,opts)},exports.assertMetaProperty=function(node,opts){assert("MetaProperty",node,opts)},exports.assertMethod=function(node,opts){assert("Method",node,opts)},exports.assertMiscellaneous=function(node,opts){assert("Miscellaneous",node,opts)},exports.assertMixedTypeAnnotation=function(node,opts){assert("MixedTypeAnnotation",node,opts)},exports.assertModuleDeclaration=function(node,opts){assert("ModuleDeclaration",node,opts)},exports.assertModuleExpression=function(node,opts){assert("ModuleExpression",node,opts)},exports.assertModuleSpecifier=function(node,opts){assert("ModuleSpecifier",node,opts)},exports.assertNewExpression=function(node,opts){assert("NewExpression",node,opts)},exports.assertNoop=function(node,opts){assert("Noop",node,opts)},exports.assertNullLiteral=function(node,opts){assert("NullLiteral",node,opts)},exports.assertNullLiteralTypeAnnotation=function(node,opts){assert("NullLiteralTypeAnnotation",node,opts)},exports.assertNullableTypeAnnotation=function(node,opts){assert("NullableTypeAnnotation",node,opts)},exports.assertNumberLiteral=function(node,opts){console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),assert("NumberLiteral",node,opts)},exports.assertNumberLiteralTypeAnnotation=function(node,opts){assert("NumberLiteralTypeAnnotation",node,opts)},exports.assertNumberTypeAnnotation=function(node,opts){assert("NumberTypeAnnotation",node,opts)},exports.assertNumericLiteral=function(node,opts){assert("NumericLiteral",node,opts)},exports.assertObjectExpression=function(node,opts){assert("ObjectExpression",node,opts)},exports.assertObjectMember=function(node,opts){assert("ObjectMember",node,opts)},exports.assertObjectMethod=function(node,opts){assert("ObjectMethod",node,opts)},exports.assertObjectPattern=function(node,opts){assert("ObjectPattern",node,opts)},exports.assertObjectProperty=function(node,opts){assert("ObjectProperty",node,opts)},exports.assertObjectTypeAnnotation=function(node,opts){assert("ObjectTypeAnnotation",node,opts)},exports.assertObjectTypeCallProperty=function(node,opts){assert("ObjectTypeCallProperty",node,opts)},exports.assertObjectTypeIndexer=function(node,opts){assert("ObjectTypeIndexer",node,opts)},exports.assertObjectTypeInternalSlot=function(node,opts){assert("ObjectTypeInternalSlot",node,opts)},exports.assertObjectTypeProperty=function(node,opts){assert("ObjectTypeProperty",node,opts)},exports.assertObjectTypeSpreadProperty=function(node,opts){assert("ObjectTypeSpreadProperty",node,opts)},exports.assertOpaqueType=function(node,opts){assert("OpaqueType",node,opts)},exports.assertOptionalCallExpression=function(node,opts){assert("OptionalCallExpression",node,opts)},exports.assertOptionalIndexedAccessType=function(node,opts){assert("OptionalIndexedAccessType",node,opts)},exports.assertOptionalMemberExpression=function(node,opts){assert("OptionalMemberExpression",node,opts)},exports.assertParenthesizedExpression=function(node,opts){assert("ParenthesizedExpression",node,opts)},exports.assertPattern=function(node,opts){assert("Pattern",node,opts)},exports.assertPatternLike=function(node,opts){assert("PatternLike",node,opts)},exports.assertPipelineBareFunction=function(node,opts){assert("PipelineBareFunction",node,opts)},exports.assertPipelinePrimaryTopicReference=function(node,opts){assert("PipelinePrimaryTopicReference",node,opts)},exports.assertPipelineTopicExpression=function(node,opts){assert("PipelineTopicExpression",node,opts)},exports.assertPlaceholder=function(node,opts){assert("Placeholder",node,opts)},exports.assertPrivate=function(node,opts){assert("Private",node,opts)},exports.assertPrivateName=function(node,opts){assert("PrivateName",node,opts)},exports.assertProgram=function(node,opts){assert("Program",node,opts)},exports.assertProperty=function(node,opts){assert("Property",node,opts)},exports.assertPureish=function(node,opts){assert("Pureish",node,opts)},exports.assertQualifiedTypeIdentifier=function(node,opts){assert("QualifiedTypeIdentifier",node,opts)},exports.assertRecordExpression=function(node,opts){assert("RecordExpression",node,opts)},exports.assertRegExpLiteral=function(node,opts){assert("RegExpLiteral",node,opts)},exports.assertRegexLiteral=function(node,opts){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),assert("RegexLiteral",node,opts)},exports.assertRestElement=function(node,opts){assert("RestElement",node,opts)},exports.assertRestProperty=function(node,opts){console.trace("The node type RestProperty has been renamed to RestElement"),assert("RestProperty",node,opts)},exports.assertReturnStatement=function(node,opts){assert("ReturnStatement",node,opts)},exports.assertScopable=function(node,opts){assert("Scopable",node,opts)},exports.assertSequenceExpression=function(node,opts){assert("SequenceExpression",node,opts)},exports.assertSpreadElement=function(node,opts){assert("SpreadElement",node,opts)},exports.assertSpreadProperty=function(node,opts){console.trace("The node type SpreadProperty has been renamed to SpreadElement"),assert("SpreadProperty",node,opts)},exports.assertStandardized=function(node,opts){assert("Standardized",node,opts)},exports.assertStatement=function(node,opts){assert("Statement",node,opts)},exports.assertStaticBlock=function(node,opts){assert("StaticBlock",node,opts)},exports.assertStringLiteral=function(node,opts){assert("StringLiteral",node,opts)},exports.assertStringLiteralTypeAnnotation=function(node,opts){assert("StringLiteralTypeAnnotation",node,opts)},exports.assertStringTypeAnnotation=function(node,opts){assert("StringTypeAnnotation",node,opts)},exports.assertSuper=function(node,opts){assert("Super",node,opts)},exports.assertSwitchCase=function(node,opts){assert("SwitchCase",node,opts)},exports.assertSwitchStatement=function(node,opts){assert("SwitchStatement",node,opts)},exports.assertSymbolTypeAnnotation=function(node,opts){assert("SymbolTypeAnnotation",node,opts)},exports.assertTSAnyKeyword=function(node,opts){assert("TSAnyKeyword",node,opts)},exports.assertTSArrayType=function(node,opts){assert("TSArrayType",node,opts)},exports.assertTSAsExpression=function(node,opts){assert("TSAsExpression",node,opts)},exports.assertTSBaseType=function(node,opts){assert("TSBaseType",node,opts)},exports.assertTSBigIntKeyword=function(node,opts){assert("TSBigIntKeyword",node,opts)},exports.assertTSBooleanKeyword=function(node,opts){assert("TSBooleanKeyword",node,opts)},exports.assertTSCallSignatureDeclaration=function(node,opts){assert("TSCallSignatureDeclaration",node,opts)},exports.assertTSConditionalType=function(node,opts){assert("TSConditionalType",node,opts)},exports.assertTSConstructSignatureDeclaration=function(node,opts){assert("TSConstructSignatureDeclaration",node,opts)},exports.assertTSConstructorType=function(node,opts){assert("TSConstructorType",node,opts)},exports.assertTSDeclareFunction=function(node,opts){assert("TSDeclareFunction",node,opts)},exports.assertTSDeclareMethod=function(node,opts){assert("TSDeclareMethod",node,opts)},exports.assertTSEntityName=function(node,opts){assert("TSEntityName",node,opts)},exports.assertTSEnumDeclaration=function(node,opts){assert("TSEnumDeclaration",node,opts)},exports.assertTSEnumMember=function(node,opts){assert("TSEnumMember",node,opts)},exports.assertTSExportAssignment=function(node,opts){assert("TSExportAssignment",node,opts)},exports.assertTSExpressionWithTypeArguments=function(node,opts){assert("TSExpressionWithTypeArguments",node,opts)},exports.assertTSExternalModuleReference=function(node,opts){assert("TSExternalModuleReference",node,opts)},exports.assertTSFunctionType=function(node,opts){assert("TSFunctionType",node,opts)},exports.assertTSImportEqualsDeclaration=function(node,opts){assert("TSImportEqualsDeclaration",node,opts)},exports.assertTSImportType=function(node,opts){assert("TSImportType",node,opts)},exports.assertTSIndexSignature=function(node,opts){assert("TSIndexSignature",node,opts)},exports.assertTSIndexedAccessType=function(node,opts){assert("TSIndexedAccessType",node,opts)},exports.assertTSInferType=function(node,opts){assert("TSInferType",node,opts)},exports.assertTSInterfaceBody=function(node,opts){assert("TSInterfaceBody",node,opts)},exports.assertTSInterfaceDeclaration=function(node,opts){assert("TSInterfaceDeclaration",node,opts)},exports.assertTSIntersectionType=function(node,opts){assert("TSIntersectionType",node,opts)},exports.assertTSIntrinsicKeyword=function(node,opts){assert("TSIntrinsicKeyword",node,opts)},exports.assertTSLiteralType=function(node,opts){assert("TSLiteralType",node,opts)},exports.assertTSMappedType=function(node,opts){assert("TSMappedType",node,opts)},exports.assertTSMethodSignature=function(node,opts){assert("TSMethodSignature",node,opts)},exports.assertTSModuleBlock=function(node,opts){assert("TSModuleBlock",node,opts)},exports.assertTSModuleDeclaration=function(node,opts){assert("TSModuleDeclaration",node,opts)},exports.assertTSNamedTupleMember=function(node,opts){assert("TSNamedTupleMember",node,opts)},exports.assertTSNamespaceExportDeclaration=function(node,opts){assert("TSNamespaceExportDeclaration",node,opts)},exports.assertTSNeverKeyword=function(node,opts){assert("TSNeverKeyword",node,opts)},exports.assertTSNonNullExpression=function(node,opts){assert("TSNonNullExpression",node,opts)},exports.assertTSNullKeyword=function(node,opts){assert("TSNullKeyword",node,opts)},exports.assertTSNumberKeyword=function(node,opts){assert("TSNumberKeyword",node,opts)},exports.assertTSObjectKeyword=function(node,opts){assert("TSObjectKeyword",node,opts)},exports.assertTSOptionalType=function(node,opts){assert("TSOptionalType",node,opts)},exports.assertTSParameterProperty=function(node,opts){assert("TSParameterProperty",node,opts)},exports.assertTSParenthesizedType=function(node,opts){assert("TSParenthesizedType",node,opts)},exports.assertTSPropertySignature=function(node,opts){assert("TSPropertySignature",node,opts)},exports.assertTSQualifiedName=function(node,opts){assert("TSQualifiedName",node,opts)},exports.assertTSRestType=function(node,opts){assert("TSRestType",node,opts)},exports.assertTSStringKeyword=function(node,opts){assert("TSStringKeyword",node,opts)},exports.assertTSSymbolKeyword=function(node,opts){assert("TSSymbolKeyword",node,opts)},exports.assertTSThisType=function(node,opts){assert("TSThisType",node,opts)},exports.assertTSTupleType=function(node,opts){assert("TSTupleType",node,opts)},exports.assertTSType=function(node,opts){assert("TSType",node,opts)},exports.assertTSTypeAliasDeclaration=function(node,opts){assert("TSTypeAliasDeclaration",node,opts)},exports.assertTSTypeAnnotation=function(node,opts){assert("TSTypeAnnotation",node,opts)},exports.assertTSTypeAssertion=function(node,opts){assert("TSTypeAssertion",node,opts)},exports.assertTSTypeElement=function(node,opts){assert("TSTypeElement",node,opts)},exports.assertTSTypeLiteral=function(node,opts){assert("TSTypeLiteral",node,opts)},exports.assertTSTypeOperator=function(node,opts){assert("TSTypeOperator",node,opts)},exports.assertTSTypeParameter=function(node,opts){assert("TSTypeParameter",node,opts)},exports.assertTSTypeParameterDeclaration=function(node,opts){assert("TSTypeParameterDeclaration",node,opts)},exports.assertTSTypeParameterInstantiation=function(node,opts){assert("TSTypeParameterInstantiation",node,opts)},exports.assertTSTypePredicate=function(node,opts){assert("TSTypePredicate",node,opts)},exports.assertTSTypeQuery=function(node,opts){assert("TSTypeQuery",node,opts)},exports.assertTSTypeReference=function(node,opts){assert("TSTypeReference",node,opts)},exports.assertTSUndefinedKeyword=function(node,opts){assert("TSUndefinedKeyword",node,opts)},exports.assertTSUnionType=function(node,opts){assert("TSUnionType",node,opts)},exports.assertTSUnknownKeyword=function(node,opts){assert("TSUnknownKeyword",node,opts)},exports.assertTSVoidKeyword=function(node,opts){assert("TSVoidKeyword",node,opts)},exports.assertTaggedTemplateExpression=function(node,opts){assert("TaggedTemplateExpression",node,opts)},exports.assertTemplateElement=function(node,opts){assert("TemplateElement",node,opts)},exports.assertTemplateLiteral=function(node,opts){assert("TemplateLiteral",node,opts)},exports.assertTerminatorless=function(node,opts){assert("Terminatorless",node,opts)},exports.assertThisExpression=function(node,opts){assert("ThisExpression",node,opts)},exports.assertThisTypeAnnotation=function(node,opts){assert("ThisTypeAnnotation",node,opts)},exports.assertThrowStatement=function(node,opts){assert("ThrowStatement",node,opts)},exports.assertTopicReference=function(node,opts){assert("TopicReference",node,opts)},exports.assertTryStatement=function(node,opts){assert("TryStatement",node,opts)},exports.assertTupleExpression=function(node,opts){assert("TupleExpression",node,opts)},exports.assertTupleTypeAnnotation=function(node,opts){assert("TupleTypeAnnotation",node,opts)},exports.assertTypeAlias=function(node,opts){assert("TypeAlias",node,opts)},exports.assertTypeAnnotation=function(node,opts){assert("TypeAnnotation",node,opts)},exports.assertTypeCastExpression=function(node,opts){assert("TypeCastExpression",node,opts)},exports.assertTypeParameter=function(node,opts){assert("TypeParameter",node,opts)},exports.assertTypeParameterDeclaration=function(node,opts){assert("TypeParameterDeclaration",node,opts)},exports.assertTypeParameterInstantiation=function(node,opts){assert("TypeParameterInstantiation",node,opts)},exports.assertTypeScript=function(node,opts){assert("TypeScript",node,opts)},exports.assertTypeofTypeAnnotation=function(node,opts){assert("TypeofTypeAnnotation",node,opts)},exports.assertUnaryExpression=function(node,opts){assert("UnaryExpression",node,opts)},exports.assertUnaryLike=function(node,opts){assert("UnaryLike",node,opts)},exports.assertUnionTypeAnnotation=function(node,opts){assert("UnionTypeAnnotation",node,opts)},exports.assertUpdateExpression=function(node,opts){assert("UpdateExpression",node,opts)},exports.assertUserWhitespacable=function(node,opts){assert("UserWhitespacable",node,opts)},exports.assertV8IntrinsicIdentifier=function(node,opts){assert("V8IntrinsicIdentifier",node,opts)},exports.assertVariableDeclaration=function(node,opts){assert("VariableDeclaration",node,opts)},exports.assertVariableDeclarator=function(node,opts){assert("VariableDeclarator",node,opts)},exports.assertVariance=function(node,opts){assert("Variance",node,opts)},exports.assertVoidTypeAnnotation=function(node,opts){assert("VoidTypeAnnotation",node,opts)},exports.assertWhile=function(node,opts){assert("While",node,opts)},exports.assertWhileStatement=function(node,opts){assert("WhileStatement",node,opts)},exports.assertWithStatement=function(node,opts){assert("WithStatement",node,opts)},exports.assertYieldExpression=function(node,opts){assert("YieldExpression",node,opts)};var _is=__webpack_require__("./node_modules/@babel/types/lib/validators/is.js");function assert(type,node,opts){if(!(0,_is.default)(type,node,opts))throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, but instead got "${node.type}".`)}},"./node_modules/@babel/types/lib/ast-types/generated/index.js":()=>{},"./node_modules/@babel/types/lib/builders/builder.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){const type=this,keys=_definitions.BUILDER_KEYS[type],countArgs=arguments.length;if(countArgs>keys.length)throw new Error(`${type}: Too many arguments passed. Received ${countArgs} but can receive no more than ${keys.length}`);const node={type};for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(types){const flattened=(0,_removeTypeDuplicates.default)(types);return 1===flattened.length?flattened[0]:(0,_generated.unionTypeAnnotation)(flattened)};var _generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js")},"./node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_default=function(type){switch(type){case"string":return(0,_generated.stringTypeAnnotation)();case"number":return(0,_generated.numberTypeAnnotation)();case"undefined":return(0,_generated.voidTypeAnnotation)();case"boolean":return(0,_generated.booleanTypeAnnotation)();case"function":return(0,_generated.genericTypeAnnotation)((0,_generated.identifier)("Function"));case"object":return(0,_generated.genericTypeAnnotation)((0,_generated.identifier)("Object"));case"symbol":return(0,_generated.genericTypeAnnotation)((0,_generated.identifier)("Symbol"));case"bigint":return(0,_generated.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+type)};exports.default=_default},"./node_modules/@babel/types/lib/builders/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.anyTypeAnnotation=function(){return _builder.default.apply("AnyTypeAnnotation",arguments)},exports.argumentPlaceholder=function(){return _builder.default.apply("ArgumentPlaceholder",arguments)},exports.arrayExpression=function(elements){return _builder.default.apply("ArrayExpression",arguments)},exports.arrayPattern=function(elements){return _builder.default.apply("ArrayPattern",arguments)},exports.arrayTypeAnnotation=function(elementType){return _builder.default.apply("ArrayTypeAnnotation",arguments)},exports.arrowFunctionExpression=function(params,body,async){return _builder.default.apply("ArrowFunctionExpression",arguments)},exports.assignmentExpression=function(operator,left,right){return _builder.default.apply("AssignmentExpression",arguments)},exports.assignmentPattern=function(left,right){return _builder.default.apply("AssignmentPattern",arguments)},exports.awaitExpression=function(argument){return _builder.default.apply("AwaitExpression",arguments)},exports.bigIntLiteral=function(value){return _builder.default.apply("BigIntLiteral",arguments)},exports.binaryExpression=function(operator,left,right){return _builder.default.apply("BinaryExpression",arguments)},exports.bindExpression=function(object,callee){return _builder.default.apply("BindExpression",arguments)},exports.blockStatement=function(body,directives){return _builder.default.apply("BlockStatement",arguments)},exports.booleanLiteral=function(value){return _builder.default.apply("BooleanLiteral",arguments)},exports.booleanLiteralTypeAnnotation=function(value){return _builder.default.apply("BooleanLiteralTypeAnnotation",arguments)},exports.booleanTypeAnnotation=function(){return _builder.default.apply("BooleanTypeAnnotation",arguments)},exports.breakStatement=function(label){return _builder.default.apply("BreakStatement",arguments)},exports.callExpression=function(callee,_arguments){return _builder.default.apply("CallExpression",arguments)},exports.catchClause=function(param,body){return _builder.default.apply("CatchClause",arguments)},exports.classBody=function(body){return _builder.default.apply("ClassBody",arguments)},exports.classDeclaration=function(id,superClass,body,decorators){return _builder.default.apply("ClassDeclaration",arguments)},exports.classExpression=function(id,superClass,body,decorators){return _builder.default.apply("ClassExpression",arguments)},exports.classImplements=function(id,typeParameters){return _builder.default.apply("ClassImplements",arguments)},exports.classMethod=function(kind,key,params,body,computed,_static,generator,async){return _builder.default.apply("ClassMethod",arguments)},exports.classPrivateMethod=function(kind,key,params,body,_static){return _builder.default.apply("ClassPrivateMethod",arguments)},exports.classPrivateProperty=function(key,value,decorators,_static){return _builder.default.apply("ClassPrivateProperty",arguments)},exports.classProperty=function(key,value,typeAnnotation,decorators,computed,_static){return _builder.default.apply("ClassProperty",arguments)},exports.conditionalExpression=function(test,consequent,alternate){return _builder.default.apply("ConditionalExpression",arguments)},exports.continueStatement=function(label){return _builder.default.apply("ContinueStatement",arguments)},exports.debuggerStatement=function(){return _builder.default.apply("DebuggerStatement",arguments)},exports.decimalLiteral=function(value){return _builder.default.apply("DecimalLiteral",arguments)},exports.declareClass=function(id,typeParameters,_extends,body){return _builder.default.apply("DeclareClass",arguments)},exports.declareExportAllDeclaration=function(source){return _builder.default.apply("DeclareExportAllDeclaration",arguments)},exports.declareExportDeclaration=function(declaration,specifiers,source){return _builder.default.apply("DeclareExportDeclaration",arguments)},exports.declareFunction=function(id){return _builder.default.apply("DeclareFunction",arguments)},exports.declareInterface=function(id,typeParameters,_extends,body){return _builder.default.apply("DeclareInterface",arguments)},exports.declareModule=function(id,body,kind){return _builder.default.apply("DeclareModule",arguments)},exports.declareModuleExports=function(typeAnnotation){return _builder.default.apply("DeclareModuleExports",arguments)},exports.declareOpaqueType=function(id,typeParameters,supertype){return _builder.default.apply("DeclareOpaqueType",arguments)},exports.declareTypeAlias=function(id,typeParameters,right){return _builder.default.apply("DeclareTypeAlias",arguments)},exports.declareVariable=function(id){return _builder.default.apply("DeclareVariable",arguments)},exports.declaredPredicate=function(value){return _builder.default.apply("DeclaredPredicate",arguments)},exports.decorator=function(expression){return _builder.default.apply("Decorator",arguments)},exports.directive=function(value){return _builder.default.apply("Directive",arguments)},exports.directiveLiteral=function(value){return _builder.default.apply("DirectiveLiteral",arguments)},exports.doExpression=function(body,async){return _builder.default.apply("DoExpression",arguments)},exports.doWhileStatement=function(test,body){return _builder.default.apply("DoWhileStatement",arguments)},exports.emptyStatement=function(){return _builder.default.apply("EmptyStatement",arguments)},exports.emptyTypeAnnotation=function(){return _builder.default.apply("EmptyTypeAnnotation",arguments)},exports.enumBooleanBody=function(members){return _builder.default.apply("EnumBooleanBody",arguments)},exports.enumBooleanMember=function(id){return _builder.default.apply("EnumBooleanMember",arguments)},exports.enumDeclaration=function(id,body){return _builder.default.apply("EnumDeclaration",arguments)},exports.enumDefaultedMember=function(id){return _builder.default.apply("EnumDefaultedMember",arguments)},exports.enumNumberBody=function(members){return _builder.default.apply("EnumNumberBody",arguments)},exports.enumNumberMember=function(id,init){return _builder.default.apply("EnumNumberMember",arguments)},exports.enumStringBody=function(members){return _builder.default.apply("EnumStringBody",arguments)},exports.enumStringMember=function(id,init){return _builder.default.apply("EnumStringMember",arguments)},exports.enumSymbolBody=function(members){return _builder.default.apply("EnumSymbolBody",arguments)},exports.existsTypeAnnotation=function(){return _builder.default.apply("ExistsTypeAnnotation",arguments)},exports.exportAllDeclaration=function(source){return _builder.default.apply("ExportAllDeclaration",arguments)},exports.exportDefaultDeclaration=function(declaration){return _builder.default.apply("ExportDefaultDeclaration",arguments)},exports.exportDefaultSpecifier=function(exported){return _builder.default.apply("ExportDefaultSpecifier",arguments)},exports.exportNamedDeclaration=function(declaration,specifiers,source){return _builder.default.apply("ExportNamedDeclaration",arguments)},exports.exportNamespaceSpecifier=function(exported){return _builder.default.apply("ExportNamespaceSpecifier",arguments)},exports.exportSpecifier=function(local,exported){return _builder.default.apply("ExportSpecifier",arguments)},exports.expressionStatement=function(expression){return _builder.default.apply("ExpressionStatement",arguments)},exports.file=function(program,comments,tokens){return _builder.default.apply("File",arguments)},exports.forInStatement=function(left,right,body){return _builder.default.apply("ForInStatement",arguments)},exports.forOfStatement=function(left,right,body,_await){return _builder.default.apply("ForOfStatement",arguments)},exports.forStatement=function(init,test,update,body){return _builder.default.apply("ForStatement",arguments)},exports.functionDeclaration=function(id,params,body,generator,async){return _builder.default.apply("FunctionDeclaration",arguments)},exports.functionExpression=function(id,params,body,generator,async){return _builder.default.apply("FunctionExpression",arguments)},exports.functionTypeAnnotation=function(typeParameters,params,rest,returnType){return _builder.default.apply("FunctionTypeAnnotation",arguments)},exports.functionTypeParam=function(name,typeAnnotation){return _builder.default.apply("FunctionTypeParam",arguments)},exports.genericTypeAnnotation=function(id,typeParameters){return _builder.default.apply("GenericTypeAnnotation",arguments)},exports.identifier=function(name){return _builder.default.apply("Identifier",arguments)},exports.ifStatement=function(test,consequent,alternate){return _builder.default.apply("IfStatement",arguments)},exports.import=function(){return _builder.default.apply("Import",arguments)},exports.importAttribute=function(key,value){return _builder.default.apply("ImportAttribute",arguments)},exports.importDeclaration=function(specifiers,source){return _builder.default.apply("ImportDeclaration",arguments)},exports.importDefaultSpecifier=function(local){return _builder.default.apply("ImportDefaultSpecifier",arguments)},exports.importNamespaceSpecifier=function(local){return _builder.default.apply("ImportNamespaceSpecifier",arguments)},exports.importSpecifier=function(local,imported){return _builder.default.apply("ImportSpecifier",arguments)},exports.indexedAccessType=function(objectType,indexType){return _builder.default.apply("IndexedAccessType",arguments)},exports.inferredPredicate=function(){return _builder.default.apply("InferredPredicate",arguments)},exports.interfaceDeclaration=function(id,typeParameters,_extends,body){return _builder.default.apply("InterfaceDeclaration",arguments)},exports.interfaceExtends=function(id,typeParameters){return _builder.default.apply("InterfaceExtends",arguments)},exports.interfaceTypeAnnotation=function(_extends,body){return _builder.default.apply("InterfaceTypeAnnotation",arguments)},exports.interpreterDirective=function(value){return _builder.default.apply("InterpreterDirective",arguments)},exports.intersectionTypeAnnotation=function(types){return _builder.default.apply("IntersectionTypeAnnotation",arguments)},exports.jSXAttribute=exports.jsxAttribute=function(name,value){return _builder.default.apply("JSXAttribute",arguments)},exports.jSXClosingElement=exports.jsxClosingElement=function(name){return _builder.default.apply("JSXClosingElement",arguments)},exports.jSXClosingFragment=exports.jsxClosingFragment=function(){return _builder.default.apply("JSXClosingFragment",arguments)},exports.jSXElement=exports.jsxElement=function(openingElement,closingElement,children,selfClosing){return _builder.default.apply("JSXElement",arguments)},exports.jSXEmptyExpression=exports.jsxEmptyExpression=function(){return _builder.default.apply("JSXEmptyExpression",arguments)},exports.jSXExpressionContainer=exports.jsxExpressionContainer=function(expression){return _builder.default.apply("JSXExpressionContainer",arguments)},exports.jSXFragment=exports.jsxFragment=function(openingFragment,closingFragment,children){return _builder.default.apply("JSXFragment",arguments)},exports.jSXIdentifier=exports.jsxIdentifier=function(name){return _builder.default.apply("JSXIdentifier",arguments)},exports.jSXMemberExpression=exports.jsxMemberExpression=function(object,property){return _builder.default.apply("JSXMemberExpression",arguments)},exports.jSXNamespacedName=exports.jsxNamespacedName=function(namespace,name){return _builder.default.apply("JSXNamespacedName",arguments)},exports.jSXOpeningElement=exports.jsxOpeningElement=function(name,attributes,selfClosing){return _builder.default.apply("JSXOpeningElement",arguments)},exports.jSXOpeningFragment=exports.jsxOpeningFragment=function(){return _builder.default.apply("JSXOpeningFragment",arguments)},exports.jSXSpreadAttribute=exports.jsxSpreadAttribute=function(argument){return _builder.default.apply("JSXSpreadAttribute",arguments)},exports.jSXSpreadChild=exports.jsxSpreadChild=function(expression){return _builder.default.apply("JSXSpreadChild",arguments)},exports.jSXText=exports.jsxText=function(value){return _builder.default.apply("JSXText",arguments)},exports.labeledStatement=function(label,body){return _builder.default.apply("LabeledStatement",arguments)},exports.logicalExpression=function(operator,left,right){return _builder.default.apply("LogicalExpression",arguments)},exports.memberExpression=function(object,property,computed,optional){return _builder.default.apply("MemberExpression",arguments)},exports.metaProperty=function(meta,property){return _builder.default.apply("MetaProperty",arguments)},exports.mixedTypeAnnotation=function(){return _builder.default.apply("MixedTypeAnnotation",arguments)},exports.moduleExpression=function(body){return _builder.default.apply("ModuleExpression",arguments)},exports.newExpression=function(callee,_arguments){return _builder.default.apply("NewExpression",arguments)},exports.noop=function(){return _builder.default.apply("Noop",arguments)},exports.nullLiteral=function(){return _builder.default.apply("NullLiteral",arguments)},exports.nullLiteralTypeAnnotation=function(){return _builder.default.apply("NullLiteralTypeAnnotation",arguments)},exports.nullableTypeAnnotation=function(typeAnnotation){return _builder.default.apply("NullableTypeAnnotation",arguments)},exports.numberLiteral=function(value){return console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),_builder.default.apply("NumberLiteral",arguments)},exports.numberLiteralTypeAnnotation=function(value){return _builder.default.apply("NumberLiteralTypeAnnotation",arguments)},exports.numberTypeAnnotation=function(){return _builder.default.apply("NumberTypeAnnotation",arguments)},exports.numericLiteral=function(value){return _builder.default.apply("NumericLiteral",arguments)},exports.objectExpression=function(properties){return _builder.default.apply("ObjectExpression",arguments)},exports.objectMethod=function(kind,key,params,body,computed,generator,async){return _builder.default.apply("ObjectMethod",arguments)},exports.objectPattern=function(properties){return _builder.default.apply("ObjectPattern",arguments)},exports.objectProperty=function(key,value,computed,shorthand,decorators){return _builder.default.apply("ObjectProperty",arguments)},exports.objectTypeAnnotation=function(properties,indexers,callProperties,internalSlots,exact){return _builder.default.apply("ObjectTypeAnnotation",arguments)},exports.objectTypeCallProperty=function(value){return _builder.default.apply("ObjectTypeCallProperty",arguments)},exports.objectTypeIndexer=function(id,key,value,variance){return _builder.default.apply("ObjectTypeIndexer",arguments)},exports.objectTypeInternalSlot=function(id,value,optional,_static,method){return _builder.default.apply("ObjectTypeInternalSlot",arguments)},exports.objectTypeProperty=function(key,value,variance){return _builder.default.apply("ObjectTypeProperty",arguments)},exports.objectTypeSpreadProperty=function(argument){return _builder.default.apply("ObjectTypeSpreadProperty",arguments)},exports.opaqueType=function(id,typeParameters,supertype,impltype){return _builder.default.apply("OpaqueType",arguments)},exports.optionalCallExpression=function(callee,_arguments,optional){return _builder.default.apply("OptionalCallExpression",arguments)},exports.optionalIndexedAccessType=function(objectType,indexType){return _builder.default.apply("OptionalIndexedAccessType",arguments)},exports.optionalMemberExpression=function(object,property,computed,optional){return _builder.default.apply("OptionalMemberExpression",arguments)},exports.parenthesizedExpression=function(expression){return _builder.default.apply("ParenthesizedExpression",arguments)},exports.pipelineBareFunction=function(callee){return _builder.default.apply("PipelineBareFunction",arguments)},exports.pipelinePrimaryTopicReference=function(){return _builder.default.apply("PipelinePrimaryTopicReference",arguments)},exports.pipelineTopicExpression=function(expression){return _builder.default.apply("PipelineTopicExpression",arguments)},exports.placeholder=function(expectedNode,name){return _builder.default.apply("Placeholder",arguments)},exports.privateName=function(id){return _builder.default.apply("PrivateName",arguments)},exports.program=function(body,directives,sourceType,interpreter){return _builder.default.apply("Program",arguments)},exports.qualifiedTypeIdentifier=function(id,qualification){return _builder.default.apply("QualifiedTypeIdentifier",arguments)},exports.recordExpression=function(properties){return _builder.default.apply("RecordExpression",arguments)},exports.regExpLiteral=function(pattern,flags){return _builder.default.apply("RegExpLiteral",arguments)},exports.regexLiteral=function(pattern,flags){return console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),_builder.default.apply("RegexLiteral",arguments)},exports.restElement=function(argument){return _builder.default.apply("RestElement",arguments)},exports.restProperty=function(argument){return console.trace("The node type RestProperty has been renamed to RestElement"),_builder.default.apply("RestProperty",arguments)},exports.returnStatement=function(argument){return _builder.default.apply("ReturnStatement",arguments)},exports.sequenceExpression=function(expressions){return _builder.default.apply("SequenceExpression",arguments)},exports.spreadElement=function(argument){return _builder.default.apply("SpreadElement",arguments)},exports.spreadProperty=function(argument){return console.trace("The node type SpreadProperty has been renamed to SpreadElement"),_builder.default.apply("SpreadProperty",arguments)},exports.staticBlock=function(body){return _builder.default.apply("StaticBlock",arguments)},exports.stringLiteral=function(value){return _builder.default.apply("StringLiteral",arguments)},exports.stringLiteralTypeAnnotation=function(value){return _builder.default.apply("StringLiteralTypeAnnotation",arguments)},exports.stringTypeAnnotation=function(){return _builder.default.apply("StringTypeAnnotation",arguments)},exports.super=function(){return _builder.default.apply("Super",arguments)},exports.switchCase=function(test,consequent){return _builder.default.apply("SwitchCase",arguments)},exports.switchStatement=function(discriminant,cases){return _builder.default.apply("SwitchStatement",arguments)},exports.symbolTypeAnnotation=function(){return _builder.default.apply("SymbolTypeAnnotation",arguments)},exports.taggedTemplateExpression=function(tag,quasi){return _builder.default.apply("TaggedTemplateExpression",arguments)},exports.templateElement=function(value,tail){return _builder.default.apply("TemplateElement",arguments)},exports.templateLiteral=function(quasis,expressions){return _builder.default.apply("TemplateLiteral",arguments)},exports.thisExpression=function(){return _builder.default.apply("ThisExpression",arguments)},exports.thisTypeAnnotation=function(){return _builder.default.apply("ThisTypeAnnotation",arguments)},exports.throwStatement=function(argument){return _builder.default.apply("ThrowStatement",arguments)},exports.topicReference=function(){return _builder.default.apply("TopicReference",arguments)},exports.tryStatement=function(block,handler,finalizer){return _builder.default.apply("TryStatement",arguments)},exports.tSAnyKeyword=exports.tsAnyKeyword=function(){return _builder.default.apply("TSAnyKeyword",arguments)},exports.tSArrayType=exports.tsArrayType=function(elementType){return _builder.default.apply("TSArrayType",arguments)},exports.tSAsExpression=exports.tsAsExpression=function(expression,typeAnnotation){return _builder.default.apply("TSAsExpression",arguments)},exports.tSBigIntKeyword=exports.tsBigIntKeyword=function(){return _builder.default.apply("TSBigIntKeyword",arguments)},exports.tSBooleanKeyword=exports.tsBooleanKeyword=function(){return _builder.default.apply("TSBooleanKeyword",arguments)},exports.tSCallSignatureDeclaration=exports.tsCallSignatureDeclaration=function(typeParameters,parameters,typeAnnotation){return _builder.default.apply("TSCallSignatureDeclaration",arguments)},exports.tSConditionalType=exports.tsConditionalType=function(checkType,extendsType,trueType,falseType){return _builder.default.apply("TSConditionalType",arguments)},exports.tSConstructSignatureDeclaration=exports.tsConstructSignatureDeclaration=function(typeParameters,parameters,typeAnnotation){return _builder.default.apply("TSConstructSignatureDeclaration",arguments)},exports.tSConstructorType=exports.tsConstructorType=function(typeParameters,parameters,typeAnnotation){return _builder.default.apply("TSConstructorType",arguments)},exports.tSDeclareFunction=exports.tsDeclareFunction=function(id,typeParameters,params,returnType){return _builder.default.apply("TSDeclareFunction",arguments)},exports.tSDeclareMethod=exports.tsDeclareMethod=function(decorators,key,typeParameters,params,returnType){return _builder.default.apply("TSDeclareMethod",arguments)},exports.tSEnumDeclaration=exports.tsEnumDeclaration=function(id,members){return _builder.default.apply("TSEnumDeclaration",arguments)},exports.tSEnumMember=exports.tsEnumMember=function(id,initializer){return _builder.default.apply("TSEnumMember",arguments)},exports.tSExportAssignment=exports.tsExportAssignment=function(expression){return _builder.default.apply("TSExportAssignment",arguments)},exports.tSExpressionWithTypeArguments=exports.tsExpressionWithTypeArguments=function(expression,typeParameters){return _builder.default.apply("TSExpressionWithTypeArguments",arguments)},exports.tSExternalModuleReference=exports.tsExternalModuleReference=function(expression){return _builder.default.apply("TSExternalModuleReference",arguments)},exports.tSFunctionType=exports.tsFunctionType=function(typeParameters,parameters,typeAnnotation){return _builder.default.apply("TSFunctionType",arguments)},exports.tSImportEqualsDeclaration=exports.tsImportEqualsDeclaration=function(id,moduleReference){return _builder.default.apply("TSImportEqualsDeclaration",arguments)},exports.tSImportType=exports.tsImportType=function(argument,qualifier,typeParameters){return _builder.default.apply("TSImportType",arguments)},exports.tSIndexSignature=exports.tsIndexSignature=function(parameters,typeAnnotation){return _builder.default.apply("TSIndexSignature",arguments)},exports.tSIndexedAccessType=exports.tsIndexedAccessType=function(objectType,indexType){return _builder.default.apply("TSIndexedAccessType",arguments)},exports.tSInferType=exports.tsInferType=function(typeParameter){return _builder.default.apply("TSInferType",arguments)},exports.tSInterfaceBody=exports.tsInterfaceBody=function(body){return _builder.default.apply("TSInterfaceBody",arguments)},exports.tSInterfaceDeclaration=exports.tsInterfaceDeclaration=function(id,typeParameters,_extends,body){return _builder.default.apply("TSInterfaceDeclaration",arguments)},exports.tSIntersectionType=exports.tsIntersectionType=function(types){return _builder.default.apply("TSIntersectionType",arguments)},exports.tSIntrinsicKeyword=exports.tsIntrinsicKeyword=function(){return _builder.default.apply("TSIntrinsicKeyword",arguments)},exports.tSLiteralType=exports.tsLiteralType=function(literal){return _builder.default.apply("TSLiteralType",arguments)},exports.tSMappedType=exports.tsMappedType=function(typeParameter,typeAnnotation,nameType){return _builder.default.apply("TSMappedType",arguments)},exports.tSMethodSignature=exports.tsMethodSignature=function(key,typeParameters,parameters,typeAnnotation){return _builder.default.apply("TSMethodSignature",arguments)},exports.tSModuleBlock=exports.tsModuleBlock=function(body){return _builder.default.apply("TSModuleBlock",arguments)},exports.tSModuleDeclaration=exports.tsModuleDeclaration=function(id,body){return _builder.default.apply("TSModuleDeclaration",arguments)},exports.tSNamedTupleMember=exports.tsNamedTupleMember=function(label,elementType,optional){return _builder.default.apply("TSNamedTupleMember",arguments)},exports.tSNamespaceExportDeclaration=exports.tsNamespaceExportDeclaration=function(id){return _builder.default.apply("TSNamespaceExportDeclaration",arguments)},exports.tSNeverKeyword=exports.tsNeverKeyword=function(){return _builder.default.apply("TSNeverKeyword",arguments)},exports.tSNonNullExpression=exports.tsNonNullExpression=function(expression){return _builder.default.apply("TSNonNullExpression",arguments)},exports.tSNullKeyword=exports.tsNullKeyword=function(){return _builder.default.apply("TSNullKeyword",arguments)},exports.tSNumberKeyword=exports.tsNumberKeyword=function(){return _builder.default.apply("TSNumberKeyword",arguments)},exports.tSObjectKeyword=exports.tsObjectKeyword=function(){return _builder.default.apply("TSObjectKeyword",arguments)},exports.tSOptionalType=exports.tsOptionalType=function(typeAnnotation){return _builder.default.apply("TSOptionalType",arguments)},exports.tSParameterProperty=exports.tsParameterProperty=function(parameter){return _builder.default.apply("TSParameterProperty",arguments)},exports.tSParenthesizedType=exports.tsParenthesizedType=function(typeAnnotation){return _builder.default.apply("TSParenthesizedType",arguments)},exports.tSPropertySignature=exports.tsPropertySignature=function(key,typeAnnotation,initializer){return _builder.default.apply("TSPropertySignature",arguments)},exports.tSQualifiedName=exports.tsQualifiedName=function(left,right){return _builder.default.apply("TSQualifiedName",arguments)},exports.tSRestType=exports.tsRestType=function(typeAnnotation){return _builder.default.apply("TSRestType",arguments)},exports.tSStringKeyword=exports.tsStringKeyword=function(){return _builder.default.apply("TSStringKeyword",arguments)},exports.tSSymbolKeyword=exports.tsSymbolKeyword=function(){return _builder.default.apply("TSSymbolKeyword",arguments)},exports.tSThisType=exports.tsThisType=function(){return _builder.default.apply("TSThisType",arguments)},exports.tSTupleType=exports.tsTupleType=function(elementTypes){return _builder.default.apply("TSTupleType",arguments)},exports.tSTypeAliasDeclaration=exports.tsTypeAliasDeclaration=function(id,typeParameters,typeAnnotation){return _builder.default.apply("TSTypeAliasDeclaration",arguments)},exports.tSTypeAnnotation=exports.tsTypeAnnotation=function(typeAnnotation){return _builder.default.apply("TSTypeAnnotation",arguments)},exports.tSTypeAssertion=exports.tsTypeAssertion=function(typeAnnotation,expression){return _builder.default.apply("TSTypeAssertion",arguments)},exports.tSTypeLiteral=exports.tsTypeLiteral=function(members){return _builder.default.apply("TSTypeLiteral",arguments)},exports.tSTypeOperator=exports.tsTypeOperator=function(typeAnnotation){return _builder.default.apply("TSTypeOperator",arguments)},exports.tSTypeParameter=exports.tsTypeParameter=function(constraint,_default,name){return _builder.default.apply("TSTypeParameter",arguments)},exports.tSTypeParameterDeclaration=exports.tsTypeParameterDeclaration=function(params){return _builder.default.apply("TSTypeParameterDeclaration",arguments)},exports.tSTypeParameterInstantiation=exports.tsTypeParameterInstantiation=function(params){return _builder.default.apply("TSTypeParameterInstantiation",arguments)},exports.tSTypePredicate=exports.tsTypePredicate=function(parameterName,typeAnnotation,asserts){return _builder.default.apply("TSTypePredicate",arguments)},exports.tSTypeQuery=exports.tsTypeQuery=function(exprName){return _builder.default.apply("TSTypeQuery",arguments)},exports.tSTypeReference=exports.tsTypeReference=function(typeName,typeParameters){return _builder.default.apply("TSTypeReference",arguments)},exports.tSUndefinedKeyword=exports.tsUndefinedKeyword=function(){return _builder.default.apply("TSUndefinedKeyword",arguments)},exports.tSUnionType=exports.tsUnionType=function(types){return _builder.default.apply("TSUnionType",arguments)},exports.tSUnknownKeyword=exports.tsUnknownKeyword=function(){return _builder.default.apply("TSUnknownKeyword",arguments)},exports.tSVoidKeyword=exports.tsVoidKeyword=function(){return _builder.default.apply("TSVoidKeyword",arguments)},exports.tupleExpression=function(elements){return _builder.default.apply("TupleExpression",arguments)},exports.tupleTypeAnnotation=function(types){return _builder.default.apply("TupleTypeAnnotation",arguments)},exports.typeAlias=function(id,typeParameters,right){return _builder.default.apply("TypeAlias",arguments)},exports.typeAnnotation=function(typeAnnotation){return _builder.default.apply("TypeAnnotation",arguments)},exports.typeCastExpression=function(expression,typeAnnotation){return _builder.default.apply("TypeCastExpression",arguments)},exports.typeParameter=function(bound,_default,variance){return _builder.default.apply("TypeParameter",arguments)},exports.typeParameterDeclaration=function(params){return _builder.default.apply("TypeParameterDeclaration",arguments)},exports.typeParameterInstantiation=function(params){return _builder.default.apply("TypeParameterInstantiation",arguments)},exports.typeofTypeAnnotation=function(argument){return _builder.default.apply("TypeofTypeAnnotation",arguments)},exports.unaryExpression=function(operator,argument,prefix){return _builder.default.apply("UnaryExpression",arguments)},exports.unionTypeAnnotation=function(types){return _builder.default.apply("UnionTypeAnnotation",arguments)},exports.updateExpression=function(operator,argument,prefix){return _builder.default.apply("UpdateExpression",arguments)},exports.v8IntrinsicIdentifier=function(name){return _builder.default.apply("V8IntrinsicIdentifier",arguments)},exports.variableDeclaration=function(kind,declarations){return _builder.default.apply("VariableDeclaration",arguments)},exports.variableDeclarator=function(id,init){return _builder.default.apply("VariableDeclarator",arguments)},exports.variance=function(kind){return _builder.default.apply("Variance",arguments)},exports.voidTypeAnnotation=function(){return _builder.default.apply("VoidTypeAnnotation",arguments)},exports.whileStatement=function(test,body){return _builder.default.apply("WhileStatement",arguments)},exports.withStatement=function(object,body){return _builder.default.apply("WithStatement",arguments)},exports.yieldExpression=function(argument,delegate){return _builder.default.apply("YieldExpression",arguments)};var _builder=__webpack_require__("./node_modules/@babel/types/lib/builders/builder.js")},"./node_modules/@babel/types/lib/builders/generated/uppercase.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AnyTypeAnnotation",{enumerable:!0,get:function(){return _index.anyTypeAnnotation}}),Object.defineProperty(exports,"ArgumentPlaceholder",{enumerable:!0,get:function(){return _index.argumentPlaceholder}}),Object.defineProperty(exports,"ArrayExpression",{enumerable:!0,get:function(){return _index.arrayExpression}}),Object.defineProperty(exports,"ArrayPattern",{enumerable:!0,get:function(){return _index.arrayPattern}}),Object.defineProperty(exports,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return _index.arrayTypeAnnotation}}),Object.defineProperty(exports,"ArrowFunctionExpression",{enumerable:!0,get:function(){return _index.arrowFunctionExpression}}),Object.defineProperty(exports,"AssignmentExpression",{enumerable:!0,get:function(){return _index.assignmentExpression}}),Object.defineProperty(exports,"AssignmentPattern",{enumerable:!0,get:function(){return _index.assignmentPattern}}),Object.defineProperty(exports,"AwaitExpression",{enumerable:!0,get:function(){return _index.awaitExpression}}),Object.defineProperty(exports,"BigIntLiteral",{enumerable:!0,get:function(){return _index.bigIntLiteral}}),Object.defineProperty(exports,"BinaryExpression",{enumerable:!0,get:function(){return _index.binaryExpression}}),Object.defineProperty(exports,"BindExpression",{enumerable:!0,get:function(){return _index.bindExpression}}),Object.defineProperty(exports,"BlockStatement",{enumerable:!0,get:function(){return _index.blockStatement}}),Object.defineProperty(exports,"BooleanLiteral",{enumerable:!0,get:function(){return _index.booleanLiteral}}),Object.defineProperty(exports,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.booleanLiteralTypeAnnotation}}),Object.defineProperty(exports,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return _index.booleanTypeAnnotation}}),Object.defineProperty(exports,"BreakStatement",{enumerable:!0,get:function(){return _index.breakStatement}}),Object.defineProperty(exports,"CallExpression",{enumerable:!0,get:function(){return _index.callExpression}}),Object.defineProperty(exports,"CatchClause",{enumerable:!0,get:function(){return _index.catchClause}}),Object.defineProperty(exports,"ClassBody",{enumerable:!0,get:function(){return _index.classBody}}),Object.defineProperty(exports,"ClassDeclaration",{enumerable:!0,get:function(){return _index.classDeclaration}}),Object.defineProperty(exports,"ClassExpression",{enumerable:!0,get:function(){return _index.classExpression}}),Object.defineProperty(exports,"ClassImplements",{enumerable:!0,get:function(){return _index.classImplements}}),Object.defineProperty(exports,"ClassMethod",{enumerable:!0,get:function(){return _index.classMethod}}),Object.defineProperty(exports,"ClassPrivateMethod",{enumerable:!0,get:function(){return _index.classPrivateMethod}}),Object.defineProperty(exports,"ClassPrivateProperty",{enumerable:!0,get:function(){return _index.classPrivateProperty}}),Object.defineProperty(exports,"ClassProperty",{enumerable:!0,get:function(){return _index.classProperty}}),Object.defineProperty(exports,"ConditionalExpression",{enumerable:!0,get:function(){return _index.conditionalExpression}}),Object.defineProperty(exports,"ContinueStatement",{enumerable:!0,get:function(){return _index.continueStatement}}),Object.defineProperty(exports,"DebuggerStatement",{enumerable:!0,get:function(){return _index.debuggerStatement}}),Object.defineProperty(exports,"DecimalLiteral",{enumerable:!0,get:function(){return _index.decimalLiteral}}),Object.defineProperty(exports,"DeclareClass",{enumerable:!0,get:function(){return _index.declareClass}}),Object.defineProperty(exports,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return _index.declareExportAllDeclaration}}),Object.defineProperty(exports,"DeclareExportDeclaration",{enumerable:!0,get:function(){return _index.declareExportDeclaration}}),Object.defineProperty(exports,"DeclareFunction",{enumerable:!0,get:function(){return _index.declareFunction}}),Object.defineProperty(exports,"DeclareInterface",{enumerable:!0,get:function(){return _index.declareInterface}}),Object.defineProperty(exports,"DeclareModule",{enumerable:!0,get:function(){return _index.declareModule}}),Object.defineProperty(exports,"DeclareModuleExports",{enumerable:!0,get:function(){return _index.declareModuleExports}}),Object.defineProperty(exports,"DeclareOpaqueType",{enumerable:!0,get:function(){return _index.declareOpaqueType}}),Object.defineProperty(exports,"DeclareTypeAlias",{enumerable:!0,get:function(){return _index.declareTypeAlias}}),Object.defineProperty(exports,"DeclareVariable",{enumerable:!0,get:function(){return _index.declareVariable}}),Object.defineProperty(exports,"DeclaredPredicate",{enumerable:!0,get:function(){return _index.declaredPredicate}}),Object.defineProperty(exports,"Decorator",{enumerable:!0,get:function(){return _index.decorator}}),Object.defineProperty(exports,"Directive",{enumerable:!0,get:function(){return _index.directive}}),Object.defineProperty(exports,"DirectiveLiteral",{enumerable:!0,get:function(){return _index.directiveLiteral}}),Object.defineProperty(exports,"DoExpression",{enumerable:!0,get:function(){return _index.doExpression}}),Object.defineProperty(exports,"DoWhileStatement",{enumerable:!0,get:function(){return _index.doWhileStatement}}),Object.defineProperty(exports,"EmptyStatement",{enumerable:!0,get:function(){return _index.emptyStatement}}),Object.defineProperty(exports,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return _index.emptyTypeAnnotation}}),Object.defineProperty(exports,"EnumBooleanBody",{enumerable:!0,get:function(){return _index.enumBooleanBody}}),Object.defineProperty(exports,"EnumBooleanMember",{enumerable:!0,get:function(){return _index.enumBooleanMember}}),Object.defineProperty(exports,"EnumDeclaration",{enumerable:!0,get:function(){return _index.enumDeclaration}}),Object.defineProperty(exports,"EnumDefaultedMember",{enumerable:!0,get:function(){return _index.enumDefaultedMember}}),Object.defineProperty(exports,"EnumNumberBody",{enumerable:!0,get:function(){return _index.enumNumberBody}}),Object.defineProperty(exports,"EnumNumberMember",{enumerable:!0,get:function(){return _index.enumNumberMember}}),Object.defineProperty(exports,"EnumStringBody",{enumerable:!0,get:function(){return _index.enumStringBody}}),Object.defineProperty(exports,"EnumStringMember",{enumerable:!0,get:function(){return _index.enumStringMember}}),Object.defineProperty(exports,"EnumSymbolBody",{enumerable:!0,get:function(){return _index.enumSymbolBody}}),Object.defineProperty(exports,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return _index.existsTypeAnnotation}}),Object.defineProperty(exports,"ExportAllDeclaration",{enumerable:!0,get:function(){return _index.exportAllDeclaration}}),Object.defineProperty(exports,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return _index.exportDefaultDeclaration}}),Object.defineProperty(exports,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return _index.exportDefaultSpecifier}}),Object.defineProperty(exports,"ExportNamedDeclaration",{enumerable:!0,get:function(){return _index.exportNamedDeclaration}}),Object.defineProperty(exports,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return _index.exportNamespaceSpecifier}}),Object.defineProperty(exports,"ExportSpecifier",{enumerable:!0,get:function(){return _index.exportSpecifier}}),Object.defineProperty(exports,"ExpressionStatement",{enumerable:!0,get:function(){return _index.expressionStatement}}),Object.defineProperty(exports,"File",{enumerable:!0,get:function(){return _index.file}}),Object.defineProperty(exports,"ForInStatement",{enumerable:!0,get:function(){return _index.forInStatement}}),Object.defineProperty(exports,"ForOfStatement",{enumerable:!0,get:function(){return _index.forOfStatement}}),Object.defineProperty(exports,"ForStatement",{enumerable:!0,get:function(){return _index.forStatement}}),Object.defineProperty(exports,"FunctionDeclaration",{enumerable:!0,get:function(){return _index.functionDeclaration}}),Object.defineProperty(exports,"FunctionExpression",{enumerable:!0,get:function(){return _index.functionExpression}}),Object.defineProperty(exports,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return _index.functionTypeAnnotation}}),Object.defineProperty(exports,"FunctionTypeParam",{enumerable:!0,get:function(){return _index.functionTypeParam}}),Object.defineProperty(exports,"GenericTypeAnnotation",{enumerable:!0,get:function(){return _index.genericTypeAnnotation}}),Object.defineProperty(exports,"Identifier",{enumerable:!0,get:function(){return _index.identifier}}),Object.defineProperty(exports,"IfStatement",{enumerable:!0,get:function(){return _index.ifStatement}}),Object.defineProperty(exports,"Import",{enumerable:!0,get:function(){return _index.import}}),Object.defineProperty(exports,"ImportAttribute",{enumerable:!0,get:function(){return _index.importAttribute}}),Object.defineProperty(exports,"ImportDeclaration",{enumerable:!0,get:function(){return _index.importDeclaration}}),Object.defineProperty(exports,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return _index.importDefaultSpecifier}}),Object.defineProperty(exports,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return _index.importNamespaceSpecifier}}),Object.defineProperty(exports,"ImportSpecifier",{enumerable:!0,get:function(){return _index.importSpecifier}}),Object.defineProperty(exports,"IndexedAccessType",{enumerable:!0,get:function(){return _index.indexedAccessType}}),Object.defineProperty(exports,"InferredPredicate",{enumerable:!0,get:function(){return _index.inferredPredicate}}),Object.defineProperty(exports,"InterfaceDeclaration",{enumerable:!0,get:function(){return _index.interfaceDeclaration}}),Object.defineProperty(exports,"InterfaceExtends",{enumerable:!0,get:function(){return _index.interfaceExtends}}),Object.defineProperty(exports,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return _index.interfaceTypeAnnotation}}),Object.defineProperty(exports,"InterpreterDirective",{enumerable:!0,get:function(){return _index.interpreterDirective}}),Object.defineProperty(exports,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return _index.intersectionTypeAnnotation}}),Object.defineProperty(exports,"JSXAttribute",{enumerable:!0,get:function(){return _index.jsxAttribute}}),Object.defineProperty(exports,"JSXClosingElement",{enumerable:!0,get:function(){return _index.jsxClosingElement}}),Object.defineProperty(exports,"JSXClosingFragment",{enumerable:!0,get:function(){return _index.jsxClosingFragment}}),Object.defineProperty(exports,"JSXElement",{enumerable:!0,get:function(){return _index.jsxElement}}),Object.defineProperty(exports,"JSXEmptyExpression",{enumerable:!0,get:function(){return _index.jsxEmptyExpression}}),Object.defineProperty(exports,"JSXExpressionContainer",{enumerable:!0,get:function(){return _index.jsxExpressionContainer}}),Object.defineProperty(exports,"JSXFragment",{enumerable:!0,get:function(){return _index.jsxFragment}}),Object.defineProperty(exports,"JSXIdentifier",{enumerable:!0,get:function(){return _index.jsxIdentifier}}),Object.defineProperty(exports,"JSXMemberExpression",{enumerable:!0,get:function(){return _index.jsxMemberExpression}}),Object.defineProperty(exports,"JSXNamespacedName",{enumerable:!0,get:function(){return _index.jsxNamespacedName}}),Object.defineProperty(exports,"JSXOpeningElement",{enumerable:!0,get:function(){return _index.jsxOpeningElement}}),Object.defineProperty(exports,"JSXOpeningFragment",{enumerable:!0,get:function(){return _index.jsxOpeningFragment}}),Object.defineProperty(exports,"JSXSpreadAttribute",{enumerable:!0,get:function(){return _index.jsxSpreadAttribute}}),Object.defineProperty(exports,"JSXSpreadChild",{enumerable:!0,get:function(){return _index.jsxSpreadChild}}),Object.defineProperty(exports,"JSXText",{enumerable:!0,get:function(){return _index.jsxText}}),Object.defineProperty(exports,"LabeledStatement",{enumerable:!0,get:function(){return _index.labeledStatement}}),Object.defineProperty(exports,"LogicalExpression",{enumerable:!0,get:function(){return _index.logicalExpression}}),Object.defineProperty(exports,"MemberExpression",{enumerable:!0,get:function(){return _index.memberExpression}}),Object.defineProperty(exports,"MetaProperty",{enumerable:!0,get:function(){return _index.metaProperty}}),Object.defineProperty(exports,"MixedTypeAnnotation",{enumerable:!0,get:function(){return _index.mixedTypeAnnotation}}),Object.defineProperty(exports,"ModuleExpression",{enumerable:!0,get:function(){return _index.moduleExpression}}),Object.defineProperty(exports,"NewExpression",{enumerable:!0,get:function(){return _index.newExpression}}),Object.defineProperty(exports,"Noop",{enumerable:!0,get:function(){return _index.noop}}),Object.defineProperty(exports,"NullLiteral",{enumerable:!0,get:function(){return _index.nullLiteral}}),Object.defineProperty(exports,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.nullLiteralTypeAnnotation}}),Object.defineProperty(exports,"NullableTypeAnnotation",{enumerable:!0,get:function(){return _index.nullableTypeAnnotation}}),Object.defineProperty(exports,"NumberLiteral",{enumerable:!0,get:function(){return _index.numberLiteral}}),Object.defineProperty(exports,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.numberLiteralTypeAnnotation}}),Object.defineProperty(exports,"NumberTypeAnnotation",{enumerable:!0,get:function(){return _index.numberTypeAnnotation}}),Object.defineProperty(exports,"NumericLiteral",{enumerable:!0,get:function(){return _index.numericLiteral}}),Object.defineProperty(exports,"ObjectExpression",{enumerable:!0,get:function(){return _index.objectExpression}}),Object.defineProperty(exports,"ObjectMethod",{enumerable:!0,get:function(){return _index.objectMethod}}),Object.defineProperty(exports,"ObjectPattern",{enumerable:!0,get:function(){return _index.objectPattern}}),Object.defineProperty(exports,"ObjectProperty",{enumerable:!0,get:function(){return _index.objectProperty}}),Object.defineProperty(exports,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return _index.objectTypeAnnotation}}),Object.defineProperty(exports,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return _index.objectTypeCallProperty}}),Object.defineProperty(exports,"ObjectTypeIndexer",{enumerable:!0,get:function(){return _index.objectTypeIndexer}}),Object.defineProperty(exports,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return _index.objectTypeInternalSlot}}),Object.defineProperty(exports,"ObjectTypeProperty",{enumerable:!0,get:function(){return _index.objectTypeProperty}}),Object.defineProperty(exports,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return _index.objectTypeSpreadProperty}}),Object.defineProperty(exports,"OpaqueType",{enumerable:!0,get:function(){return _index.opaqueType}}),Object.defineProperty(exports,"OptionalCallExpression",{enumerable:!0,get:function(){return _index.optionalCallExpression}}),Object.defineProperty(exports,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return _index.optionalIndexedAccessType}}),Object.defineProperty(exports,"OptionalMemberExpression",{enumerable:!0,get:function(){return _index.optionalMemberExpression}}),Object.defineProperty(exports,"ParenthesizedExpression",{enumerable:!0,get:function(){return _index.parenthesizedExpression}}),Object.defineProperty(exports,"PipelineBareFunction",{enumerable:!0,get:function(){return _index.pipelineBareFunction}}),Object.defineProperty(exports,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return _index.pipelinePrimaryTopicReference}}),Object.defineProperty(exports,"PipelineTopicExpression",{enumerable:!0,get:function(){return _index.pipelineTopicExpression}}),Object.defineProperty(exports,"Placeholder",{enumerable:!0,get:function(){return _index.placeholder}}),Object.defineProperty(exports,"PrivateName",{enumerable:!0,get:function(){return _index.privateName}}),Object.defineProperty(exports,"Program",{enumerable:!0,get:function(){return _index.program}}),Object.defineProperty(exports,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return _index.qualifiedTypeIdentifier}}),Object.defineProperty(exports,"RecordExpression",{enumerable:!0,get:function(){return _index.recordExpression}}),Object.defineProperty(exports,"RegExpLiteral",{enumerable:!0,get:function(){return _index.regExpLiteral}}),Object.defineProperty(exports,"RegexLiteral",{enumerable:!0,get:function(){return _index.regexLiteral}}),Object.defineProperty(exports,"RestElement",{enumerable:!0,get:function(){return _index.restElement}}),Object.defineProperty(exports,"RestProperty",{enumerable:!0,get:function(){return _index.restProperty}}),Object.defineProperty(exports,"ReturnStatement",{enumerable:!0,get:function(){return _index.returnStatement}}),Object.defineProperty(exports,"SequenceExpression",{enumerable:!0,get:function(){return _index.sequenceExpression}}),Object.defineProperty(exports,"SpreadElement",{enumerable:!0,get:function(){return _index.spreadElement}}),Object.defineProperty(exports,"SpreadProperty",{enumerable:!0,get:function(){return _index.spreadProperty}}),Object.defineProperty(exports,"StaticBlock",{enumerable:!0,get:function(){return _index.staticBlock}}),Object.defineProperty(exports,"StringLiteral",{enumerable:!0,get:function(){return _index.stringLiteral}}),Object.defineProperty(exports,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _index.stringLiteralTypeAnnotation}}),Object.defineProperty(exports,"StringTypeAnnotation",{enumerable:!0,get:function(){return _index.stringTypeAnnotation}}),Object.defineProperty(exports,"Super",{enumerable:!0,get:function(){return _index.super}}),Object.defineProperty(exports,"SwitchCase",{enumerable:!0,get:function(){return _index.switchCase}}),Object.defineProperty(exports,"SwitchStatement",{enumerable:!0,get:function(){return _index.switchStatement}}),Object.defineProperty(exports,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return _index.symbolTypeAnnotation}}),Object.defineProperty(exports,"TSAnyKeyword",{enumerable:!0,get:function(){return _index.tsAnyKeyword}}),Object.defineProperty(exports,"TSArrayType",{enumerable:!0,get:function(){return _index.tsArrayType}}),Object.defineProperty(exports,"TSAsExpression",{enumerable:!0,get:function(){return _index.tsAsExpression}}),Object.defineProperty(exports,"TSBigIntKeyword",{enumerable:!0,get:function(){return _index.tsBigIntKeyword}}),Object.defineProperty(exports,"TSBooleanKeyword",{enumerable:!0,get:function(){return _index.tsBooleanKeyword}}),Object.defineProperty(exports,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return _index.tsCallSignatureDeclaration}}),Object.defineProperty(exports,"TSConditionalType",{enumerable:!0,get:function(){return _index.tsConditionalType}}),Object.defineProperty(exports,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return _index.tsConstructSignatureDeclaration}}),Object.defineProperty(exports,"TSConstructorType",{enumerable:!0,get:function(){return _index.tsConstructorType}}),Object.defineProperty(exports,"TSDeclareFunction",{enumerable:!0,get:function(){return _index.tsDeclareFunction}}),Object.defineProperty(exports,"TSDeclareMethod",{enumerable:!0,get:function(){return _index.tsDeclareMethod}}),Object.defineProperty(exports,"TSEnumDeclaration",{enumerable:!0,get:function(){return _index.tsEnumDeclaration}}),Object.defineProperty(exports,"TSEnumMember",{enumerable:!0,get:function(){return _index.tsEnumMember}}),Object.defineProperty(exports,"TSExportAssignment",{enumerable:!0,get:function(){return _index.tsExportAssignment}}),Object.defineProperty(exports,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return _index.tsExpressionWithTypeArguments}}),Object.defineProperty(exports,"TSExternalModuleReference",{enumerable:!0,get:function(){return _index.tsExternalModuleReference}}),Object.defineProperty(exports,"TSFunctionType",{enumerable:!0,get:function(){return _index.tsFunctionType}}),Object.defineProperty(exports,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return _index.tsImportEqualsDeclaration}}),Object.defineProperty(exports,"TSImportType",{enumerable:!0,get:function(){return _index.tsImportType}}),Object.defineProperty(exports,"TSIndexSignature",{enumerable:!0,get:function(){return _index.tsIndexSignature}}),Object.defineProperty(exports,"TSIndexedAccessType",{enumerable:!0,get:function(){return _index.tsIndexedAccessType}}),Object.defineProperty(exports,"TSInferType",{enumerable:!0,get:function(){return _index.tsInferType}}),Object.defineProperty(exports,"TSInterfaceBody",{enumerable:!0,get:function(){return _index.tsInterfaceBody}}),Object.defineProperty(exports,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return _index.tsInterfaceDeclaration}}),Object.defineProperty(exports,"TSIntersectionType",{enumerable:!0,get:function(){return _index.tsIntersectionType}}),Object.defineProperty(exports,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return _index.tsIntrinsicKeyword}}),Object.defineProperty(exports,"TSLiteralType",{enumerable:!0,get:function(){return _index.tsLiteralType}}),Object.defineProperty(exports,"TSMappedType",{enumerable:!0,get:function(){return _index.tsMappedType}}),Object.defineProperty(exports,"TSMethodSignature",{enumerable:!0,get:function(){return _index.tsMethodSignature}}),Object.defineProperty(exports,"TSModuleBlock",{enumerable:!0,get:function(){return _index.tsModuleBlock}}),Object.defineProperty(exports,"TSModuleDeclaration",{enumerable:!0,get:function(){return _index.tsModuleDeclaration}}),Object.defineProperty(exports,"TSNamedTupleMember",{enumerable:!0,get:function(){return _index.tsNamedTupleMember}}),Object.defineProperty(exports,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return _index.tsNamespaceExportDeclaration}}),Object.defineProperty(exports,"TSNeverKeyword",{enumerable:!0,get:function(){return _index.tsNeverKeyword}}),Object.defineProperty(exports,"TSNonNullExpression",{enumerable:!0,get:function(){return _index.tsNonNullExpression}}),Object.defineProperty(exports,"TSNullKeyword",{enumerable:!0,get:function(){return _index.tsNullKeyword}}),Object.defineProperty(exports,"TSNumberKeyword",{enumerable:!0,get:function(){return _index.tsNumberKeyword}}),Object.defineProperty(exports,"TSObjectKeyword",{enumerable:!0,get:function(){return _index.tsObjectKeyword}}),Object.defineProperty(exports,"TSOptionalType",{enumerable:!0,get:function(){return _index.tsOptionalType}}),Object.defineProperty(exports,"TSParameterProperty",{enumerable:!0,get:function(){return _index.tsParameterProperty}}),Object.defineProperty(exports,"TSParenthesizedType",{enumerable:!0,get:function(){return _index.tsParenthesizedType}}),Object.defineProperty(exports,"TSPropertySignature",{enumerable:!0,get:function(){return _index.tsPropertySignature}}),Object.defineProperty(exports,"TSQualifiedName",{enumerable:!0,get:function(){return _index.tsQualifiedName}}),Object.defineProperty(exports,"TSRestType",{enumerable:!0,get:function(){return _index.tsRestType}}),Object.defineProperty(exports,"TSStringKeyword",{enumerable:!0,get:function(){return _index.tsStringKeyword}}),Object.defineProperty(exports,"TSSymbolKeyword",{enumerable:!0,get:function(){return _index.tsSymbolKeyword}}),Object.defineProperty(exports,"TSThisType",{enumerable:!0,get:function(){return _index.tsThisType}}),Object.defineProperty(exports,"TSTupleType",{enumerable:!0,get:function(){return _index.tsTupleType}}),Object.defineProperty(exports,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return _index.tsTypeAliasDeclaration}}),Object.defineProperty(exports,"TSTypeAnnotation",{enumerable:!0,get:function(){return _index.tsTypeAnnotation}}),Object.defineProperty(exports,"TSTypeAssertion",{enumerable:!0,get:function(){return _index.tsTypeAssertion}}),Object.defineProperty(exports,"TSTypeLiteral",{enumerable:!0,get:function(){return _index.tsTypeLiteral}}),Object.defineProperty(exports,"TSTypeOperator",{enumerable:!0,get:function(){return _index.tsTypeOperator}}),Object.defineProperty(exports,"TSTypeParameter",{enumerable:!0,get:function(){return _index.tsTypeParameter}}),Object.defineProperty(exports,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return _index.tsTypeParameterDeclaration}}),Object.defineProperty(exports,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return _index.tsTypeParameterInstantiation}}),Object.defineProperty(exports,"TSTypePredicate",{enumerable:!0,get:function(){return _index.tsTypePredicate}}),Object.defineProperty(exports,"TSTypeQuery",{enumerable:!0,get:function(){return _index.tsTypeQuery}}),Object.defineProperty(exports,"TSTypeReference",{enumerable:!0,get:function(){return _index.tsTypeReference}}),Object.defineProperty(exports,"TSUndefinedKeyword",{enumerable:!0,get:function(){return _index.tsUndefinedKeyword}}),Object.defineProperty(exports,"TSUnionType",{enumerable:!0,get:function(){return _index.tsUnionType}}),Object.defineProperty(exports,"TSUnknownKeyword",{enumerable:!0,get:function(){return _index.tsUnknownKeyword}}),Object.defineProperty(exports,"TSVoidKeyword",{enumerable:!0,get:function(){return _index.tsVoidKeyword}}),Object.defineProperty(exports,"TaggedTemplateExpression",{enumerable:!0,get:function(){return _index.taggedTemplateExpression}}),Object.defineProperty(exports,"TemplateElement",{enumerable:!0,get:function(){return _index.templateElement}}),Object.defineProperty(exports,"TemplateLiteral",{enumerable:!0,get:function(){return _index.templateLiteral}}),Object.defineProperty(exports,"ThisExpression",{enumerable:!0,get:function(){return _index.thisExpression}}),Object.defineProperty(exports,"ThisTypeAnnotation",{enumerable:!0,get:function(){return _index.thisTypeAnnotation}}),Object.defineProperty(exports,"ThrowStatement",{enumerable:!0,get:function(){return _index.throwStatement}}),Object.defineProperty(exports,"TopicReference",{enumerable:!0,get:function(){return _index.topicReference}}),Object.defineProperty(exports,"TryStatement",{enumerable:!0,get:function(){return _index.tryStatement}}),Object.defineProperty(exports,"TupleExpression",{enumerable:!0,get:function(){return _index.tupleExpression}}),Object.defineProperty(exports,"TupleTypeAnnotation",{enumerable:!0,get:function(){return _index.tupleTypeAnnotation}}),Object.defineProperty(exports,"TypeAlias",{enumerable:!0,get:function(){return _index.typeAlias}}),Object.defineProperty(exports,"TypeAnnotation",{enumerable:!0,get:function(){return _index.typeAnnotation}}),Object.defineProperty(exports,"TypeCastExpression",{enumerable:!0,get:function(){return _index.typeCastExpression}}),Object.defineProperty(exports,"TypeParameter",{enumerable:!0,get:function(){return _index.typeParameter}}),Object.defineProperty(exports,"TypeParameterDeclaration",{enumerable:!0,get:function(){return _index.typeParameterDeclaration}}),Object.defineProperty(exports,"TypeParameterInstantiation",{enumerable:!0,get:function(){return _index.typeParameterInstantiation}}),Object.defineProperty(exports,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return _index.typeofTypeAnnotation}}),Object.defineProperty(exports,"UnaryExpression",{enumerable:!0,get:function(){return _index.unaryExpression}}),Object.defineProperty(exports,"UnionTypeAnnotation",{enumerable:!0,get:function(){return _index.unionTypeAnnotation}}),Object.defineProperty(exports,"UpdateExpression",{enumerable:!0,get:function(){return _index.updateExpression}}),Object.defineProperty(exports,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return _index.v8IntrinsicIdentifier}}),Object.defineProperty(exports,"VariableDeclaration",{enumerable:!0,get:function(){return _index.variableDeclaration}}),Object.defineProperty(exports,"VariableDeclarator",{enumerable:!0,get:function(){return _index.variableDeclarator}}),Object.defineProperty(exports,"Variance",{enumerable:!0,get:function(){return _index.variance}}),Object.defineProperty(exports,"VoidTypeAnnotation",{enumerable:!0,get:function(){return _index.voidTypeAnnotation}}),Object.defineProperty(exports,"WhileStatement",{enumerable:!0,get:function(){return _index.whileStatement}}),Object.defineProperty(exports,"WithStatement",{enumerable:!0,get:function(){return _index.withStatement}}),Object.defineProperty(exports,"YieldExpression",{enumerable:!0,get:function(){return _index.yieldExpression}});var _index=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/@babel/types/lib/builders/react/buildChildren.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){const elements=[];for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(typeAnnotations){const types=typeAnnotations.map((type=>type.typeAnnotation)),flattened=(0,_removeTypeDuplicates.default)(types);return 1===flattened.length?flattened[0]:(0,_generated.tsUnionType)(flattened)};var _generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js")},"./node_modules/@babel/types/lib/clone/clone.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_cloneNode.default)(node,!1)};var _cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/@babel/types/lib/clone/cloneDeep.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_cloneNode.default)(node)};var _cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_cloneNode.default)(node,!0,!0)};var _cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/@babel/types/lib/clone/cloneNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=cloneNode;var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js"),_generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js");const has=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(obj,deep,withoutLoc){return obj&&"string"==typeof obj.type?cloneNode(obj,deep,withoutLoc):obj}function cloneIfNodeOrArray(obj,deep,withoutLoc){return Array.isArray(obj)?obj.map((node=>cloneIfNode(node,deep,withoutLoc))):cloneIfNode(obj,deep,withoutLoc)}function cloneNode(node,deep=!0,withoutLoc=!1){if(!node)return node;const{type}=node,newNode={type:node.type};if((0,_generated.isIdentifier)(node))newNode.name=node.name,has(node,"optional")&&"boolean"==typeof node.optional&&(newNode.optional=node.optional),has(node,"typeAnnotation")&&(newNode.typeAnnotation=deep?cloneIfNodeOrArray(node.typeAnnotation,!0,withoutLoc):node.typeAnnotation);else{if(!has(_definitions.NODE_FIELDS,type))throw new Error(`Unknown node type: "${type}"`);for(const field of Object.keys(_definitions.NODE_FIELDS[type]))has(node,field)&&(newNode[field]=deep?(0,_generated.isFile)(node)&&"comments"===field?maybeCloneComments(node.comments,deep,withoutLoc):cloneIfNodeOrArray(node[field],!0,withoutLoc):node[field])}return has(node,"loc")&&(newNode.loc=withoutLoc?null:node.loc),has(node,"leadingComments")&&(newNode.leadingComments=maybeCloneComments(node.leadingComments,deep,withoutLoc)),has(node,"innerComments")&&(newNode.innerComments=maybeCloneComments(node.innerComments,deep,withoutLoc)),has(node,"trailingComments")&&(newNode.trailingComments=maybeCloneComments(node.trailingComments,deep,withoutLoc)),has(node,"extra")&&(newNode.extra=Object.assign({},node.extra)),newNode}function maybeCloneComments(comments,deep,withoutLoc){return comments&&deep?comments.map((({type,value,loc})=>withoutLoc?{type,value,loc:null}:{type,value,loc})):comments}},"./node_modules/@babel/types/lib/clone/cloneWithoutLoc.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_cloneNode.default)(node,!1,!0)};var _cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/@babel/types/lib/comments/addComment.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,type,content,line){return(0,_addComments.default)(node,type,[{type:line?"CommentLine":"CommentBlock",value:content}])};var _addComments=__webpack_require__("./node_modules/@babel/types/lib/comments/addComments.js")},"./node_modules/@babel/types/lib/comments/addComments.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,type,comments){if(!comments||!node)return node;const key=`${type}Comments`;node[key]?"leading"===type?node[key]=comments.concat(node[key]):node[key].push(...comments):node[key]=comments;return node}},"./node_modules/@babel/types/lib/comments/inheritInnerComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0,_inherit.default)("innerComments",child,parent)};var _inherit=__webpack_require__("./node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/@babel/types/lib/comments/inheritLeadingComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0,_inherit.default)("leadingComments",child,parent)};var _inherit=__webpack_require__("./node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/@babel/types/lib/comments/inheritTrailingComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){(0,_inherit.default)("trailingComments",child,parent)};var _inherit=__webpack_require__("./node_modules/@babel/types/lib/utils/inherit.js")},"./node_modules/@babel/types/lib/comments/inheritsComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){return(0,_inheritTrailingComments.default)(child,parent),(0,_inheritLeadingComments.default)(child,parent),(0,_inheritInnerComments.default)(child,parent),child};var _inheritTrailingComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),_inheritLeadingComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),_inheritInnerComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritInnerComments.js")},"./node_modules/@babel/types/lib/comments/removeComments.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return _constants.COMMENT_KEYS.forEach((key=>{node[key]=null})),node};var _constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js")},"./node_modules/@babel/types/lib/constants/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WHILE_TYPES=exports.USERWHITESPACABLE_TYPES=exports.UNARYLIKE_TYPES=exports.TYPESCRIPT_TYPES=exports.TSTYPE_TYPES=exports.TSTYPEELEMENT_TYPES=exports.TSENTITYNAME_TYPES=exports.TSBASETYPE_TYPES=exports.TERMINATORLESS_TYPES=exports.STATEMENT_TYPES=exports.STANDARDIZED_TYPES=exports.SCOPABLE_TYPES=exports.PUREISH_TYPES=exports.PROPERTY_TYPES=exports.PRIVATE_TYPES=exports.PATTERN_TYPES=exports.PATTERNLIKE_TYPES=exports.OBJECTMEMBER_TYPES=exports.MODULESPECIFIER_TYPES=exports.MODULEDECLARATION_TYPES=exports.MISCELLANEOUS_TYPES=exports.METHOD_TYPES=exports.LVAL_TYPES=exports.LOOP_TYPES=exports.LITERAL_TYPES=exports.JSX_TYPES=exports.IMMUTABLE_TYPES=exports.FUNCTION_TYPES=exports.FUNCTIONPARENT_TYPES=exports.FOR_TYPES=exports.FORXSTATEMENT_TYPES=exports.FLOW_TYPES=exports.FLOWTYPE_TYPES=exports.FLOWPREDICATE_TYPES=exports.FLOWDECLARATION_TYPES=exports.FLOWBASEANNOTATION_TYPES=exports.EXPRESSION_TYPES=exports.EXPRESSIONWRAPPER_TYPES=exports.EXPORTDECLARATION_TYPES=exports.ENUMMEMBER_TYPES=exports.ENUMBODY_TYPES=exports.DECLARATION_TYPES=exports.CONDITIONAL_TYPES=exports.COMPLETIONSTATEMENT_TYPES=exports.CLASS_TYPES=exports.BLOCK_TYPES=exports.BLOCKPARENT_TYPES=exports.BINARY_TYPES=void 0;var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js");const STANDARDIZED_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Standardized;exports.STANDARDIZED_TYPES=STANDARDIZED_TYPES;const EXPRESSION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Expression;exports.EXPRESSION_TYPES=EXPRESSION_TYPES;const BINARY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Binary;exports.BINARY_TYPES=BINARY_TYPES;const SCOPABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Scopable;exports.SCOPABLE_TYPES=SCOPABLE_TYPES;const BLOCKPARENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.BlockParent;exports.BLOCKPARENT_TYPES=BLOCKPARENT_TYPES;const BLOCK_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Block;exports.BLOCK_TYPES=BLOCK_TYPES;const STATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Statement;exports.STATEMENT_TYPES=STATEMENT_TYPES;const TERMINATORLESS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Terminatorless;exports.TERMINATORLESS_TYPES=TERMINATORLESS_TYPES;const COMPLETIONSTATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.CompletionStatement;exports.COMPLETIONSTATEMENT_TYPES=COMPLETIONSTATEMENT_TYPES;const CONDITIONAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Conditional;exports.CONDITIONAL_TYPES=CONDITIONAL_TYPES;const LOOP_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Loop;exports.LOOP_TYPES=LOOP_TYPES;const WHILE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.While;exports.WHILE_TYPES=WHILE_TYPES;const EXPRESSIONWRAPPER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ExpressionWrapper;exports.EXPRESSIONWRAPPER_TYPES=EXPRESSIONWRAPPER_TYPES;const FOR_TYPES=_definitions.FLIPPED_ALIAS_KEYS.For;exports.FOR_TYPES=FOR_TYPES;const FORXSTATEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ForXStatement;exports.FORXSTATEMENT_TYPES=FORXSTATEMENT_TYPES;const FUNCTION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Function;exports.FUNCTION_TYPES=FUNCTION_TYPES;const FUNCTIONPARENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FunctionParent;exports.FUNCTIONPARENT_TYPES=FUNCTIONPARENT_TYPES;const PUREISH_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Pureish;exports.PUREISH_TYPES=PUREISH_TYPES;const DECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Declaration;exports.DECLARATION_TYPES=DECLARATION_TYPES;const PATTERNLIKE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.PatternLike;exports.PATTERNLIKE_TYPES=PATTERNLIKE_TYPES;const LVAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.LVal;exports.LVAL_TYPES=LVAL_TYPES;const TSENTITYNAME_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSEntityName;exports.TSENTITYNAME_TYPES=TSENTITYNAME_TYPES;const LITERAL_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Literal;exports.LITERAL_TYPES=LITERAL_TYPES;const IMMUTABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Immutable;exports.IMMUTABLE_TYPES=IMMUTABLE_TYPES;const USERWHITESPACABLE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.UserWhitespacable;exports.USERWHITESPACABLE_TYPES=USERWHITESPACABLE_TYPES;const METHOD_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Method;exports.METHOD_TYPES=METHOD_TYPES;const OBJECTMEMBER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ObjectMember;exports.OBJECTMEMBER_TYPES=OBJECTMEMBER_TYPES;const PROPERTY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Property;exports.PROPERTY_TYPES=PROPERTY_TYPES;const UNARYLIKE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.UnaryLike;exports.UNARYLIKE_TYPES=UNARYLIKE_TYPES;const PATTERN_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Pattern;exports.PATTERN_TYPES=PATTERN_TYPES;const CLASS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Class;exports.CLASS_TYPES=CLASS_TYPES;const MODULEDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ModuleDeclaration;exports.MODULEDECLARATION_TYPES=MODULEDECLARATION_TYPES;const EXPORTDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ExportDeclaration;exports.EXPORTDECLARATION_TYPES=EXPORTDECLARATION_TYPES;const MODULESPECIFIER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.ModuleSpecifier;exports.MODULESPECIFIER_TYPES=MODULESPECIFIER_TYPES;const PRIVATE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Private;exports.PRIVATE_TYPES=PRIVATE_TYPES;const FLOW_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Flow;exports.FLOW_TYPES=FLOW_TYPES;const FLOWTYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowType;exports.FLOWTYPE_TYPES=FLOWTYPE_TYPES;const FLOWBASEANNOTATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;exports.FLOWBASEANNOTATION_TYPES=FLOWBASEANNOTATION_TYPES;const FLOWDECLARATION_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowDeclaration;exports.FLOWDECLARATION_TYPES=FLOWDECLARATION_TYPES;const FLOWPREDICATE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.FlowPredicate;exports.FLOWPREDICATE_TYPES=FLOWPREDICATE_TYPES;const ENUMBODY_TYPES=_definitions.FLIPPED_ALIAS_KEYS.EnumBody;exports.ENUMBODY_TYPES=ENUMBODY_TYPES;const ENUMMEMBER_TYPES=_definitions.FLIPPED_ALIAS_KEYS.EnumMember;exports.ENUMMEMBER_TYPES=ENUMMEMBER_TYPES;const JSX_TYPES=_definitions.FLIPPED_ALIAS_KEYS.JSX;exports.JSX_TYPES=JSX_TYPES;const MISCELLANEOUS_TYPES=_definitions.FLIPPED_ALIAS_KEYS.Miscellaneous;exports.MISCELLANEOUS_TYPES=MISCELLANEOUS_TYPES;const TYPESCRIPT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TypeScript;exports.TYPESCRIPT_TYPES=TYPESCRIPT_TYPES;const TSTYPEELEMENT_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSTypeElement;exports.TSTYPEELEMENT_TYPES=TSTYPEELEMENT_TYPES;const TSTYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSType;exports.TSTYPE_TYPES=TSTYPE_TYPES;const TSBASETYPE_TYPES=_definitions.FLIPPED_ALIAS_KEYS.TSBaseType;exports.TSBASETYPE_TYPES=TSBASETYPE_TYPES},"./node_modules/@babel/types/lib/constants/index.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UPDATE_OPERATORS=exports.UNARY_OPERATORS=exports.STRING_UNARY_OPERATORS=exports.STATEMENT_OR_BLOCK_KEYS=exports.NUMBER_UNARY_OPERATORS=exports.NUMBER_BINARY_OPERATORS=exports.NOT_LOCAL_BINDING=exports.LOGICAL_OPERATORS=exports.INHERIT_KEYS=exports.FOR_INIT_KEYS=exports.FLATTENABLE_KEYS=exports.EQUALITY_BINARY_OPERATORS=exports.COMPARISON_BINARY_OPERATORS=exports.COMMENT_KEYS=exports.BOOLEAN_UNARY_OPERATORS=exports.BOOLEAN_NUMBER_BINARY_OPERATORS=exports.BOOLEAN_BINARY_OPERATORS=exports.BLOCK_SCOPED_SYMBOL=exports.BINARY_OPERATORS=exports.ASSIGNMENT_OPERATORS=void 0;exports.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];exports.FLATTENABLE_KEYS=["body","expressions"];exports.FOR_INIT_KEYS=["left","init"];exports.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const LOGICAL_OPERATORS=["||","&&","??"];exports.LOGICAL_OPERATORS=LOGICAL_OPERATORS;exports.UPDATE_OPERATORS=["++","--"];const BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];exports.BOOLEAN_NUMBER_BINARY_OPERATORS=BOOLEAN_NUMBER_BINARY_OPERATORS;const EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];exports.EQUALITY_BINARY_OPERATORS=EQUALITY_BINARY_OPERATORS;const COMPARISON_BINARY_OPERATORS=[...EQUALITY_BINARY_OPERATORS,"in","instanceof"];exports.COMPARISON_BINARY_OPERATORS=COMPARISON_BINARY_OPERATORS;const BOOLEAN_BINARY_OPERATORS=[...COMPARISON_BINARY_OPERATORS,...BOOLEAN_NUMBER_BINARY_OPERATORS];exports.BOOLEAN_BINARY_OPERATORS=BOOLEAN_BINARY_OPERATORS;const NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];exports.NUMBER_BINARY_OPERATORS=NUMBER_BINARY_OPERATORS;const BINARY_OPERATORS=["+",...NUMBER_BINARY_OPERATORS,...BOOLEAN_BINARY_OPERATORS];exports.BINARY_OPERATORS=BINARY_OPERATORS;const ASSIGNMENT_OPERATORS=["=","+=",...NUMBER_BINARY_OPERATORS.map((op=>op+"=")),...LOGICAL_OPERATORS.map((op=>op+"="))];exports.ASSIGNMENT_OPERATORS=ASSIGNMENT_OPERATORS;const BOOLEAN_UNARY_OPERATORS=["delete","!"];exports.BOOLEAN_UNARY_OPERATORS=BOOLEAN_UNARY_OPERATORS;const NUMBER_UNARY_OPERATORS=["+","-","~"];exports.NUMBER_UNARY_OPERATORS=NUMBER_UNARY_OPERATORS;const STRING_UNARY_OPERATORS=["typeof"];exports.STRING_UNARY_OPERATORS=STRING_UNARY_OPERATORS;const UNARY_OPERATORS=["void","throw",...BOOLEAN_UNARY_OPERATORS,...NUMBER_UNARY_OPERATORS,...STRING_UNARY_OPERATORS];exports.UNARY_OPERATORS=UNARY_OPERATORS;exports.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};const BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");exports.BLOCK_SCOPED_SYMBOL=BLOCK_SCOPED_SYMBOL;const NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");exports.NOT_LOCAL_BINDING=NOT_LOCAL_BINDING},"./node_modules/@babel/types/lib/converters/ensureBlock.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key="body"){return node[key]=(0,_toBlock.default)(node[key],node)};var _toBlock=__webpack_require__("./node_modules/@babel/types/lib/converters/toBlock.js")},"./node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function gatherSequenceExpressions(nodes,scope,declars){const exprs=[];let ensureLastUndefined=!0;for(const node of nodes)if((0,_generated.isEmptyStatement)(node)||(ensureLastUndefined=!1),(0,_generated.isExpression)(node))exprs.push(node);else if((0,_generated.isExpressionStatement)(node))exprs.push(node.expression);else if((0,_generated.isVariableDeclaration)(node)){if("var"!==node.kind)return;for(const declar of node.declarations){const bindings=(0,_getBindingIdentifiers.default)(declar);for(const key of Object.keys(bindings))declars.push({kind:node.kind,id:(0,_cloneNode.default)(bindings[key])});declar.init&&exprs.push((0,_generated2.assignmentExpression)("=",declar.id,declar.init))}ensureLastUndefined=!0}else if((0,_generated.isIfStatement)(node)){const consequent=node.consequent?gatherSequenceExpressions([node.consequent],scope,declars):scope.buildUndefinedNode(),alternate=node.alternate?gatherSequenceExpressions([node.alternate],scope,declars):scope.buildUndefinedNode();if(!consequent||!alternate)return;exprs.push((0,_generated2.conditionalExpression)(node.test,consequent,alternate))}else if((0,_generated.isBlockStatement)(node)){const body=gatherSequenceExpressions(node.body,scope,declars);if(!body)return;exprs.push(body)}else{if(!(0,_generated.isEmptyStatement)(node))return;0===nodes.indexOf(node)&&(ensureLastUndefined=!0)}ensureLastUndefined&&exprs.push(scope.buildUndefinedNode());return 1===exprs.length?exprs[0]:(0,_generated2.sequenceExpression)(exprs)};var _getBindingIdentifiers=__webpack_require__("./node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js")},"./node_modules/@babel/types/lib/converters/toBindingIdentifierName.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name){"eval"!==(name=(0,_toIdentifier.default)(name))&&"arguments"!==name||(name="_"+name);return name};var _toIdentifier=__webpack_require__("./node_modules/@babel/types/lib/converters/toIdentifier.js")},"./node_modules/@babel/types/lib/converters/toBlock.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent){if((0,_generated.isBlockStatement)(node))return node;let blockNodes=[];(0,_generated.isEmptyStatement)(node)?blockNodes=[]:((0,_generated.isStatement)(node)||(node=(0,_generated.isFunction)(parent)?(0,_generated2.returnStatement)(node):(0,_generated2.expressionStatement)(node)),blockNodes=[node]);return(0,_generated2.blockStatement)(blockNodes)};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/@babel/types/lib/converters/toComputedKey.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key=node.key||node.property){!node.computed&&(0,_generated.isIdentifier)(key)&&(key=(0,_generated2.stringLiteral)(key.name));return key};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/@babel/types/lib/converters/toExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_default=function(node){(0,_generated.isExpressionStatement)(node)&&(node=node.expression);if((0,_generated.isExpression)(node))return node;(0,_generated.isClass)(node)?node.type="ClassExpression":(0,_generated.isFunction)(node)&&(node.type="FunctionExpression");if(!(0,_generated.isExpression)(node))throw new Error(`cannot turn ${node.type} to an expression`);return node};exports.default=_default},"./node_modules/@babel/types/lib/converters/toIdentifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(input){input+="";let name="";for(const c of input)name+=(0,_helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0))?c:"-";name=name.replace(/^[-0-9]+/,""),name=name.replace(/[-\s]+(.)?/g,(function(match,c){return c?c.toUpperCase():""})),(0,_isValidIdentifier.default)(name)||(name=`_${name}`);return name||"_"};var _isValidIdentifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_helperValidatorIdentifier=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/index.js")},"./node_modules/@babel/types/lib/converters/toKeyAlias.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=toKeyAlias;var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js"),_removePropertiesDeep=__webpack_require__("./node_modules/@babel/types/lib/modifications/removePropertiesDeep.js");function toKeyAlias(node,key=node.key){let alias;return"method"===node.kind?toKeyAlias.increment()+"":(alias=(0,_generated.isIdentifier)(key)?key.name:(0,_generated.isStringLiteral)(key)?JSON.stringify(key.value):JSON.stringify((0,_removePropertiesDeep.default)((0,_cloneNode.default)(key))),node.computed&&(alias=`[${alias}]`),node.static&&(alias=`static:${alias}`),alias)}toKeyAlias.uid=0,toKeyAlias.increment=function(){return toKeyAlias.uid>=Number.MAX_SAFE_INTEGER?toKeyAlias.uid=0:toKeyAlias.uid++}},"./node_modules/@babel/types/lib/converters/toSequenceExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(nodes,scope){if(null==nodes||!nodes.length)return;const declars=[],result=(0,_gatherSequenceExpressions.default)(nodes,scope,declars);if(!result)return;for(const declar of declars)scope.push(declar);return result};var _gatherSequenceExpressions=__webpack_require__("./node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js")},"./node_modules/@babel/types/lib/converters/toStatement.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_generated2=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_default=function(node,ignore){if((0,_generated.isStatement)(node))return node;let newType,mustHaveId=!1;if((0,_generated.isClass)(node))mustHaveId=!0,newType="ClassDeclaration";else if((0,_generated.isFunction)(node))mustHaveId=!0,newType="FunctionDeclaration";else if((0,_generated.isAssignmentExpression)(node))return(0,_generated2.expressionStatement)(node);mustHaveId&&!node.id&&(newType=!1);if(!newType){if(ignore)return!1;throw new Error(`cannot turn ${node.type} to a statement`)}return node.type=newType,node};exports.default=_default},"./node_modules/@babel/types/lib/converters/valueToNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _isValidIdentifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js"),_default=function valueToNode(value){if(void 0===value)return(0,_generated.identifier)("undefined");if(!0===value||!1===value)return(0,_generated.booleanLiteral)(value);if(null===value)return(0,_generated.nullLiteral)();if("string"==typeof value)return(0,_generated.stringLiteral)(value);if("number"==typeof value){let result;if(Number.isFinite(value))result=(0,_generated.numericLiteral)(Math.abs(value));else{let numerator;numerator=Number.isNaN(value)?(0,_generated.numericLiteral)(0):(0,_generated.numericLiteral)(1),result=(0,_generated.binaryExpression)("/",numerator,(0,_generated.numericLiteral)(0))}return(value<0||Object.is(value,-0))&&(result=(0,_generated.unaryExpression)("-",result)),result}if(function(value){return"[object RegExp]"===objectToString(value)}(value)){const pattern=value.source,flags=value.toString().match(/\/([a-z]+|)$/)[1];return(0,_generated.regExpLiteral)(pattern,flags)}if(Array.isArray(value))return(0,_generated.arrayExpression)(value.map(valueToNode));if(function(value){if("object"!=typeof value||null===value||"[object Object]"!==Object.prototype.toString.call(value))return!1;const proto=Object.getPrototypeOf(value);return null===proto||null===Object.getPrototypeOf(proto)}(value)){const props=[];for(const key of Object.keys(value)){let nodeKey;nodeKey=(0,_isValidIdentifier.default)(key)?(0,_generated.identifier)(key):(0,_generated.stringLiteral)(key),props.push((0,_generated.objectProperty)(nodeKey,valueToNode(value[key])))}return(0,_generated.objectExpression)(props)}throw new Error("don't know how to turn this value into a node")};exports.default=_default;const objectToString=Function.call.bind(Object.prototype.toString)},"./node_modules/@babel/types/lib/definitions/core.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.patternLikeCommon=exports.functionTypeAnnotationCommon=exports.functionDeclarationCommon=exports.functionCommon=exports.classMethodOrPropertyCommon=exports.classMethodOrDeclareMethodCommon=void 0;var _is=__webpack_require__("./node_modules/@babel/types/lib/validators/is.js"),_isValidIdentifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_helperValidatorIdentifier=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/index.js"),_constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js"),_utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0,_utils.defineAliasedType)("Standardized");defineType("ArrayExpression",{fields:{elements:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),defineType("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,_utils.assertValueType)("string");const identifier=(0,_utils.assertOneOf)(..._constants.ASSIGNMENT_OPERATORS),pattern=(0,_utils.assertOneOf)("=");return function(node,key,val){((0,_is.default)("Pattern",node.left)?pattern:identifier)(node,key,val)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,_utils.assertNodeType)("LVal")},right:{validate:(0,_utils.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),defineType("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,_utils.assertOneOf)(..._constants.BINARY_OPERATORS)},left:{validate:function(){const expression=(0,_utils.assertNodeType)("Expression"),inOp=(0,_utils.assertNodeType)("Expression","PrivateName"),validator=function(node,key,val){("in"===node.operator?inOp:expression)(node,key,val)};return validator.oneOfNodeTypes=["Expression","PrivateName"],validator}()},right:{validate:(0,_utils.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),defineType("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}}}),defineType("Directive",{visitor:["value"],fields:{value:{validate:(0,_utils.assertNodeType)("DirectiveLiteral")}}}),defineType("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}}}),defineType("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Directive"))),default:[]},body:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),defineType("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,_utils.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),defineType("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,_utils.assertNodeType)("Expression","V8IntrinsicIdentifier")},arguments:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,_utils.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,_utils.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),defineType("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,_utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,_utils.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),defineType("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,_utils.assertNodeType)("Expression")},consequent:{validate:(0,_utils.assertNodeType)("Expression")},alternate:{validate:(0,_utils.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),defineType("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,_utils.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),defineType("DebuggerStatement",{aliases:["Statement"]}),defineType("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,_utils.assertNodeType)("Expression")},body:{validate:(0,_utils.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),defineType("EmptyStatement",{aliases:["Statement"]}),defineType("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),defineType("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,_utils.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.assertEach)((0,_utils.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,_utils.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),defineType("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern"):(0,_utils.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,_utils.assertNodeType)("Expression")},body:{validate:(0,_utils.assertNodeType)("Statement")}}}),defineType("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,_utils.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0},update:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0},body:{validate:(0,_utils.assertNodeType)("Statement")}}});const functionCommon={params:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}};exports.functionCommon=functionCommon;const functionTypeAnnotationCommon={returnType:{validate:(0,_utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}};exports.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=Object.assign({},functionCommon,{declare:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},id:{validate:(0,_utils.assertNodeType)("Identifier"),optional:!0}});exports.functionDeclarationCommon=functionDeclarationCommon,defineType("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},functionDeclarationCommon,functionTypeAnnotationCommon,{body:{validate:(0,_utils.assertNodeType)("BlockStatement")}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};const identifier=(0,_utils.assertNodeType)("Identifier");return function(parent,key,node){(0,_is.default)("ExportDefaultDeclaration",parent)||identifier(node,"id",node.id)}}()}),defineType("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon,functionTypeAnnotationCommon,{id:{validate:(0,_utils.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,_utils.assertNodeType)("BlockStatement")}})});const patternLikeCommon={typeAnnotation:{validate:(0,_utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator")))}};exports.patternLikeCommon=patternLikeCommon,defineType("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon,{name:{validate:(0,_utils.chain)((0,_utils.assertValueType)("string"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,_isValidIdentifier.default)(val,!1))throw new TypeError(`"${val}" is not a valid identifier name`)}),{type:"string"}))},optional:{validate:(0,_utils.assertValueType)("boolean"),optional:!0}}),validate(parent,key,node){if(!process.env.BABEL_TYPES_8_BREAKING)return;const match=/\.(\w+)$/.exec(key);if(!match)return;const[,parentKey]=match,nonComp={computed:!1};if("property"===parentKey){if((0,_is.default)("MemberExpression",parent,nonComp))return;if((0,_is.default)("OptionalMemberExpression",parent,nonComp))return}else if("key"===parentKey){if((0,_is.default)("Property",parent,nonComp))return;if((0,_is.default)("Method",parent,nonComp))return}else if("exported"===parentKey){if((0,_is.default)("ExportSpecifier",parent))return}else if("imported"===parentKey){if((0,_is.default)("ImportSpecifier",parent,{imported:node}))return}else if("meta"===parentKey&&(0,_is.default)("MetaProperty",parent,{meta:node}))return;if(((0,_helperValidatorIdentifier.isKeyword)(node.name)||(0,_helperValidatorIdentifier.isReservedWord)(node.name,!1))&&"this"!==node.name)throw new TypeError(`"${node.name}" is not a valid identifier`)}}),defineType("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,_utils.assertNodeType)("Expression")},consequent:{validate:(0,_utils.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,_utils.assertNodeType)("Statement")}}}),defineType("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,_utils.assertNodeType)("Identifier")},body:{validate:(0,_utils.assertNodeType)("Statement")}}}),defineType("StringLiteral",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,_utils.assertValueType)("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,_utils.assertValueType)("string")},flags:{validate:(0,_utils.chain)((0,_utils.assertValueType)("string"),Object.assign((function(node,key,val){if(!process.env.BABEL_TYPES_8_BREAKING)return;const invalid=/[^gimsuy]/.exec(val);if(invalid)throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`)}),{type:"string"})),default:""}}}),defineType("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,_utils.assertOneOf)(..._constants.LOGICAL_OPERATORS)},left:{validate:(0,_utils.assertNodeType)("Expression")},right:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,_utils.assertNodeType)("Expression")},property:{validate:function(){const normal=(0,_utils.assertNodeType)("Identifier","PrivateName"),computed=(0,_utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val)};return validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"],validator}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,_utils.assertOneOf)(!0,!1),optional:!0}})}),defineType("NewExpression",{inherits:"CallExpression"}),defineType("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceFile:{validate:(0,_utils.assertValueType)("string")},sourceType:{validate:(0,_utils.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,_utils.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Directive"))),default:[]},body:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),defineType("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),defineType("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},functionCommon,functionTypeAnnotationCommon,{kind:Object.assign({validate:(0,_utils.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const normal=(0,_utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),computed=(0,_utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,_utils.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),defineType("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const normal=(0,_utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),computed=(0,_utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val)};return validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral"],validator}()},value:{validate:(0,_utils.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,_utils.chain)((0,_utils.assertValueType)("boolean"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}),{type:"boolean"}),(function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&!(0,_is.default)("Identifier",node.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")})),default:!1},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const pattern=(0,_utils.assertNodeType)("Identifier","Pattern"),expression=(0,_utils.assertNodeType)("Expression");return function(parent,key,node){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,_is.default)("ObjectPattern",parent)?pattern:expression)(node,"value",node.value)}}()}),defineType("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon,{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression"):(0,_utils.assertNodeType)("LVal")},optional:{validate:(0,_utils.assertValueType)("boolean"),optional:!0}}),validate(parent,key){if(!process.env.BABEL_TYPES_8_BREAKING)return;const match=/(\w+)\[(\d+)\]/.exec(key);if(!match)throw new Error("Internal Babel error: malformed key.");const[,listKey,index]=match;if(parent[listKey].length>index+1)throw new TypeError(`RestElement must be last element of ${listKey}`)}}),defineType("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0}}}),defineType("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Expression")))}},aliases:["Expression"]}),defineType("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Statement")))}}}),defineType("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,_utils.assertNodeType)("Expression")},cases:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("SwitchCase")))}}}),defineType("ThisExpression",{aliases:["Expression"]}),defineType("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,_utils.chain)((0,_utils.assertNodeType)("BlockStatement"),Object.assign((function(node){if(process.env.BABEL_TYPES_8_BREAKING&&!node.handler&&!node.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,_utils.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,_utils.assertNodeType)("BlockStatement")}}}),defineType("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,_utils.assertNodeType)("Expression")},operator:{validate:(0,_utils.assertOneOf)(..._constants.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),defineType("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.assertNodeType)("Identifier","MemberExpression"):(0,_utils.assertNodeType)("Expression")},operator:{validate:(0,_utils.assertOneOf)(..._constants.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),defineType("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},kind:{validate:(0,_utils.assertOneOf)("var","let","const")},declarations:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("VariableDeclarator")))}},validate(parent,key,node){if(process.env.BABEL_TYPES_8_BREAKING&&(0,_is.default)("ForXStatement",parent,{left:node})&&1!==node.declarations.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`)}}),defineType("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,_utils.assertNodeType)("LVal");const normal=(0,_utils.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),without=(0,_utils.assertNodeType)("Identifier");return function(node,key,val){(node.init?normal:without)(node,key,val)}}()},definite:{optional:!0,validate:(0,_utils.assertValueType)("boolean")},init:{optional:!0,validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,_utils.assertNodeType)("Expression")},body:{validate:(0,_utils.assertNodeType)("Statement")}}}),defineType("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,_utils.assertNodeType)("Expression")},body:{validate:(0,_utils.assertNodeType)("Statement")}}}),defineType("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon,{left:{validate:(0,_utils.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression")},right:{validate:(0,_utils.assertNodeType)("Expression")},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0}})}),defineType("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon,{elements:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeOrValueType)("null","PatternLike")))},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},optional:{validate:(0,_utils.assertValueType)("boolean"),optional:!0}})}),defineType("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon,functionTypeAnnotationCommon,{expression:{validate:(0,_utils.assertValueType)("boolean")},body:{validate:(0,_utils.assertNodeType)("BlockStatement","Expression")}})}),defineType("ClassBody",{visitor:["body"],fields:{body:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","TSDeclareMethod","TSIndexSignature")))}}}),defineType("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,_utils.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,_utils.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,_utils.assertNodeType)("Expression")},superTypeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,_utils.assertNodeType)("InterfaceExtends"),optional:!0}}}),defineType("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,_utils.assertNodeType)("Identifier")},typeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,_utils.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,_utils.assertNodeType)("Expression")},superTypeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,_utils.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,_utils.assertValueType)("boolean"),optional:!0}},validate:function(){const identifier=(0,_utils.assertNodeType)("Identifier");return function(parent,key,node){process.env.BABEL_TYPES_8_BREAKING&&((0,_is.default)("ExportDefaultDeclaration",parent)||identifier(node,"id",node.id))}}()}),defineType("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,_utils.assertNodeType)("StringLiteral")},exportKind:(0,_utils.validateOptional)((0,_utils.assertOneOf)("type","value")),assertions:{optional:!0,validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ImportAttribute")))}}}),defineType("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,_utils.assertNodeType)("FunctionDeclaration","TSDeclareFunction","ClassDeclaration","Expression")},exportKind:(0,_utils.validateOptional)((0,_utils.assertOneOf)("value"))}}),defineType("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,_utils.chain)((0,_utils.assertNodeType)("Declaration"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&node.source)throw new TypeError("Cannot export a declaration from a source")}))},assertions:{optional:!0,validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)(function(){const sourced=(0,_utils.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),sourceless=(0,_utils.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(node,key,val){(node.source?sourced:sourceless)(node,key,val)}:sourced}()))},source:{validate:(0,_utils.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,_utils.validateOptional)((0,_utils.assertOneOf)("type","value"))}}),defineType("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,_utils.assertNodeType)("Identifier")},exported:{validate:(0,_utils.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,_utils.assertOneOf)("type","value"),optional:!0}}}),defineType("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,_utils.assertNodeType)("VariableDeclaration","LVal");const declaration=(0,_utils.assertNodeType)("VariableDeclaration"),lval=(0,_utils.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern");return function(node,key,val){(0,_is.default)("VariableDeclaration",val)?declaration(node,key,val):lval(node,key,val)}}()},right:{validate:(0,_utils.assertNodeType)("Expression")},body:{validate:(0,_utils.assertNodeType)("Statement")},await:{default:!1}}}),defineType("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{assertions:{optional:!0,validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ImportAttribute")))},specifiers:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,_utils.assertNodeType)("StringLiteral")},importKind:{validate:(0,_utils.assertOneOf)("type","typeof","value"),optional:!0}}}),defineType("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,_utils.assertNodeType)("Identifier")}}}),defineType("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,_utils.assertNodeType)("Identifier")}}}),defineType("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,_utils.assertNodeType)("Identifier")},imported:{validate:(0,_utils.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,_utils.assertOneOf)("type","typeof","value"),optional:!0}}}),defineType("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,_utils.chain)((0,_utils.assertNodeType)("Identifier"),Object.assign((function(node,key,val){if(!process.env.BABEL_TYPES_8_BREAKING)return;let property;switch(val.name){case"function":property="sent";break;case"new":property="target";break;case"import":property="meta"}if(!(0,_is.default)("Identifier",node.property,{name:property}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,_utils.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon={abstract:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,_utils.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},key:{validate:(0,_utils.chain)(function(){const normal=(0,_utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral"),computed=(0,_utils.assertNodeType)("Expression");return function(node,key,val){(node.computed?computed:normal)(node,key,val)}}(),(0,_utils.assertNodeType)("Identifier","StringLiteral","NumericLiteral","Expression"))}};exports.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=Object.assign({},functionCommon,classMethodOrPropertyCommon,{params:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,_utils.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,_utils.chain)((0,_utils.assertValueType)("string"),(0,_utils.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0}});exports.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon,defineType("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},classMethodOrDeclareMethodCommon,functionTypeAnnotationCommon,{body:{validate:(0,_utils.assertNodeType)("BlockStatement")}})}),defineType("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon,{properties:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("RestElement","ObjectProperty")))}})}),defineType("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("Super",{aliases:["Expression"]}),defineType("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,_utils.assertNodeType)("Expression")},quasi:{validate:(0,_utils.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),defineType("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,_utils.assertShape)({raw:{validate:(0,_utils.assertValueType)("string")},cooked:{validate:(0,_utils.assertValueType)("string"),optional:!0}})},tail:{default:!1}}}),defineType("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("TemplateElement")))},expressions:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Expression","TSType")),(function(node,key,val){if(node.quasis.length!==val.length+1)throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length+1} quasis but got ${node.quasis.length}`)}))}}}),defineType("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,_utils.chain)((0,_utils.assertValueType)("boolean"),Object.assign((function(node,key,val){if(process.env.BABEL_TYPES_8_BREAKING&&val&&!node.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("Import",{aliases:["Expression"]}),defineType("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),defineType("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,_utils.assertNodeType)("Identifier")}}}),defineType("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,_utils.assertNodeType)("Expression")},property:{validate:function(){const normal=(0,_utils.assertNodeType)("Identifier"),computed=(0,_utils.assertNodeType)("Expression"),validator=function(node,key,val){(node.computed?computed:normal)(node,key,val)};return validator.oneOfNodeTypes=["Expression","Identifier"],validator}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.chain)((0,_utils.assertValueType)("boolean"),(0,_utils.assertOptionalChainStart)()):(0,_utils.assertValueType)("boolean")}}}),defineType("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,_utils.assertNodeType)("Expression")},arguments:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,_utils.chain)((0,_utils.assertValueType)("boolean"),(0,_utils.assertOptionalChainStart)()):(0,_utils.assertValueType)("boolean")},typeArguments:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,_utils.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),defineType("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},classMethodOrPropertyCommon,{value:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,_utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},declare:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},variance:{validate:(0,_utils.assertNodeType)("Variance"),optional:!0}})}),defineType("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,_utils.assertNodeType)("PrivateName")},value:{validate:(0,_utils.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,_utils.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},definite:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},variance:{validate:(0,_utils.assertNodeType)("Variance"),optional:!0}}}),defineType("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon,functionTypeAnnotationCommon,{key:{validate:(0,_utils.assertNodeType)("PrivateName")},body:{validate:(0,_utils.assertNodeType)("BlockStatement")}})}),defineType("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,_utils.assertNodeType)("Identifier")}}}),defineType("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]})},"./node_modules/@babel/types/lib/definitions/experimental.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js");(0,_utils.default)("ArgumentPlaceholder",{}),(0,_utils.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,_utils.assertNodeType)("Expression")},callee:{validate:(0,_utils.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,_utils.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,_utils.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,_utils.assertNodeType)("StringLiteral")}}}),(0,_utils.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression")}}}),(0,_utils.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,_utils.assertNodeType)("BlockStatement")},async:{validate:(0,_utils.assertValueType)("boolean"),default:!1}}}),(0,_utils.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,_utils.assertNodeType)("Identifier")}}}),(0,_utils.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,_utils.default)("TupleExpression",{fields:{elements:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,_utils.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,_utils.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,_utils.assertNodeType)("Program")}},aliases:["Expression"]}),(0,_utils.default)("TopicReference",{aliases:["Expression"]}),(0,_utils.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,_utils.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,_utils.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,_utils.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})},"./node_modules/@babel/types/lib/definitions/flow.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0,_utils.defineAliasedType)("Flow"),defineInterfaceishType=(name,typeParameterType="TypeParameterDeclaration")=>{defineType(name,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)(typeParameterType),extends:(0,_utils.validateOptional)((0,_utils.arrayOfType)("InterfaceExtends")),mixins:(0,_utils.validateOptional)((0,_utils.arrayOfType)("InterfaceExtends")),implements:(0,_utils.validateOptional)((0,_utils.arrayOfType)("ClassImplements")),body:(0,_utils.validateType)("ObjectTypeAnnotation")}})};defineType("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,_utils.validateType)("FlowType")}}),defineType("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("DeclareClass"),defineType("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),predicate:(0,_utils.validateOptionalType)("DeclaredPredicate")}}),defineInterfaceishType("DeclareInterface"),defineType("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)(["Identifier","StringLiteral"]),body:(0,_utils.validateType)("BlockStatement"),kind:(0,_utils.validateOptional)((0,_utils.assertOneOf)("CommonJS","ES"))}}),defineType("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,_utils.validateType)("TypeAnnotation")}}),defineType("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TypeParameterDeclaration"),right:(0,_utils.validateType)("FlowType")}}),defineType("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,_utils.validateOptionalType)("FlowType"),impltype:(0,_utils.validateOptionalType)("FlowType")}}),defineType("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier")}}),defineType("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,_utils.validateOptionalType)("Flow"),specifiers:(0,_utils.validateOptional)((0,_utils.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,_utils.validateOptionalType)("StringLiteral"),default:(0,_utils.validateOptional)((0,_utils.assertValueType)("boolean"))}}),defineType("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,_utils.validateType)("StringLiteral"),exportKind:(0,_utils.validateOptional)((0,_utils.assertOneOf)("type","value"))}}),defineType("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,_utils.validateType)("Flow")}}),defineType("ExistsTypeAnnotation",{aliases:["FlowType"]}),defineType("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,_utils.validateOptionalType)("TypeParameterDeclaration"),params:(0,_utils.validate)((0,_utils.arrayOfType)("FunctionTypeParam")),rest:(0,_utils.validateOptionalType)("FunctionTypeParam"),this:(0,_utils.validateOptionalType)("FunctionTypeParam"),returnType:(0,_utils.validateType)("FlowType")}}),defineType("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,_utils.validateOptionalType)("Identifier"),typeAnnotation:(0,_utils.validateType)("FlowType"),optional:(0,_utils.validateOptional)((0,_utils.assertValueType)("boolean"))}}),defineType("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,_utils.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,_utils.validateOptionalType)("TypeParameterInstantiation")}}),defineType("InferredPredicate",{aliases:["FlowPredicate"]}),defineType("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,_utils.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,_utils.validateOptionalType)("TypeParameterInstantiation")}}),defineInterfaceishType("InterfaceDeclaration"),defineType("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,_utils.validateOptional)((0,_utils.arrayOfType)("InterfaceExtends")),body:(0,_utils.validateType)("ObjectTypeAnnotation")}}),defineType("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,_utils.validate)((0,_utils.arrayOfType)("FlowType"))}}),defineType("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,_utils.validateType)("FlowType")}}),defineType("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,_utils.validate)((0,_utils.assertValueType)("number"))}}),defineType("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,_utils.validate)((0,_utils.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,_utils.validateOptional)((0,_utils.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,_utils.validateOptional)((0,_utils.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,_utils.validateOptional)((0,_utils.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,_utils.assertValueType)("boolean"),default:!1},inexact:(0,_utils.validateOptional)((0,_utils.assertValueType)("boolean"))}}),defineType("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,_utils.validateType)("Identifier"),value:(0,_utils.validateType)("FlowType"),optional:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),static:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),method:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,_utils.validateType)("FlowType"),static:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,_utils.validateOptionalType)("Identifier"),key:(0,_utils.validateType)("FlowType"),value:(0,_utils.validateType)("FlowType"),static:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),variance:(0,_utils.validateOptionalType)("Variance")}}),defineType("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,_utils.validateType)(["Identifier","StringLiteral"]),value:(0,_utils.validateType)("FlowType"),kind:(0,_utils.validate)((0,_utils.assertOneOf)("init","get","set")),static:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),proto:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),optional:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),variance:(0,_utils.validateOptionalType)("Variance"),method:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,_utils.validateType)("FlowType")}}),defineType("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,_utils.validateOptionalType)("FlowType"),impltype:(0,_utils.validateType)("FlowType")}}),defineType("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,_utils.validateType)("Identifier"),qualification:(0,_utils.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),defineType("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,_utils.validate)((0,_utils.assertValueType)("string"))}}),defineType("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,_utils.validate)((0,_utils.arrayOfType)("FlowType"))}}),defineType("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,_utils.validateType)("FlowType")}}),defineType("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TypeParameterDeclaration"),right:(0,_utils.validateType)("FlowType")}}),defineType("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,_utils.validateType)("FlowType")}}),defineType("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,_utils.validateType)("Expression"),typeAnnotation:(0,_utils.validateType)("TypeAnnotation")}}),defineType("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,_utils.validate)((0,_utils.assertValueType)("string")),bound:(0,_utils.validateOptionalType)("TypeAnnotation"),default:(0,_utils.validateOptionalType)("FlowType"),variance:(0,_utils.validateOptionalType)("Variance")}}),defineType("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,_utils.validate)((0,_utils.arrayOfType)("TypeParameter"))}}),defineType("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,_utils.validate)((0,_utils.arrayOfType)("FlowType"))}}),defineType("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,_utils.validate)((0,_utils.arrayOfType)("FlowType"))}}),defineType("Variance",{builder:["kind"],fields:{kind:(0,_utils.validate)((0,_utils.assertOneOf)("minus","plus"))}}),defineType("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),defineType("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,_utils.validateType)("Identifier"),body:(0,_utils.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),defineType("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),members:(0,_utils.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),members:(0,_utils.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,_utils.validate)((0,_utils.assertValueType)("boolean")),members:(0,_utils.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,_utils.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}}),defineType("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,_utils.validateType)("Identifier"),init:(0,_utils.validateType)("BooleanLiteral")}}),defineType("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,_utils.validateType)("Identifier"),init:(0,_utils.validateType)("NumericLiteral")}}),defineType("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,_utils.validateType)("Identifier"),init:(0,_utils.validateType)("StringLiteral")}}),defineType("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,_utils.validateType)("Identifier")}}),defineType("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,_utils.validateType)("FlowType"),indexType:(0,_utils.validateType)("FlowType")}}),defineType("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,_utils.validateType)("FlowType"),indexType:(0,_utils.validateType)("FlowType"),optional:(0,_utils.validate)((0,_utils.assertValueType)("boolean"))}})},"./node_modules/@babel/types/lib/definitions/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ALIAS_KEYS",{enumerable:!0,get:function(){return _utils.ALIAS_KEYS}}),Object.defineProperty(exports,"BUILDER_KEYS",{enumerable:!0,get:function(){return _utils.BUILDER_KEYS}}),Object.defineProperty(exports,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return _utils.DEPRECATED_KEYS}}),Object.defineProperty(exports,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return _utils.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(exports,"NODE_FIELDS",{enumerable:!0,get:function(){return _utils.NODE_FIELDS}}),Object.defineProperty(exports,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return _utils.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(exports,"PLACEHOLDERS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS}}),Object.defineProperty(exports,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS_ALIAS}}),Object.defineProperty(exports,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return _placeholders.PLACEHOLDERS_FLIPPED_ALIAS}}),exports.TYPES=void 0,Object.defineProperty(exports,"VISITOR_KEYS",{enumerable:!0,get:function(){return _utils.VISITOR_KEYS}});var _toFastProperties=__webpack_require__("./node_modules/to-fast-properties/index.js");__webpack_require__("./node_modules/@babel/types/lib/definitions/core.js"),__webpack_require__("./node_modules/@babel/types/lib/definitions/flow.js"),__webpack_require__("./node_modules/@babel/types/lib/definitions/jsx.js"),__webpack_require__("./node_modules/@babel/types/lib/definitions/misc.js"),__webpack_require__("./node_modules/@babel/types/lib/definitions/experimental.js"),__webpack_require__("./node_modules/@babel/types/lib/definitions/typescript.js");var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js"),_placeholders=__webpack_require__("./node_modules/@babel/types/lib/definitions/placeholders.js");_toFastProperties(_utils.VISITOR_KEYS),_toFastProperties(_utils.ALIAS_KEYS),_toFastProperties(_utils.FLIPPED_ALIAS_KEYS),_toFastProperties(_utils.NODE_FIELDS),_toFastProperties(_utils.BUILDER_KEYS),_toFastProperties(_utils.DEPRECATED_KEYS),_toFastProperties(_placeholders.PLACEHOLDERS_ALIAS),_toFastProperties(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS);const TYPES=[].concat(Object.keys(_utils.VISITOR_KEYS),Object.keys(_utils.FLIPPED_ALIAS_KEYS),Object.keys(_utils.DEPRECATED_KEYS));exports.TYPES=TYPES},"./node_modules/@babel/types/lib/definitions/jsx.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js");const defineType=(0,_utils.defineAliasedType)("JSX");defineType("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,_utils.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,_utils.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),defineType("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,_utils.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),defineType("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:(0,_utils.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,_utils.assertNodeType)("JSXClosingElement")},children:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))},selfClosing:{validate:(0,_utils.assertValueType)("boolean"),optional:!0}}}),defineType("JSXEmptyExpression",{}),defineType("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression","JSXEmptyExpression")}}}),defineType("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,_utils.assertValueType)("string")}}}),defineType("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,_utils.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,_utils.assertNodeType)("JSXIdentifier")}}}),defineType("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,_utils.assertNodeType)("JSXIdentifier")},name:{validate:(0,_utils.assertNodeType)("JSXIdentifier")}}}),defineType("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,_utils.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,_utils.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),defineType("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,_utils.assertNodeType)("Expression")}}}),defineType("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,_utils.assertValueType)("string")}}}),defineType("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,_utils.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,_utils.assertNodeType)("JSXClosingFragment")},children:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),defineType("JSXOpeningFragment",{aliases:["Immutable"]}),defineType("JSXClosingFragment",{aliases:["Immutable"]})},"./node_modules/@babel/types/lib/definitions/misc.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js"),_placeholders=__webpack_require__("./node_modules/@babel/types/lib/definitions/placeholders.js");const defineType=(0,_utils.defineAliasedType)("Miscellaneous");defineType("Noop",{visitor:[]}),defineType("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,_utils.assertNodeType)("Identifier")},expectedNode:{validate:(0,_utils.assertOneOf)(..._placeholders.PLACEHOLDERS)}}}),defineType("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,_utils.assertValueType)("string")}}})},"./node_modules/@babel/types/lib/definitions/placeholders.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PLACEHOLDERS_FLIPPED_ALIAS=exports.PLACEHOLDERS_ALIAS=exports.PLACEHOLDERS=void 0;var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js");const PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];exports.PLACEHOLDERS=PLACEHOLDERS;const PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};exports.PLACEHOLDERS_ALIAS=PLACEHOLDERS_ALIAS;for(const type of PLACEHOLDERS){const alias=_utils.ALIAS_KEYS[type];null!=alias&&alias.length&&(PLACEHOLDERS_ALIAS[type]=alias)}const PLACEHOLDERS_FLIPPED_ALIAS={};exports.PLACEHOLDERS_FLIPPED_ALIAS=PLACEHOLDERS_FLIPPED_ALIAS,Object.keys(PLACEHOLDERS_ALIAS).forEach((type=>{PLACEHOLDERS_ALIAS[type].forEach((alias=>{Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS,alias)||(PLACEHOLDERS_FLIPPED_ALIAS[alias]=[]),PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type)}))}))},"./node_modules/@babel/types/lib/definitions/typescript.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _utils=__webpack_require__("./node_modules/@babel/types/lib/definitions/utils.js"),_core=__webpack_require__("./node_modules/@babel/types/lib/definitions/core.js"),_is=__webpack_require__("./node_modules/@babel/types/lib/validators/is.js");const defineType=(0,_utils.defineAliasedType)("TypeScript"),bool=(0,_utils.assertValueType)("boolean"),tSFunctionTypeAnnotationCommon={returnType:{validate:(0,_utils.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,_utils.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}};defineType("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,_utils.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,_utils.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,_utils.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("Decorator"))),optional:!0}}}),defineType("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},_core.functionDeclarationCommon,tSFunctionTypeAnnotationCommon)}),defineType("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},_core.classMethodOrDeclareMethodCommon,tSFunctionTypeAnnotationCommon)}),defineType("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,_utils.validateType)("TSEntityName"),right:(0,_utils.validateType)("Identifier")}});const signatureDeclarationCommon={typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,_utils.validateArrayOfType)(["Identifier","RestElement"]),typeAnnotation:(0,_utils.validateOptionalType)("TSTypeAnnotation")},callConstructSignatureDeclaration={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon};defineType("TSCallSignatureDeclaration",callConstructSignatureDeclaration),defineType("TSConstructSignatureDeclaration",callConstructSignatureDeclaration);const namedTypeElementCommon={key:(0,_utils.validateType)("Expression"),computed:(0,_utils.validate)(bool),optional:(0,_utils.validateOptional)(bool)};defineType("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation","initializer"],fields:Object.assign({},namedTypeElementCommon,{readonly:(0,_utils.validateOptional)(bool),typeAnnotation:(0,_utils.validateOptionalType)("TSTypeAnnotation"),initializer:(0,_utils.validateOptionalType)("Expression"),kind:{validate:(0,_utils.assertOneOf)("get","set")}})}),defineType("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon,namedTypeElementCommon,{kind:{validate:(0,_utils.assertOneOf)("method","get","set")}})}),defineType("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,_utils.validateOptional)(bool),static:(0,_utils.validateOptional)(bool),parameters:(0,_utils.validateArrayOfType)("Identifier"),typeAnnotation:(0,_utils.validateOptionalType)("TSTypeAnnotation")}});const tsKeywordTypes=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const type of tsKeywordTypes)defineType(type,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});defineType("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const fnOrCtrBase={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};defineType("TSFunctionType",Object.assign({},fnOrCtrBase,{fields:signatureDeclarationCommon})),defineType("TSConstructorType",Object.assign({},fnOrCtrBase,{fields:Object.assign({},signatureDeclarationCommon,{abstract:(0,_utils.validateOptional)(bool)})})),defineType("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,_utils.validateType)("TSEntityName"),typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,_utils.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,_utils.validateOptionalType)("TSTypeAnnotation"),asserts:(0,_utils.validateOptional)(bool)}}),defineType("TSTypeQuery",{aliases:["TSType"],visitor:["exprName"],fields:{exprName:(0,_utils.validateType)(["TSEntityName","TSImportType"])}}),defineType("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,_utils.validateArrayOfType)("TSTypeElement")}}),defineType("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,_utils.validateType)("TSType")}}),defineType("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,_utils.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),defineType("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,_utils.validateType)("Identifier"),optional:{validate:bool,default:!1},elementType:(0,_utils.validateType)("TSType")}});const unionOrIntersection={aliases:["TSType"],visitor:["types"],fields:{types:(0,_utils.validateArrayOfType)("TSType")}};defineType("TSUnionType",unionOrIntersection),defineType("TSIntersectionType",unionOrIntersection),defineType("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,_utils.validateType)("TSType"),extendsType:(0,_utils.validateType)("TSType"),trueType:(0,_utils.validateType)("TSType"),falseType:(0,_utils.validateType)("TSType")}}),defineType("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,_utils.validateType)("TSTypeParameter")}}),defineType("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,_utils.validate)((0,_utils.assertValueType)("string")),typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,_utils.validateType)("TSType"),indexType:(0,_utils.validateType)("TSType")}}),defineType("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,_utils.validateOptional)(bool),typeParameter:(0,_utils.validateType)("TSTypeParameter"),optional:(0,_utils.validateOptional)(bool),typeAnnotation:(0,_utils.validateOptionalType)("TSType"),nameType:(0,_utils.validateOptionalType)("TSType")}}),defineType("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const unaryExpression=(0,_utils.assertNodeType)("NumericLiteral","BigIntLiteral"),unaryOperator=(0,_utils.assertOneOf)("-"),literal=(0,_utils.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral");function validator(parent,key,node){(0,_is.default)("UnaryExpression",node)?(unaryOperator(node,"operator",node.operator),unaryExpression(node,"argument",node.argument)):literal(parent,key,node)}return validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","UnaryExpression"],validator}()}}}),defineType("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,_utils.validateType)("TSEntityName"),typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,_utils.validateOptional)(bool),id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,_utils.validateOptional)((0,_utils.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,_utils.validateType)("TSInterfaceBody")}}),defineType("TSInterfaceBody",{visitor:["body"],fields:{body:(0,_utils.validateArrayOfType)("TSTypeElement")}}),defineType("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,_utils.validateOptional)(bool),id:(0,_utils.validateType)("Identifier"),typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSAsExpression",{aliases:["Expression"],visitor:["expression","typeAnnotation"],fields:{expression:(0,_utils.validateType)("Expression"),typeAnnotation:(0,_utils.validateType)("TSType")}}),defineType("TSTypeAssertion",{aliases:["Expression"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,_utils.validateType)("TSType"),expression:(0,_utils.validateType)("Expression")}}),defineType("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,_utils.validateOptional)(bool),const:(0,_utils.validateOptional)(bool),id:(0,_utils.validateType)("Identifier"),members:(0,_utils.validateArrayOfType)("TSEnumMember"),initializer:(0,_utils.validateOptionalType)("Expression")}}),defineType("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,_utils.validateType)(["Identifier","StringLiteral"]),initializer:(0,_utils.validateOptionalType)("Expression")}}),defineType("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,_utils.validateOptional)(bool),global:(0,_utils.validateOptional)(bool),id:(0,_utils.validateType)(["Identifier","StringLiteral"]),body:(0,_utils.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),defineType("TSModuleBlock",{aliases:["Scopable","Block","BlockParent"],visitor:["body"],fields:{body:(0,_utils.validateArrayOfType)("Statement")}}),defineType("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,_utils.validateType)("StringLiteral"),qualifier:(0,_utils.validateOptionalType)("TSEntityName"),typeParameters:(0,_utils.validateOptionalType)("TSTypeParameterInstantiation")}}),defineType("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,_utils.validate)(bool),id:(0,_utils.validateType)("Identifier"),moduleReference:(0,_utils.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,_utils.assertOneOf)("type","value"),optional:!0}}}),defineType("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,_utils.validateType)("StringLiteral")}}),defineType("TSNonNullExpression",{aliases:["Expression"],visitor:["expression"],fields:{expression:(0,_utils.validateType)("Expression")}}),defineType("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,_utils.validateType)("Expression")}}),defineType("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,_utils.validateType)("Identifier")}}),defineType("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,_utils.assertNodeType)("TSType")}}}),defineType("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("TSType")))}}}),defineType("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,_utils.chain)((0,_utils.assertValueType)("array"),(0,_utils.assertEach)((0,_utils.assertNodeType)("TSTypeParameter")))}}}),defineType("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,_utils.assertValueType)("string")},constraint:{validate:(0,_utils.assertNodeType)("TSType"),optional:!0},default:{validate:(0,_utils.assertNodeType)("TSType"),optional:!0}}})},"./node_modules/@babel/types/lib/definitions/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VISITOR_KEYS=exports.NODE_PARENT_VALIDATIONS=exports.NODE_FIELDS=exports.FLIPPED_ALIAS_KEYS=exports.DEPRECATED_KEYS=exports.BUILDER_KEYS=exports.ALIAS_KEYS=void 0,exports.arrayOf=arrayOf,exports.arrayOfType=arrayOfType,exports.assertEach=assertEach,exports.assertNodeOrValueType=function(...types){function validate(node,key,val){for(const type of types)if(getType(val)===type||(0,_is.default)(type,val))return void(0,_validate.validateChild)(node,key,val);throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null==val?void 0:val.type)}`)}return validate.oneOfNodeOrValueTypes=types,validate},exports.assertNodeType=assertNodeType,exports.assertOneOf=function(...values){function validate(node,key,val){if(values.indexOf(val)<0)throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`)}return validate.oneOf=values,validate},exports.assertOptionalChainStart=function(){return function(node){var _current;let current=node;for(;node;){const{type}=current;if("OptionalCallExpression"!==type){if("OptionalMemberExpression"!==type)break;if(current.optional)return;current=current.object}else{if(current.optional)return;current=current.callee}}throw new TypeError(`Non-optional ${node.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(_current=current)?void 0:_current.type}`)}},exports.assertShape=function(shape){function validate(node,key,val){const errors=[];for(const property of Object.keys(shape))try{(0,_validate.validateField)(node,property,val[property],shape[property])}catch(error){if(error instanceof TypeError){errors.push(error.message);continue}throw error}if(errors.length)throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`)}return validate.shapeOf=shape,validate},exports.assertValueType=assertValueType,exports.chain=chain,exports.default=defineType,exports.defineAliasedType=function(...aliases){return(type,opts={})=>{let defined=opts.aliases;var _store$opts$inherits$;defined||(opts.inherits&&(defined=null==(_store$opts$inherits$=store[opts.inherits].aliases)?void 0:_store$opts$inherits$.slice()),null!=defined||(defined=[]),opts.aliases=defined);const additional=aliases.filter((a=>!defined.includes(a)));return defined.unshift(...additional),defineType(type,opts)}},exports.typeIs=typeIs,exports.validate=validate,exports.validateArrayOfType=function(typeName){return validate(arrayOfType(typeName))},exports.validateOptional=function(validate){return{validate,optional:!0}},exports.validateOptionalType=function(typeName){return{validate:typeIs(typeName),optional:!0}},exports.validateType=function(typeName){return validate(typeIs(typeName))};var _is=__webpack_require__("./node_modules/@babel/types/lib/validators/is.js"),_validate=__webpack_require__("./node_modules/@babel/types/lib/validators/validate.js");const VISITOR_KEYS={};exports.VISITOR_KEYS=VISITOR_KEYS;const ALIAS_KEYS={};exports.ALIAS_KEYS=ALIAS_KEYS;const FLIPPED_ALIAS_KEYS={};exports.FLIPPED_ALIAS_KEYS=FLIPPED_ALIAS_KEYS;const NODE_FIELDS={};exports.NODE_FIELDS=NODE_FIELDS;const BUILDER_KEYS={};exports.BUILDER_KEYS=BUILDER_KEYS;const DEPRECATED_KEYS={};exports.DEPRECATED_KEYS=DEPRECATED_KEYS;const NODE_PARENT_VALIDATIONS={};function getType(val){return Array.isArray(val)?"array":null===val?"null":typeof val}function validate(validate){return{validate}}function typeIs(typeName){return"string"==typeof typeName?assertNodeType(typeName):assertNodeType(...typeName)}function arrayOf(elementType){return chain(assertValueType("array"),assertEach(elementType))}function arrayOfType(typeName){return arrayOf(typeIs(typeName))}function assertEach(callback){function validator(node,key,val){if(Array.isArray(val))for(let i=0;i=2&&"type"in fns[0]&&"array"===fns[0].type&&!("each"in fns[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return validate}exports.NODE_PARENT_VALIDATIONS=NODE_PARENT_VALIDATIONS;const validTypeOpts=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],validFieldKeys=["default","optional","validate"];function defineType(type,opts={}){const inherits=opts.inherits&&store[opts.inherits]||{};let fields=opts.fields;if(!fields&&(fields={},inherits.fields)){const keys=Object.getOwnPropertyNames(inherits.fields);for(const key of keys){const field=inherits.fields[key],def=field.default;if(Array.isArray(def)?def.length>0:def&&"object"==typeof def)throw new Error("field defaults can only be primitives or empty arrays currently");fields[key]={default:Array.isArray(def)?[]:def,optional:field.optional,validate:field.validate}}}const visitor=opts.visitor||inherits.visitor||[],aliases=opts.aliases||inherits.aliases||[],builder=opts.builder||inherits.builder||opts.visitor||[];for(const k of Object.keys(opts))if(-1===validTypeOpts.indexOf(k))throw new Error(`Unknown type option "${k}" on ${type}`);opts.deprecatedAlias&&(DEPRECATED_KEYS[opts.deprecatedAlias]=type);for(const key of visitor.concat(builder))fields[key]=fields[key]||{};for(const key of Object.keys(fields)){const field=fields[key];void 0!==field.default&&-1===builder.indexOf(key)&&(field.optional=!0),void 0===field.default?field.default=null:field.validate||null==field.default||(field.validate=assertValueType(getType(field.default)));for(const k of Object.keys(field))if(-1===validFieldKeys.indexOf(k))throw new Error(`Unknown field key "${k}" on ${type}.${key}`)}VISITOR_KEYS[type]=opts.visitor=visitor,BUILDER_KEYS[type]=opts.builder=builder,NODE_FIELDS[type]=opts.fields=fields,ALIAS_KEYS[type]=opts.aliases=aliases,aliases.forEach((alias=>{FLIPPED_ALIAS_KEYS[alias]=FLIPPED_ALIAS_KEYS[alias]||[],FLIPPED_ALIAS_KEYS[alias].push(type)})),opts.validate&&(NODE_PARENT_VALIDATIONS[type]=opts.validate),store[type]=opts}const store={}},"./node_modules/@babel/types/lib/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toSequenceExpression:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0};Object.defineProperty(exports,"addComment",{enumerable:!0,get:function(){return _addComment.default}}),Object.defineProperty(exports,"addComments",{enumerable:!0,get:function(){return _addComments.default}}),Object.defineProperty(exports,"appendToMemberExpression",{enumerable:!0,get:function(){return _appendToMemberExpression.default}}),Object.defineProperty(exports,"assertNode",{enumerable:!0,get:function(){return _assertNode.default}}),Object.defineProperty(exports,"buildMatchMemberExpression",{enumerable:!0,get:function(){return _buildMatchMemberExpression.default}}),Object.defineProperty(exports,"clone",{enumerable:!0,get:function(){return _clone.default}}),Object.defineProperty(exports,"cloneDeep",{enumerable:!0,get:function(){return _cloneDeep.default}}),Object.defineProperty(exports,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return _cloneDeepWithoutLoc.default}}),Object.defineProperty(exports,"cloneNode",{enumerable:!0,get:function(){return _cloneNode.default}}),Object.defineProperty(exports,"cloneWithoutLoc",{enumerable:!0,get:function(){return _cloneWithoutLoc.default}}),Object.defineProperty(exports,"createFlowUnionType",{enumerable:!0,get:function(){return _createFlowUnionType.default}}),Object.defineProperty(exports,"createTSUnionType",{enumerable:!0,get:function(){return _createTSUnionType.default}}),Object.defineProperty(exports,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return _createTypeAnnotationBasedOnTypeof.default}}),Object.defineProperty(exports,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return _createFlowUnionType.default}}),Object.defineProperty(exports,"ensureBlock",{enumerable:!0,get:function(){return _ensureBlock.default}}),Object.defineProperty(exports,"getBindingIdentifiers",{enumerable:!0,get:function(){return _getBindingIdentifiers.default}}),Object.defineProperty(exports,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return _getOuterBindingIdentifiers.default}}),Object.defineProperty(exports,"inheritInnerComments",{enumerable:!0,get:function(){return _inheritInnerComments.default}}),Object.defineProperty(exports,"inheritLeadingComments",{enumerable:!0,get:function(){return _inheritLeadingComments.default}}),Object.defineProperty(exports,"inheritTrailingComments",{enumerable:!0,get:function(){return _inheritTrailingComments.default}}),Object.defineProperty(exports,"inherits",{enumerable:!0,get:function(){return _inherits.default}}),Object.defineProperty(exports,"inheritsComments",{enumerable:!0,get:function(){return _inheritsComments.default}}),Object.defineProperty(exports,"is",{enumerable:!0,get:function(){return _is.default}}),Object.defineProperty(exports,"isBinding",{enumerable:!0,get:function(){return _isBinding.default}}),Object.defineProperty(exports,"isBlockScoped",{enumerable:!0,get:function(){return _isBlockScoped.default}}),Object.defineProperty(exports,"isImmutable",{enumerable:!0,get:function(){return _isImmutable.default}}),Object.defineProperty(exports,"isLet",{enumerable:!0,get:function(){return _isLet.default}}),Object.defineProperty(exports,"isNode",{enumerable:!0,get:function(){return _isNode.default}}),Object.defineProperty(exports,"isNodesEquivalent",{enumerable:!0,get:function(){return _isNodesEquivalent.default}}),Object.defineProperty(exports,"isPlaceholderType",{enumerable:!0,get:function(){return _isPlaceholderType.default}}),Object.defineProperty(exports,"isReferenced",{enumerable:!0,get:function(){return _isReferenced.default}}),Object.defineProperty(exports,"isScope",{enumerable:!0,get:function(){return _isScope.default}}),Object.defineProperty(exports,"isSpecifierDefault",{enumerable:!0,get:function(){return _isSpecifierDefault.default}}),Object.defineProperty(exports,"isType",{enumerable:!0,get:function(){return _isType.default}}),Object.defineProperty(exports,"isValidES3Identifier",{enumerable:!0,get:function(){return _isValidES3Identifier.default}}),Object.defineProperty(exports,"isValidIdentifier",{enumerable:!0,get:function(){return _isValidIdentifier.default}}),Object.defineProperty(exports,"isVar",{enumerable:!0,get:function(){return _isVar.default}}),Object.defineProperty(exports,"matchesPattern",{enumerable:!0,get:function(){return _matchesPattern.default}}),Object.defineProperty(exports,"prependToMemberExpression",{enumerable:!0,get:function(){return _prependToMemberExpression.default}}),exports.react=void 0,Object.defineProperty(exports,"removeComments",{enumerable:!0,get:function(){return _removeComments.default}}),Object.defineProperty(exports,"removeProperties",{enumerable:!0,get:function(){return _removeProperties.default}}),Object.defineProperty(exports,"removePropertiesDeep",{enumerable:!0,get:function(){return _removePropertiesDeep.default}}),Object.defineProperty(exports,"removeTypeDuplicates",{enumerable:!0,get:function(){return _removeTypeDuplicates.default}}),Object.defineProperty(exports,"shallowEqual",{enumerable:!0,get:function(){return _shallowEqual.default}}),Object.defineProperty(exports,"toBindingIdentifierName",{enumerable:!0,get:function(){return _toBindingIdentifierName.default}}),Object.defineProperty(exports,"toBlock",{enumerable:!0,get:function(){return _toBlock.default}}),Object.defineProperty(exports,"toComputedKey",{enumerable:!0,get:function(){return _toComputedKey.default}}),Object.defineProperty(exports,"toExpression",{enumerable:!0,get:function(){return _toExpression.default}}),Object.defineProperty(exports,"toIdentifier",{enumerable:!0,get:function(){return _toIdentifier.default}}),Object.defineProperty(exports,"toKeyAlias",{enumerable:!0,get:function(){return _toKeyAlias.default}}),Object.defineProperty(exports,"toSequenceExpression",{enumerable:!0,get:function(){return _toSequenceExpression.default}}),Object.defineProperty(exports,"toStatement",{enumerable:!0,get:function(){return _toStatement.default}}),Object.defineProperty(exports,"traverse",{enumerable:!0,get:function(){return _traverse.default}}),Object.defineProperty(exports,"traverseFast",{enumerable:!0,get:function(){return _traverseFast.default}}),Object.defineProperty(exports,"validate",{enumerable:!0,get:function(){return _validate.default}}),Object.defineProperty(exports,"valueToNode",{enumerable:!0,get:function(){return _valueToNode.default}});var _isReactComponent=__webpack_require__("./node_modules/@babel/types/lib/validators/react/isReactComponent.js"),_isCompatTag=__webpack_require__("./node_modules/@babel/types/lib/validators/react/isCompatTag.js"),_buildChildren=__webpack_require__("./node_modules/@babel/types/lib/builders/react/buildChildren.js"),_assertNode=__webpack_require__("./node_modules/@babel/types/lib/asserts/assertNode.js"),_generated=__webpack_require__("./node_modules/@babel/types/lib/asserts/generated/index.js");Object.keys(_generated).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated[key]}}))}));var _createTypeAnnotationBasedOnTypeof=__webpack_require__("./node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"),_createFlowUnionType=__webpack_require__("./node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"),_createTSUnionType=__webpack_require__("./node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"),_generated2=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js");Object.keys(_generated2).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated2[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated2[key]}}))}));var _uppercase=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/uppercase.js");Object.keys(_uppercase).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_uppercase[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _uppercase[key]}}))}));var _cloneNode=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneNode.js"),_clone=__webpack_require__("./node_modules/@babel/types/lib/clone/clone.js"),_cloneDeep=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneDeep.js"),_cloneDeepWithoutLoc=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"),_cloneWithoutLoc=__webpack_require__("./node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"),_addComment=__webpack_require__("./node_modules/@babel/types/lib/comments/addComment.js"),_addComments=__webpack_require__("./node_modules/@babel/types/lib/comments/addComments.js"),_inheritInnerComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritInnerComments.js"),_inheritLeadingComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritLeadingComments.js"),_inheritsComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritsComments.js"),_inheritTrailingComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritTrailingComments.js"),_removeComments=__webpack_require__("./node_modules/@babel/types/lib/comments/removeComments.js"),_generated3=__webpack_require__("./node_modules/@babel/types/lib/constants/generated/index.js");Object.keys(_generated3).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated3[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated3[key]}}))}));var _constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js");Object.keys(_constants).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_constants[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _constants[key]}}))}));var _ensureBlock=__webpack_require__("./node_modules/@babel/types/lib/converters/ensureBlock.js"),_toBindingIdentifierName=__webpack_require__("./node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"),_toBlock=__webpack_require__("./node_modules/@babel/types/lib/converters/toBlock.js"),_toComputedKey=__webpack_require__("./node_modules/@babel/types/lib/converters/toComputedKey.js"),_toExpression=__webpack_require__("./node_modules/@babel/types/lib/converters/toExpression.js"),_toIdentifier=__webpack_require__("./node_modules/@babel/types/lib/converters/toIdentifier.js"),_toKeyAlias=__webpack_require__("./node_modules/@babel/types/lib/converters/toKeyAlias.js"),_toSequenceExpression=__webpack_require__("./node_modules/@babel/types/lib/converters/toSequenceExpression.js"),_toStatement=__webpack_require__("./node_modules/@babel/types/lib/converters/toStatement.js"),_valueToNode=__webpack_require__("./node_modules/@babel/types/lib/converters/valueToNode.js"),_definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js");Object.keys(_definitions).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_definitions[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _definitions[key]}}))}));var _appendToMemberExpression=__webpack_require__("./node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"),_inherits=__webpack_require__("./node_modules/@babel/types/lib/modifications/inherits.js"),_prependToMemberExpression=__webpack_require__("./node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"),_removeProperties=__webpack_require__("./node_modules/@babel/types/lib/modifications/removeProperties.js"),_removePropertiesDeep=__webpack_require__("./node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"),_removeTypeDuplicates=__webpack_require__("./node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"),_getBindingIdentifiers=__webpack_require__("./node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_getOuterBindingIdentifiers=__webpack_require__("./node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"),_traverse=__webpack_require__("./node_modules/@babel/types/lib/traverse/traverse.js");Object.keys(_traverse).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_traverse[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _traverse[key]}}))}));var _traverseFast=__webpack_require__("./node_modules/@babel/types/lib/traverse/traverseFast.js"),_shallowEqual=__webpack_require__("./node_modules/@babel/types/lib/utils/shallowEqual.js"),_is=__webpack_require__("./node_modules/@babel/types/lib/validators/is.js"),_isBinding=__webpack_require__("./node_modules/@babel/types/lib/validators/isBinding.js"),_isBlockScoped=__webpack_require__("./node_modules/@babel/types/lib/validators/isBlockScoped.js"),_isImmutable=__webpack_require__("./node_modules/@babel/types/lib/validators/isImmutable.js"),_isLet=__webpack_require__("./node_modules/@babel/types/lib/validators/isLet.js"),_isNode=__webpack_require__("./node_modules/@babel/types/lib/validators/isNode.js"),_isNodesEquivalent=__webpack_require__("./node_modules/@babel/types/lib/validators/isNodesEquivalent.js"),_isPlaceholderType=__webpack_require__("./node_modules/@babel/types/lib/validators/isPlaceholderType.js"),_isReferenced=__webpack_require__("./node_modules/@babel/types/lib/validators/isReferenced.js"),_isScope=__webpack_require__("./node_modules/@babel/types/lib/validators/isScope.js"),_isSpecifierDefault=__webpack_require__("./node_modules/@babel/types/lib/validators/isSpecifierDefault.js"),_isType=__webpack_require__("./node_modules/@babel/types/lib/validators/isType.js"),_isValidES3Identifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidES3Identifier.js"),_isValidIdentifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidIdentifier.js"),_isVar=__webpack_require__("./node_modules/@babel/types/lib/validators/isVar.js"),_matchesPattern=__webpack_require__("./node_modules/@babel/types/lib/validators/matchesPattern.js"),_validate=__webpack_require__("./node_modules/@babel/types/lib/validators/validate.js"),_buildMatchMemberExpression=__webpack_require__("./node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"),_generated4=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js");Object.keys(_generated4).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated4[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated4[key]}}))}));var _generated5=__webpack_require__("./node_modules/@babel/types/lib/ast-types/generated/index.js");Object.keys(_generated5).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_generated5[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _generated5[key]}}))}));const react={isReactComponent:_isReactComponent.default,isCompatTag:_isCompatTag.default,buildChildren:_buildChildren.default};exports.react=react},"./node_modules/@babel/types/lib/modifications/appendToMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,append,computed=!1){return member.object=(0,_generated.memberExpression)(member.object,member.property,member.computed),member.property=append,member.computed=!!computed,member};var _generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function removeTypeDuplicates(nodes){const generics={},bases={},typeGroups=new Set,types=[];for(let i=0;i=0)){if((0,_generated.isAnyTypeAnnotation)(node))return[node];if((0,_generated.isFlowBaseAnnotation)(node))bases[node.type]=node;else if((0,_generated.isUnionTypeAnnotation)(node))typeGroups.has(node.types)||(nodes=nodes.concat(node.types),typeGroups.add(node.types));else if((0,_generated.isGenericTypeAnnotation)(node)){const name=getQualifiedName(node.id);if(generics[name]){let existing=generics[name];existing.typeParameters?node.typeParameters&&(existing.typeParameters.params=removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params))):existing=node.typeParameters}else generics[name]=node}else types.push(node)}}for(const type of Object.keys(bases))types.push(bases[type]);for(const name of Object.keys(generics))types.push(generics[name]);return types};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js");function getQualifiedName(node){return(0,_generated.isIdentifier)(node)?node.name:`${node.id.name}.${getQualifiedName(node.qualification)}`}},"./node_modules/@babel/types/lib/modifications/inherits.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,parent){if(!child||!parent)return child;for(const key of _constants.INHERIT_KEYS.optional)null==child[key]&&(child[key]=parent[key]);for(const key of Object.keys(parent))"_"===key[0]&&"__clone"!==key&&(child[key]=parent[key]);for(const key of _constants.INHERIT_KEYS.force)child[key]=parent[key];return(0,_inheritsComments.default)(child,parent),child};var _constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js"),_inheritsComments=__webpack_require__("./node_modules/@babel/types/lib/comments/inheritsComments.js")},"./node_modules/@babel/types/lib/modifications/prependToMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,prepend){return member.object=(0,_generated.memberExpression)(prepend,member.object),member};var _generated=__webpack_require__("./node_modules/@babel/types/lib/builders/generated/index.js")},"./node_modules/@babel/types/lib/modifications/removeProperties.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,opts={}){const map=opts.preserveComments?CLEAR_KEYS:CLEAR_KEYS_PLUS_COMMENTS;for(const key of map)null!=node[key]&&(node[key]=void 0);for(const key of Object.keys(node))"_"===key[0]&&null!=node[key]&&(node[key]=void 0);const symbols=Object.getOwnPropertySymbols(node);for(const sym of symbols)node[sym]=null};var _constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js");const CLEAR_KEYS=["tokens","start","end","loc","raw","rawValue"],CLEAR_KEYS_PLUS_COMMENTS=_constants.COMMENT_KEYS.concat(["comments"]).concat(CLEAR_KEYS)},"./node_modules/@babel/types/lib/modifications/removePropertiesDeep.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(tree,opts){return(0,_traverseFast.default)(tree,_removeProperties.default,opts),tree};var _traverseFast=__webpack_require__("./node_modules/@babel/types/lib/traverse/traverseFast.js"),_removeProperties=__webpack_require__("./node_modules/@babel/types/lib/modifications/removeProperties.js")},"./node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(nodes){const generics={},bases={},typeGroups=new Set,types=[];for(let i=0;i=0)){if((0,_generated.isTSAnyKeyword)(node))return[node];(0,_generated.isTSBaseType)(node)?bases[node.type]=node:(0,_generated.isTSUnionType)(node)?typeGroups.has(node.types)||(nodes.push(...node.types),typeGroups.add(node.types)):types.push(node)}}for(const type of Object.keys(bases))types.push(bases[type]);for(const name of Object.keys(generics))types.push(generics[name]);return types};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getBindingIdentifiers;var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js");function getBindingIdentifiers(node,duplicates,outerOnly){let search=[].concat(node);const ids=Object.create(null);for(;search.length;){const id=search.shift();if(!id)continue;const keys=getBindingIdentifiers.keys[id.type];if((0,_generated.isIdentifier)(id))if(duplicates){(ids[id.name]=ids[id.name]||[]).push(id)}else ids[id.name]=id;else if(!(0,_generated.isExportDeclaration)(id)||(0,_generated.isExportAllDeclaration)(id)){if(outerOnly){if((0,_generated.isFunctionDeclaration)(id)){search.push(id.id);continue}if((0,_generated.isFunctionExpression)(id))continue}if(keys)for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _getBindingIdentifiers=__webpack_require__("./node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"),_default=function(node,duplicates){return(0,_getBindingIdentifiers.default)(node,duplicates,!0)};exports.default=_default},"./node_modules/@babel/types/lib/traverse/traverse.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,handlers,state){"function"==typeof handlers&&(handlers={enter:handlers});const{enter,exit}=handlers;traverseSimpleImpl(node,enter,exit,state,[])};var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js");function traverseSimpleImpl(node,enter,exit,state,ancestors){const keys=_definitions.VISITOR_KEYS[node.type];if(keys){enter&&enter(node,ancestors,state);for(const key of keys){const subNode=node[key];if(Array.isArray(subNode))for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function traverseFast(node,enter,opts){if(!node)return;const keys=_definitions.VISITOR_KEYS[node.type];if(!keys)return;enter(node,opts=opts||{});for(const key of keys){const subNode=node[key];if(Array.isArray(subNode))for(const node of subNode)traverseFast(node,enter,opts);else traverseFast(subNode,enter,opts)}};var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/@babel/types/lib/utils/inherit.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(key,child,parent){child&&parent&&(child[key]=Array.from(new Set([].concat(child[key],parent[key]).filter(Boolean))))}},"./node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(child,args){const lines=child.value.split(/\r\n|\n|\r/);let lastNonEmptyLine=0;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(actual,expected){const keys=Object.keys(expected);for(const key of keys)if(actual[key]!==expected[key])return!1;return!0}},"./node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(match,allowPartial){const parts=match.split(".");return member=>(0,_matchesPattern.default)(member,parts,allowPartial)};var _matchesPattern=__webpack_require__("./node_modules/@babel/types/lib/validators/matchesPattern.js")},"./node_modules/@babel/types/lib/validators/generated/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isAnyTypeAnnotation=function(node,opts){if(!node)return!1;if("AnyTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isArgumentPlaceholder=function(node,opts){if(!node)return!1;if("ArgumentPlaceholder"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isArrayExpression=function(node,opts){if(!node)return!1;if("ArrayExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isArrayPattern=function(node,opts){if(!node)return!1;if("ArrayPattern"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isArrayTypeAnnotation=function(node,opts){if(!node)return!1;if("ArrayTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isArrowFunctionExpression=function(node,opts){if(!node)return!1;if("ArrowFunctionExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isAssignmentExpression=function(node,opts){if(!node)return!1;if("AssignmentExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isAssignmentPattern=function(node,opts){if(!node)return!1;if("AssignmentPattern"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isAwaitExpression=function(node,opts){if(!node)return!1;if("AwaitExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBigIntLiteral=function(node,opts){if(!node)return!1;if("BigIntLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBinary=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BinaryExpression"===nodeType||"LogicalExpression"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBinaryExpression=function(node,opts){if(!node)return!1;if("BinaryExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBindExpression=function(node,opts){if(!node)return!1;if("BindExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBlock=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BlockStatement"===nodeType||"Program"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBlockParent=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BlockStatement"===nodeType||"CatchClause"===nodeType||"DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Program"===nodeType||"ObjectMethod"===nodeType||"SwitchStatement"===nodeType||"WhileStatement"===nodeType||"ArrowFunctionExpression"===nodeType||"ForOfStatement"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBlockStatement=function(node,opts){if(!node)return!1;if("BlockStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBooleanLiteral=function(node,opts){if(!node)return!1;if("BooleanLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBooleanLiteralTypeAnnotation=function(node,opts){if(!node)return!1;if("BooleanLiteralTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBooleanTypeAnnotation=function(node,opts){if(!node)return!1;if("BooleanTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isBreakStatement=function(node,opts){if(!node)return!1;if("BreakStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isCallExpression=function(node,opts){if(!node)return!1;if("CallExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isCatchClause=function(node,opts){if(!node)return!1;if("CatchClause"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClass=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ClassExpression"===nodeType||"ClassDeclaration"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassBody=function(node,opts){if(!node)return!1;if("ClassBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassDeclaration=function(node,opts){if(!node)return!1;if("ClassDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassExpression=function(node,opts){if(!node)return!1;if("ClassExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassImplements=function(node,opts){if(!node)return!1;if("ClassImplements"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassMethod=function(node,opts){if(!node)return!1;if("ClassMethod"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassPrivateMethod=function(node,opts){if(!node)return!1;if("ClassPrivateMethod"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassPrivateProperty=function(node,opts){if(!node)return!1;if("ClassPrivateProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isClassProperty=function(node,opts){if(!node)return!1;if("ClassProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isCompletionStatement=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BreakStatement"===nodeType||"ContinueStatement"===nodeType||"ReturnStatement"===nodeType||"ThrowStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isConditional=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ConditionalExpression"===nodeType||"IfStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isConditionalExpression=function(node,opts){if(!node)return!1;if("ConditionalExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isContinueStatement=function(node,opts){if(!node)return!1;if("ContinueStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDebuggerStatement=function(node,opts){if(!node)return!1;if("DebuggerStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDecimalLiteral=function(node,opts){if(!node)return!1;if("DecimalLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclaration=function(node,opts){if(!node)return!1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"VariableDeclaration"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ImportDeclaration"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType||"EnumDeclaration"===nodeType||"TSDeclareFunction"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSEnumDeclaration"===nodeType||"TSModuleDeclaration"===nodeType||"Placeholder"===nodeType&&"Declaration"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareClass=function(node,opts){if(!node)return!1;if("DeclareClass"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareExportAllDeclaration=function(node,opts){if(!node)return!1;if("DeclareExportAllDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareExportDeclaration=function(node,opts){if(!node)return!1;if("DeclareExportDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareFunction=function(node,opts){if(!node)return!1;if("DeclareFunction"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareInterface=function(node,opts){if(!node)return!1;if("DeclareInterface"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareModule=function(node,opts){if(!node)return!1;if("DeclareModule"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareModuleExports=function(node,opts){if(!node)return!1;if("DeclareModuleExports"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareOpaqueType=function(node,opts){if(!node)return!1;if("DeclareOpaqueType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareTypeAlias=function(node,opts){if(!node)return!1;if("DeclareTypeAlias"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclareVariable=function(node,opts){if(!node)return!1;if("DeclareVariable"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDeclaredPredicate=function(node,opts){if(!node)return!1;if("DeclaredPredicate"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDecorator=function(node,opts){if(!node)return!1;if("Decorator"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDirective=function(node,opts){if(!node)return!1;if("Directive"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDirectiveLiteral=function(node,opts){if(!node)return!1;if("DirectiveLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDoExpression=function(node,opts){if(!node)return!1;if("DoExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isDoWhileStatement=function(node,opts){if(!node)return!1;if("DoWhileStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEmptyStatement=function(node,opts){if(!node)return!1;if("EmptyStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEmptyTypeAnnotation=function(node,opts){if(!node)return!1;if("EmptyTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumBody=function(node,opts){if(!node)return!1;const nodeType=node.type;if("EnumBooleanBody"===nodeType||"EnumNumberBody"===nodeType||"EnumStringBody"===nodeType||"EnumSymbolBody"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumBooleanBody=function(node,opts){if(!node)return!1;if("EnumBooleanBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumBooleanMember=function(node,opts){if(!node)return!1;if("EnumBooleanMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumDeclaration=function(node,opts){if(!node)return!1;if("EnumDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumDefaultedMember=function(node,opts){if(!node)return!1;if("EnumDefaultedMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumMember=function(node,opts){if(!node)return!1;const nodeType=node.type;if("EnumBooleanMember"===nodeType||"EnumNumberMember"===nodeType||"EnumStringMember"===nodeType||"EnumDefaultedMember"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumNumberBody=function(node,opts){if(!node)return!1;if("EnumNumberBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumNumberMember=function(node,opts){if(!node)return!1;if("EnumNumberMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumStringBody=function(node,opts){if(!node)return!1;if("EnumStringBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumStringMember=function(node,opts){if(!node)return!1;if("EnumStringMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isEnumSymbolBody=function(node,opts){if(!node)return!1;if("EnumSymbolBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExistsTypeAnnotation=function(node,opts){if(!node)return!1;if("ExistsTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportAllDeclaration=function(node,opts){if(!node)return!1;if("ExportAllDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportDeclaration=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportDefaultDeclaration=function(node,opts){if(!node)return!1;if("ExportDefaultDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportDefaultSpecifier=function(node,opts){if(!node)return!1;if("ExportDefaultSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportNamedDeclaration=function(node,opts){if(!node)return!1;if("ExportNamedDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportNamespaceSpecifier=function(node,opts){if(!node)return!1;if("ExportNamespaceSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExportSpecifier=function(node,opts){if(!node)return!1;if("ExportSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExpression=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ArrayExpression"===nodeType||"AssignmentExpression"===nodeType||"BinaryExpression"===nodeType||"CallExpression"===nodeType||"ConditionalExpression"===nodeType||"FunctionExpression"===nodeType||"Identifier"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"LogicalExpression"===nodeType||"MemberExpression"===nodeType||"NewExpression"===nodeType||"ObjectExpression"===nodeType||"SequenceExpression"===nodeType||"ParenthesizedExpression"===nodeType||"ThisExpression"===nodeType||"UnaryExpression"===nodeType||"UpdateExpression"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassExpression"===nodeType||"MetaProperty"===nodeType||"Super"===nodeType||"TaggedTemplateExpression"===nodeType||"TemplateLiteral"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType||"Import"===nodeType||"BigIntLiteral"===nodeType||"OptionalMemberExpression"===nodeType||"OptionalCallExpression"===nodeType||"TypeCastExpression"===nodeType||"JSXElement"===nodeType||"JSXFragment"===nodeType||"BindExpression"===nodeType||"DoExpression"===nodeType||"RecordExpression"===nodeType||"TupleExpression"===nodeType||"DecimalLiteral"===nodeType||"ModuleExpression"===nodeType||"TopicReference"===nodeType||"PipelineTopicExpression"===nodeType||"PipelineBareFunction"===nodeType||"PipelinePrimaryTopicReference"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSNonNullExpression"===nodeType||"Placeholder"===nodeType&&("Expression"===node.expectedNode||"Identifier"===node.expectedNode||"StringLiteral"===node.expectedNode))return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExpressionStatement=function(node,opts){if(!node)return!1;if("ExpressionStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isExpressionWrapper=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ExpressionStatement"===nodeType||"ParenthesizedExpression"===nodeType||"TypeCastExpression"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFile=function(node,opts){if(!node)return!1;if("File"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFlow=function(node,opts){if(!node)return!1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"ArrayTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"BooleanLiteralTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"ClassImplements"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"DeclaredPredicate"===nodeType||"ExistsTypeAnnotation"===nodeType||"FunctionTypeAnnotation"===nodeType||"FunctionTypeParam"===nodeType||"GenericTypeAnnotation"===nodeType||"InferredPredicate"===nodeType||"InterfaceExtends"===nodeType||"InterfaceDeclaration"===nodeType||"InterfaceTypeAnnotation"===nodeType||"IntersectionTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NullableTypeAnnotation"===nodeType||"NumberLiteralTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"ObjectTypeAnnotation"===nodeType||"ObjectTypeInternalSlot"===nodeType||"ObjectTypeCallProperty"===nodeType||"ObjectTypeIndexer"===nodeType||"ObjectTypeProperty"===nodeType||"ObjectTypeSpreadProperty"===nodeType||"OpaqueType"===nodeType||"QualifiedTypeIdentifier"===nodeType||"StringLiteralTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"TupleTypeAnnotation"===nodeType||"TypeofTypeAnnotation"===nodeType||"TypeAlias"===nodeType||"TypeAnnotation"===nodeType||"TypeCastExpression"===nodeType||"TypeParameter"===nodeType||"TypeParameterDeclaration"===nodeType||"TypeParameterInstantiation"===nodeType||"UnionTypeAnnotation"===nodeType||"Variance"===nodeType||"VoidTypeAnnotation"===nodeType||"EnumDeclaration"===nodeType||"EnumBooleanBody"===nodeType||"EnumNumberBody"===nodeType||"EnumStringBody"===nodeType||"EnumSymbolBody"===nodeType||"EnumBooleanMember"===nodeType||"EnumNumberMember"===nodeType||"EnumStringMember"===nodeType||"EnumDefaultedMember"===nodeType||"IndexedAccessType"===nodeType||"OptionalIndexedAccessType"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFlowBaseAnnotation=function(node,opts){if(!node)return!1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"VoidTypeAnnotation"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFlowDeclaration=function(node,opts){if(!node)return!1;const nodeType=node.type;if("DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFlowPredicate=function(node,opts){if(!node)return!1;const nodeType=node.type;if("DeclaredPredicate"===nodeType||"InferredPredicate"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFlowType=function(node,opts){if(!node)return!1;const nodeType=node.type;if("AnyTypeAnnotation"===nodeType||"ArrayTypeAnnotation"===nodeType||"BooleanTypeAnnotation"===nodeType||"BooleanLiteralTypeAnnotation"===nodeType||"NullLiteralTypeAnnotation"===nodeType||"ExistsTypeAnnotation"===nodeType||"FunctionTypeAnnotation"===nodeType||"GenericTypeAnnotation"===nodeType||"InterfaceTypeAnnotation"===nodeType||"IntersectionTypeAnnotation"===nodeType||"MixedTypeAnnotation"===nodeType||"EmptyTypeAnnotation"===nodeType||"NullableTypeAnnotation"===nodeType||"NumberLiteralTypeAnnotation"===nodeType||"NumberTypeAnnotation"===nodeType||"ObjectTypeAnnotation"===nodeType||"StringLiteralTypeAnnotation"===nodeType||"StringTypeAnnotation"===nodeType||"SymbolTypeAnnotation"===nodeType||"ThisTypeAnnotation"===nodeType||"TupleTypeAnnotation"===nodeType||"TypeofTypeAnnotation"===nodeType||"UnionTypeAnnotation"===nodeType||"VoidTypeAnnotation"===nodeType||"IndexedAccessType"===nodeType||"OptionalIndexedAccessType"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFor=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ForInStatement"===nodeType||"ForStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isForInStatement=function(node,opts){if(!node)return!1;if("ForInStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isForOfStatement=function(node,opts){if(!node)return!1;if("ForOfStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isForStatement=function(node,opts){if(!node)return!1;if("ForStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isForXStatement=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ForInStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunction=function(node,opts){if(!node)return!1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"ObjectMethod"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunctionDeclaration=function(node,opts){if(!node)return!1;if("FunctionDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunctionExpression=function(node,opts){if(!node)return!1;if("FunctionExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunctionParent=function(node,opts){if(!node)return!1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"ObjectMethod"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunctionTypeAnnotation=function(node,opts){if(!node)return!1;if("FunctionTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isFunctionTypeParam=function(node,opts){if(!node)return!1;if("FunctionTypeParam"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isGenericTypeAnnotation=function(node,opts){if(!node)return!1;if("GenericTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isIdentifier=function(node,opts){if(!node)return!1;if("Identifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isIfStatement=function(node,opts){if(!node)return!1;if("IfStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImmutable=function(node,opts){if(!node)return!1;const nodeType=node.type;if("StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"BigIntLiteral"===nodeType||"JSXAttribute"===nodeType||"JSXClosingElement"===nodeType||"JSXElement"===nodeType||"JSXExpressionContainer"===nodeType||"JSXSpreadChild"===nodeType||"JSXOpeningElement"===nodeType||"JSXText"===nodeType||"JSXFragment"===nodeType||"JSXOpeningFragment"===nodeType||"JSXClosingFragment"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImport=function(node,opts){if(!node)return!1;if("Import"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImportAttribute=function(node,opts){if(!node)return!1;if("ImportAttribute"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImportDeclaration=function(node,opts){if(!node)return!1;if("ImportDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImportDefaultSpecifier=function(node,opts){if(!node)return!1;if("ImportDefaultSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImportNamespaceSpecifier=function(node,opts){if(!node)return!1;if("ImportNamespaceSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isImportSpecifier=function(node,opts){if(!node)return!1;if("ImportSpecifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isIndexedAccessType=function(node,opts){if(!node)return!1;if("IndexedAccessType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isInferredPredicate=function(node,opts){if(!node)return!1;if("InferredPredicate"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isInterfaceDeclaration=function(node,opts){if(!node)return!1;if("InterfaceDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isInterfaceExtends=function(node,opts){if(!node)return!1;if("InterfaceExtends"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isInterfaceTypeAnnotation=function(node,opts){if(!node)return!1;if("InterfaceTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isInterpreterDirective=function(node,opts){if(!node)return!1;if("InterpreterDirective"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isIntersectionTypeAnnotation=function(node,opts){if(!node)return!1;if("IntersectionTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSX=function(node,opts){if(!node)return!1;const nodeType=node.type;if("JSXAttribute"===nodeType||"JSXClosingElement"===nodeType||"JSXElement"===nodeType||"JSXEmptyExpression"===nodeType||"JSXExpressionContainer"===nodeType||"JSXSpreadChild"===nodeType||"JSXIdentifier"===nodeType||"JSXMemberExpression"===nodeType||"JSXNamespacedName"===nodeType||"JSXOpeningElement"===nodeType||"JSXSpreadAttribute"===nodeType||"JSXText"===nodeType||"JSXFragment"===nodeType||"JSXOpeningFragment"===nodeType||"JSXClosingFragment"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXAttribute=function(node,opts){if(!node)return!1;if("JSXAttribute"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXClosingElement=function(node,opts){if(!node)return!1;if("JSXClosingElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXClosingFragment=function(node,opts){if(!node)return!1;if("JSXClosingFragment"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXElement=function(node,opts){if(!node)return!1;if("JSXElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXEmptyExpression=function(node,opts){if(!node)return!1;if("JSXEmptyExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXExpressionContainer=function(node,opts){if(!node)return!1;if("JSXExpressionContainer"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXFragment=function(node,opts){if(!node)return!1;if("JSXFragment"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXIdentifier=function(node,opts){if(!node)return!1;if("JSXIdentifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXMemberExpression=function(node,opts){if(!node)return!1;if("JSXMemberExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXNamespacedName=function(node,opts){if(!node)return!1;if("JSXNamespacedName"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXOpeningElement=function(node,opts){if(!node)return!1;if("JSXOpeningElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXOpeningFragment=function(node,opts){if(!node)return!1;if("JSXOpeningFragment"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXSpreadAttribute=function(node,opts){if(!node)return!1;if("JSXSpreadAttribute"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXSpreadChild=function(node,opts){if(!node)return!1;if("JSXSpreadChild"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isJSXText=function(node,opts){if(!node)return!1;if("JSXText"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isLVal=function(node,opts){if(!node)return!1;const nodeType=node.type;if("Identifier"===nodeType||"MemberExpression"===nodeType||"RestElement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"TSParameterProperty"===nodeType||"Placeholder"===nodeType&&("Pattern"===node.expectedNode||"Identifier"===node.expectedNode))return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isLabeledStatement=function(node,opts){if(!node)return!1;if("LabeledStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isLiteral=function(node,opts){if(!node)return!1;const nodeType=node.type;if("StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"TemplateLiteral"===nodeType||"BigIntLiteral"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isLogicalExpression=function(node,opts){if(!node)return!1;if("LogicalExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isLoop=function(node,opts){if(!node)return!1;const nodeType=node.type;if("DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"WhileStatement"===nodeType||"ForOfStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isMemberExpression=function(node,opts){if(!node)return!1;if("MemberExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isMetaProperty=function(node,opts){if(!node)return!1;if("MetaProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isMethod=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isMiscellaneous=function(node,opts){if(!node)return!1;const nodeType=node.type;if("Noop"===nodeType||"Placeholder"===nodeType||"V8IntrinsicIdentifier"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isMixedTypeAnnotation=function(node,opts){if(!node)return!1;if("MixedTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isModuleDeclaration=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ImportDeclaration"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isModuleExpression=function(node,opts){if(!node)return!1;if("ModuleExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isModuleSpecifier=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ExportSpecifier"===nodeType||"ImportDefaultSpecifier"===nodeType||"ImportNamespaceSpecifier"===nodeType||"ImportSpecifier"===nodeType||"ExportNamespaceSpecifier"===nodeType||"ExportDefaultSpecifier"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNewExpression=function(node,opts){if(!node)return!1;if("NewExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNoop=function(node,opts){if(!node)return!1;if("Noop"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNullLiteral=function(node,opts){if(!node)return!1;if("NullLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNullLiteralTypeAnnotation=function(node,opts){if(!node)return!1;if("NullLiteralTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNullableTypeAnnotation=function(node,opts){if(!node)return!1;if("NullableTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNumberLiteral=function(node,opts){if(console.trace("The node type NumberLiteral has been renamed to NumericLiteral"),!node)return!1;if("NumberLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNumberLiteralTypeAnnotation=function(node,opts){if(!node)return!1;if("NumberLiteralTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNumberTypeAnnotation=function(node,opts){if(!node)return!1;if("NumberTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isNumericLiteral=function(node,opts){if(!node)return!1;if("NumericLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectExpression=function(node,opts){if(!node)return!1;if("ObjectExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectMember=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ObjectProperty"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectMethod=function(node,opts){if(!node)return!1;if("ObjectMethod"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectPattern=function(node,opts){if(!node)return!1;if("ObjectPattern"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectProperty=function(node,opts){if(!node)return!1;if("ObjectProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeAnnotation=function(node,opts){if(!node)return!1;if("ObjectTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeCallProperty=function(node,opts){if(!node)return!1;if("ObjectTypeCallProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeIndexer=function(node,opts){if(!node)return!1;if("ObjectTypeIndexer"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeInternalSlot=function(node,opts){if(!node)return!1;if("ObjectTypeInternalSlot"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeProperty=function(node,opts){if(!node)return!1;if("ObjectTypeProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isObjectTypeSpreadProperty=function(node,opts){if(!node)return!1;if("ObjectTypeSpreadProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isOpaqueType=function(node,opts){if(!node)return!1;if("OpaqueType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isOptionalCallExpression=function(node,opts){if(!node)return!1;if("OptionalCallExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isOptionalIndexedAccessType=function(node,opts){if(!node)return!1;if("OptionalIndexedAccessType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isOptionalMemberExpression=function(node,opts){if(!node)return!1;if("OptionalMemberExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isParenthesizedExpression=function(node,opts){if(!node)return!1;if("ParenthesizedExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPattern=function(node,opts){if(!node)return!1;const nodeType=node.type;if("AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"Placeholder"===nodeType&&"Pattern"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPatternLike=function(node,opts){if(!node)return!1;const nodeType=node.type;if("Identifier"===nodeType||"RestElement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ObjectPattern"===nodeType||"Placeholder"===nodeType&&("Pattern"===node.expectedNode||"Identifier"===node.expectedNode))return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPipelineBareFunction=function(node,opts){if(!node)return!1;if("PipelineBareFunction"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPipelinePrimaryTopicReference=function(node,opts){if(!node)return!1;if("PipelinePrimaryTopicReference"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPipelineTopicExpression=function(node,opts){if(!node)return!1;if("PipelineTopicExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPlaceholder=function(node,opts){if(!node)return!1;if("Placeholder"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPrivate=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ClassPrivateProperty"===nodeType||"ClassPrivateMethod"===nodeType||"PrivateName"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPrivateName=function(node,opts){if(!node)return!1;if("PrivateName"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isProgram=function(node,opts){if(!node)return!1;if("Program"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isProperty=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ObjectProperty"===nodeType||"ClassProperty"===nodeType||"ClassPrivateProperty"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isPureish=function(node,opts){if(!node)return!1;const nodeType=node.type;if("FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"ArrowFunctionExpression"===nodeType||"BigIntLiteral"===nodeType||"DecimalLiteral"===nodeType||"Placeholder"===nodeType&&"StringLiteral"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isQualifiedTypeIdentifier=function(node,opts){if(!node)return!1;if("QualifiedTypeIdentifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isRecordExpression=function(node,opts){if(!node)return!1;if("RecordExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isRegExpLiteral=function(node,opts){if(!node)return!1;if("RegExpLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isRegexLiteral=function(node,opts){if(console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"),!node)return!1;if("RegexLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isRestElement=function(node,opts){if(!node)return!1;if("RestElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isRestProperty=function(node,opts){if(console.trace("The node type RestProperty has been renamed to RestElement"),!node)return!1;if("RestProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isReturnStatement=function(node,opts){if(!node)return!1;if("ReturnStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isScopable=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BlockStatement"===nodeType||"CatchClause"===nodeType||"DoWhileStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Program"===nodeType||"ObjectMethod"===nodeType||"SwitchStatement"===nodeType||"WhileStatement"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassExpression"===nodeType||"ClassDeclaration"===nodeType||"ForOfStatement"===nodeType||"ClassMethod"===nodeType||"ClassPrivateMethod"===nodeType||"StaticBlock"===nodeType||"TSModuleBlock"===nodeType||"Placeholder"===nodeType&&"BlockStatement"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSequenceExpression=function(node,opts){if(!node)return!1;if("SequenceExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSpreadElement=function(node,opts){if(!node)return!1;if("SpreadElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSpreadProperty=function(node,opts){if(console.trace("The node type SpreadProperty has been renamed to SpreadElement"),!node)return!1;if("SpreadProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStandardized=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ArrayExpression"===nodeType||"AssignmentExpression"===nodeType||"BinaryExpression"===nodeType||"InterpreterDirective"===nodeType||"Directive"===nodeType||"DirectiveLiteral"===nodeType||"BlockStatement"===nodeType||"BreakStatement"===nodeType||"CallExpression"===nodeType||"CatchClause"===nodeType||"ConditionalExpression"===nodeType||"ContinueStatement"===nodeType||"DebuggerStatement"===nodeType||"DoWhileStatement"===nodeType||"EmptyStatement"===nodeType||"ExpressionStatement"===nodeType||"File"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"FunctionExpression"===nodeType||"Identifier"===nodeType||"IfStatement"===nodeType||"LabeledStatement"===nodeType||"StringLiteral"===nodeType||"NumericLiteral"===nodeType||"NullLiteral"===nodeType||"BooleanLiteral"===nodeType||"RegExpLiteral"===nodeType||"LogicalExpression"===nodeType||"MemberExpression"===nodeType||"NewExpression"===nodeType||"Program"===nodeType||"ObjectExpression"===nodeType||"ObjectMethod"===nodeType||"ObjectProperty"===nodeType||"RestElement"===nodeType||"ReturnStatement"===nodeType||"SequenceExpression"===nodeType||"ParenthesizedExpression"===nodeType||"SwitchCase"===nodeType||"SwitchStatement"===nodeType||"ThisExpression"===nodeType||"ThrowStatement"===nodeType||"TryStatement"===nodeType||"UnaryExpression"===nodeType||"UpdateExpression"===nodeType||"VariableDeclaration"===nodeType||"VariableDeclarator"===nodeType||"WhileStatement"===nodeType||"WithStatement"===nodeType||"AssignmentPattern"===nodeType||"ArrayPattern"===nodeType||"ArrowFunctionExpression"===nodeType||"ClassBody"===nodeType||"ClassExpression"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ExportSpecifier"===nodeType||"ForOfStatement"===nodeType||"ImportDeclaration"===nodeType||"ImportDefaultSpecifier"===nodeType||"ImportNamespaceSpecifier"===nodeType||"ImportSpecifier"===nodeType||"MetaProperty"===nodeType||"ClassMethod"===nodeType||"ObjectPattern"===nodeType||"SpreadElement"===nodeType||"Super"===nodeType||"TaggedTemplateExpression"===nodeType||"TemplateElement"===nodeType||"TemplateLiteral"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType||"Import"===nodeType||"BigIntLiteral"===nodeType||"ExportNamespaceSpecifier"===nodeType||"OptionalMemberExpression"===nodeType||"OptionalCallExpression"===nodeType||"ClassProperty"===nodeType||"ClassPrivateProperty"===nodeType||"ClassPrivateMethod"===nodeType||"PrivateName"===nodeType||"StaticBlock"===nodeType||"Placeholder"===nodeType&&("Identifier"===node.expectedNode||"StringLiteral"===node.expectedNode||"BlockStatement"===node.expectedNode||"ClassBody"===node.expectedNode))return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStatement=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BlockStatement"===nodeType||"BreakStatement"===nodeType||"ContinueStatement"===nodeType||"DebuggerStatement"===nodeType||"DoWhileStatement"===nodeType||"EmptyStatement"===nodeType||"ExpressionStatement"===nodeType||"ForInStatement"===nodeType||"ForStatement"===nodeType||"FunctionDeclaration"===nodeType||"IfStatement"===nodeType||"LabeledStatement"===nodeType||"ReturnStatement"===nodeType||"SwitchStatement"===nodeType||"ThrowStatement"===nodeType||"TryStatement"===nodeType||"VariableDeclaration"===nodeType||"WhileStatement"===nodeType||"WithStatement"===nodeType||"ClassDeclaration"===nodeType||"ExportAllDeclaration"===nodeType||"ExportDefaultDeclaration"===nodeType||"ExportNamedDeclaration"===nodeType||"ForOfStatement"===nodeType||"ImportDeclaration"===nodeType||"DeclareClass"===nodeType||"DeclareFunction"===nodeType||"DeclareInterface"===nodeType||"DeclareModule"===nodeType||"DeclareModuleExports"===nodeType||"DeclareTypeAlias"===nodeType||"DeclareOpaqueType"===nodeType||"DeclareVariable"===nodeType||"DeclareExportDeclaration"===nodeType||"DeclareExportAllDeclaration"===nodeType||"InterfaceDeclaration"===nodeType||"OpaqueType"===nodeType||"TypeAlias"===nodeType||"EnumDeclaration"===nodeType||"TSDeclareFunction"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSEnumDeclaration"===nodeType||"TSModuleDeclaration"===nodeType||"TSImportEqualsDeclaration"===nodeType||"TSExportAssignment"===nodeType||"TSNamespaceExportDeclaration"===nodeType||"Placeholder"===nodeType&&("Statement"===node.expectedNode||"Declaration"===node.expectedNode||"BlockStatement"===node.expectedNode))return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStaticBlock=function(node,opts){if(!node)return!1;if("StaticBlock"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStringLiteral=function(node,opts){if(!node)return!1;if("StringLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStringLiteralTypeAnnotation=function(node,opts){if(!node)return!1;if("StringLiteralTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isStringTypeAnnotation=function(node,opts){if(!node)return!1;if("StringTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSuper=function(node,opts){if(!node)return!1;if("Super"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSwitchCase=function(node,opts){if(!node)return!1;if("SwitchCase"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSwitchStatement=function(node,opts){if(!node)return!1;if("SwitchStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isSymbolTypeAnnotation=function(node,opts){if(!node)return!1;if("SymbolTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSAnyKeyword=function(node,opts){if(!node)return!1;if("TSAnyKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSArrayType=function(node,opts){if(!node)return!1;if("TSArrayType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSAsExpression=function(node,opts){if(!node)return!1;if("TSAsExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSBaseType=function(node,opts){if(!node)return!1;const nodeType=node.type;if("TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSLiteralType"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSBigIntKeyword=function(node,opts){if(!node)return!1;if("TSBigIntKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSBooleanKeyword=function(node,opts){if(!node)return!1;if("TSBooleanKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSCallSignatureDeclaration=function(node,opts){if(!node)return!1;if("TSCallSignatureDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSConditionalType=function(node,opts){if(!node)return!1;if("TSConditionalType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSConstructSignatureDeclaration=function(node,opts){if(!node)return!1;if("TSConstructSignatureDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSConstructorType=function(node,opts){if(!node)return!1;if("TSConstructorType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSDeclareFunction=function(node,opts){if(!node)return!1;if("TSDeclareFunction"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSDeclareMethod=function(node,opts){if(!node)return!1;if("TSDeclareMethod"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSEntityName=function(node,opts){if(!node)return!1;const nodeType=node.type;if("Identifier"===nodeType||"TSQualifiedName"===nodeType||"Placeholder"===nodeType&&"Identifier"===node.expectedNode)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSEnumDeclaration=function(node,opts){if(!node)return!1;if("TSEnumDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSEnumMember=function(node,opts){if(!node)return!1;if("TSEnumMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSExportAssignment=function(node,opts){if(!node)return!1;if("TSExportAssignment"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSExpressionWithTypeArguments=function(node,opts){if(!node)return!1;if("TSExpressionWithTypeArguments"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSExternalModuleReference=function(node,opts){if(!node)return!1;if("TSExternalModuleReference"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSFunctionType=function(node,opts){if(!node)return!1;if("TSFunctionType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSImportEqualsDeclaration=function(node,opts){if(!node)return!1;if("TSImportEqualsDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSImportType=function(node,opts){if(!node)return!1;if("TSImportType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSIndexSignature=function(node,opts){if(!node)return!1;if("TSIndexSignature"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSIndexedAccessType=function(node,opts){if(!node)return!1;if("TSIndexedAccessType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSInferType=function(node,opts){if(!node)return!1;if("TSInferType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSInterfaceBody=function(node,opts){if(!node)return!1;if("TSInterfaceBody"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSInterfaceDeclaration=function(node,opts){if(!node)return!1;if("TSInterfaceDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSIntersectionType=function(node,opts){if(!node)return!1;if("TSIntersectionType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSIntrinsicKeyword=function(node,opts){if(!node)return!1;if("TSIntrinsicKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSLiteralType=function(node,opts){if(!node)return!1;if("TSLiteralType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSMappedType=function(node,opts){if(!node)return!1;if("TSMappedType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSMethodSignature=function(node,opts){if(!node)return!1;if("TSMethodSignature"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSModuleBlock=function(node,opts){if(!node)return!1;if("TSModuleBlock"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSModuleDeclaration=function(node,opts){if(!node)return!1;if("TSModuleDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNamedTupleMember=function(node,opts){if(!node)return!1;if("TSNamedTupleMember"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNamespaceExportDeclaration=function(node,opts){if(!node)return!1;if("TSNamespaceExportDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNeverKeyword=function(node,opts){if(!node)return!1;if("TSNeverKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNonNullExpression=function(node,opts){if(!node)return!1;if("TSNonNullExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNullKeyword=function(node,opts){if(!node)return!1;if("TSNullKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSNumberKeyword=function(node,opts){if(!node)return!1;if("TSNumberKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSObjectKeyword=function(node,opts){if(!node)return!1;if("TSObjectKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSOptionalType=function(node,opts){if(!node)return!1;if("TSOptionalType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSParameterProperty=function(node,opts){if(!node)return!1;if("TSParameterProperty"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSParenthesizedType=function(node,opts){if(!node)return!1;if("TSParenthesizedType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSPropertySignature=function(node,opts){if(!node)return!1;if("TSPropertySignature"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSQualifiedName=function(node,opts){if(!node)return!1;if("TSQualifiedName"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSRestType=function(node,opts){if(!node)return!1;if("TSRestType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSStringKeyword=function(node,opts){if(!node)return!1;if("TSStringKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSSymbolKeyword=function(node,opts){if(!node)return!1;if("TSSymbolKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSThisType=function(node,opts){if(!node)return!1;if("TSThisType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTupleType=function(node,opts){if(!node)return!1;if("TSTupleType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSType=function(node,opts){if(!node)return!1;const nodeType=node.type;if("TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSFunctionType"===nodeType||"TSConstructorType"===nodeType||"TSTypeReference"===nodeType||"TSTypePredicate"===nodeType||"TSTypeQuery"===nodeType||"TSTypeLiteral"===nodeType||"TSArrayType"===nodeType||"TSTupleType"===nodeType||"TSOptionalType"===nodeType||"TSRestType"===nodeType||"TSUnionType"===nodeType||"TSIntersectionType"===nodeType||"TSConditionalType"===nodeType||"TSInferType"===nodeType||"TSParenthesizedType"===nodeType||"TSTypeOperator"===nodeType||"TSIndexedAccessType"===nodeType||"TSMappedType"===nodeType||"TSLiteralType"===nodeType||"TSExpressionWithTypeArguments"===nodeType||"TSImportType"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeAliasDeclaration=function(node,opts){if(!node)return!1;if("TSTypeAliasDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeAnnotation=function(node,opts){if(!node)return!1;if("TSTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeAssertion=function(node,opts){if(!node)return!1;if("TSTypeAssertion"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeElement=function(node,opts){if(!node)return!1;const nodeType=node.type;if("TSCallSignatureDeclaration"===nodeType||"TSConstructSignatureDeclaration"===nodeType||"TSPropertySignature"===nodeType||"TSMethodSignature"===nodeType||"TSIndexSignature"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeLiteral=function(node,opts){if(!node)return!1;if("TSTypeLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeOperator=function(node,opts){if(!node)return!1;if("TSTypeOperator"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeParameter=function(node,opts){if(!node)return!1;if("TSTypeParameter"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeParameterDeclaration=function(node,opts){if(!node)return!1;if("TSTypeParameterDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeParameterInstantiation=function(node,opts){if(!node)return!1;if("TSTypeParameterInstantiation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypePredicate=function(node,opts){if(!node)return!1;if("TSTypePredicate"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeQuery=function(node,opts){if(!node)return!1;if("TSTypeQuery"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSTypeReference=function(node,opts){if(!node)return!1;if("TSTypeReference"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSUndefinedKeyword=function(node,opts){if(!node)return!1;if("TSUndefinedKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSUnionType=function(node,opts){if(!node)return!1;if("TSUnionType"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSUnknownKeyword=function(node,opts){if(!node)return!1;if("TSUnknownKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTSVoidKeyword=function(node,opts){if(!node)return!1;if("TSVoidKeyword"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTaggedTemplateExpression=function(node,opts){if(!node)return!1;if("TaggedTemplateExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTemplateElement=function(node,opts){if(!node)return!1;if("TemplateElement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTemplateLiteral=function(node,opts){if(!node)return!1;if("TemplateLiteral"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTerminatorless=function(node,opts){if(!node)return!1;const nodeType=node.type;if("BreakStatement"===nodeType||"ContinueStatement"===nodeType||"ReturnStatement"===nodeType||"ThrowStatement"===nodeType||"YieldExpression"===nodeType||"AwaitExpression"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isThisExpression=function(node,opts){if(!node)return!1;if("ThisExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isThisTypeAnnotation=function(node,opts){if(!node)return!1;if("ThisTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isThrowStatement=function(node,opts){if(!node)return!1;if("ThrowStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTopicReference=function(node,opts){if(!node)return!1;if("TopicReference"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTryStatement=function(node,opts){if(!node)return!1;if("TryStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTupleExpression=function(node,opts){if(!node)return!1;if("TupleExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTupleTypeAnnotation=function(node,opts){if(!node)return!1;if("TupleTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeAlias=function(node,opts){if(!node)return!1;if("TypeAlias"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeAnnotation=function(node,opts){if(!node)return!1;if("TypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeCastExpression=function(node,opts){if(!node)return!1;if("TypeCastExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeParameter=function(node,opts){if(!node)return!1;if("TypeParameter"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeParameterDeclaration=function(node,opts){if(!node)return!1;if("TypeParameterDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeParameterInstantiation=function(node,opts){if(!node)return!1;if("TypeParameterInstantiation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeScript=function(node,opts){if(!node)return!1;const nodeType=node.type;if("TSParameterProperty"===nodeType||"TSDeclareFunction"===nodeType||"TSDeclareMethod"===nodeType||"TSQualifiedName"===nodeType||"TSCallSignatureDeclaration"===nodeType||"TSConstructSignatureDeclaration"===nodeType||"TSPropertySignature"===nodeType||"TSMethodSignature"===nodeType||"TSIndexSignature"===nodeType||"TSAnyKeyword"===nodeType||"TSBooleanKeyword"===nodeType||"TSBigIntKeyword"===nodeType||"TSIntrinsicKeyword"===nodeType||"TSNeverKeyword"===nodeType||"TSNullKeyword"===nodeType||"TSNumberKeyword"===nodeType||"TSObjectKeyword"===nodeType||"TSStringKeyword"===nodeType||"TSSymbolKeyword"===nodeType||"TSUndefinedKeyword"===nodeType||"TSUnknownKeyword"===nodeType||"TSVoidKeyword"===nodeType||"TSThisType"===nodeType||"TSFunctionType"===nodeType||"TSConstructorType"===nodeType||"TSTypeReference"===nodeType||"TSTypePredicate"===nodeType||"TSTypeQuery"===nodeType||"TSTypeLiteral"===nodeType||"TSArrayType"===nodeType||"TSTupleType"===nodeType||"TSOptionalType"===nodeType||"TSRestType"===nodeType||"TSNamedTupleMember"===nodeType||"TSUnionType"===nodeType||"TSIntersectionType"===nodeType||"TSConditionalType"===nodeType||"TSInferType"===nodeType||"TSParenthesizedType"===nodeType||"TSTypeOperator"===nodeType||"TSIndexedAccessType"===nodeType||"TSMappedType"===nodeType||"TSLiteralType"===nodeType||"TSExpressionWithTypeArguments"===nodeType||"TSInterfaceDeclaration"===nodeType||"TSInterfaceBody"===nodeType||"TSTypeAliasDeclaration"===nodeType||"TSAsExpression"===nodeType||"TSTypeAssertion"===nodeType||"TSEnumDeclaration"===nodeType||"TSEnumMember"===nodeType||"TSModuleDeclaration"===nodeType||"TSModuleBlock"===nodeType||"TSImportType"===nodeType||"TSImportEqualsDeclaration"===nodeType||"TSExternalModuleReference"===nodeType||"TSNonNullExpression"===nodeType||"TSExportAssignment"===nodeType||"TSNamespaceExportDeclaration"===nodeType||"TSTypeAnnotation"===nodeType||"TSTypeParameterInstantiation"===nodeType||"TSTypeParameterDeclaration"===nodeType||"TSTypeParameter"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isTypeofTypeAnnotation=function(node,opts){if(!node)return!1;if("TypeofTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isUnaryExpression=function(node,opts){if(!node)return!1;if("UnaryExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isUnaryLike=function(node,opts){if(!node)return!1;const nodeType=node.type;if("UnaryExpression"===nodeType||"SpreadElement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isUnionTypeAnnotation=function(node,opts){if(!node)return!1;if("UnionTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isUpdateExpression=function(node,opts){if(!node)return!1;if("UpdateExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isUserWhitespacable=function(node,opts){if(!node)return!1;const nodeType=node.type;if("ObjectMethod"===nodeType||"ObjectProperty"===nodeType||"ObjectTypeInternalSlot"===nodeType||"ObjectTypeCallProperty"===nodeType||"ObjectTypeIndexer"===nodeType||"ObjectTypeProperty"===nodeType||"ObjectTypeSpreadProperty"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isV8IntrinsicIdentifier=function(node,opts){if(!node)return!1;if("V8IntrinsicIdentifier"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isVariableDeclaration=function(node,opts){if(!node)return!1;if("VariableDeclaration"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isVariableDeclarator=function(node,opts){if(!node)return!1;if("VariableDeclarator"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isVariance=function(node,opts){if(!node)return!1;if("Variance"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isVoidTypeAnnotation=function(node,opts){if(!node)return!1;if("VoidTypeAnnotation"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isWhile=function(node,opts){if(!node)return!1;const nodeType=node.type;if("DoWhileStatement"===nodeType||"WhileStatement"===nodeType)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isWhileStatement=function(node,opts){if(!node)return!1;if("WhileStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isWithStatement=function(node,opts){if(!node)return!1;if("WithStatement"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1},exports.isYieldExpression=function(node,opts){if(!node)return!1;if("YieldExpression"===node.type)return void 0===opts||(0,_shallowEqual.default)(node,opts);return!1};var _shallowEqual=__webpack_require__("./node_modules/@babel/types/lib/utils/shallowEqual.js")},"./node_modules/@babel/types/lib/validators/is.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(type,node,opts){if(!node)return!1;if(!(0,_isType.default)(node.type,type))return!opts&&"Placeholder"===node.type&&type in _definitions.FLIPPED_ALIAS_KEYS&&(0,_isPlaceholderType.default)(node.expectedNode,type);return void 0===opts||(0,_shallowEqual.default)(node,opts)};var _shallowEqual=__webpack_require__("./node_modules/@babel/types/lib/utils/shallowEqual.js"),_isType=__webpack_require__("./node_modules/@babel/types/lib/validators/isType.js"),_isPlaceholderType=__webpack_require__("./node_modules/@babel/types/lib/validators/isPlaceholderType.js"),_definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/@babel/types/lib/validators/isBinding.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent,grandparent){if(grandparent&&"Identifier"===node.type&&"ObjectProperty"===parent.type&&"ObjectExpression"===grandparent.type)return!1;const keys=_getBindingIdentifiers.default.keys[parent.type];if(keys)for(let i=0;i=0)return!0}else if(val===node)return!0}return!1};var _getBindingIdentifiers=__webpack_require__("./node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js")},"./node_modules/@babel/types/lib/validators/isBlockScoped.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_generated.isFunctionDeclaration)(node)||(0,_generated.isClassDeclaration)(node)||(0,_isLet.default)(node)};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_isLet=__webpack_require__("./node_modules/@babel/types/lib/validators/isLet.js")},"./node_modules/@babel/types/lib/validators/isImmutable.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){if((0,_isType.default)(node.type,"Immutable"))return!0;if((0,_generated.isIdentifier)(node))return"undefined"===node.name;return!1};var _isType=__webpack_require__("./node_modules/@babel/types/lib/validators/isType.js"),_generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/@babel/types/lib/validators/isLet.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_generated.isVariableDeclaration)(node)&&("var"!==node.kind||node[_constants.BLOCK_SCOPED_SYMBOL])};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js")},"./node_modules/@babel/types/lib/validators/isNode.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return!(!node||!_definitions.VISITOR_KEYS[node.type])};var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/@babel/types/lib/validators/isNodesEquivalent.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function isNodesEquivalent(a,b){if("object"!=typeof a||"object"!=typeof b||null==a||null==b)return a===b;if(a.type!==b.type)return!1;const fields=Object.keys(_definitions.NODE_FIELDS[a.type]||a.type),visitorKeys=_definitions.VISITOR_KEYS[a.type];for(const field of fields){if(typeof a[field]!=typeof b[field])return!1;if(null!=a[field]||null!=b[field]){if(null==a[field]||null==b[field])return!1;if(Array.isArray(a[field])){if(!Array.isArray(b[field]))return!1;if(a[field].length!==b[field].length)return!1;for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(placeholderType,targetType){if(placeholderType===targetType)return!0;const aliases=_definitions.PLACEHOLDERS_ALIAS[placeholderType];if(aliases)for(const alias of aliases)if(targetType===alias)return!0;return!1};var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/@babel/types/lib/validators/isReferenced.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent,grandparent){switch(parent.type){case"MemberExpression":case"OptionalMemberExpression":return parent.property===node?!!parent.computed:parent.object===node;case"JSXMemberExpression":return parent.object===node;case"VariableDeclarator":return parent.init===node;case"ArrowFunctionExpression":return parent.body===node;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return parent.key===node&&!!parent.computed;case"ObjectProperty":return parent.key===node?!!parent.computed:!grandparent||"ObjectPattern"!==grandparent.type;case"ClassProperty":case"TSPropertySignature":return parent.key!==node||!!parent.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return parent.key!==node;case"ClassDeclaration":case"ClassExpression":return parent.superClass===node;case"AssignmentExpression":case"AssignmentPattern":return parent.right===node;case"ExportSpecifier":return(null==grandparent||!grandparent.source)&&parent.local===node;case"TSEnumMember":return parent.id!==node}return!0}},"./node_modules/@babel/types/lib/validators/isScope.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,parent){if((0,_generated.isBlockStatement)(node)&&((0,_generated.isFunction)(parent)||(0,_generated.isCatchClause)(parent)))return!1;if((0,_generated.isPattern)(node)&&((0,_generated.isFunction)(parent)||(0,_generated.isCatchClause)(parent)))return!0;return(0,_generated.isScopable)(node)};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/@babel/types/lib/validators/isSpecifierDefault.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(specifier){return(0,_generated.isImportDefaultSpecifier)(specifier)||(0,_generated.isIdentifier)(specifier.imported||specifier.exported,{name:"default"})};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js")},"./node_modules/@babel/types/lib/validators/isType.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(nodeType,targetType){if(nodeType===targetType)return!0;if(_definitions.ALIAS_KEYS[targetType])return!1;const aliases=_definitions.FLIPPED_ALIAS_KEYS[targetType];if(aliases){if(aliases[0]===nodeType)return!0;for(const alias of aliases)if(nodeType===alias)return!0}return!1};var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js")},"./node_modules/@babel/types/lib/validators/isValidES3Identifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name){return(0,_isValidIdentifier.default)(name)&&!RESERVED_WORDS_ES3_ONLY.has(name)};var _isValidIdentifier=__webpack_require__("./node_modules/@babel/types/lib/validators/isValidIdentifier.js");const RESERVED_WORDS_ES3_ONLY=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},"./node_modules/@babel/types/lib/validators/isValidIdentifier.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(name,reserved=!0){if("string"!=typeof name)return!1;if(reserved&&((0,_helperValidatorIdentifier.isKeyword)(name)||(0,_helperValidatorIdentifier.isStrictReservedWord)(name,!0)))return!1;return(0,_helperValidatorIdentifier.isIdentifierName)(name)};var _helperValidatorIdentifier=__webpack_require__("./node_modules/@babel/helper-validator-identifier/lib/index.js")},"./node_modules/@babel/types/lib/validators/isVar.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node){return(0,_generated.isVariableDeclaration)(node,{kind:"var"})&&!node[_constants.BLOCK_SCOPED_SYMBOL]};var _generated=__webpack_require__("./node_modules/@babel/types/lib/validators/generated/index.js"),_constants=__webpack_require__("./node_modules/@babel/types/lib/constants/index.js")},"./node_modules/@babel/types/lib/validators/matchesPattern.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(member,match,allowPartial){if(!(0,_generated.isMemberExpression)(member))return!1;const parts=Array.isArray(match)?match:match.split("."),nodes=[];let node;for(node=member;(0,_generated.isMemberExpression)(node);node=node.object)nodes.push(node.property);if(nodes.push(node),nodes.lengthparts.length)return!1;for(let i=0,j=nodes.length-1;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(tagName){return!!tagName&&/^[a-z]/.test(tagName)}},"./node_modules/@babel/types/lib/validators/react/isReactComponent.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=(0,__webpack_require__("./node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js").default)("React.Component");exports.default=_default},"./node_modules/@babel/types/lib/validators/validate.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,key,val){if(!node)return;const fields=_definitions.NODE_FIELDS[node.type];if(!fields)return;const field=fields[key];validateField(node,key,val,field),validateChild(node,key,val)},exports.validateChild=validateChild,exports.validateField=validateField;var _definitions=__webpack_require__("./node_modules/@babel/types/lib/definitions/index.js");function validateField(node,key,val,field){null!=field&&field.validate&&(field.optional&&null==val||field.validate(node,key,val))}function validateChild(node,key,val){if(null==val)return;const validate=_definitions.NODE_PARENT_VALIDATIONS[val.type];validate&&validate(node,key,val)}},"./node_modules/babel-plugin-dynamic-import-node/lib/index.js":(module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(api){var transformImport=(0,_utils.createDynamicImportTransform)(api);return{manipulateOptions:function(opts,parserOpts){parserOpts.plugins.push("dynamicImport")},visitor:{Import:function(path){transformImport(this,path)}}}};var _utils=__webpack_require__("./node_modules/babel-plugin-dynamic-import-node/lib/utils.js");module.exports=exports.default},"./node_modules/babel-plugin-dynamic-import-node/lib/utils.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function getImportSource(t,callNode){var importArguments=callNode.arguments,importPath=_slicedToArray(importArguments,1)[0];return t.isStringLiteral(importPath)||t.isTemplateLiteral(importPath)?(t.removeComments(importPath),importPath):t.templateLiteral([t.templateElement({raw:"",cooked:""}),t.templateElement({raw:"",cooked:""},!0)],importArguments)}exports.getImportSource=getImportSource,exports.createDynamicImportTransform=function(_ref){var template=_ref.template,t=_ref.types,builders={static:{interop:template("Promise.resolve().then(() => INTEROP(require(SOURCE)))"),noInterop:template("Promise.resolve().then(() => require(SOURCE))")},dynamic:{interop:template("Promise.resolve(SOURCE).then(s => INTEROP(require(s)))"),noInterop:template("Promise.resolve(SOURCE).then(s => require(s))")}},visited="function"==typeof WeakSet&&new WeakSet;return function(context,path){if(visited){if(visited.has(path))return;visited.add(path)}var node,SOURCE=getImportSource(t,path.parent),builder=(node=SOURCE,t.isStringLiteral(node)||t.isTemplateLiteral(node)&&0===node.expressions.length?builders.static:builders.dynamic),newImport=context.opts.noInterop?builder.noInterop({SOURCE}):builder.interop({SOURCE,INTEROP:context.addHelper("interopRequireWildcard")});path.parentPath.replaceWith(newImport)}}},"./node_modules/babel-plugin-dynamic-import-node/utils.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/babel-plugin-dynamic-import-node/lib/utils.js")},"./node_modules/babel-plugin-parameter-decorator/lib/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _path=__webpack_require__("path");function isInType(path){switch(path.parent.type){case"TSTypeReference":case"TSQualifiedName":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;default:return!1}}module.exports=function(_ref){var types=_ref.types,decoratorExpressionForConstructor=function(decorator,param){return function(className){var resultantDecorator=types.callExpression(decorator.expression,[types.Identifier(className),types.Identifier("undefined"),types.NumericLiteral(param.key)]),resultantDecoratorWithFallback=types.logicalExpression("||",resultantDecorator,types.Identifier(className)),assignment=types.assignmentExpression("=",types.Identifier(className),resultantDecoratorWithFallback);return types.expressionStatement(assignment)}},decoratorExpressionForMethod=function(decorator,param){return function(className,functionName){var resultantDecorator=types.callExpression(decorator.expression,[types.Identifier("".concat(className,".prototype")),types.StringLiteral(functionName),types.NumericLiteral(param.key)]);return types.expressionStatement(resultantDecorator)}};return{visitor:{Program:function(path,state){var extension=(0,_path.extname)(state.file.opts.filename);".ts"!==extension&&".tsx"!==extension||function(){var decorators=Object.create(null);path.node.body.filter((function(it){var type=it.type,declaration=it.declaration;switch(type){case"ClassDeclaration":return!0;case"ExportNamedDeclaration":case"ExportDefaultDeclaration":return declaration&&"ClassDeclaration"===declaration.type;default:return!1}})).map((function(it){return"ClassDeclaration"===it.type?it:it.declaration})).forEach((function(clazz){clazz.body.body.forEach((function(body){(body.params||[]).forEach((function(param){(param.decorators||[]).forEach((function(decorator){decorator.expression.callee?decorators[decorator.expression.callee.name]=decorator:decorators[decorator.expression.name]=decorator}))}))}))}));var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=path.get("body")[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var stmt=_step.value;if("ImportDeclaration"===stmt.node.type){if(0===stmt.node.specifiers.length)continue;var _iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _step2,_loop=function(){var specifier=_step2.value,binding=stmt.scope.getBinding(specifier.local.name);binding.referencePaths.length?binding.referencePaths.reduce((function(prev,next){return prev||isInType(next)}),!1)&&Object.keys(decorators).forEach((function(k){var decorator=decorators[k];(decorator.expression.arguments||[]).forEach((function(arg){arg.name===specifier.local.name&&binding.referencePaths.push({parent:decorator.expression})}))})):decorators[specifier.local.name]&&binding.referencePaths.push({parent:decorators[specifier.local.name]})},_iterator2=stmt.node.specifiers[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0)_loop()}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{_iteratorNormalCompletion2||null==_iterator2.return||_iterator2.return()}finally{if(_didIteratorError2)throw _iteratorError2}}}}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{_iteratorNormalCompletion||null==_iterator.return||_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}}()},Function:function(path){var functionName="";path.node.id?functionName=path.node.id.name:path.node.key&&(functionName=path.node.key.name),(path.get("params")||[]).slice().forEach((function(param){var decorators=param.node.decorators||[],transformable=decorators.length;if(decorators.slice().forEach((function(decorator){if("ClassMethod"===path.type){var classIdentifier,parentNode=path.parentPath.parentPath,classDeclaration=path.findParent((function(p){return"ClassDeclaration"===p.type}));if(classDeclaration?classIdentifier=classDeclaration.node.id.name:(parentNode.insertAfter(null),classIdentifier=function(path){var assignment=path.findParent((function(p){return"AssignmentExpression"===p.node.type}));return"SequenceExpression"===assignment.node.right.type?assignment.node.right.expressions[1].name:"ClassExpression"===assignment.node.right.type?assignment.node.left.name:null}(path)),"constructor"===functionName){var expression=decoratorExpressionForConstructor(decorator,param)(classIdentifier);parentNode.insertAfter(expression)}else{var _expression=decoratorExpressionForMethod(decorator,param)(classIdentifier,functionName);parentNode.insertAfter(_expression)}}else{var className=path.findParent((function(p){return"VariableDeclarator"===p.node.type})).node.id.name;if(functionName===className){var _expression2=decoratorExpressionForConstructor(decorator,param)(className);if("body"===path.parentKey)path.insertAfter(_expression2);else path.findParent((function(p){return"body"===p.parentKey})).insertAfter(_expression2)}else{var classParent=path.findParent((function(p){return"CallExpression"===p.node.type})),_expression3=decoratorExpressionForMethod(decorator,param)(className,functionName);classParent.insertAfter(_expression3)}}})),transformable){var replacement=function(path){switch(path.node.type){case"ObjectPattern":return types.ObjectPattern(path.node.properties);case"AssignmentPattern":return types.AssignmentPattern(path.node.left,path.node.right);case"TSParameterProperty":return types.Identifier(path.node.parameter.name);default:return types.Identifier(path.node.name)}}(param);param.replaceWith(replacement)}}))}}}}},"./node_modules/convert-source-map/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var fs=__webpack_require__("fs"),path=__webpack_require__("path"),SafeBuffer=__webpack_require__("./node_modules/safe-buffer/index.js");function Converter(sm,opts){var base64;(opts=opts||{}).isFileComment&&(sm=function(sm,dir){var r=exports.mapFileCommentRegex.exec(sm),filename=r[1]||r[2],filepath=path.resolve(dir,filename);try{return fs.readFileSync(filepath,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+filepath+"\n"+e)}}(sm,opts.commentFileDir)),opts.hasComment&&(sm=function(sm){return sm.split(",").pop()}(sm)),opts.isEncoded&&(base64=sm,sm=(SafeBuffer.Buffer.from(base64,"base64")||"").toString()),(opts.isJSON||opts.isEncoded)&&(sm=JSON.parse(sm)),this.sourcemap=sm}Object.defineProperty(exports,"commentRegex",{get:function(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(exports,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),Converter.prototype.toJSON=function(space){return JSON.stringify(this.sourcemap,null,space)},Converter.prototype.toBase64=function(){var json=this.toJSON();return(SafeBuffer.Buffer.from(json,"utf8")||"").toString("base64")},Converter.prototype.toComment=function(options){var data="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return options&&options.multiline?"/*# "+data+" */":"//# "+data},Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())},Converter.prototype.addProperty=function(key,value){if(this.sourcemap.hasOwnProperty(key))throw new Error('property "'+key+'" already exists on the sourcemap, use set property instead');return this.setProperty(key,value)},Converter.prototype.setProperty=function(key,value){return this.sourcemap[key]=value,this},Converter.prototype.getProperty=function(key){return this.sourcemap[key]},exports.fromObject=function(obj){return new Converter(obj)},exports.fromJSON=function(json){return new Converter(json,{isJSON:!0})},exports.fromBase64=function(base64){return new Converter(base64,{isEncoded:!0})},exports.fromComment=function(comment){return new Converter(comment=comment.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},exports.fromMapFileComment=function(comment,dir){return new Converter(comment,{commentFileDir:dir,isFileComment:!0,isJSON:!0})},exports.fromSource=function(content){var m=content.match(exports.commentRegex);return m?exports.fromComment(m.pop()):null},exports.fromMapFileSource=function(content,dir){var m=content.match(exports.mapFileCommentRegex);return m?exports.fromMapFileComment(m.pop(),dir):null},exports.removeComments=function(src){return src.replace(exports.commentRegex,"")},exports.removeMapFileComments=function(src){return src.replace(exports.mapFileCommentRegex,"")},exports.generateMapFileComment=function(file,options){var data="sourceMappingURL="+file;return options&&options.multiline?"/*# "+data+" */":"//# "+data}},"./node_modules/debug/src/browser.js":(module,exports,__webpack_require__)=>{exports.formatArgs=function(args){if(args[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+args[0]+(this.useColors?"%c ":" ")+"+"+module.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;args.splice(1,0,c,"color: inherit");let index=0,lastC=0;args[0].replace(/%[a-zA-Z%]/g,(match=>{"%%"!==match&&(index++,"%c"===match&&(lastC=index))})),args.splice(lastC,0,c)},exports.save=function(namespaces){try{namespaces?exports.storage.setItem("debug",namespaces):exports.storage.removeItem("debug")}catch(error){}},exports.load=function(){let r;try{r=exports.storage.getItem("debug")}catch(error){}!r&&"undefined"!=typeof process&&"env"in process&&(r=process.env.DEBUG);return r},exports.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},exports.storage=function(){try{return localStorage}catch(error){}}(),exports.destroy=(()=>{let warned=!1;return()=>{warned||(warned=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),exports.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],exports.log=console.debug||console.log||(()=>{}),module.exports=__webpack_require__("./node_modules/debug/src/common.js")(exports);const{formatters}=module.exports;formatters.j=function(v){try{return JSON.stringify(v)}catch(error){return"[UnexpectedJSONParseError]: "+error.message}}},"./node_modules/debug/src/common.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function(env){function createDebug(namespace){let prevTime,namespacesCache,enabledCache,enableOverride=null;function debug(...args){if(!debug.enabled)return;const self=debug,curr=Number(new Date),ms=curr-(prevTime||curr);self.diff=ms,self.prev=prevTime,self.curr=curr,prevTime=curr,args[0]=createDebug.coerce(args[0]),"string"!=typeof args[0]&&args.unshift("%O");let index=0;args[0]=args[0].replace(/%([a-zA-Z%])/g,((match,format)=>{if("%%"===match)return"%";index++;const formatter=createDebug.formatters[format];if("function"==typeof formatter){const val=args[index];match=formatter.call(self,val),args.splice(index,1),index--}return match})),createDebug.formatArgs.call(self,args);(self.log||createDebug.log).apply(self,args)}return debug.namespace=namespace,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(namespace),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==enableOverride?enableOverride:(namespacesCache!==createDebug.namespaces&&(namespacesCache=createDebug.namespaces,enabledCache=createDebug.enabled(namespace)),enabledCache),set:v=>{enableOverride=v}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(namespace,delimiter){const newDebug=createDebug(this.namespace+(void 0===delimiter?":":delimiter)+namespace);return newDebug.log=this.log,newDebug}function toNamespace(regexp){return regexp.toString().substring(2,regexp.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(val){if(val instanceof Error)return val.stack||val.message;return val},createDebug.disable=function(){const namespaces=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((namespace=>"-"+namespace))].join(",");return createDebug.enable(""),namespaces},createDebug.enable=function(namespaces){let i;createDebug.save(namespaces),createDebug.namespaces=namespaces,createDebug.names=[],createDebug.skips=[];const split=("string"==typeof namespaces?namespaces:"").split(/[\s,]+/),len=split.length;for(i=0;i{createDebug[key]=env[key]})),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function(namespace){let hash=0;for(let i=0;i{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?module.exports=__webpack_require__("./node_modules/debug/src/browser.js"):module.exports=__webpack_require__("./node_modules/debug/src/node.js")},"./node_modules/debug/src/node.js":(module,exports,__webpack_require__)=>{const tty=__webpack_require__("tty"),util=__webpack_require__("util");exports.init=function(debug){debug.inspectOpts={};const keys=Object.keys(exports.inspectOpts);for(let i=0;i{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),exports.colors=[6,2,3,4,5,1];try{const supportsColor=__webpack_require__("./node_modules/supports-color/index.js");supportsColor&&(supportsColor.stderr||supportsColor).level>=2&&(exports.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(error){}exports.inspectOpts=Object.keys(process.env).filter((key=>/^debug_/i.test(key))).reduce(((obj,key)=>{const prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,((_,k)=>k.toUpperCase()));let val=process.env[key];return val=!!/^(yes|on|true|enabled)$/i.test(val)||!/^(no|off|false|disabled)$/i.test(val)&&("null"===val?null:Number(val)),obj[prop]=val,obj}),{}),module.exports=__webpack_require__("./node_modules/debug/src/common.js")(exports);const{formatters}=module.exports;formatters.o=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts).split("\n").map((str=>str.trim())).join(" ")},formatters.O=function(v){return this.inspectOpts.colors=this.useColors,util.inspect(v,this.inspectOpts)}},"./node_modules/gensync/index.js":module=>{"use strict";const GENSYNC_START=Symbol.for("gensync:v1:start"),GENSYNC_SUSPEND=Symbol.for("gensync:v1:suspend");function assertTypeof(type,name,value,allowUndefined){if(typeof value===type||allowUndefined&&void 0===value)return;let msg;throw msg=allowUndefined?`Expected opts.${name} to be either a ${type}, or undefined.`:`Expected opts.${name} to be a ${type}.`,makeError(msg,"GENSYNC_OPTIONS_ERROR")}function makeError(msg,code){return Object.assign(new Error(msg),{code})}function buildOperation({name,arity,sync,async}){return setFunctionMetadata(name,arity,(function*(...args){const resume=yield GENSYNC_START;if(!resume){return sync.call(this,args)}let result;try{async.call(this,args,(value=>{result||(result={value},resume())}),(err=>{result||(result={err},resume())}))}catch(err){result={err},resume()}if(yield GENSYNC_SUSPEND,result.hasOwnProperty("err"))throw result.err;return result.value}))}function evaluateSync(gen){let value;for(;!({value}=gen.next()).done;)assertStart(value,gen);return value}function evaluateAsync(gen,resolve,reject){!function step(){try{let value;for(;!({value}=gen.next()).done;){assertStart(value,gen);let sync=!0,didSyncResume=!1;const out=gen.next((()=>{sync?didSyncResume=!0:step()}));if(sync=!1,assertSuspend(out,gen),!didSyncResume)return}return resolve(value)}catch(err){return reject(err)}}()}function assertStart(value,gen){value!==GENSYNC_START&&throwError(gen,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(value)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,"GENSYNC_EXPECTED_START"))}function assertSuspend({value,done},gen){(done||value!==GENSYNC_SUSPEND)&&throwError(gen,makeError(done?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(value)}. If you get this, it is probably a gensync bug.`,"GENSYNC_EXPECTED_SUSPEND"))}function throwError(gen,err){throw gen.throw&&gen.throw(err),err}function setFunctionMetadata(name,arity,fn){if("string"==typeof name){const nameDesc=Object.getOwnPropertyDescriptor(fn,"name");nameDesc&&!nameDesc.configurable||Object.defineProperty(fn,"name",Object.assign(nameDesc||{},{configurable:!0,value:name}))}if("number"==typeof arity){const lengthDesc=Object.getOwnPropertyDescriptor(fn,"length");lengthDesc&&!lengthDesc.configurable||Object.defineProperty(fn,"length",Object.assign(lengthDesc||{},{configurable:!0,value:arity}))}return fn}module.exports=Object.assign((function(optsOrFn){let genFn=optsOrFn;return genFn="function"!=typeof optsOrFn?function({name,arity,sync,async,errback}){if(assertTypeof("string","name",name,!0),assertTypeof("number","arity",arity,!0),assertTypeof("function","sync",sync),assertTypeof("function","async",async,!0),assertTypeof("function","errback",errback,!0),async&&errback)throw makeError("Expected one of either opts.async or opts.errback, but got _both_.","GENSYNC_OPTIONS_ERROR");if("string"!=typeof name){let fnName;errback&&errback.name&&"errback"!==errback.name&&(fnName=errback.name),async&&async.name&&"async"!==async.name&&(fnName=async.name.replace(/Async$/,"")),sync&&sync.name&&"sync"!==sync.name&&(fnName=sync.name.replace(/Sync$/,"")),"string"==typeof fnName&&(name=fnName)}"number"!=typeof arity&&(arity=sync.length);return buildOperation({name,arity,sync:function(args){return sync.apply(this,args)},async:function(args,resolve,reject){async?async.apply(this,args).then(resolve,reject):errback?errback.call(this,...args,((err,value)=>{null==err?resolve(value):reject(err)})):resolve(sync.apply(this,args))}})}(optsOrFn):function(genFn){return setFunctionMetadata(genFn.name,genFn.length,(function(...args){return genFn.apply(this,args)}))}(optsOrFn),Object.assign(genFn,function(genFn){return{sync:function(...args){return evaluateSync(genFn.apply(this,args))},async:function(...args){return new Promise(((resolve,reject)=>{evaluateAsync(genFn.apply(this,args),resolve,reject)}))},errback:function(...args){const cb=args.pop();if("function"!=typeof cb)throw makeError("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let gen;try{gen=genFn.apply(this,args)}catch(err){return void cb(err)}evaluateAsync(gen,(val=>cb(void 0,val)),(err=>cb(err)))}}}(genFn))}),{all:buildOperation({name:"all",arity:1,sync:function(args){return Array.from(args[0]).map((item=>evaluateSync(item)))},async:function(args,resolve,reject){const items=Array.from(args[0]);if(0===items.length)return void Promise.resolve().then((()=>resolve([])));let count=0;const results=items.map((()=>{}));items.forEach(((item,i)=>{evaluateAsync(item,(val=>{results[i]=val,count+=1,count===results.length&&resolve(results)}),reject)}))}}),race:buildOperation({name:"race",arity:1,sync:function(args){const items=Array.from(args[0]);if(0===items.length)throw makeError("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");return evaluateSync(items[0])},async:function(args,resolve,reject){const items=Array.from(args[0]);if(0===items.length)throw makeError("Must race at least 1 item","GENSYNC_RACE_NONEMPTY");for(const item of items)evaluateAsync(item,resolve,reject)}})})},"./node_modules/jsesc/jsesc.js":module=>{"use strict";const object={},hasOwnProperty=object.hasOwnProperty,forOwn=(object,callback)=>{for(const key in object)hasOwnProperty.call(object,key)&&callback(key,object[key])},toString=object.toString,isArray=Array.isArray,isBuffer=Buffer.isBuffer,singleEscapes={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},regexSingleEscape=/["'\\\b\f\n\r\t]/,regexDigit=/[0-9]/,regexWhitelist=/[ !#-&\(-\[\]-_a-~]/,jsesc=(argument,options)=>{const increaseIndentation=()=>{oldIndent=indent,++options.indentLevel,indent=options.indent.repeat(options.indentLevel)},defaults={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},json=options&&options.json;var destination,source;json&&(defaults.quotes="double",defaults.wrap=!0),destination=defaults,options=(source=options)?(forOwn(source,((key,value)=>{destination[key]=value})),destination):destination,"single"!=options.quotes&&"double"!=options.quotes&&"backtick"!=options.quotes&&(options.quotes="single");const quote="double"==options.quotes?'"':"backtick"==options.quotes?"`":"'",compact=options.compact,lowercaseHex=options.lowercaseHex;let indent=options.indent.repeat(options.indentLevel),oldIndent="";const inline1=options.__inline1__,inline2=options.__inline2__,newLine=compact?"":"\n";let result,isEmpty=!0;const useBinNumbers="binary"==options.numbers,useOctNumbers="octal"==options.numbers,useDecNumbers="decimal"==options.numbers,useHexNumbers="hexadecimal"==options.numbers;if(json&&argument&&"function"==typeof argument.toJSON&&(argument=argument.toJSON()),!(value=>"string"==typeof value||"[object String]"==toString.call(value))(argument)){if((value=>"[object Map]"==toString.call(value))(argument))return 0==argument.size?"new Map()":(compact||(options.__inline1__=!0,options.__inline2__=!1),"new Map("+jsesc(Array.from(argument),options)+")");if((value=>"[object Set]"==toString.call(value))(argument))return 0==argument.size?"new Set()":"new Set("+jsesc(Array.from(argument),options)+")";if(isBuffer(argument))return 0==argument.length?"Buffer.from([])":"Buffer.from("+jsesc(Array.from(argument),options)+")";if(isArray(argument))return result=[],options.wrap=!0,inline1&&(options.__inline1__=!1,options.__inline2__=!0),inline2||increaseIndentation(),((array,callback)=>{const length=array.length;let index=-1;for(;++index{isEmpty=!1,inline2&&(options.__inline2__=!1),result.push((compact||inline2?"":indent)+jsesc(value,options))})),isEmpty?"[]":inline2?"["+result.join(", ")+"]":"["+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"]";if(!(value=>"number"==typeof value||"[object Number]"==toString.call(value))(argument))return(value=>"[object Object]"==toString.call(value))(argument)?(result=[],options.wrap=!0,increaseIndentation(),forOwn(argument,((key,value)=>{isEmpty=!1,result.push((compact?"":indent)+jsesc(key,options)+":"+(compact?"":" ")+jsesc(value,options))})),isEmpty?"{}":"{"+newLine+result.join(","+newLine)+newLine+(compact?"":oldIndent)+"}"):json?JSON.stringify(argument)||"null":String(argument);if(json)return JSON.stringify(argument);if(useDecNumbers)return String(argument);if(useHexNumbers){let hexadecimal=argument.toString(16);return lowercaseHex||(hexadecimal=hexadecimal.toUpperCase()),"0x"+hexadecimal}if(useBinNumbers)return"0b"+argument.toString(2);if(useOctNumbers)return"0o"+argument.toString(8)}const string=argument;let index=-1;const length=string.length;for(result="";++index=55296&&first<=56319&&length>index+1){const second=string.charCodeAt(index+1);if(second>=56320&&second<=57343){let hexadecimal=(1024*(first-55296)+second-56320+65536).toString(16);lowercaseHex||(hexadecimal=hexadecimal.toUpperCase()),result+="\\u{"+hexadecimal+"}",++index;continue}}}if(!options.escapeEverything){if(regexWhitelist.test(character)){result+=character;continue}if('"'==character){result+=quote==character?'\\"':character;continue}if("`"==character){result+=quote==character?"\\`":character;continue}if("'"==character){result+=quote==character?"\\'":character;continue}}if("\0"==character&&!json&&!regexDigit.test(string.charAt(index+1))){result+="\\0";continue}if(regexSingleEscape.test(character)){result+=singleEscapes[character];continue}const charCode=character.charCodeAt(0);if(options.minimal&&8232!=charCode&&8233!=charCode){result+=character;continue}let hexadecimal=charCode.toString(16);lowercaseHex||(hexadecimal=hexadecimal.toUpperCase());const longhand=hexadecimal.length>2||json,escaped="\\"+(longhand?"u":"x")+("0000"+hexadecimal).slice(longhand?-4:-2);result+=escaped}return options.wrap&&(result=quote+result+quote),"`"==quote&&(result=result.replace(/\$\{/g,"\\${")),options.isScriptContext?result.replace(/<\/(script|style)/gi,"<\\/$1").replace(/