UNPKG

@knapsack/app

Version:

Build Design Systems on top of knapsack, by Basalt

2 lines • 108 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~custom-page-KXWAf~pattern-view-page-WE7TE~1839569f"],{"../node_modules/@babel/template/lib/builder.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const n=new WeakMap,a=new WeakMap,l=t||(0,r.validate)(null);return Object.assign((t,...s)=>{if("string"==typeof t){if(s.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,i.default)(e,t,(0,r.merge)(l,(0,r.validate)(s[0]))))}if(Array.isArray(t)){let r=n.get(t);return r||(r=(0,o.default)(e,t,l),n.set(t,r)),extendedTrace(r(s))}if("object"==typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,r.merge)(l,(0,r.validate)(t)))}throw new Error(`Unexpected template param ${typeof t}`)},{ast:(t,...n)=>{if("string"==typeof t){if(n.length>1)throw new Error("Unexpected extra params.");return(0,i.default)(e,t,(0,r.merge)((0,r.merge)(l,(0,r.validate)(n[0])),s))()}if(Array.isArray(t)){let i=a.get(t);return i||(i=(0,o.default)(e,t,(0,r.merge)(l,s)),a.set(t,i)),i(n)()}throw new Error(`Unexpected template param ${typeof t}`)}})};var r=n("../node_modules/@babel/template/lib/options.js"),i=_interopRequireDefault(n("../node_modules/@babel/template/lib/string.js")),o=_interopRequireDefault(n("../node_modules/@babel/template/lib/literal.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.validate)({placeholderPattern:!1});function extendedTrace(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return n=>{try{return e(n)}catch(e){throw e.stack+=`\n    =============\n${t}`,e}}}},"../node_modules/@babel/template/lib/formatters.js":function(e,t,n){function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}Object.defineProperty(t,"__esModule",{value:!0}),t.program=t.expression=t.statement=t.statements=t.smart=void 0;const r=makeStatementFormatter(e=>e.length>1?e:e[0]);t.smart=r;const i=makeStatementFormatter(e=>e);t.statements=i;const o=makeStatementFormatter(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});t.statement=o;const s={code:e=>`(\n${e}\n)`,validate:({program:e})=>{if(e.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===e.body[0].expression.start)throw new Error("Parse result included parens.")},unwrap:e=>e.program.body[0].expression};t.expression=s;t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},"../node_modules/@babel/template/lib/index.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.program=t.expression=t.statements=t.statement=t.smart=void 0;var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/template/lib/formatters.js")),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/template/lib/builder.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const o=(0,i.default)(r.smart);t.smart=o;const s=(0,i.default)(r.statement);t.statement=s;const a=(0,i.default)(r.statements);t.statements=a;const l=(0,i.default)(r.expression);t.expression=l;const c=(0,i.default)(r.program);t.program=c;var u=Object.assign(o.bind(void 0),{smart:o,statement:s,statements:a,expression:l,program:c,ast:o.ast});t.default=u},"../node_modules/@babel/template/lib/literal.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function literalTemplate(e,t,n){const{metadata:s,names:a}=function buildLiteralData(e,t,n){let r,o,s,a="";do{const l=buildTemplateCode(t,a+="$");r=l.names,o=new Set(r),s=(0,i.default)(e,e.code(l.code),{parser:n.parser,placeholderWhitelist:new Set(l.names.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders})}while(s.placeholders.some(e=>e.isDuplicate&&o.has(e.name)));return{metadata:s,names:r}}(e,t,n);return t=>{const n=t.reduce((e,t,n)=>(e[a[n]]=t,e),{});return t=>{const i=(0,r.normalizeReplacements)(t);return i&&Object.keys(i).forEach(e=>{if(Object.prototype.hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,o.default)(s,i?Object.assign(i,n):n))}}};var r=n("../node_modules/@babel/template/lib/options.js"),i=_interopRequireDefault(n("../node_modules/@babel/template/lib/parse.js")),o=_interopRequireDefault(n("../node_modules/@babel/template/lib/populate.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function buildTemplateCode(e,t){const n=[];let r=e[0];for(let i=1;i<e.length;i++){const o=`${t}${i-1}`;n.push(o),r+=o+e[i]}return{names:n,code:r}}},"../node_modules/@babel/template/lib/options.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.merge=function merge(e,t){const{placeholderWhitelist:n=e.placeholderWhitelist,placeholderPattern:r=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:o=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,{},t.parser),placeholderWhitelist:n,placeholderPattern:r,preserveComments:i,syntacticPlaceholders:o}},t.validate=function validate(e){if(null!=e&&"object"!=typeof e)throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:n,placeholderPattern:r,preserveComments:i,syntacticPlaceholders:o}=t,s=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]);if(null!=n&&!(n instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=r&&!(r instanceof RegExp)&&!1!==r)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=o&&"boolean"!=typeof o)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===o&&(null!=n||null!=r))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:s,placeholderWhitelist:n||void 0,placeholderPattern:null==r?void 0:r,preserveComments:null!=i&&i,syntacticPlaceholders:null==o?void 0:o}},t.normalizeReplacements=function normalizeReplacements(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}},"../node_modules/@babel/template/lib/parse.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function parseAndBuildMetadata(e,t,n){const s=function parseWithCodeFrame(e,t){t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:(t.plugins||[]).concat("placeholders")});try{return(0,i.parse)(e,t)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,o.codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,n.parser),{placeholderWhitelist:a,placeholderPattern:l,preserveComments:c,syntacticPlaceholders:u}=n;r.removePropertiesDeep(s,{preserveComments:c}),e.validate(s);const d={placeholders:[],placeholderNames:new Set},p={placeholders:[],placeholderNames:new Set},f={value:void 0};return r.traverse(s,placeholderVisitorHandler,{syntactic:d,legacy:p,isLegacyRef:f,placeholderWhitelist:a,placeholderPattern:l,syntacticPlaceholders:u}),Object.assign({ast:s},f.value?p:d)};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js")),i=n("../node_modules/@babel/parser/lib/index.js"),o=n("../node_modules/@babel/code-frame/lib/index.js");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const s=/^[_$A-Z0-9]+$/;function placeholderVisitorHandler(e,t,n){let i;if(r.isPlaceholder(e)){if(!1===n.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,n.isLegacyRef.value=!1}else{if(!1===n.isLegacyRef.value||n.syntacticPlaceholders)return;if(r.isIdentifier(e)||r.isJSXIdentifier(e))i=e.name,n.isLegacyRef.value=!0;else{if(!r.isStringLiteral(e))return;i=e.value,n.isLegacyRef.value=!0}}if(!n.isLegacyRef.value&&(null!=n.placeholderPattern||null!=n.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(n.isLegacyRef.value&&(!1===n.placeholderPattern||!(n.placeholderPattern||s).test(i))&&(!n.placeholderWhitelist||!n.placeholderWhitelist.has(i)))return;t=t.slice();const{node:o,key:a}=t[t.length-1];let l;r.isStringLiteral(e)||r.isPlaceholder(e,{expectedNode:"StringLiteral"})?l="string":r.isNewExpression(o)&&"arguments"===a||r.isCallExpression(o)&&"arguments"===a||r.isFunction(o)&&"params"===a?l="param":r.isExpressionStatement(o)&&!r.isPlaceholder(e)?(l="statement",t=t.slice(0,-1)):l=r.isStatement(e)&&r.isPlaceholder(e)?"statement":"other";const{placeholders:c,placeholderNames:u}=n.isLegacyRef.value?n.legacy:n.syntactic;c.push({name:i,type:l,resolve:e=>(function resolveAncestors(e,t){let n=e;for(let e=0;e<t.length-1;e++){const{key:r,index:i}=t[e];n=void 0===i?n[r]:n[r][i]}const{key:r,index:i}=t[t.length-1];return{parent:n,key:r,index:i}})(e,t),isDuplicate:u.has(i)}),u.add(i)}},"../node_modules/@babel/template/lib/populate.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function populatePlaceholders(e,t){const n=r.cloneNode(e.ast);t&&(e.placeholders.forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". 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(['${t}'])}\n            - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}));return e.placeholders.slice().reverse().forEach(e=>{try{!function applyReplacement(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>r.cloneNode(e)):"object"==typeof n&&(n=r.cloneNode(n)));const{parent:i,key:o,index:s}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=r.stringLiteral(n)),!n||!r.isStringLiteral(n))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===s?n?Array.isArray(n)?n=r.blockStatement(n):"string"==typeof n?n=r.expressionStatement(r.identifier(n)):r.isStatement(n)||(n=r.expressionStatement(n)):n=r.emptyStatement():n&&!Array.isArray(n)&&("string"==typeof n&&(n=r.identifier(n)),r.isStatement(n)||(n=r.expressionStatement(n)));else if("param"===e.type){if("string"==typeof n&&(n=r.identifier(n)),void 0===s)throw new Error("Assertion failure.")}else if("string"==typeof n&&(n=r.identifier(n)),Array.isArray(n))throw new Error("Cannot replace single expression with an array.");if(void 0===s)r.validate(i,o,n),i[o]=n;else{const t=i[o].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(s,1):Array.isArray(n)?t.splice(s,1,...n):t[s]=n:t[s]=n,r.validate(i,o,t),i[o]=t}}(e,n,t&&t[e.name]||null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},"../node_modules/@babel/template/lib/string.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function stringTemplate(e,t,n){let s;return t=e.code(t),a=>{const l=(0,r.normalizeReplacements)(a);return s||(s=(0,i.default)(e,t,n)),e.unwrap((0,o.default)(s,l))}};var r=n("../node_modules/@babel/template/lib/options.js"),i=_interopRequireDefault(n("../node_modules/@babel/template/lib/parse.js")),o=_interopRequireDefault(n("../node_modules/@babel/template/lib/populate.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},"../node_modules/@babel/traverse/lib/cache.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function clear(){clearPath(),clearScope()},t.clearPath=clearPath,t.clearScope=clearScope,t.scope=t.path=void 0;let r=new WeakMap;t.path=r;let i=new WeakMap;function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=i=new WeakMap}t.scope=i},"../node_modules/@babel/traverse/lib/context.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/traverse/lib/path/index.js")),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const o=!1;t.default=class TraversalContext{constructor(e,t,n,r){this.queue=null,this.parentPath=r,this.scope=e,this.state=n,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const n=i.VISITOR_KEYS[e.type];if(!n||!n.length)return!1;for(const t of n)if(e[t])return!0;return!1}create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:e,container:t,key:n,listKey:i})}maybeQueue(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e.length;i++){const o=e[i];o&&this.shouldVisit(o)&&r.push(this.create(t,e,i,n))}return this.visitQueue(r)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=[];let n=!1;for(const r of e)if(r.resync(),0!==r.contexts.length&&r.contexts[r.contexts.length-1]===this||r.pushContext(this),null!==r.key&&(o&&e.length>=1e4&&(this.trap=!0),!(t.indexOf(r.node)>=0))){if(t.push(r.node),r.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}for(const t of e)t.popContext();return this.queue=null,n}visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(n,e,t):this.visitSingle(e,t))}}},"../node_modules/@babel/traverse/lib/hub.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Hub{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}}},"../node_modules/@babel/traverse/lib/index.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=traverse,Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),t.visitors=void 0;var r=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/context.js")),i=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/visitors.js"));t.visitors=i;var o=_interopRequireDefault(n("../node_modules/lodash/includes.js")),s=_interopRequireWildcard(n("../node_modules/@babel/types/lib/index.js")),a=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/cache.js")),l=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/path/index.js")),c=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/scope/index.js")),u=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/hub.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function traverse(e,t,n,r,o){if(e){if(t||(t={}),!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error("You must pass a scope and parentPath unless traversing a Program/File. "+`Instead of that you tried to traverse a ${e.type} node without `+"passing scope and parentPath.");s.VISITOR_KEYS[e.type]&&(i.explode(t),traverse.node(e,t,n,r,o))}}function hasBlacklistedType(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}traverse.visitors=i,traverse.verify=i.verify,traverse.explode=i.explode,traverse.cheap=function(e,t){return s.traverseFast(e,t)},traverse.node=function(e,t,n,i,o,a){const l=s.VISITOR_KEYS[e.type];if(!l)return;const c=new r.default(n,t,i,o);for(const t of l)if((!a||!a[t])&&c.visit(e,t))return},traverse.clearNode=function(e,t){s.removeProperties(e,t),a.path.delete(e)},traverse.removeProperties=function(e,t){return s.traverseFast(e,traverse.clearNode,t),e},traverse.hasType=function(e,t,n){if((0,o.default)(n,e.type))return!1;if(e.type===t)return!0;const r={has:!1,type:t};return traverse(e,{noScope:!0,blacklist:n,enter:hasBlacklistedType},null,r),r.has},traverse.cache=a},"../node_modules/@babel/traverse/lib/path/ancestry.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findParent=function findParent(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.find=function find(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.getFunctionParent=function getFunctionParent(){return this.findParent(e=>e.isFunction())},t.getStatementParent=function getStatementParent(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.getEarliestCommonAncestorFrom=function getEarliestCommonAncestorFrom(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,n){let i;const o=r.VISITOR_KEYS[e.type];for(const e of n){const n=e[t+1];i?n.listKey&&i.listKey===n.listKey&&n.key<i.key?i=n:o.indexOf(i.parentKey)>o.indexOf(n.parentKey)&&(i=n):i=n}return i}))},t.getDeepestCommonAncestorFrom=function getDeepestCommonAncestorFrom(e,t){if(!e.length)return this;if(1===e.length)return e[0];let n,r,i=1/0;const o=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),s=o[0];e:for(let e=0;e<i;e++){const t=s[e];for(const n of o)if(n[e]!==t)break e;n=e,r=t}if(r)return t?t(r,n,o):r;throw new Error("Couldn't find intersection")},t.getAncestry=function getAncestry(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},t.isAncestor=function isAncestor(e){return e.isDescendant(this)},t.isDescendant=function isDescendant(e){return!!this.findParent(t=>t===e)},t.inType=function inType(){let e=this;for(;e;){for(const t of arguments)if(e.node.type===t)return!0;e=e.parentPath}return!1};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}})(n("../node_modules/@babel/traverse/lib/path/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},"../node_modules/@babel/traverse/lib/path/comments.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.shareCommentsWithSiblings=function shareCommentsWithSiblings(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;const r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),o=Boolean(r.node),s=Boolean(i.node);o&&s||(o?r.addComments("trailing",t):s&&i.addComments("leading",n))},t.addComment=function addComment(e,t,n){r.addComment(this.node,e,t,n)},t.addComments=function addComments(e,t){r.addComments(this.node,e,t)};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}},"../node_modules/@babel/traverse/lib/path/context.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.call=function call(e){const t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node)return this._call(t[this.node.type]&&t[this.node.type][e]);return!1},t._call=function _call(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.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(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1},t.isBlacklisted=function isBlacklisted(){const e=this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1},t.visit=function visit(){if(!this.node)return!1;if(this.isBlacklisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;if(this.shouldSkip||this.call("enter")||this.shouldSkip)return this.debug("Skip..."),this.shouldStop;return this.debug("Recursing into..."),r.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop},t.skip=function skip(){this.shouldSkip=!0},t.skipKey=function skipKey(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},t.stop=function stop(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP},t.setScope=function setScope(){if(this.opts&&this.opts.noScope)return;let e,t=this.parentPath;for(;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()},t.setContext=function setContext(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.resync=function resync(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t._resyncParent=function _resyncParent(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return this.setKey(e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return this.setKey(e);this.key=null},t._resyncList=function _resyncList(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null},t._resyncRemoved=function _resyncRemoved(){null!=this.key&&this.container&&this.container[this.key]===this.node||this._markRemoved()},t.popContext=function popContext(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},t.pushContext=function pushContext(e){this.contexts.push(e),this.setContext(e)},t.setup=function setup(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,this.setKey(r)},t.setKey=function setKey(e){this.key=e,this.node=this.container[this.key],this.type=this.node&&this.node.type},t.requeue=function requeue(e=this){if(e.removed)return;const t=this.contexts;for(const n of t)n.maybeQueue(e)},t._getQueueContexts=function _getQueueContexts(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t};var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/traverse/lib/index.js")),i=n("../node_modules/@babel/traverse/lib/path/index.js")},"../node_modules/@babel/traverse/lib/path/conversion.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toComputedKey=function toComputedKey(){const e=this.node;let t;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}e.computed||r.isIdentifier(t)&&(t=r.stringLiteral(t.name));return t},t.ensureBlock=function ensureBlock(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const n=[];let i,o,s="body";e.isStatement()?(o="body",i=0,n.push(e.node)):(s+=".body.0",this.isFunction()?(i="argument",n.push(r.returnStatement(e.node))):(i="expression",n.push(r.expressionStatement(e.node))));this.node.body=r.blockStatement(n);const a=this.get(s);return e.setup(a,o?a.node[o]:a.node,o,i),this.node},t.arrowFunctionToShadowed=function arrowFunctionToShadowed(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()},t.unwrapFunctionEnvironment=function unwrapFunctionEnvironment(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)},t.arrowFunctionToExpression=function arrowFunctionToExpression({allowInsertArrow:e=!0,specCompliant:t=!1}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");const n=hoistFunctionEnvironment(this,t,e);if(this.ensureBlock(),this.node.type="FunctionExpression",t){const e=n?null:this.parentPath.scope.generateUidIdentifier("arrowCheckId");e&&this.parentPath.scope.push({id:e,init:r.objectExpression([])}),this.get("body").unshiftContainer("body",r.expressionStatement(r.callExpression(this.hub.addHelper("newArrowCheck"),[r.thisExpression(),e?r.identifier(e.name):r.identifier(n)]))),this.replaceWith(r.callExpression(r.memberExpression((0,i.default)(this,!0)||this.node,r.identifier("bind")),[e?r.identifier(e.name):r.thisExpression()]))}};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js")),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/helper-function-name/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function hoistFunctionEnvironment(e,t=!1,n=!0){const i=e.findParent(e=>e.isFunction()&&!e.isArrowFunctionExpression()||e.isProgram()||e.isClassProperty({static:!1})),o=i&&"constructor"===i.node.kind;if(i.isClassProperty())throw e.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:s,argumentsPaths:a,newTargetPaths:l,superProps:c,superCalls:u}=function getScopeInformation(e){const t=[],n=[],r=[],i=[],o=[];return e.traverse({ClassProperty(e){e.skip()},Function(e){e.isArrowFunctionExpression()||e.skip()},ThisExpression(e){t.push(e)},JSXIdentifier(e){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e){e.get("callee").isSuper()&&o.push(e)},MemberExpression(e){e.get("object").isSuper()&&i.push(e)},ReferencedIdentifier(e){"arguments"===e.node.name&&n.push(e)},MetaProperty(e){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&r.push(e)}}),{thisPaths:t,argumentsPaths:n,newTargetPaths:r,superProps:i,superCalls:o}}(e);if(o&&u.length>0){if(!n)throw u[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");const e=[];i.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(t){t.get("callee").isSuper()&&e.push(t)}});const t=function getSuperBinding(e){return getBinding(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return r.arrowFunctionExpression([r.restElement(t)],r.callExpression(r.super(),[r.spreadElement(r.identifier(t.name))]))})}(i);e.forEach(e=>{const n=r.identifier(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(a.length>0){const e=getBinding(i,"arguments",()=>r.identifier("arguments"));a.forEach(t=>{const n=r.identifier(e);n.loc=t.node.loc,t.replaceWith(n)})}if(l.length>0){const e=getBinding(i,"newtarget",()=>r.metaProperty(r.identifier("new"),r.identifier("target")));l.forEach(t=>{const n=r.identifier(e);n.loc=t.node.loc,t.replaceWith(n)})}if(c.length>0){if(!n)throw c[0].buildCodeFrameError("Unable to handle nested super.prop usage");c.reduce((e,t)=>e.concat(function standardizeSuperProperty(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const t=e.parentPath,n=t.node.operator.slice(0,-1),i=t.node.right;if(t.node.operator="=",e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp");t.get("left").replaceWith(r.memberExpression(e.node.object,r.assignmentExpression("=",o,e.node.property),!0)),t.get("right").replaceWith(r.binaryExpression(n,r.memberExpression(e.node.object,r.identifier(o.name),!0),i))}else t.get("left").replaceWith(r.memberExpression(e.node.object,e.node.property)),t.get("right").replaceWith(r.binaryExpression(n,r.memberExpression(e.node.object,r.identifier(e.node.property.name)),i));return[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,o=[r.assignmentExpression("=",n,r.memberExpression(e.node.object,i?r.assignmentExpression("=",i,e.node.property):e.node.property,e.node.computed)),r.assignmentExpression("=",r.memberExpression(e.node.object,i?r.identifier(i.name):e.node.property,e.node.computed),r.binaryExpression("+",r.identifier(n.name),r.numericLiteral(1)))];e.parentPath.node.prefix||o.push(r.identifier(n.name)),t.replaceWith(r.sequenceExpression(o));const s=t.get("expressions.0.right"),a=t.get("expressions.1.left");return[s,a]}return[e]}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,n=e.parentPath.isAssignmentExpression({left:e.node}),o=e.parentPath.isCallExpression({callee:e.node}),a=function getSuperPropBinding(e,t,n){return getBinding(e,`superprop_${t?"set":"get"}:${n||""}`,()=>{const i=[];let o;if(n)o=r.memberExpression(r.super(),r.identifier(n));else{const t=e.scope.generateUidIdentifier("prop");i.unshift(t),o=r.memberExpression(r.super(),r.identifier(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");i.push(t),o=r.assignmentExpression("=",o,r.identifier(t.name))}return r.arrowFunctionExpression(i,o)})}(i,n,t),l=[];if(e.node.computed&&l.push(e.get("property").node),n){const t=e.parentPath.node.right;l.push(t)}const c=r.callExpression(r.identifier(a),l);o?(e.parentPath.unshiftContainer("arguments",r.thisExpression()),e.replaceWith(r.memberExpression(c,r.identifier("call"))),s.push(e.parentPath.get("arguments.0"))):n?e.parentPath.replaceWith(c):e.replaceWith(c)})}let d;return(s.length>0||t)&&(d=function getThisBinding(e,t){return getBinding(e,"this",n=>{if(!t||!hasSuperClass(e))return r.thisExpression();const i=new WeakSet;e.traverse({Function(e){e.isArrowFunctionExpression()||e.skip()},ClassProperty(e){e.skip()},CallExpression(e){e.get("callee").isSuper()&&(i.has(e.node)||(i.add(e.node),e.replaceWithMultiple([e.node,r.assignmentExpression("=",r.identifier(n),r.identifier("this"))])))}})})}(i,o),(!t||o&&hasSuperClass(i))&&(s.forEach(e=>{const t=e.isJSX()?r.jsxIdentifier(d):r.identifier(d);t.loc=e.node.loc,e.replaceWith(t)}),t&&(d=null))),d}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}function getBinding(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const o=e.scope.generateUidIdentifier(t);i=o.name,e.setData(r,i),e.scope.push({id:o,init:n(i)})}return i}},"../node_modules/@babel/traverse/lib/path/evaluation.js":function(e,t,n){(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateTruthy=function evaluateTruthy(){const e=this.evaluate();if(e.confident)return!!e.value},t.evaluate=function evaluate(){const e={confident:!0,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}};const n=["String","Number","Math"],r=["random"];function deopt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}function evaluateCached(t,i){const{node:o}=t,{seen:s}=i;if(s.has(o)){const e=s.get(o);return e.resolved?e.value:void deopt(t,i)}{const a={resolved:!1};s.set(o,a);const l=function _evaluate(t,i){if(!i.confident)return;const{node:o}=t;if(t.isSequenceExpression()){const e=t.get("expressions");return evaluateCached(e[e.length-1],i)}if(t.isStringLiteral()||t.isNumericLiteral()||t.isBooleanLiteral())return o.value;if(t.isNullLiteral())return null;if(t.isTemplateLiteral())return evaluateQuasis(t,o.quasis,i);if(t.isTaggedTemplateExpression()&&t.get("tag").isMemberExpression()){const e=t.get("tag.object"),{node:{name:n}}=e,r=t.get("tag.property");if(e.isIdentifier()&&"String"===n&&!t.scope.getBinding(n,!0)&&r.isIdentifier&&"raw"===r.node.name)return evaluateQuasis(t,o.quasi.quasis,i,!0)}if(t.isConditionalExpression()){const e=evaluateCached(t.get("test"),i);if(!i.confident)return;return evaluateCached(e?t.get("consequent"):t.get("alternate"),i)}if(t.isExpressionWrapper())return evaluateCached(t.get("expression"),i);if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:o})){const e=t.get("property"),n=t.get("object");if(n.isLiteral()&&e.isIdentifier()){const t=n.node.value,r=typeof t;if("number"===r||"string"===r)return t[e.node.name]}}if(t.isReferencedIdentifier()){const e=t.scope.getBinding(o.name);if(e&&e.constantViolations.length>0)return deopt(e.path,i);if(e&&t.node.start<e.path.node.end)return deopt(e.path,i);if(e&&e.hasValue)return e.value;{if("undefined"===o.name)return e?deopt(e.path,i):void 0;if("Infinity"===o.name)return e?deopt(e.path,i):1/0;if("NaN"===o.name)return e?deopt(e.path,i):NaN;const n=t.resolve();return n===t?deopt(t,i):evaluateCached(n,i)}}if(t.isUnaryExpression({prefix:!0})){if("void"===o.operator)return;const e=t.get("argument");if("typeof"===o.operator&&(e.isFunction()||e.isClass()))return"function";const n=evaluateCached(e,i);if(!i.confident)return;switch(o.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(t.isArrayExpression()){const e=[],n=t.get("elements");for(const t of n){const n=t.evaluate();if(!n.confident)return deopt(t,i);e.push(n.value)}return e}if(t.isObjectExpression()){const e={},n=t.get("properties");for(const t of n){if(t.isObjectMethod()||t.isSpreadElement())return deopt(t,i);const n=t.get("key");let r=n;if(t.node.computed){if(!(r=r.evaluate()).confident)return deopt(n,i);r=r.value}else r=r.isIdentifier()?r.node.name:r.node.value;const o=t.get("value");let s=o.evaluate();if(!s.confident)return deopt(o,i);s=s.value,e[r]=s}return e}if(t.isLogicalExpression()){const e=i.confident,n=evaluateCached(t.get("left"),i),r=i.confident;i.confident=e;const s=evaluateCached(t.get("right"),i),a=i.confident;switch(o.operator){case"||":if(i.confident=r&&(!!n||a),!i.confident)return;return n||s;case"&&":if(i.confident=r&&(!n||a),!i.confident)return;return n&&s}}if(t.isBinaryExpression()){const e=evaluateCached(t.get("left"),i);if(!i.confident)return;const n=evaluateCached(t.get("right"),i);if(!i.confident)return;switch(o.operator){case"-":return e-n;case"+":return e+n;case"/":return e/n;case"*":return e*n;case"%":return e%n;case"**":return Math.pow(e,n);case"<":return e<n;case">":return e>n;case"<=":return e<=n;case">=":return e>=n;case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case"|":return e|n;case"&":return e&n;case"^":return e^n;case"<<":return e<<n;case">>":return e>>n;case">>>":return e>>>n}}if(t.isCallExpression()){const s=t.get("callee");let a,l;if(s.isIdentifier()&&!t.scope.getBinding(s.node.name,!0)&&n.indexOf(s.node.name)>=0&&(l=e[o.callee.name]),s.isMemberExpression()){const t=s.get("object"),i=s.get("property");if(t.isIdentifier()&&i.isIdentifier()&&n.indexOf(t.node.name)>=0&&r.indexOf(i.node.name)<0&&(a=e[t.node.name],l=a[i.node.name]),t.isLiteral()&&i.isIdentifier()){const e=typeof t.node.value;"string"!==e&&"number"!==e||(a=t.node.value,l=a[i.node.name])}}if(l){const e=t.get("arguments").map(e=>evaluateCached(e,i));if(!i.confident)return;return l.apply(a,e)}}deopt(t,i)}(t,i);return i.confident&&(a.resolved=!0,a.value=l),l}}function evaluateQuasis(e,t,n,r=!1){let i="",o=0;const s=e.get("expressions");for(const e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;const t=s[o++];t&&(i+=String(evaluateCached(t,n)))}if(n.confident)return i}}).call(this,n("../node_modules/webpack/buildin/global.js"))},"../node_modules/@babel/traverse/lib/path/family.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getOpposite=function getOpposite(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left")},t.getCompletionRecords=function getCompletionRecords(){let e=[];if(this.isIfStatement())e=addCompletionRecords(this.get("consequent"),e),e=addCompletionRecords(this.get("alternate"),e);else if(this.isDoExpression()||this.isFor()||this.isWhile())e=addCompletionRecords(this.get("body"),e);else if(this.isProgram()||this.isBlockStatement())e=addCompletionRecords(this.get("body").pop(),e);else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(e=addCompletionRecords(this.get("block"),e),e=addCompletionRecords(this.get("handler"),e)):this.isCatchClause()?e=addCompletionRecords(this.get("body"),e):this.isSwitchStatement()?e=function completionRecordForSwitch(e,t){let n=!0;for(let r=e.length-1;r>=0;r--){const i=e[r].get("consequent");let o;e:for(const e of i)if(e.isBlockStatement()){for(const t of e.get("body"))if(t.isBreakStatement()){o=t;break e}}else if(e.isBreakStatement()){o=e;break}if(o){for(;0===o.key&&o.parentPath.isBlockStatement();)o=o.parentPath;const e=o.getPrevSibling();o.key>0&&(e.isExpressionStatement()||e.isBlockStatement())?(t=addCompletionRecords(e,t),o.remove()):(o.replaceWith(o.scope.buildUndefinedNode()),t=addCompletionRecords(o,t))}else if(n){const statementFinder=e=>!e.isBlockStatement()||e.get("body").some(statementFinder);i.some(statementFinder)&&(t=addCompletionRecords(i[i.length-1],t),n=!1)}}return t}(this.get("cases"),e):e.push(this)}return e},t.getSibling=function getSibling(e){return r.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function getPrevSibling(){return this.getSibling(this.key-1)},t.getNextSibling=function getNextSibling(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function getAllNextSiblings(){let e=this.key,t=this.getSibling(++e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(++e);return n},t.getAllPrevSiblings=function getAllPrevSiblings(){let e=this.key,t=this.getSibling(--e);const n=[];for(;t.node;)n.push(t),t=this.getSibling(--e);return n},t.get=function get(e,t){!0===t&&(t=this.context);const n=e.split(".");return 1===n.length?this._getKey(e,t):this._getPattern(n,t)},t._getKey=function _getKey(e,t){const n=this.node,i=n[e];return Array.isArray(i)?i.map((o,s)=>r.default.get({listKey:e,parentPath:this,parent:n,container:i,key:s}).setContext(t)):r.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)},t._getPattern=function _getPattern(e,t){let n=this;for(const r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n},t.getBindingIdentifiers=function getBindingIdentifiers(e){return i.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function getOuterBindingIdentifiers(e){return i.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function getBindingIdentifierPaths(e=!1,t=!1){let n=[].concat(this);const r=Object.create(null);for(;n.length;){const o=n.shift();if(!o)continue;if(!o.node)continue;const s=i.getBindingIdentifiers.keys[o.node.type];if(o.isIdentifier())if(e){(r[o.node.name]=r[o.node.name]||[]).push(o)}else r[o.node.name]=o;else if(o.isExportDeclaration()){const e=o.get("declaration");e.isDeclaration()&&n.push(e)}else{if(t){if(o.isFunctionDeclaration()){n.push(o.get("id"));continue}if(o.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){const t=s[e],r=o.get(t);(Array.isArray(r)||r.node)&&(n=n.concat(r))}}}return r},t.getOuterBindingIdentifierPaths=function getOuterBindingIdentifierPaths(e){return this.getBindingIdentifierPaths(e,!0)};var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/traverse/lib/path/index.js")),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function addCompletionRecords(e,t){return e?t.concat(e.getCompletionRecords()):t}},"../node_modules/@babel/traverse/lib/path/index.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_SKIP=t.SHOULD_STOP=t.REMOVED=void 0;var r=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/lib/virtual-types.js")),i=_interopRequireDefault(n("../node_modules/debug/src/index.js")),o=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/index.js")),s=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/scope/index.js")),a=_interopRequireWildcard(n("../node_modules/@babel/types/lib/index.js")),l=n("../node_modules/@babel/traverse/lib/cache.js"),c=_interopRequireDefault(n("../node_modules/@babel/generator/lib/index.js")),u=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/ancestry.js")),d=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/inference/index.js")),p=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/replacement.js")),f=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/evaluation.js")),h=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/conversion.js")),g=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/introspection.js")),y=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/context.js")),b=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/removal.js")),m=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/modification.js")),v=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/family.js")),_=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/comments.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}const P=(0,i.default)("babel"),x=1;t.REMOVED=x;const w=2;t.SHOULD_STOP=w;const E=4;t.SHOULD_SKIP=E;class NodePath{constructor(e,t){this.parent=t,this.hub=e,this.contexts=[],this.data=null,this._traverseFlags=0,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.scope=null,this.type=null}static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:o}){if(!e&&t&&(e=t.hub),!n)throw new Error("To get a node path the parent needs to exist");const s=r[o],a=l.path.get(n)||[];let c;l.path.has(n)||l.path.set(n,a);for(let e=0;e<a.length;e++){const t=a[e];if(t.node===s){c=t;break}}return c||(c=new NodePath(e,n),a.push(c)),c.setup(t,r,i,o),c}getScope(e){return this.isScope()?new s.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,o.default)(this.node,e,this.scope,t,this)}set(e,t){a.validate(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){P.enabled&&P(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&E)}set shouldSkip(e){e?this._traverseFlags|=E:this._traverseFlags&=~E}get shouldStop(){return!!(this._traverseFlags&w)}set shouldStop(e){e?this._traverseFlags|=w:this._traverseFlags&=~w}get removed(){return!!(this._traverseFlags&x)}set removed(e){e?this._traverseFlags|=x:this._traverseFlags&=~x}}t.default=NodePath,Object.assign(NodePath.prototype,u,d,p,f,h,g,y,b,m,v,_);for(const e of a.TYPES){const t=`is${e}`,n=a[t];NodePath.prototype[t]=function(e){return n(this.node,e)},NodePath.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}for(const e of Object.keys(r)){if("_"===e[0])continue;a.TYPES.indexOf(e)<0&&a.TYPES.push(e);const t=r[e];NodePath.prototype[`is${e}`]=function(e){return t.checkPath(this,e)}}},"../node_modules/@babel/traverse/lib/path/inference/index.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeAnnotation=function getTypeAnnotation(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||i.anyTypeAnnotation();i.isTypeAnnotation(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t._getTypeAnnotation=function _getTypeAnnotation(){const e=this.node;if(!e){if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?i.stringTypeAnnotation():"left"===e.key&&t.isForOfStatement()?i.anyTypeAnnotation():i.voidTypeAnnotation()}return}if(e.typeAnnotation)return e.typeAnnotation;let t=r[e.type];if(t)return t.call(this,e);if((t=r[this.parentPath.type])&&t.validParent)return this.parentPath.getTypeAnnotation()},t.isBaseType=function isBaseType(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)},t.couldBeBaseType=function couldBeBaseType(e){const t=this.getTypeAnnotation();if(i.isAnyTypeAnnotation(t))return!0;if(i.isUnionTypeAnnotation(t)){for(const n of t.types)if(i.isAnyTypeAnnotation(n)||_isBaseType(e,n,!0))return!0;return!1}return _isBaseType(e,t,!0)},t.baseTypeStrictlyMatches=function baseTypeStrictlyMatches(e){const t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!i.isAnyTypeAnnotation(t)&&i.isFlowBaseAnnotation(t))return e.type===t.type},t.isGenericType=function isGenericType(e){const t=this.getTypeAnnotation();return i.isGenericTypeAnnotation(t)&&i.isIdentifier(t.id,{name:e})};var r=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/inference/inferers.js")),i=_interopRequireWildcard(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function _isBaseType(e,t,n){if("string"===e)return i.isStringTypeAnnotation(t);if("number"===e)return i.isNumberTypeAnnotation(t);if("boolean"===e)return i.isBooleanTypeAnnotation(t);if("any"===e)return i.isAnyTypeAnnotation(t);if("mixed"===e)return i.isMixedTypeAnnotation(t);if("empty"===e)return i.isEmptyTypeAnnotation(t);if("void"===e)return i.isVoidTypeAnnotation(t);if(n)return!1;throw new Error(`Unknown base type ${e}`)}},"../node_modules/@babel/traverse/lib/path/inference/inferer-reference.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function getTypeAnnotationBindingConstantViolations(e,t,n){const i=[],o=[];let s=getConstantViolationsBefore(e,t,o);const a=function getConditionalAnnotation(e,t,n){const i=function getParentConditionalPath(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&r.parentPath.scope.getBinding(n)!==e)return;t=r}}(e,t,n);if(!i)return;const o=[i.get("test")],s=[];for(let e=0;e<o.length;e++){const t=o[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(o.push(t.get("left")),o.push(t.get("right")));else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(n,t);e&&s.push(e)}}if(s.length)return{typeAnnotation:r.createUnionTypeAnnotation(s),ifStatement:i};return getConditionalAnnotation(i,n)}(e,t,n);if(a){const t=getConstantViolationsBefore(e,a.ifStatement);s=s.filter(e=>t.indexOf(e)<0),i.push(a.typeAnnotation)}if(s.length){s=s.concat(o);for(const e of s)i.push(e.getTypeAnnotation())}if(i.length)return r.createUnionTypeAnnotation(i)}(t,this,e.name);if("undefined"===e.name)return r.voidTypeAnnotation();if("NaN"===e.name||"Infinity"===e.name)return r.numberTypeAnnotation();e.name};var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function getConstantViolationsBefore(e,t,n){const r=e.constantViolations.slice();return r.unshift(e.path),r.filter(e=>{const r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r})}function inferAnnotationFromBinaryExpression(e,t){const n=t.node.operator,i=t.get("right").resolve(),o=t.get("left").resolve();let s,a,l;if(o.isIdentifier({name:e})?s=i:i.isIdentifier({name:e})&&(s=o),s)return"==="===n?s.getTypeAnnotation():r.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(n)>=0?r.numberTypeAnnotation():void 0;if("==="!==n&&"=="!==n)return;if(o.isUnaryExpression({operator:"typeof"})?(a=o,l=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,l=o),!a)return;if(!a.get("argument").isIdentifier({name:e}))return;if(!(l=l.resolve()).isLiteral())return;const c=l.node.value;return"string"==typeof c?r.createTypeAnnotationBasedOnTypeof(c):void 0}},"../node_modules/@babel/traverse/lib/path/inference/inferers.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariableDeclarator=function VariableDeclarator(){if(!this.get("id").isIdentifier())return;const e=this.get("init");let t=e.getTypeAnnotation();t&&"AnyTypeAnnotation"===t.type&&e.isCallExpression()&&e.get("callee").isIdentifier({name:"Array"})&&!e.scope.hasBinding("Array",!0)&&(t=ArrayExpression());return t},t.TypeCastExpression=TypeCastExpression,t.NewExpression=function NewExpression(e){if(this.get("callee").isIdentifier())return r.genericTypeAnnotation(e.callee)},t.TemplateLiteral=function TemplateLiteral(){return r.stringTypeAnnotation()},t.UnaryExpression=function UnaryExpression(e){const t=e.operator;if("void"===t)return r.voidTypeAnnotation();if(r.NUMBER_UNARY_OPERATORS.indexOf(t)>=0)return r.numberTypeAnnotation();if(r.STRING_UNARY_OPERATORS.indexOf(t)>=0)return r.stringTypeAnnotation();if(r.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0)return r.booleanTypeAnnotation()},t.BinaryExpression=function BinaryExpression(e){const t=e.operator;if(r.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return r.numberTypeAnnotation();if(r.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return r.booleanTypeAnnotation();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?r.numberTypeAnnotation():t.isBaseType("string")||e.isBaseType("string")?r.stringTypeAnnotation():r.unionTypeAnnotation([r.stringTypeAnnotation(),r.numberTypeAnnotation()])}},t.LogicalExpression=function LogicalExpression(){return r.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},t.ConditionalExpression=function ConditionalExpression(){return r.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},t.SequenceExpression=function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()},t.ParenthesizedExpression=function ParenthesizedExpression(){return this.get("expression").getTypeAnnotation()},t.AssignmentExpression=function AssignmentExpression(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function UpdateExpression(e){const t=e.operator;if("++"===t||"--"===t)return r.numberTypeAnnotation()},t.StringLiteral=function StringLiteral(){return r.stringTypeAnnotation()},t.NumericLiteral=function NumericLiteral(){return r.numberTypeAnnotation()},t.BooleanLiteral=function BooleanLiteral(){return r.booleanTypeAnnotation()},t.NullLiteral=function NullLiteral(){return r.nullLiteralTypeAnnotation()},t.RegExpLiteral=function RegExpLiteral(){return r.genericTypeAnnotation(r.identifier("RegExp"))},t.ObjectExpression=function ObjectExpression(){return r.genericTypeAnnotation(r.identifier("Object"))},t.ArrayExpression=ArrayExpression,t.RestElement=RestElement,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=function Func(){return r.genericTypeAnnotation(r.identifier("Function"))},t.CallExpression=function CallExpression(){const{callee:e}=this.node;if(s(e))return r.arrayTypeAnnotation(r.stringTypeAnnotation());if(o(e)||a(e))return r.arrayTypeAnnotation(r.anyTypeAnnotation());if(l(e))return r.arrayTypeAnnotation(r.tupleTypeAnnotation([r.stringTypeAnnotation(),r.anyTypeAnnotation()]));return resolveCall(this.get("callee"))},t.TaggedTemplateExpression=function TaggedTemplateExpression(){return resolveCall(this.get("tag"))},Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return i.default}});var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js")),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/@babel/traverse/lib/path/inference/inferer-reference.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function TypeCastExpression(e){return e.typeAnnotation}function ArrayExpression(){return r.genericTypeAnnotation(r.identifier("Array"))}function RestElement(){return ArrayExpression()}TypeCastExpression.validParent=!0,RestElement.validParent=!0;const o=r.buildMatchMemberExpression("Array.from"),s=r.buildMatchMemberExpression("Object.keys"),a=r.buildMatchMemberExpression("Object.values"),l=r.buildMatchMemberExpression("Object.entries");function resolveCall(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?r.genericTypeAnnotation(r.identifier("AsyncIterator")):r.genericTypeAnnotation(r.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}},"../node_modules/@babel/traverse/lib/path/introspection.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchesPattern=function matchesPattern(e,t){return i.matchesPattern(this.node,e,t)},t.has=has,t.isStatic=function isStatic(){return this.scope.isStatic(this.node)},t.isnt=function isnt(e){return!this.has(e)},t.equals=function equals(e,t){return this.node[e]===t},t.isNodeType=function isNodeType(e){return i.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function canHaveVariableDeclarationOrExpression(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function canSwapBetweenExpressionAndStatement(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return i.isBlockStatement(e);if(this.isBlockStatement())return i.isExpression(e);return!1},t.isCompletionRecord=function isCompletionRecord(e){let t=this,n=!0;do{const r=t.container;if(t.isFunction()&&!n)return!!e;if(n=!1,Array.isArray(r)&&t.key!==r.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function isStatementOrBlock(){return!this.parentPath.isLabeledStatement()&&!i.isBlockStatement(this.container)&&(0,r.default)(i.STATEMENT_OR_BLOCK_KEYS,this.key)},t.referencesImport=function referencesImport(e,t){if(!this.isReferencedIdentifier())return!1;const n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;const r=n.path,i=r.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value!==e)return!1;if(!t)return!0;if(r.isImportDefaultSpecifier()&&"default"===t)return!0;if(r.isImportNamespaceSpecifier()&&"*"===t)return!0;if(r.isImportSpecifier()&&r.node.imported.name===t)return!0;return!1},t.getSource=function getSource(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},t.willIMaybeExecuteBefore=function willIMaybeExecuteBefore(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function _guessExecutionStatusRelativeTo(e){const t={this:getOuterFunction(this),target:getOuterFunction(e)};if(t.target.node!==t.this.node)return this._guessExecutionStatusRelativeToDifferentFunctions(t.target);const n={target:e.getAncestry(),this:this.getAncestry()};if(n.target.indexOf(this)>=0)return"after";if(n.this.indexOf(e)>=0)return"before";let r;const o={target:0,this:0};for(;!r&&o.this<n.this.length;){const e=n.this[o.this];o.target=n.target.indexOf(e),o.target>=0?r=e:o.this++}if(!r)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(isExecutionUncertainInList(n.this,o.this-1)||isExecutionUncertainInList(n.target,o.target-1))return"unknown";const s={this:n.this[o.this-1],target:n.target[o.target-1]};if(s.target.listKey&&s.this.listKey&&s.target.container===s.this.container)return s.target.key>s.this.key?"before":"after";const a=i.VISITOR_KEYS[r.type],l={this:a.indexOf(s.this.parentKey),target:a.indexOf(s.target.parentKey)};return l.target>l.this?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function _guessExecutionStatusRelativeToDifferentFunctions(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration())return"unknown";const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const n=t.referencePaths;let r;for(const t of n){if(!!t.find(t=>t.node===e.node))continue;if("callee"!==t.key||!t.parentPath.isCallExpression())return"unknown";if(s.has(t.node))continue;s.add(t.node);const n=this._guessExecutionStatusRelativeTo(t);if(s.delete(t.node),r&&r!==n)return"unknown";r=n}return r},t.resolve=function resolve(e,t){return this._resolve(e,t)||this},t._resolve=function _resolve(e,t){if(t&&t.indexOf(this)>=0)return;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){const r=n.path.resolve(e,t);if(this.find(e=>e.node===r.node))return;return r}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!i.isLiteral(n))return;const r=n.value,o=this.get("object").resolve(e,t);if(o.isObjectExpression()){const n=o.get("properties");for(const i of n){if(!i.isProperty())continue;const n=i.get("key");let o=i.isnt("computed")&&n.isIdentifier({name:r});if(o=o||n.isLiteral({value:r}))return i.get("value").resolve(e,t)}}else if(o.isArrayExpression()&&!isNaN(+r)){const n=o.get("elements")[r];if(n)return n.resolve(e,t)}}}},t.isConstantExpression=function isConstantExpression(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.get("operator").node&&this.get("argument").isConstantExpression();if(this.isBinaryExpression())return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression();return!1},t.isInStrictMode=function isInStrictMode(){return!!(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(!e.isProgram()&&!e.isFunction())return!1;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let{node:t}=e;e.isFunction()&&(t=t.body);for(const e of t.directives)if("use strict"===e.value.value)return!0})},t.is=void 0;var r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/lodash/includes.js")),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function has(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}const o=has;function getOuterFunction(e){return(e.scope.getFunctionParent()||e.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"AssignmentPattern":return"right"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function isExecutionUncertainInList(e,t){for(let n=0;n<t;n++){const t=e[n];if(isExecutionUncertain(t.parent.type,t.parentKey))return!0}return!1}t.is=o;const s=new WeakSet},"../node_modules/@babel/traverse/lib/path/lib/hoister.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const i={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&r.react.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let n=e.scope;do{if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};t.default=class PathHoister{constructor(e,t){this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=this.bindings[t];if(!e.bindingIdentifierEquals(t,n.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.indexOf(e.path)>=0)break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const n of Object.keys(this.bindings)){if(!t.hasOwnBinding(n))continue;const r=this.bindings[n];if("param"!==r.kind&&"params"!==r.path.parentKey&&this.getAttachmentParentForPath(r.path).key>=e.key){this.attachAfter=!0,e=r.path;for(const t of r.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const n=this.bindings[t];if("param"===n.kind&&n.constant)return!0}return!1}run(){if(this.path.traverse(i,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const n=r.variableDeclarator(t,this.path.node),o=this.attachAfter?"insertAfter":"insertBefore",[s]=e[o]([e.isVariableDeclarator()?n:r.variableDeclaration("var",[n])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(t=r.JSXExpressionContainer(t)),this.path.replaceWith(r.cloneNode(t)),e.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}}},"../node_modules/@babel/traverse/lib/path/lib/removal-hooks.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;t.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&("consequent"===e.key||"alternate"===e.key)||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]},"../node_modules/@babel/traverse/lib/path/lib/virtual-types.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ForAwaitStatement=t.NumericLiteralTypeAnnotation=t.ExistentialTypeParam=t.SpreadProperty=t.RestProperty=t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;var r=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}const i={types:["Identifier","JSXIdentifier"],checkPath(e,t){const{node:n,parent:i}=e;if(!r.isIdentifier(n,t)&&!r.isJSXMemberExpression(i,t)){if(!r.isJSXIdentifier(n,t))return!1;if(r.react.isCompatTag(n.name))return!1}return r.isReferenced(n,i,e.parentPath.parent)}};t.ReferencedIdentifier=i;const o={types:["MemberExpression"],checkPath:({node:e,parent:t})=>r.isMemberExpression(e)&&r.isReferenced(e,t)};t.ReferencedMemberExpression=o;const s={types:["Identifier"],checkPath(e){const{node:t,parent:n}=e,i=e.parentPath.parent;return r.isIdentifier(t)&&r.isBinding(t,n,i)}};t.BindingIdentifier=s;const a={types:["Statement"],checkPath({node:e,parent:t}){if(r.isStatement(e)){if(r.isVariableDeclaration(e)){if(r.isForXStatement(t,{left:e}))return!1;if(r.isForStatement(t,{init:e}))return!1}return!0}return!1}};t.Statement=a;const l={types:["Expression"],checkPath:e=>e.isIdentifier()?e.isReferencedIdentifier():r.isExpression(e.node)};t.Expression=l;const c={types:["Scopable"],checkPath:e=>r.isScope(e.node,e.parent)};t.Scope=c;const u={checkPath:e=>r.isReferenced(e.node,e.parent)};t.Referenced=u;const d={checkPath:e=>r.isBlockScoped(e.node)};t.BlockScoped=d;const p={types:["VariableDeclaration"],checkPath:e=>r.isVar(e.node)};t.Var=p;const f={checkPath:e=>e.node&&!!e.node.loc};t.User=f;const h={checkPath:e=>!e.isUser()};t.Generated=h;const g={checkPath:(e,t)=>e.scope.isPure(e.node,t)};t.Pure=g;const y={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:({node:e})=>!!r.isFlow(e)||(r.isImportDeclaration(e)?"type"===e.importKind||"typeof"===e.importKind:r.isExportDeclaration(e)?"type"===e.exportKind:!!r.isImportSpecifier(e)&&("type"===e.importKind||"typeof"===e.importKind))};t.Flow=y;const b={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectPattern()};t.RestProperty=b;const m={types:["RestElement"],checkPath:e=>e.parentPath&&e.parentPath.isObjectExpression()};t.SpreadProperty=m;t.ExistentialTypeParam={types:["ExistsTypeAnnotation"]};t.NumericLiteralTypeAnnotation={types:["NumberLiteralTypeAnnotation"]};const v={types:["ForOfStatement"],checkPath:({node:e})=>!0===e.await};t.ForAwaitStatement=v},"../node_modules/@babel/traverse/lib/path/modification.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.insertBefore=function insertBefore(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertBefore(e);if(this.isNodeType("Expression")&&!this.isJSXElement()||t.isForStatement()&&"init"===this.key)return this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);if(Array.isArray(this.container))return this._containerInsertBefore(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(s.blockStatement(t?[this.node]:[])),this.unshiftContainer("body",e)}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?")},t._containerInsert=function _containerInsert(e,t){this.updateSiblingKeys(e,t.length);const n=[];this.container.splice(e,0,...t);for(let r=0;r<t.length;r++){const t=e+r,i=this.getSibling(t);n.push(i),this.context&&this.context.queue&&i.pushContext(this.context)}const r=this._getQueueContexts();for(const e of n){e.setScope(),e.debug("Inserted.");for(const t of r)t.maybeQueue(e,!0)}return n},t._containerInsertBefore=function _containerInsertBefore(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function _containerInsertAfter(e){return this._containerInsert(this.key+1,e)},t.insertAfter=function insertAfter(e){this._assertUnremoved(),e=this._verifyNodeList(e);const{parentPath:t}=this;if(t.isExpressionStatement()||t.isLabeledStatement()||t.isExportNamedDeclaration()||t.isExportDefaultDeclaration()&&this.isDeclaration())return t.insertAfter(e.map(e=>s.isExpression(e)?s.expressionStatement(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!t.isJSXElement()||t.isForStatement()&&"init"===this.key){if(this.node){let{scope:n}=this;t.isMethod({computed:!0,key:this.node})&&(n=n.parent);const r=n.generateDeclaredUidIdentifier();e.unshift(s.expressionStatement(s.assignmentExpression("=",s.cloneNode(r),this.node))),e.push(s.expressionStatement(s.cloneNode(r)))}return this.replaceExpressionWithStatements(e)}if(Array.isArray(this.container))return this._containerInsertAfter(e);if(this.isStatementOrBlock()){const t=this.node&&(!this.isExpressionStatement()||null!=this.node.expression);return this.replaceWith(s.blockStatement(t?[this.node]:[])),this.pushContainer("body",e)}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?")},t.updateSiblingKeys=function updateSiblingKeys(e,t){if(!this.parent)return;const n=r.path.get(this.parent);for(let r=0;r<n.length;r++){const i=n[r];i.key>=e&&(i.key+=t)}},t._verifyNodeList=function _verifyNodeList(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(let t=0;t<e.length;t++){const n=e[t];let r;if(n?"object"!=typeof n?r="contains a non-object node":n.type?n instanceof o.default&&(r="has a NodePath when it expected a raw object"):r="without a type":r="has falsy node",r){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${r} with the index of ${t} and type of ${e}`)}}return e},t.unshiftContainer=function unshiftContainer(e,t){return this._assertUnremoved(),t=this._verifyNodeList(t),o.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0})._containerInsertBefore(t)},t.pushContainer=function pushContainer(e,t){this._assertUnremoved(),t=this._verifyNodeList(t);const n=this.node[e];return o.default.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).replaceWithMultiple(t)},t.hoist=function hoist(e=this.scope){return new i.default(this,e).run()};var r=n("../node_modules/@babel/traverse/lib/cache.js"),i=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/path/lib/hoister.js")),o=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/path/index.js")),s=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},"../node_modules/@babel/traverse/lib/path/removal.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.remove=function remove(){if(this._assertUnremoved(),this.resync(),this._removeFromScope(),this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()},t._removeFromScope=function _removeFromScope(){const e=this.getBindingIdentifiers();Object.keys(e).forEach(e=>this.scope.removeBinding(e))},t._callRemovalHooks=function _callRemovalHooks(){for(const e of r.hooks)if(e(this,this.parentPath))return!0},t._remove=function _remove(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._markRemoved=function _markRemoved(){this._traverseFlags|=i.SHOULD_SKIP|i.REMOVED,this.node=null},t._assertUnremoved=function _assertUnremoved(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")};var r=n("../node_modules/@babel/traverse/lib/path/lib/removal-hooks.js"),i=n("../node_modules/@babel/traverse/lib/path/index.js")},"../node_modules/@babel/traverse/lib/path/replacement.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.replaceWithMultiple=function replaceWithMultiple(e){this.resync(),e=this._verifyNodeList(e),a.inheritLeadingComments(e[0],this.node),a.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null;const t=this.insertAfter(e);this.node?this.requeue():this.remove();return t},t.replaceWithSourceString=function replaceWithSourceString(e){this.resync();try{e=`(${e})`,e=(0,s.parse)(e)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,r.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}return e=e.program.body[0].expression,i.default.removeProperties(e),this.replaceWith(e)},t.replaceWith=function replaceWith(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");e instanceof o.default&&(e=e.node);if(!e)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===e)return[this];if(this.isProgram()&&!a.isProgram(e))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(e))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof e)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let t="";this.isNodeType("Statement")&&a.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=a.expressionStatement(e),t="expression"));if(this.isNodeType("Expression")&&a.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);const n=this.node;n&&(a.inheritsComments(e,n),a.removeComments(n));return this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue(),[t?this.get(t):this]},t._replaceWith=function _replaceWith(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?a.validate(this.parent,this.key,[e]):a.validate(this.parent,this.key,e);this.debug(`Replace with ${e&&e.type}`),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function replaceExpressionWithStatements(e){this.resync();const t=a.toSequenceExpression(e,this.scope);if(t)return this.replaceWith(t)[0].get("expressions");const n=this.getFunctionParent(),r=n&&n.is("async"),o=a.arrowFunctionExpression([],a.blockStatement(e));this.replaceWith(a.callExpression(o,[])),this.traverse(l);const s=this.get("callee").getCompletionRecords();for(const e of s){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let n=t.getData("expressionReplacementReturnUid");if(n)n=a.identifier(n.name);else{const e=this.get("callee");n=e.scope.generateDeclaredUidIdentifier("ret"),e.get("body").pushContainer("body",a.returnStatement(a.cloneNode(n))),t.setData("expressionReplacementReturnUid",n)}e.get("expression").replaceWith(a.assignmentExpression("=",a.cloneNode(n),e.node.expression))}else e.replaceWith(a.returnStatement(e.node.expression))}const c=this.get("callee");c.arrowFunctionToExpression(),r&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",a.FUNCTION_TYPES)&&(c.set("async",!0),this.replaceWith(a.awaitExpression(this.node)));return c.get("body.body")},t.replaceInline=function replaceInline(e){if(this.resync(),Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)};var r=n("../node_modules/@babel/code-frame/lib/index.js"),i=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/index.js")),o=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/path/index.js")),s=n("../node_modules/@babel/parser/lib/index.js"),a=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const l={Function(e){e.skip()},VariableDeclaration(e){if("var"!==e.node.kind)return;const t=e.getBindingIdentifiers();for(const n of Object.keys(t))e.scope.push({id:t[n]});const n=[];for(const t of e.node.declarations)t.init&&n.push(a.expressionStatement(a.assignmentExpression("=",t.id,t.init)));e.replaceWithMultiple(n)}}},"../node_modules/@babel/traverse/lib/scope/binding.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Binding{constructor({identifier:e,scope:t,path:n,kind:r}){this.identifier=e,this.scope=t,this.path=n,this.kind=r,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)}reference(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}},"../node_modules/@babel/traverse/lib/scope/index.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_interopRequireDefault(n("../node_modules/lodash/includes.js")),i=_interopRequireDefault(n("../node_modules/lodash/repeat.js")),o=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/scope/lib/renamer.js")),s=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/index.js")),a=_interopRequireDefault(n("../node_modules/lodash/defaults.js")),l=_interopRequireDefault(n("../node_modules/@babel/traverse/lib/scope/binding.js")),c=_interopRequireDefault(n("../node_modules/globals/index.js")),u=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n("../node_modules/@babel/types/lib/index.js")),d=n("../node_modules/@babel/traverse/lib/cache.js");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const p={For(e){for(const t of u.FOR_INIT_KEYS){const n=e.get(t);if(n.isVar()){(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerBinding("var",n)}}},Declaration(e){if(e.isBlockScoped())return;if(e.isExportDeclaration()&&e.get("declaration").isDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){const n=e.get("left");(n.isPattern()||n.isIdentifier())&&t.constantViolations.push(e)},ExportDeclaration:{exit(e){const{node:t,scope:n}=e,r=t.declaration;if(u.isClassDeclaration(r)||u.isFunctionDeclaration(r)){const t=r.id;if(!t)return;const i=n.getBinding(t.name);i&&i.reference(e)}else if(u.isVariableDeclaration(r))for(const t of r.declarations)for(const r of Object.keys(u.getBindingIdentifiers(t))){const t=n.getBinding(r);t&&t.reference(e)}}},LabeledStatement(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e)},ClassDeclaration(e){const t=e.node.id;if(!t)return;const n=t.name;e.scope.bindings[n]=e.scope.getBinding(n)},Block(e){const t=e.get("body");for(const n of t)n.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(n)}};let f=0;class Scope{constructor(e){const{node:t}=e,n=d.scope.get(t);if(n&&n.path===e)return n;d.scope.set(t,this),this.uid=f++,this.block=t,this.path=e,this.labels=new Map}get parent(){const e=this.path.findParent(e=>e.isScope());return e&&e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,t,n){(0,s.default)(e,t,this,n,this.path)}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),u.cloneNode(t)}generateUidIdentifier(e){return u.identifier(this.generateUid(e))}generateUid(e="temp"){let t;e=u.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let n=0;do{t=this._generateUid(e,n),n++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const r=this.getProgramParent();return r.references[t]=!0,r.uids[t]=!0,t}_generateUid(e,t){let n=e;return t>1&&(n+=t),`_${n}`}generateUidBasedOnNode(e,t){let n=e;u.isAssignmentExpression(e)?n=e.left:u.isVariableDeclarator(e)?n=e.id:(u.isObjectProperty(n)||u.isObjectMethod(n))&&(n=n.key);const r=[];!function gatherNodeParts(e,t){if(u.isModuleDeclaration(e))if(e.source)gatherNodeParts(e.source,t);else if(e.specifiers&&e.specifiers.length)for(const n of e.specifiers)gatherNodeParts(n,t);else e.declaration&&gatherNodeParts(e.declaration,t);else if(u.isModuleSpecifier(e))gatherNodeParts(e.local,t);else if(u.isMemberExpression(e))gatherNodeParts(e.object,t),gatherNodeParts(e.property,t);else if(u.isIdentifier(e))t.push(e.name);else if(u.isLiteral(e))t.push(e.value);else if(u.isCallExpression(e))gatherNodeParts(e.callee,t);else if(u.isObjectExpression(e)||u.isObjectPattern(e))for(const n of e.properties)gatherNodeParts(n.key||n.argument,t);else u.isPrivateName(e)?gatherNodeParts(e.id,t):u.isThisExpression(e)?t.push("this"):u.isSuper(e)&&t.push("super")}(n,r);let i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return u.identifier(this.generateUidBasedOnNode(e,t))}isStatic(e){if(u.isThisExpression(e)||u.isSuper(e))return!0;if(u.isIdentifier(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),u.cloneNode(n))}}checkBlockScopedCollisions(e,t,n,r){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&("let"===t||"const"===t))throw this.hub.buildError(r,`Duplicate declaration "${n}"`,TypeError)}rename(e,t,n){const r=this.getBinding(e);if(r)return t=t||this.generateUidIdentifier(e).name,new o.default(r,e,t).rename(n)}_renameFromMap(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)}dump(){const e=(0,i.default)("-",60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(t=t.parent);console.log(e)}toArray(e,t){if(u.isIdentifier(e)){const t=this.getBinding(e.name);if(t&&t.constant&&t.path.isGenericType("Array"))return e}if(u.isArrayExpression(e))return e;if(u.isIdentifier(e,{name:"arguments"}))return u.callExpression(u.memberExpression(u.memberExpression(u.memberExpression(u.identifier("Array"),u.identifier("prototype")),u.identifier("slice")),u.identifier("call")),[e]);let n;const r=[e];return!0===t?n="toConsumableArray":t?(r.push(u.numericLiteral(t)),n="slicedToArray"):n="toArray",u.callExpression(this.hub.addHelper(n),r)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations");for(const n of t)this.registerBinding(e.node.kind,n)}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){const t=e.get("specifiers");for(const e of t)this.registerBinding("module",e)}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return u.unaryExpression("void",u.numericLiteral(0),!0)}registerConstantViolation(e){const t=e.getBindingIdentifiers();for(const n of Object.keys(t)){const t=this.getBinding(n);t&&t.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const n=t.get("declarations");for(const t of n)this.registerBinding(e,t);return}const r=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(i))for(const o of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===o)continue;this.checkBlockScopedCollisions(i,e,t,o)}r.references[t]=!0,i?this.registerConstantViolation(n):this.bindings[t]=new l.default({identifier:o,scope:this,path:n,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){let t=this;do{if(t.references[e])return!0}while(t=t.parent);return!1}isPure(e,t){if(u.isIdentifier(e)){const n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(u.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(u.isClassBody(e)){for(const n of e.body)if(!this.isPure(n,t))return!1;return!0}if(u.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(u.isArrayExpression(e)){for(const n of e.elements)if(!this.isPure(n,t))return!1;return!0}if(u.isObjectExpression(e)){for(const n of e.properties)if(!this.isPure(n,t))return!1;return!0}if(u.isClassMethod(e))return!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind);if(u.isProperty(e))return!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t);if(u.isUnaryExpression(e))return this.isPure(e.argument,t);if(u.isTaggedTemplateExpression(e))return u.matchesPattern(e.tag,"String.raw")&&!this.hasBinding("String",!0)&&this.isPure(e.quasi,t);if(u.isTemplateLiteral(e)){for(const n of e.expressions)if(!this.isPure(n,t))return!1;return!0}return u.isPureish(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.references||this.crawl()}crawl(){const e=this.path;if(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),e.isLoop())for(const t of u.FOR_INIT_KEYS){const n=e.get(t);n.isBlockScoped()&&this.registerBinding(n.node.kind,n)}if(e.isFunctionExpression()&&e.has("id")&&(e.get("id").node[u.NOT_LOCAL_BINDING]||this.registerBinding("local",e.get("id"),e)),e.isClassExpression()&&e.has("id")&&(e.get("id").node[u.NOT_LOCAL_BINDING]||this.registerBinding("local",e)),e.isFunction()){const t=e.get("params");for(const e of t)this.registerBinding("param",e)}if(e.isCatchClause()&&this.registerBinding("let",e),this.getProgramParent().crawling)return;const t={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(p,t),this.crawling=!1;for(const e of t.assignments){const t=e.getBindingIdentifiers();let n;for(const r of Object.keys(t))e.scope.getBinding(r)||(n=n||e.scope.getProgramParent()).addGlobal(t[r]);e.scope.registerConstantViolation(e)}for(const e of t.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):e.scope.getProgramParent().addGlobal(e.node)}for(const e of t.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const n=e.unique,r=e.kind||"var",i=null==e._blockHoist?2:e._blockHoist,o=`declaration:${r}:${i}`;let s=!n&&t.getData(o);if(!s){const e=u.variableDeclaration(r,[]);e._blockHoist=i,[s]=t.unshiftContainer("body",[e]),n||t.setData(o,s)}const a=u.variableDeclarator(e.id,e.init);s.node.declarations.push(a),this.registerBinding(r,s.get("declarations").pop())}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{(0,a.default)(e,t.bindings),t=t.parent}while(t);return e}getAllBindingsOfKind(){const e=Object.create(null);for(const t of arguments){let n=this;do{for(const r of Object.keys(n.bindings)){const i=n.bindings[r];i.kind===t&&(e[r]=i)}n=n.parent}while(n)}return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this;do{const n=t.getOwnBinding(e);if(n)return n}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){const t=this.getBinding(e);return t&&t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return t&&t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){return!!e&&(!!this.hasOwnBinding(e)||(!!this.parentHasBinding(e,t)||(!!this.hasUid(e)||(!(t||!(0,r.default)(Scope.globals,e))||!(t||!(0,r.default)(Scope.contextVariables,e))))))}parentHasBinding(e,t){return this.parent&&this.parent.hasBinding(e,t)}moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){const t=this.getBinding(e);t&&t.scope.removeOwnBinding(e);let n=this;do{n.uids[e]&&(n.uids[e]=!1)}while(n=n.parent)}}t.default=Scope,Scope.globals=Object.keys(c.default.builtin),Scope.contextVariables=["arguments","undefined","Infinity","NaN"]},"../node_modules/@babel/traverse/lib/scope/lib/renamer.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;_interopRequireDefault(n("../node_modules/@babel/traverse/lib/scope/binding.js"));var r=_interopRequireDefault(n("../node_modules/@babel/helper-split-export-declaration/lib/index.js"));(function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n})(n("../node_modules/@babel/types/lib/index.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration"(e,t){const n=e.getOuterBindingIdentifiers();for(const e in n)e===t.oldName&&(n[e].name=t.newName)}};t.default=class Renamer{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;t.isExportDeclaration()&&(t.isExportDefaultDeclaration()&&!t.get("declaration").node.id||(0,r.default)(t))}maybeConvertFromClassFunctionDeclaration(e){}maybeConvertFromClassFunctionExpression(e){}rename(e){const{binding:t,oldName:n,newName:r}=this,{scope:o,path:s}=t,a=s.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());if(a){a.getOuterBindingIdentifiers()[n]===t.identifier&&this.maybeConvertFromExportDeclaration(a)}o.traverse(e||o.block,i,this),e||(o.removeOwnBinding(n),o.bindings[r]=t,this.binding.identifier.name=r),t.type,a&&(this.maybeConvertFromClassFunctionDeclaration(a),this.maybeConvertFromClassFunctionExpression(a))}}},"../node_modules/@babel/traverse/lib/visitors.js":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.explode=explode,t.verify=verify,t.merge=function merge(e,t=[],n){const r={};for(let i=0;i<e.length;i++){const o=e[i],s=t[i];explode(o);for(const e of Object.keys(o)){let t=o[e];(s||n)&&(t=wrapWithStateOrWrapper(t,s,n)),mergePair(r[e]=r[e]||{},t)}}return r};var r=_interopRequireWildcard(n("../node_modules/@babel/traverse/lib/path/lib/virtual-types.js")),i=_interopRequireWildcard(n("../node_modules/@babel/types/lib/index.js")),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../node_modules/lodash/clone.js"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function explode(e){if(e._exploded)return e;e._exploded=!0;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}verify(e),delete e.__esModule,function ensureEntranceObjects(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const n=r[t];if(!n)continue;const i=e[t];for(const e of Object.keys(i))i[e]=wrapCheck(n,i[e]);if(delete e[t],n.types)for(const t of n.types)e[t]?mergePair(e[t],i):e[t]=i;else mergePair(e,i)}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const n=e[t];let r=i.FLIPPED_ALIAS_KEYS[t];const s=i.DEPRECATED_KEYS[t];if(s&&(console.trace(`Visitor defined for ${t} but it has been renamed to ${s}`),r=[s]),r){delete e[t];for(const t of r){const r=e[t];r?mergePair(r,n):e[t]=(0,o.default)(n)}}}for(const t of Object.keys(e))shouldIgnoreKey(t)||ensureCallbackArrays(e[t]);return e}function verify(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||validateVisitorMethods(t,e[t]),shouldIgnoreKey(t))continue;if(i.TYPES.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error("You passed `traverse()` a visitor object with the property "+`${t} that has the invalid property ${e}`);validateVisitorMethods(`${t}.${e}`,n[e])}}e._verified=!0}}function validateVisitorMethods(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function wrapWithStateOrWrapper(e,t,n){const r={};for(const i of Object.keys(e)){let o=e[i];Array.isArray(o)&&(o=o.map((function(e){let r=e;return t&&(r=function(n){return e.call(t,n,t)}),n&&(r=n(t.key,i,r)),r})),r[i]=o)}return r}function ensureCallbackArrays(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function wrapCheck(e,t){const newFn=function(n){if(e.checkPath(n))return t.apply(this,arguments)};return newFn.toString=()=>t.toString(),newFn}function shouldIgnoreKey(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("blacklist"===e||"noScope"===e||"skipKeys"===e))}function mergePair(e,t){for(const n of Object.keys(t))e[n]=[].concat(e[n]||[],t[n])}}}]);
//# sourceMappingURL=vendors~custom-page-KXWAf~pattern-view-page-WE7TE~1839569f.chunk.eaa5497fb7f7db0479e3.js.map