MCPcopy Index your code
hub / github.com/epicweb-dev/react-fundamentals / wF

Function wF

public/babel-standalone.js:2515–2515  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2513
2514`)+`
2515-----End Babel configs-----`),w=zi(zi(zi(sc(),c),m),a),j.abrupt("return",{plugins:F?[]:ic(w.plugins),presets:F?[]:ic(w.presets),options:F?[]:w.options.map(function(S){return CP(S)}),fileHandling:F?"ignored":"transpile",ignore:g||void 0,babelrc:p||void 0,config:o||void 0,files:w.files});case 58:case"end":return j.stop()}},X8e)}function n2e(e,r,t,n){if(typeof t=="boolean")return t;var s=e.root;if(t===void 0)return r.directories.indexOf(s)!==-1;var a=t;return Array.isArray(a)||(a=[a]),a=a.map(function(i){return typeof i=="string"?Dt.resolve(n,i):i}),a.length===1&&a[0]===s?r.directories.indexOf(s)!==-1:a.some(function(i){return typeof i=="string"&&(i=gP(i,n)),r.directories.some(function(o){return bP(i,n,o,e)})})}var s2e=Ht(function(e){return{filepath:e.filepath,dirname:e.dirname,options:qu("configfile",e.options,e.filepath)}}),i2e=Ht(function(e){return{filepath:e.filepath,dirname:e.dirname,options:qu("babelrcfile",e.options,e.filepath)}}),o2e=Ht(function(e){return{filepath:e.filepath,dirname:e.dirname,options:qu("extendsfile",e.options,e.filepath)}}),u2e=wF({root:function(r){return AF(r,"base",ec)},env:function(r,t){return bF(r,"base",ec,t)},overrides:function(r,t){return RF(r,"base",ec,t)},overridesEnv:function(r,t,n){return BF(r,"base",ec,t,n)},createLogger:function(r,t,n){return p2e(r,t,n)}}),d2e=wF({root:function(r){return l2e(r)},env:function(r,t){return c2e(r)(t)},overrides:function(r,t){return x2e(r)(t)},overridesEnv:function(r,t,n){return D2e(r)(t)(n)},createLogger:function(r,t,n){return f2e(r.filepath,t,n)}});function nc(e,r,t,n){var s;return Se().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.delegateYield(d2e(e,r,t,n),"t0",1);case 1:return s=i.t0,s?.files.add(e.filepath),i.abrupt("return",s);case 4:case"end":return i.stop()}},J8e)}var l2e=Ht(function(e){return AF(e,e.filepath,ss)}),c2e=Ht(function(e){return pn(function(r){return bF(e,e.filepath,ss,r)})}),x2e=Ht(function(e){return pn(function(r){return RF(e,e.filepath,ss,r)})}),D2e=Ht(function(e){return pn(function(r){return pn(function(t){return BF(e,e.filepath,ss,r,t)})})});function f2e(e,r,t){return t?t.configure(r.showConfig,EF.Config,{filepath:e}):function(){}}function AF(e,r,t){var n=e.dirname,s=e.options;return t(n,s,r)}function p2e(e,r,t){var n;return t?t.configure(r.showConfig,EF.Programmatic,{callerName:(n=r.caller)==null?void 0:n.name}):function(){}}function bF(e,r,t,n){var s,a=e.dirname,i=e.options,o=(s=i.env)==null?void 0:s[n];return o?t(a,o,r+'.env["'+n+'"]'):null}function RF(e,r,t,n){var s,a=e.dirname,i=e.options,o=(s=i.overrides)==null?void 0:s[n];if(!o)throw new Error("Assertion failure - missing override");return t(a,o,r+".overrides["+n+"]")}function BF(e,r,t,n,s){var a,i,o=e.dirname,u=e.options,d=(a=u.overrides)==null?void 0:a[n];if(!d)throw new Error("Assertion failure - missing override");var l=(i=d.env)==null?void 0:i[s];return l?t(o,l,r+".overrides["+n+'].env["'+s+'"]'):null}function wF(e){var r=e.root,t=e.env,n=e.overrides,s=e.overridesEnv,a=e.createLogger;return function(o,u,d,l){return d===void 0&&(d=new Set),Se().mark(function c(){var x,f,D,g,p,F,m,E,h,v,A,C;return Se().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(x=o.dirname,f=[],D=r(o),oc(D,x,u,o.filepath)&&(f.push({config:D,envName:void 0,index:void 0}),g=t(o,u.envName),g&&oc(g,x,u,o.filepath)&&f.push({config:g,envName:u.envName,index:void 0}),(D.options.overrides||[]).forEach(function(j,S){var T=n(o,S);if(oc(T,x,u,o.filepath)){f.push({config:T,index:S,envName:void 0});var N=s(o,S,u.envName);N&&oc(N,x,u,o.filepath)&&f.push({config:N,index:S,envName:u.envName})}})),!f.some(function(j){var S=j.config.options,T=S.ignore,N=S.only;return AP(u,T,N,x)})){B.next=6;break}return B.abrupt("return",null);case 6:p=sc(),F=a(o,u,l),m=0,E=f;case 9:if(!(m<E.length)){B.next=19;break}return h=E[m],v=h.config,A=h.index,C=h.envName,B.delegateYield(EP(p,v.options,x,u,d,l),"t0",12);case 12:if(B.t0){B.next=14;break}return B.abrupt("return",null);case 14:return F(v,A,C),B.delegateYield(g2e(p,v),"t1",16);case 16:m++,B.next=9;break;case 19:return B.abrupt("return",p);case 20:case"end":return B.stop()}},c)})()}}function EP(e,r,t,n,s,a){var i,o;return Se().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(r.extends!==void 0){d.next=2;break}return d.abrupt("return",!0);case 2:return d.delegateYield(Ng(r.extends,t,n.envName,n.caller),"t0",3);case 3:if(i=d.t0,!s.has(i)){d.next=6;break}throw new Error("Configuration cycle detected loading "+i.filepath+`.
2516File already loaded following the config chain:
2517`+Array.from(s,function(l){return" - "+l.filepath}).join(`
2518`));case 6:return s.add(i),d.delegateYield(nc(o2e(i),n,s,a),"t1",8);case 8:if(o=d.t1,s.delete(i),o){d.next=12;break}return d.abrupt("return",!1);case 12:return zi(e,o),d.abrupt("return",!0);case 14:case"end":return d.stop()}},Q8e)}function zi(e,r){var t,n,s;(t=e.options).push.apply(t,De(r.options)),(n=e.plugins).push.apply(n,De(r.plugins)),(s=e.presets).push.apply(s,De(r.presets));for(var a=J(r.files),i;!(i=a()).done;){var o=i.value;e.files.add(o)}return e}function g2e(e,r){var t=r.options,n=r.plugins,s=r.presets;return Se().mark(function a(i,o){return Se().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return e.options.push(t),d.t0=(i=e.plugins).push,d.t1=i,d.t2=De,d.delegateYield(n(),"t3",5);case 5:return d.t4=d.t3,d.t5=(0,d.t2)(d.t4),d.t0.apply.call(d.t0,d.t1,d.t5),d.t6=(o=e.presets).push,d.t7=o,d.t8=De,d.delegateYield(s(),"t9",12);case 12:return d.t10=d.t9,d.t11=(0,d.t8)(d.t10),d.t6.apply.call(d.t6,d.t7,d.t11),d.abrupt("return",e);case 16:case"end":return d.stop()}},a)})()}function sc(){return{options:[],presets:[],plugins:[],files:new Set}}function CP(e){var r=Object.assign({},e);return delete r.extends,delete r.env,delete r.overrides,delete r.plugins,delete r.presets,delete r.passPerPreset,delete r.ignore,delete r.only,delete r.test,delete r.include,delete r.exclude,hasOwnProperty.call(r,"sourceMap")&&(r.sourceMaps=r.sourceMap,delete r.sourceMap),r}function ic(e){for(var r=new Map,t=[],n=J(e),s;!(s=n()).done;){var a=s.value;if(typeof a.value=="function"){var i=a.value,o=r.get(i);o||(o=new Map,r.set(i,o));var u=o.get(a.name);u?u.value=a:(u={value:a},t.push(u),a.ownPass||o.set(a.name,u))}else t.push({value:a})}return t.reduce(function(d,l){return d.push(l.value),d},[])}function oc(e,r,t,n){var s=e.options;return(s.test===void 0||SF(t,s.test,r,n))&&(s.include===void 0||SF(t,s.include,r,n))&&(s.exclude===void 0||!SF(t,s.exclude,r,n))}function SF(e,r,t,n){var s=Array.isArray(r)?r:[r];return jF(e,s,t,n)}function vP(e,r){return r instanceof RegExp?String(r):r}function AP(e,r,t,n){if(r&&jF(e,r,n)){var s,a='No config is applied to "'+((s=e.filename)!=null?s:"(unknown)")+'" because it matches one of `ignore: '+JSON.stringify(r,vP)+'` from "'+n+'"';return mP(a),e.showConfig&&console.log(a),!0}if(t&&!jF(e,t,n)){var i,o='No config is applied to "'+((i=e.filename)!=null?i:"(unknown)")+'" because it fails to match one of `only: '+JSON.stringify(t,vP)+'` from "'+n+'"';return mP(o),e.showConfig&&console.log(o),!0}return!1}function jF(e,r,t,n){return r.some(function(s){return bP(s,t,e.filename,e,n)})}function bP(e,r,t,n,s){if(typeof e=="function")return!!L8e(e)(t,{dirname:r,envName:n.envName,caller:n.caller});if(typeof t!="string")throw new gF("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return typeof e=="string"&&(e=gP(e,r)),e.test(t)}var F2e={name:Yt,manipulateOptions:mn,pre:mn,post:mn,inherits:mn,visitor:m2e,parserOverride:mn,generatorOverride:mn};function m2e(e,r){var t=Gs(e,r);if(t&&(Object.keys(t).forEach(function(n){n!=="_exploded"&&n!=="_verified"&&y2e(n,t[n])}),t.enter||t.exit))throw new Error(Er(e)+' cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.');return t}function y2e(e,r){if(r&&typeof r=="object")Object.keys(r).forEach(function(t){if(t!=="enter"&&t!=="exit")throw new Error('.visitor["'+e+'"] may only have .enter and/or .exit handlers.')});else if(typeof r!="function")throw new Error('.visitor["'+e+'"] must be a function')}function h2e(e){var r={type:"root",source:"plugin"};return Object.keys(e).forEach(function(t){var n=F2e[t];if(n){var s={type:"option",name:t,parent:r};n(s,e[t])}else{var a=new Error("."+t+" is not a valid Plugin property");throw a.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",a}}),e}function E2e(e){var r=function(s){return e.using(function(a){return typeof s>"u"?a.envName:typeof s=="function"?Ou(s(a.envName)):(Array.isArray(s)?s:[s]).some(function(i){if(typeof i!="string")throw new Error("Unexpected non-string value");return i===a.envName})})},t=function(s){return e.using(function(a){return Ou(s(a.caller))})};return{version:Wu,cache:e.simple(),env:r,async:function(){return!1},caller:t,assertVersion:v2e}}function RP(e,r){var t=function(){return JSON.parse(e.using(function(a){return JSON.stringify(a.targets)}))},n=function(a){r.push(a)};return Object.assign({},E2e(e),{targets:t,addExternalDependency:n})}function C2e(e,r){var t=function(s){return e.using(function(a){return a.assumptions[s]})};return Object.assign({},RP(e,r),{assumption:t})}function v2e(e){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e="^"+e+".0.0-0"}if(typeof e!="string")throw new Error("Expected string or integer value.");if(!(e==="*"||Nl.satisfies(Wu,e))){var r=Error.stackTraceLimit;typeof r=="number"&&r<25&&(Error.stackTraceLimit=25);var t=new Error('Requires Babel "'+e+'", but was loaded with "'+Wu+`". 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 typeof r=="number"&&(Error.stackTraceLimit=r),Object.assign(t,{code:"BABEL_VERSION_UNSUPPORTED",version:Wu,range:e})}}var A2e=["showIgnoredFiles"],b2e=Se().mark(TF),R2e=Se().mark(BP);function B2e(e,r){switch(r){case"root":return e;case"upward-optional":{var t=Nj();return t===null?e:t}case"upward":{var n=Nj();if(n!==null)return n;throw Object.assign(new Error('Babel was run with rootMode:"upward" but a root could not '+('be found when searching upward from "'+e+`".

Callers 1

Calls 12

SeFunction · 0.85
rFunction · 0.85
ocFunction · 0.85
tFunction · 0.85
nFunction · 0.85
sFunction · 0.85
APFunction · 0.85
scFunction · 0.85
aFunction · 0.85
EPFunction · 0.85
FFunction · 0.85
g2eFunction · 0.85

Tested by

no test coverage detected