next
Version:
The React Framework
1 lines • 1.16 MB
JavaScript
(()=>{var e={9905:e=>{function webpackEmptyAsyncContext(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}))}webpackEmptyAsyncContext.keys=()=>[];webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=9905;e.exports=webpackEmptyAsyncContext},2269:function(e,t,r){(function(t,n){true?e.exports=n(r(7832)):0})(this,(function(e){"use strict";class OriginalSource{constructor(e,t){this.source=e;this.content=t}originalPositionFor(e,t,r){return{column:t,line:e,name:r,source:this.source,content:this.content}}}let t;class FastStringArray{constructor(){this.indexes=Object.create(null);this.array=[]}}(()=>{t=(e,t)=>{const{array:r,indexes:n}=e;let s=n[t];if(s===undefined){s=n[t]=r.length;r.push(t)}return s}})();const r=undefined;const n=null;let s;class SourceMapTree{constructor(e,t){this.map=e;this.sources=t}originalPositionFor(t,s,i){const a=e.traceSegment(this.map,t,s);if(a==null)return r;if(a.length===1)return n;const o=this.sources[a[1]];return o.originalPositionFor(a[2],a[3],a.length===5?this.map.names[a[4]]:i)}}(()=>{s=s=>{const i=[];const a=new FastStringArray;const o=new FastStringArray;const l=[];const{sources:c,map:u}=s;const p=u.names;const f=e.decodedMappings(u);let d=-1;for(let e=0;e<f.length;e++){const s=f[e];const u=[];let h=-1;let m=-1;let y=-1;for(let i=0;i<s.length;i++){const f=s[i];let g=n;if(f.length!==1){const e=c[f[1]];g=e.originalPositionFor(f[2],f[3],f.length===5?p[f[4]]:"");if(g===r)continue}const b=f[0];if(g===n){if(h===-1){continue}h=m=y=-1;u.push([b]);continue}const{column:T,line:S,name:E,content:x,source:P}=g;const v=t(o,P);l[v]=x;if(h===v&&m===S&&y===T){continue}d=e;h=v;m=S;y=T;u.push(E?[b,v,S,T,t(a,E)]:[b,v,S,T])}i.push(u)}if(i.length>d+1){i.length=d+1}return e.presortedDecodedMap(Object.assign({},s.map,{mappings:i,sourceRoot:undefined,names:a.array,sources:o.array,sourcesContent:l}))}})();function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(t,r){const n=asArray(t).map((t=>new e.TraceMap(t,"")));const s=n.pop();for(let e=0;e<n.length;e++){if(n[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let i=build(s,r,"",0);for(let e=n.length-1;e>=0;e--){i=new SourceMapTree(n[e],[i])}return i}function build(t,r,n,s){const{resolvedSources:i,sourcesContent:a}=t;const o=s+1;const l=i.map(((t,s)=>{const i={importer:n,depth:o,source:t||"",content:undefined};const l=r(i.source,i);const{source:c,content:u}=i;if(!l){const e=u!==undefined?u:a?a[s]:null;return new OriginalSource(c,e)}return build(new e.TraceMap(l,c),r,c,o)}));return new SourceMapTree(t,l)}class SourceMap{constructor(t,r){this.version=3;this.file=t.file;this.mappings=r.decodedMappings?e.decodedMappings(t):e.encodedMappings(t);this.names=t.names;this.sourceRoot=t.sourceRoot;this.sources=t.sources;if(!r.excludeContent&&"sourcesContent"in t){this.sourcesContent=t.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,t,r){const n=typeof r==="object"?r:{excludeContent:!!r,decodedMappings:false};const i=buildSourceMapTree(e,t);return new SourceMap(s(i),n)}return remapping}))},8981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var n=_interopRequireWildcard(r(8739));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;if(i&&(i.get||i.set)){Object.defineProperty(r,s,i)}else{r[s]=e[s]}}}r.default=e;if(t){t.set(e,r)}return r}let s=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},n,e.end);const{linesAbove:i=2,linesBelow:a=3}=r||{};const o=n.line;const l=n.column;const c=s.line;const u=s.column;let p=Math.max(o-(i+1),0);let f=Math.min(t.length,c+a);if(o===-1){p=0}if(c===-1){f=t.length}const d=c-o;const h={};if(d){for(let e=0;e<=d;e++){const r=e+o;if(!l){h[r]=true}else if(e===0){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===d){h[r]=[0,u]}else{const n=t[r-e].length;h[r]=[0,n]}}}else{if(l===u){if(l){h[o]=[l,0]}else{h[o]=true}}else{h[o]=[l,u-l]}}return{start:p,end:f,markerLines:h}}function codeFrameColumns(e,t,r={}){const s=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r);const a=(0,n.getChalk)(r);const o=getDefs(a);const maybeHighlight=(e,t)=>s?e(t):t;const l=e.split(i);const{start:c,end:u,markerLines:p}=getMarkerLines(t,l,r);const f=t.start&&typeof t.start.column==="number";const d=String(u).length;const h=s?(0,n.default)(e,r):e;let m=h.split(i).slice(c,u).map(((e,t)=>{const n=c+1+t;const s=` ${n}`.slice(-d);const i=` ${s} | `;const a=p[n];const l=!p[n+1];if(a){let t="";if(Array.isArray(a)){const n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," ");const s=a[1]||1;t=["\n ",maybeHighlight(o.gutter,i.replace(/\d/g," ")),n,maybeHighlight(o.marker,"^").repeat(s)].join("");if(l&&r.message){t+=" "+maybeHighlight(o.message,r.message)}}return[maybeHighlight(o.marker,">"),maybeHighlight(o.gutter,i),e,t].join("")}else{return` ${maybeHighlight(o.gutter,i)}${e}`}})).join("\n");if(r.message&&!f){m=`${" ".repeat(d+1)}${r.message}\n${m}`}if(s){return a.reset(m)}else{return m}}function _default(e,t,r,n={}){if(!s){s=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const i={start:{column:r,line:t}};return codeFrameColumns(e,i,n)}},2050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var n=r(8739);let s=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},n,e.end);const{linesAbove:i=2,linesBelow:a=3}=r||{};const o=n.line;const l=n.column;const c=s.line;const u=s.column;let p=Math.max(o-(i+1),0);let f=Math.min(t.length,c+a);if(o===-1){p=0}if(c===-1){f=t.length}const d=c-o;const h={};if(d){for(let e=0;e<=d;e++){const r=e+o;if(!l){h[r]=true}else if(e===0){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===d){h[r]=[0,u]}else{const n=t[r-e].length;h[r]=[0,n]}}}else{if(l===u){if(l){h[o]=[l,0]}else{h[o]=true}}else{h[o]=[l,u-l]}}return{start:p,end:f,markerLines:h}}function codeFrameColumns(e,t,r={}){const s=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r);const a=(0,n.getChalk)(r);const o=getDefs(a);const maybeHighlight=(e,t)=>s?e(t):t;const l=e.split(i);const{start:c,end:u,markerLines:p}=getMarkerLines(t,l,r);const f=t.start&&typeof t.start.column==="number";const d=String(u).length;const h=s?(0,n.default)(e,r):e;let m=h.split(i,u).slice(c,u).map(((e,t)=>{const n=c+1+t;const s=` ${n}`.slice(-d);const i=` ${s} |`;const a=p[n];const l=!p[n+1];if(a){let t="";if(Array.isArray(a)){const n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," ");const s=a[1]||1;t=["\n ",maybeHighlight(o.gutter,i.replace(/\d/g," "))," ",n,maybeHighlight(o.marker,"^").repeat(s)].join("");if(l&&r.message){t+=" "+maybeHighlight(o.message,r.message)}}return[maybeHighlight(o.marker,">"),maybeHighlight(o.gutter,i),e.length>0?` ${e}`:"",t].join("")}else{return` ${maybeHighlight(o.gutter,i)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!f){m=`${" ".repeat(d+1)}${r.message}\n${m}`}if(s){return a.reset(m)}else{return m}}function _default(e,t,r,n={}){if(!s){s=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const i={start:{column:r,line:t}};return codeFrameColumns(e,i,n)}},6570:(e,t,r)=>{e.exports=r(9009)},6243:(e,t,r)=>{e.exports=r(7385)},1457:()=>{},3115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertSimpleType=assertSimpleType;t.makeStrongCache=makeStrongCache;t.makeStrongCacheSync=makeStrongCacheSync;t.makeWeakCache=makeWeakCache;t.makeWeakCacheSync=makeWeakCacheSync;function _gensync(){const e=r(4056);_gensync=function(){return e};return e}var n=r(3518);var s=r(9667);const synchronize=e=>_gensync()(e).sync;function*genTrue(){return true}function makeWeakCache(e){return makeCachedFunction(WeakMap,e)}function makeWeakCacheSync(e){return synchronize(makeWeakCache(e))}function makeStrongCache(e){return makeCachedFunction(Map,e)}function makeStrongCacheSync(e){return synchronize(makeStrongCache(e))}function makeCachedFunction(e,t){const r=new e;const i=new e;const a=new e;return function*cachedFunction(e,o){const l=yield*(0,n.isAsync)();const c=l?i:r;const u=yield*getCachedValueOrWait(l,c,a,e,o);if(u.valid)return u.value;const p=new CacheConfigurator(o);const f=t(e,p);let d;let h;if((0,s.isIterableIterator)(f)){const t=f;h=yield*(0,n.onFirstPause)(t,(()=>{d=setupAsyncLocks(p,a,e)}))}else{h=f}updateFunctionCache(c,p,e,h);if(d){a.delete(e);d.release(h)}return h}}function*getCachedValue(e,t,r){const n=e.get(t);if(n){for(const{value:e,valid:t}of n){if(yield*t(r))return{valid:true,value:e}}}return{valid:false,value:null}}function*getCachedValueOrWait(e,t,r,s,i){const a=yield*getCachedValue(t,s,i);if(a.valid){return a}if(e){const e=yield*getCachedValue(r,s,i);if(e.valid){const t=yield*(0,n.waitFor)(e.value.promise);return{valid:true,value:t}}}return{valid:false,value:null}}function setupAsyncLocks(e,t,r){const n=new Lock;updateFunctionCache(t,e,r,n);return n}function updateFunctionCache(e,t,r,n){if(!t.configured())t.forever();let s=e.get(r);t.deactivate();switch(t.mode()){case"forever":s=[{value:n,valid:genTrue}];e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}];e.set(r,s);break;case"valid":if(s){s.push({value:n,valid:t.validator()})}else{s=[{value:n,valid:t.validator()}];e.set(r,s)}}}class CacheConfigurator{constructor(e){this._active=true;this._never=false;this._forever=false;this._invalidate=false;this._configured=false;this._pairs=[];this._data=void 0;this._data=e}simple(){return makeSimpleConfigurator(this)}mode(){if(this._never)return"never";if(this._forever)return"forever";if(this._invalidate)return"invalidate";return"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=true;this._configured=true}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=true;this._configured=true}using(e){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=true;const t=e(this._data);const r=(0,n.maybeAsync)(e,`You appear to be using an async cache handler, but Babel has been called synchronously`);if((0,n.isThenable)(t)){return t.then((e=>{this._pairs.push([e,r]);return e}))}this._pairs.push([t,r]);return t}invalidate(e){this._invalidate=true;return this.using(e)}validator(){const e=this._pairs;return function*(t){for(const[r,n]of e){if(r!==(yield*n(t)))return false}return true}}deactivate(){this._active=false}configured(){return this._configured}}function makeSimpleConfigurator(e){function cacheFn(t){if(typeof t==="boolean"){if(t)e.forever();else e.never();return}return e.using((()=>assertSimpleType(t())))}cacheFn.forever=()=>e.forever();cacheFn.never=()=>e.never();cacheFn.using=t=>e.using((()=>assertSimpleType(t())));cacheFn.invalidate=t=>e.invalidate((()=>assertSimpleType(t())));return cacheFn}function assertSimpleType(e){if((0,n.isThenable)(e)){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(e!=null&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"){throw new Error("Cache keys must be either string, boolean, number, null, or undefined.")}return e}class Lock{constructor(){this.released=false;this.promise=void 0;this._resolve=void 0;this.promise=new Promise((e=>{this._resolve=e}))}release(e){this.released=true;this._resolve(e)}}},9470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildPresetChain=buildPresetChain;t.buildPresetChainWalker=void 0;t.buildRootChain=buildRootChain;function _path(){const e=r(1017);_path=function(){return e};return e}function _debug(){const e=r(6937);_debug=function(){return e};return e}var n=r(3585);var s=r(1660);var i=r(5656);var a=r(1029);var o=r(3115);var l=r(6622);const c=_debug()("babel:config:config-chain");function*buildPresetChain(e,t){const r=yield*u(e,t);if(!r)return null;return{plugins:dedupDescriptors(r.plugins),presets:dedupDescriptors(r.presets),options:r.options.map((e=>normalizeOptions(e))),files:new Set}}const u=makeChainWalker({root:e=>p(e),env:(e,t)=>f(e)(t),overrides:(e,t)=>d(e)(t),overridesEnv:(e,t,r)=>h(e)(t)(r),createLogger:()=>()=>{}});t.buildPresetChainWalker=u;const p=(0,o.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.alias,l.createUncachedDescriptors)));const f=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.alias,l.createUncachedDescriptors,t)))));const d=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.alias,l.createUncachedDescriptors,t)))));const h=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>(0,o.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.alias,l.createUncachedDescriptors,t,r)))))));function*buildRootChain(e,t){let r,n;const s=new i.ConfigPrinter;const o=yield*b({options:e,dirname:t.cwd},t,undefined,s);if(!o)return null;const l=yield*s.output();let c;if(typeof e.configFile==="string"){c=yield*(0,a.loadConfig)(e.configFile,t.cwd,t.envName,t.caller)}else if(e.configFile!==false){c=yield*(0,a.findRootConfig)(t.root,t.envName,t.caller)}let{babelrc:u,babelrcRoots:p}=e;let f=t.cwd;const d=emptyChain();const h=new i.ConfigPrinter;if(c){const e=m(c);const n=yield*loadFileChain(e,t,undefined,h);if(!n)return null;r=yield*h.output();if(u===undefined){u=e.options.babelrc}if(p===undefined){f=e.dirname;p=e.options.babelrcRoots}mergeChain(d,n)}let g,T;let S=false;const E=emptyChain();if((u===true||u===undefined)&&typeof t.filename==="string"){const e=yield*(0,a.findPackageData)(t.filename);if(e&&babelrcLoadEnabled(t,e,p,f)){({ignore:g,config:T}=yield*(0,a.findRelativeConfig)(e,t.envName,t.caller));if(g){E.files.add(g.filepath)}if(g&&shouldIgnore(t,g.ignore,null,g.dirname)){S=true}if(T&&!S){const e=y(T);const r=new i.ConfigPrinter;const s=yield*loadFileChain(e,t,undefined,r);if(!s){S=true}else{n=yield*r.output();mergeChain(E,s)}}if(T&&S){E.files.add(T.filepath)}}}if(t.showConfig){console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,n,l].filter((e=>!!e)).join("\n\n")+"\n-----End Babel configs-----")}const x=mergeChain(mergeChain(mergeChain(emptyChain(),d),E),o);return{plugins:S?[]:dedupDescriptors(x.plugins),presets:S?[]:dedupDescriptors(x.presets),options:S?[]:x.options.map((e=>normalizeOptions(e))),fileHandling:S?"ignored":"transpile",ignore:g||undefined,babelrc:T||undefined,config:c||undefined,files:x.files}}function babelrcLoadEnabled(e,t,r,n){if(typeof r==="boolean")return r;const i=e.root;if(r===undefined){return t.directories.indexOf(i)!==-1}let a=r;if(!Array.isArray(a)){a=[a]}a=a.map((e=>typeof e==="string"?_path().resolve(n,e):e));if(a.length===1&&a[0]===i){return t.directories.indexOf(i)!==-1}return a.some((r=>{if(typeof r==="string"){r=(0,s.default)(r,n)}return t.directories.some((t=>matchPattern(r,n,t,e)))}))}const m=(0,o.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("configfile",e.options)})));const y=(0,o.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("babelrcfile",e.options)})));const g=(0,o.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("extendsfile",e.options)})));const b=makeChainWalker({root:e=>buildRootDescriptors(e,"base",l.createCachedDescriptors),env:(e,t)=>buildEnvDescriptors(e,"base",l.createCachedDescriptors,t),overrides:(e,t)=>buildOverrideDescriptors(e,"base",l.createCachedDescriptors,t),overridesEnv:(e,t,r)=>buildOverrideEnvDescriptors(e,"base",l.createCachedDescriptors,t,r),createLogger:(e,t,r)=>buildProgrammaticLogger(e,t,r)});const T=makeChainWalker({root:e=>S(e),env:(e,t)=>E(e)(t),overrides:(e,t)=>x(e)(t),overridesEnv:(e,t,r)=>P(e)(t)(r),createLogger:(e,t,r)=>buildFileLogger(e.filepath,t,r)});function*loadFileChain(e,t,r,n){const s=yield*T(e,t,r,n);if(s){s.files.add(e.filepath)}return s}const S=(0,o.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.filepath,l.createUncachedDescriptors)));const E=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.filepath,l.createUncachedDescriptors,t)))));const x=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.filepath,l.createUncachedDescriptors,t)))));const P=(0,o.makeWeakCacheSync)((e=>(0,o.makeStrongCacheSync)((t=>(0,o.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.filepath,l.createUncachedDescriptors,t,r)))))));function buildFileLogger(e,t,r){if(!r){return()=>{}}return r.configure(t.showConfig,i.ChainFormatter.Config,{filepath:e})}function buildRootDescriptors({dirname:e,options:t},r,n){return n(e,t,r)}function buildProgrammaticLogger(e,t,r){var n;if(!r){return()=>{}}return r.configure(t.showConfig,i.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name})}function buildEnvDescriptors({dirname:e,options:t},r,n,s){const i=t.env&&t.env[s];return i?n(e,i,`${r}.env["${s}"]`):null}function buildOverrideDescriptors({dirname:e,options:t},r,n,s){const i=t.overrides&&t.overrides[s];if(!i)throw new Error("Assertion failure - missing override");return n(e,i,`${r}.overrides[${s}]`)}function buildOverrideEnvDescriptors({dirname:e,options:t},r,n,s,i){const a=t.overrides&&t.overrides[s];if(!a)throw new Error("Assertion failure - missing override");const o=a.env&&a.env[i];return o?n(e,o,`${r}.overrides[${s}].env["${i}"]`):null}function makeChainWalker({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(i,a,o=new Set,l){const{dirname:c}=i;const u=[];const p=e(i);if(configIsApplicable(p,c,a)){u.push({config:p,envName:undefined,index:undefined});const e=t(i,a.envName);if(e&&configIsApplicable(e,c,a)){u.push({config:e,envName:a.envName,index:undefined})}(p.options.overrides||[]).forEach(((e,t)=>{const s=r(i,t);if(configIsApplicable(s,c,a)){u.push({config:s,index:t,envName:undefined});const e=n(i,t,a.envName);if(e&&configIsApplicable(e,c,a)){u.push({config:e,index:t,envName:a.envName})}}}))}if(u.some((({config:{options:{ignore:e,only:t}}})=>shouldIgnore(a,e,t,c)))){return null}const f=emptyChain();const d=s(i,a,l);for(const{config:e,index:t,envName:r}of u){if(!(yield*mergeExtendsChain(f,e.options,c,a,o,l))){return null}d(e,t,r);yield*mergeChainOpts(f,e)}return f}}function*mergeExtendsChain(e,t,r,n,s,i){if(t.extends===undefined)return true;const o=yield*(0,a.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(o)){throw new Error(`Configuration cycle detected loading ${o.filepath}.\n`+`File already loaded following the config chain:\n`+Array.from(s,(e=>` - ${e.filepath}`)).join("\n"))}s.add(o);const l=yield*loadFileChain(g(o),n,s,i);s.delete(o);if(!l)return false;mergeChain(e,l);return true}function mergeChain(e,t){e.options.push(...t.options);e.plugins.push(...t.plugins);e.presets.push(...t.presets);for(const r of t.files){e.files.add(r)}return e}function*mergeChainOpts(e,{options:t,plugins:r,presets:n}){e.options.push(t);e.plugins.push(...yield*r());e.presets.push(...yield*n());return e}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(e){const t=Object.assign({},e);delete t.extends;delete t.env;delete t.overrides;delete t.plugins;delete t.presets;delete t.passPerPreset;delete t.ignore;delete t.only;delete t.test;delete t.include;delete t.exclude;if(Object.prototype.hasOwnProperty.call(t,"sourceMap")){t.sourceMaps=t.sourceMap;delete t.sourceMap}return t}function dedupDescriptors(e){const t=new Map;const r=[];for(const n of e){if(typeof n.value==="function"){const e=n.value;let s=t.get(e);if(!s){s=new Map;t.set(e,s)}let i=s.get(n.name);if(!i){i={value:n};r.push(i);if(!n.ownPass)s.set(n.name,i)}else{i.value=n}}else{r.push({value:n})}}return r.reduce(((e,t)=>{e.push(t.value);return e}),[])}function configIsApplicable({options:e},t,r){return(e.test===undefined||configFieldIsApplicable(r,e.test,t))&&(e.include===undefined||configFieldIsApplicable(r,e.include,t))&&(e.exclude===undefined||!configFieldIsApplicable(r,e.exclude,t))}function configFieldIsApplicable(e,t,r){const n=Array.isArray(t)?t:[t];return matchesPatterns(e,n,r)}function ignoreListReplacer(e,t){if(t instanceof RegExp){return String(t)}return t}function shouldIgnore(e,t,r,n){if(t&&matchesPatterns(e,t,n)){var s;const r=`No config is applied to "${(s=e.filename)!=null?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,ignoreListReplacer)}\` from "${n}"`;c(r);if(e.showConfig){console.log(r)}return true}if(r&&!matchesPatterns(e,r,n)){var i;const t=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,ignoreListReplacer)}\` from "${n}"`;c(t);if(e.showConfig){console.log(t)}return true}return false}function matchesPatterns(e,t,r){return t.some((t=>matchPattern(t,r,e.filename,e)))}function matchPattern(e,t,r,n){if(typeof e==="function"){return!!e(r,{dirname:t,envName:n.envName,caller:n.caller})}if(typeof r!=="string"){throw new Error(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`)}if(typeof e==="string"){e=(0,s.default)(e,t)}return e.test(r)}},6622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCachedDescriptors=createCachedDescriptors;t.createDescriptor=createDescriptor;t.createUncachedDescriptors=createUncachedDescriptors;function _gensync(){const e=r(4056);_gensync=function(){return e};return e}var n=r(1029);var s=r(6431);var i=r(3115);var a=r(6436);function isEqualDescriptor(e,t){return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&(e.file&&e.file.request)===(t.file&&t.file.request)&&(e.file&&e.file.resolved)===(t.file&&t.file.resolved)}function*handlerOf(e){return e}function optionsWithResolvedBrowserslistConfigFile(e,t){if(typeof e.browserslistConfigFile==="string"){e.browserslistConfigFile=(0,a.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)}return e}function createCachedDescriptors(e,t,r){const{plugins:n,presets:s,passPerPreset:i}=t;return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:n?()=>u(n,e)(r):()=>handlerOf([]),presets:s?()=>l(s,e)(r)(!!i):()=>handlerOf([])}}function createUncachedDescriptors(e,t,r){let n;let s;return{options:optionsWithResolvedBrowserslistConfigFile(t,e),*plugins(){if(!n){n=yield*createPluginDescriptors(t.plugins||[],e,r)}return n},*presets(){if(!s){s=yield*createPresetDescriptors(t.presets||[],e,r,!!t.passPerPreset)}return s}}}const o=new WeakMap;const l=(0,i.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,i.makeStrongCacheSync)((t=>(0,i.makeStrongCache)((function*(n){const s=yield*createPresetDescriptors(e,r,t,n);return s.map((e=>loadCachedDescriptor(o,e)))}))))}));const c=new WeakMap;const u=(0,i.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,i.makeStrongCache)((function*(t){const n=yield*createPluginDescriptors(e,r,t);return n.map((e=>loadCachedDescriptor(c,e)))}))}));const p={};function loadCachedDescriptor(e,t){const{value:r,options:n=p}=t;if(n===false)return t;let s=e.get(r);if(!s){s=new WeakMap;e.set(r,s)}let i=s.get(n);if(!i){i=[];s.set(n,i)}if(i.indexOf(t)===-1){const e=i.filter((e=>isEqualDescriptor(e,t)));if(e.length>0){return e[0]}i.push(t)}return t}function*createPresetDescriptors(e,t,r,n){return yield*createDescriptors("preset",e,t,r,n)}function*createPluginDescriptors(e,t,r){return yield*createDescriptors("plugin",e,t,r)}function*createDescriptors(e,t,r,n,s){const i=yield*_gensync().all(t.map(((t,i)=>createDescriptor(t,r,{type:e,alias:`${n}$${i}`,ownPass:!!s}))));assertNoDuplicates(i);return i}function*createDescriptor(e,t,{type:r,alias:i,ownPass:a}){const o=(0,s.getItemDescriptor)(e);if(o){return o}let l;let c;let u=e;if(Array.isArray(u)){if(u.length===3){[u,c,l]=u}else{[u,c]=u}}let p=undefined;let f=null;if(typeof u==="string"){if(typeof r!=="string"){throw new Error("To resolve a string-based item, the type of item must be given")}const e=r==="plugin"?n.loadPlugin:n.loadPreset;const s=u;({filepath:f,value:u}=yield*e(u,t));p={request:s,resolved:f}}if(!u){throw new Error(`Unexpected falsy value: ${String(u)}`)}if(typeof u==="object"&&u.__esModule){if(u.default){u=u.default}else{throw new Error("Must export a default export when using ES6 modules.")}}if(typeof u!=="object"&&typeof u!=="function"){throw new Error(`Unsupported format: ${typeof u}. Expected an object or a function.`)}if(f!==null&&typeof u==="object"&&u){throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${f}`)}return{name:l,alias:f||i,value:u,options:c,dirname:t,ownPass:a,file:p}}function assertNoDuplicates(e){const t=new Map;for(const r of e){if(typeof r.value!=="function")continue;let n=t.get(r.value);if(!n){n=new Set;t.set(r.value,n)}if(n.has(r.name)){const t=e.filter((e=>e.value===r.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(t,null,2)}`].join("\n"))}n.add(r.name)}}},9978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ROOT_CONFIG_FILENAMES=void 0;t.findConfigUpwards=findConfigUpwards;t.findRelativeConfig=findRelativeConfig;t.findRootConfig=findRootConfig;t.loadConfig=loadConfig;t.resolveShowConfigPath=resolveShowConfigPath;function _debug(){const e=r(6937);_debug=function(){return e};return e}function _fs(){const e=r(7147);_fs=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _json(){const e=r(8310);_json=function(){return e};return e}function _gensync(){const e=r(4056);_gensync=function(){return e};return e}var n=r(3115);var s=r(7477);var i=r(1850);var a=r(2902);var o=r(1660);var l=r(6076);function _module(){const e=r(8188);_module=function(){return e};return e}const c=_debug()("babel:config:loading:files:configuration");const u=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json"];t.ROOT_CONFIG_FILENAMES=u;const p=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json"];const f=".babelignore";function findConfigUpwards(e){let t=e;for(;;){for(const e of u){if(_fs().existsSync(_path().join(t,e))){return t}}const e=_path().dirname(t);if(t===e)break;t=e}return null}function*findRelativeConfig(e,t,r){let n=null;let s=null;const i=_path().dirname(e.filepath);for(const o of e.directories){if(!n){var a;n=yield*loadOneConfig(p,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?m(e.pkg):null)}if(!s){const e=_path().join(o,f);s=yield*g(e);if(s){c("Found ignore %o from %o.",s.filepath,i)}}}return{config:n,ignore:s}}function findRootConfig(e,t,r){return loadOneConfig(u,e,t,r)}function*loadOneConfig(e,t,r,n,s=null){const i=yield*_gensync().all(e.map((e=>readConfig(_path().join(t,e),r,n))));const a=i.reduce(((e,r)=>{if(r&&e){throw new Error(`Multiple configuration files found. Please remove one:\n`+` - ${_path().basename(e.filepath)}\n`+` - ${r.filepath}\n`+`from ${t}`)}return r||e}),s);if(a){c("Found configuration %o from %o.",a.filepath,t)}return a}function*loadConfig(e,t,n,s){const i=(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(8188))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;s=new Error(`Cannot resolve module '${e}'`);s.code="MODULE_NOT_FOUND";throw s})(e,{paths:[t]});const a=yield*readConfig(i,n,s);if(!a){throw new Error(`Config file ${i} contains no configuration data`)}c("Loaded config %o from %o.",e,t);return a}function readConfig(e,t,r){const n=_path().extname(e);return n===".js"||n===".cjs"||n===".mjs"?h(e,{envName:t,caller:r}):y(e)}const d=new Set;const h=(0,n.makeStrongCache)((function*readConfigJS(e,t){if(!_fs().existsSync(e)){t.never();return null}if(d.has(e)){t.never();c("Auto-ignoring usage of config %o.",e);return{filepath:e,dirname:_path().dirname(e),options:{}}}let r;try{d.add(e);r=yield*(0,a.default)(e,"You appear to be using a native ECMAScript module configuration "+"file, which is only supported when running Babel asynchronously.")}catch(t){t.message=`${e}: Error while loading config - ${t.message}`;throw t}finally{d.delete(e)}let n=false;if(typeof r==="function"){yield*[];r=r((0,s.makeConfigAPI)(t));n=true}if(!r||typeof r!=="object"||Array.isArray(r)){throw new Error(`${e}: Configuration should be an exported JavaScript object.`)}if(typeof r.then==="function"){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.`)}if(n&&!t.configured())throwConfigError();return{filepath:e,dirname:_path().dirname(e),options:r}}));const m=(0,n.makeWeakCacheSync)((e=>{const t=e.options["babel"];if(typeof t==="undefined")return null;if(typeof t!=="object"||Array.isArray(t)||t===null){throw new Error(`${e.filepath}: .babel property must be an object`)}return{filepath:e.filepath,dirname:e.dirname,options:t}}));const y=(0,i.makeStaticFileCache)(((e,t)=>{let r;try{r=_json().parse(t)}catch(t){t.message=`${e}: Error while parsing config - ${t.message}`;throw t}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!=="object"){throw new Error(`${e}: Config returned typeof ${typeof r}`)}if(Array.isArray(r)){throw new Error(`${e}: Expected config object but found array`)}delete r["$schema"];return{filepath:e,dirname:_path().dirname(e),options:r}}));const g=(0,i.makeStaticFileCache)(((e,t)=>{const r=_path().dirname(e);const n=t.split("\n").map((e=>e.replace(/#(.*?)$/,"").trim())).filter((e=>!!e));for(const e of n){if(e[0]==="!"){throw new Error(`Negation of file paths is not supported.`)}}return{filepath:e,dirname:_path().dirname(e),ignore:n.map((e=>(0,o.default)(e,r)))}}));function*resolveShowConfigPath(e){const t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){const r=_path().resolve(e,t);const n=yield*l.stat(r);if(!n.isFile()){throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`)}return r}return null}function throwConfigError(){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};`)}},6097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=resolve;function _module(){const e=r(8188);_module=function(){return e};return e}var n=r(922);function asyncGeneratorStep(e,t,r,n,s,i,a){try{var o=e[i](a);var l=o.value}catch(e){r(e);return}if(o.done){t(l)}else{Promise.resolve(l).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}let s;try{s=r(7110).Z}catch(e){}const i=s&&process.execArgv.includes("--experimental-import-meta-resolve")?s("data:text/javascript,export default import.meta.resolve").then((e=>e.default||n.resolve),(()=>n.resolve)):Promise.resolve(n.resolve);function resolve(e,t){return _resolve.apply(this,arguments)}function _resolve(){_resolve=_asyncToGenerator((function*(e,t){return(yield i)(e,t)}));return _resolve.apply(this,arguments)}},7110:(e,t,r)=>{"use strict";var n;n={value:true};t.Z=import_;function import_(e){return r(9905)(e)}},1029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:true,get:function(){return s.ROOT_CONFIG_FILENAMES}});Object.defineProperty(t,"findConfigUpwards",{enumerable:true,get:function(){return s.findConfigUpwards}});Object.defineProperty(t,"findPackageData",{enumerable:true,get:function(){return n.findPackageData}});Object.defineProperty(t,"findRelativeConfig",{enumerable:true,get:function(){return s.findRelativeConfig}});Object.defineProperty(t,"findRootConfig",{enumerable:true,get:function(){return s.findRootConfig}});Object.defineProperty(t,"loadConfig",{enumerable:true,get:function(){return s.loadConfig}});Object.defineProperty(t,"loadPlugin",{enumerable:true,get:function(){return i.loadPlugin}});Object.defineProperty(t,"loadPreset",{enumerable:true,get:function(){return i.loadPreset}});t.resolvePreset=t.resolvePlugin=void 0;Object.defineProperty(t,"resolveShowConfigPath",{enumerable:true,get:function(){return s.resolveShowConfigPath}});var n=r(3405);var s=r(9978);var i=r(2245);function _gensync(){const e=r(4056);_gensync=function(){return e};return e}({});const a=_gensync()(i.resolvePlugin).sync;t.resolvePlugin=a;const o=_gensync()(i.resolvePreset).sync;t.resolvePreset=o},2902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadCjsOrMjsDefault;t.supportsESM=void 0;var n=r(3518);function _path(){const e=r(1017);_path=function(){return e};return e}function _url(){const e=r(7310);_url=function(){return e};return e}function _module(){const e=r(8188);_module=function(){return e};return e}function asyncGeneratorStep(e,t,r,n,s,i,a){try{var o=e[i](a);var l=o.value}catch(e){r(e);return}if(o.done){t(l)}else{Promise.resolve(l).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}let s;try{s=r(7110).Z}catch(e){}const i=!!s;t.supportsESM=i;function*loadCjsOrMjsDefault(e,t,r=false){switch(guessJSModuleType(e)){case"cjs":return loadCjsDefault(e,r);case"unknown":try{return loadCjsDefault(e,r)}catch(e){if(e.code!=="ERR_REQUIRE_ESM")throw e}case"mjs":if(yield*(0,n.isAsync)()){return yield*(0,n.waitFor)(loadMjsDefault(e))}throw new Error(t)}}function guessJSModuleType(e){switch(_path().extname(e)){case".cjs":return"cjs";case".mjs":return"mjs";default:return"unknown"}}function loadCjsDefault(e,t){const r=require(e);return r!=null&&r.__esModule?r.default||(t?r:undefined):r}function loadMjsDefault(e){return _loadMjsDefault.apply(this,arguments)}function _loadMjsDefault(){_loadMjsDefault=_asyncToGenerator((function*(e){if(!s){throw new Error("Internal error: Native ECMAScript modules aren't supported"+" by this platform.\n")}const t=yield s((0,_url().pathToFileURL)(e));return t.default}));return _loadMjsDefault.apply(this,arguments)}},3405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPackageData=findPackageData;function _path(){const e=r(1017);_path=function(){return e};return e}var n=r(1850);const s="package.json";function*findPackageData(e){let t=null;const r=[];let n=true;let a=_path().dirname(e);while(!t&&_path().basename(a)!=="node_modules"){r.push(a);t=yield*i(_path().join(a,s));const e=_path().dirname(a);if(a===e){n=false;break}a=e}return{filepath:e,directories:r,pkg:t,isPackage:n}}const i=(0,n.makeStaticFileCache)(((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){t.message=`${e}: Error while parsing JSON - ${t.message}`;throw t}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!=="object"){throw new Error(`${e}: Config returned typeof ${typeof r}`)}if(Array.isArray(r)){throw new Error(`${e}: Expected config object but found array`)}return{filepath:e,dirname:_path().dirname(e),options:r}}))},2245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadPlugin=loadPlugin;t.loadPreset=loadPreset;t.resolvePlugin=resolvePlugin;t.resolvePreset=resolvePreset;function _debug(){const e=r(6937);_debug=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _gensync(){const e=r(4056);_gensync=function(){return e};return e}var n=r(3518);var s=r(2902);function _url(){const e=r(7310);_url=function(){return e};return e}var i=r(6097);function _module(){const e=r(8188);_module=function(){return e};return e}function asyncGeneratorStep(e,t,r,n,s,i,a){try{var o=e[i](a);var l=o.value}catch(e){r(e);return}if(o.done){t(l)}else{Promise.resolve(l).then(n,s)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}const a=_debug()("babel:config:loading:files:plugins");const o=/^module:/;const l=/^(?!@|module:|[^/]+\/|babel-plugin-)/;const c=/^(?!@|module:|[^/]+\/|babel-preset-)/;const u=/^(@babel\/)(?!plugin-|[^/]+\/)/;const p=/^(@babel\/)(?!preset-|[^/]+\/)/;const f=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;const d=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;const h=/^(@(?!babel$)[^/]+)$/;function*resolvePlugin(e,t){return yield*m("plugin",e,t)}function*resolvePreset(e,t){return yield*m("preset",e,t)}function*loadPlugin(e,t){const r=yield*resolvePlugin(e,t);const n=yield*requireModule("plugin",r);a("Loaded plugin %o from %o.",e,t);return{filepath:r,value:n}}function*loadPreset(e,t){const r=yield*resolvePreset(e,t);const n=yield*requireModule("preset",r);a("Loaded preset %o from %o.",e,t);return{filepath:r,value:n}}function standardizeName(e,t){if(_path().isAbsolute(t))return t;const r=e==="preset";return t.replace(r?c:l,`babel-${e}-`).replace(r?p:u,`$1${e}-`).replace(r?d:f,`$1babel-${e}-`).replace(h,`$1/babel-${e}`).replace(o,"")}function*resolveAlternativesHelper(e,t){const r=standardizeName(e,t);const{error:n,value:s}=yield r;if(!n)return s;if(n.code!=="MODULE_NOT_FOUND")throw n;if(r!==t&&!(yield t).error){n.message+=`\n- If you want to resolve "${t}", use "module:${t}"`}if(!(yield standardizeName(e,"@babel/"+t)).error){n.message+=`\n- Did you mean "@babel/${t}"?`}const i=e==="preset"?"plugin":"preset";if(!(yield standardizeName(i,t)).error){n.message+=`\n- Did you accidentally pass a ${i} as a ${e}?`}throw n}function tryRequireResolve(e,{paths:[t]}){try{return{error:null,value:(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(8188))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;s=new Error(`Cannot resolve module '${e}'`);s.code="MODULE_NOT_FOUND";throw s})(e,{paths:[t]})}}catch(e){return{error:e,value:null}}}function tryImportMetaResolve(e,t){return _tryImportMetaResolve.apply(this,arguments)}function _tryImportMetaResolve(){_tryImportMetaResolve=_asyncToGenerator((function*(e,t){try{return{error:null,value:yield(0,i.default)(e,t)}}catch(e){return{error:e,value:null}}}));return _tryImportMetaResolve.apply(this,arguments)}function resolveStandardizedNameForRequire(e,t,r){const n=resolveAlternativesHelper(e,t);let s=n.next();while(!s.done){s=n.next(tryRequireResolve(s.value,{paths:[r]}))}return s.value}function resolveStandardizedNameForImport(e,t,r){return _resolveStandardizedNameForImport.apply(this,arguments)}function _resolveStandardizedNameForImport(){_resolveStandardizedNameForImport=_asyncToGenerator((function*(e,t,r){const n=(0,_url().pathToFileURL)(_path().join(r,"./babel-virtual-resolve-base.js")).href;const s=resolveAlternativesHelper(e,t);let i=s.next();while(!i.done){i=s.next(yield tryImportMetaResolve(i.value,n))}return(0,_url().fileURLToPath)(i.value)}));return _resolveStandardizedNameForImport.apply(this,arguments)}const m=_gensync()({sync(e,t,r=process.cwd()){return resolveStandardizedNameForRequire(e,t,r)},async(e,t,r=process.cwd()){return _asyncToGenerator((function*(){if(!s.supportsESM){return resolveStandardizedNameForRequire(e,t,r)}try{return yield resolveStandardizedNameForImport(e,t,r)}catch(n){try{return resolveStandardizedNameForRequire(e,t,r)}catch(e){if(n.type==="MODULE_NOT_FOUND")throw n;if(e.type==="MODULE_NOT_FOUND")throw e;throw n}}}))()}});{var y=new Set}function*requireModule(e,t){{if(!(yield*(0,n.isAsync)())&&y.has(t)){throw new Error(`Reentrant ${e} detected trying to load "${t}". 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{{y.add(t)}return yield*(0,s.default)(t,`You appear to be using a native ECMAScript module ${e}, `+"which is only supported when running Babel asynchronously.",true)}catch(e){e.message=`[BABEL]: ${e.message} (While processing: ${t})`;throw e}finally{{y.delete(t)}}}},1850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeStaticFileCache=makeStaticFileCache;var n=r(3115);var s=r(6076);function _fs2(){const e=r(7147);_fs2=function(){return e};return e}function makeStaticFileCache(e){return(0,n.makeStrongCache)((function*(t,r){const n=r.invalidate((()=>fileMtime(t)));if(n===null){return null}return e(t,yield*s.readFile(t,"utf8"))}))}function fileMtime(e){if(!_fs2().existsSync(e))return null;try{return+_fs2().statSync(e).mtime}catch(e){if(e.code!=="ENOENT"&&e.code!=="ENOTDIR")throw e}return null}},3598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function _gensync(){const e=r(4056);_gensync=function(){return e};return e}var n=r(3518);var s=r(9667);var i=r(8324);var a=r(9818);var o=r(6431);var l=r(9470);var c=r(225);function _traverse(){const e=r(3724);_traverse=function(){return e};return e}var u=r(3115);var p=r(3585);var f=r(5036);var d=r(7477);var h=r(974);var m=r(1457);var y=_gensync()((function*loadFullConfig(e){var t;const r=yield*(0,h.default)(e);if(!r){return null}const{options:n,context:i,fileHandling:a}=r;if(a==="ignored"){return null}const l={};const{plugins:u,presets:f}=n;if(!u||!f){throw new Error("Assertion failure - plugins and presets exist")}const d=Object.assign({},i,{targets:n.targets});const toDescriptor=e=>{const t=(0,o.getItemDescriptor)(e);if(!t){throw new Error("Assertion failure - must be config item")}return t};const m=f.map(toDescriptor);const y=u.map(toDescriptor);const g=[[]];const b=[];const T=[];const S=yield*enhanceError(i,(function*recursePresetDescriptors(e,t){const r=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.options!==false){try{var n=yield*loadPresetDescriptor(i,d)}catch(t){if(t.code==="BABEL_UNKNOWN_OPTION"){(0,p.checkNoUnwrappedItemOptionPairs)(e,s,"preset",t)}throw t}T.push(n.externalDependencies);if(i.ownPass){r.push({preset:n.chain,pass:[]})}else{r.unshift({preset:n.chain,pass:t})}}}if(r.length>0){g.splice(1,0,...r.map((e=>e.pass)).filter((e=>e!==t)));for(const{preset:e,pass:t}of r){if(!e)return true;t.push(...e.plugins);const r=yield*recursePresetDescriptors(e.presets,t);if(r)return true;e.options.forEach((e=>{(0,s.mergeOptions)(l,e)}))}}}))(m,g[0]);if(S)return null;const E=l;(0,s.mergeOptions)(E,n);const x=Object.assign({},d,{assumptions:(t=E.assumptions)!=null?t:{}});yield*enhanceError(i,(function*loadPluginDescriptors(){g[0].unshift(...y);for(const t of g){const r=[];b.push(r);for(let n=0;n<t.length;n++){const s=t[n];if(s.options!==false){try{var e=yield*loadPluginDescriptor(s,x)}catch(e){if(e.code==="BABEL_UNKNOWN_PLUGIN_PROPERTY"){(0,p.checkNoUnwrappedItemOptionPairs)(t,n,"plugin",e)}throw e}r.push(e);T.push(e.externalDependencies)}}}}))();E.plugins=b[0];E.presets=b.slice(1).filter((e=>e.length>0)).map((e=>({plugins:e})));E.passPerPreset=E.presets.length>0;return{options:E,passes:b,externalDependencies:(0,c.finalize)(T)}}));t["default"]=y;function enhanceError(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){if(!/^\[BABEL\]/.test(t.message)){t.message=`[BABEL] ${e.filename||"unknown"}: ${t.message}`}throw t}}}const makeDescriptorLoader=e=>(0,u.makeWeakCache)((function*({value:t,options:r,dirname:s,alias:a},o){if(r===false)throw new Error("Assertion failure");r=r||{};const l=[];let u=t;if(typeof t==="function"){const c=(0,n.maybeAsync)(t,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);const p=Object.assign({},i,e(o,l));try{u=yield*c(p,r,s)}catch(e){if(a){e.message+=` (While processing: ${JSON.stringify(a)})`}throw e}}if(!u||typeof u!=="object"){throw new Error("Plugin/Preset did not return an object.")}if((0,n.isThenable)(u)){yield*[];throw 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(a)})`)}if(l.length>0&&(!o.configured()||o.mode()==="forever")){let e=`A plugin/preset has external untracked dependencies `+`(${l[0]}), but the cache `;if(!o.configured()){e+=`has not been configured to be invalidated when the external dependencies change. `}else{e+=` has been configured to never be invalidated. `}e+=`Plugins/presets should configure their cache to be invalidated when the external `+`dependencies change, for example using \`api.cache.invalidate(() => `+`statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n`+`(While processing: ${JSON.stringify(a)})`;throw new Error(e)}return{value:u,options:r,dirname:s,alias:a,externalDependencies:(0,c.finalize)(l)}}));const g=makeDescriptorLoader(d.makePluginAPI);const b=makeDescriptorLoader(d.makePresetAPI);function*loadPluginDescriptor(e,t){if(e.value instanceof a.default){if(e.options){throw new Error("Passed options to an existing Plugin instance will not work.")}return e.value}return yield*T(yield*g(e,t),t)}const T=(0,u.makeWeakCache)((function*({value:e,options:t,dirname:r,alias:s,externalDependencies:i},o){const l=(0,f.validatePluginObject)(e);const u=Object.assign({},l);if(u.visitor){u.visitor=_traverse().default.explode(Object.assign({},u.visitor))}if(u.inherits){const e={name:undefined,alias:`${s}$inherits`,value:u.inherits,options:t,dirname:r};const a=yield*(0,n.forwardAsync)(loadPluginDescriptor,(t=>o.invalidate((r=>t(e,r)))));u.pre=chain(a.pre,u.pre);u.post=chain(a.post,u.post);u.manipulateOptions=chain(a.manipulateOptions,u.manipulateOptions);u.visitor=_traverse().default.visitors.merge([a.visitor||{},u.visitor||{}]);if(a.externalDependencies.length>0){if(i.length===0){i=a.externalDependencies}else{i=(0,c.finalize)([i,a.externalDependencies])}}}return new a.default(u,t,s,i)}));const validateIfOptionNeedsFilename=(e,t)=>{if(e.test||e.include||e.exclude){const e=t.name?`"${t.name}"`:"/* your preset */";throw new Error([`Preset ${e} require