!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=138)}([function(e,t,r){"use strict";t.__esModule=!0,t.createTypeAnnotationBasedOnTypeof=t.removeTypeDuplicates=t.createUnionTypeAnnotation=t.valueToNode=t.toBlock=t.toExpression=t.toStatement=t.toBindingIdentifierName=t.toIdentifier=t.toKeyAlias=t.toSequenceExpression=t.toComputedKey=t.isNodesEquivalent=t.isImmutable=t.isScope=t.isSpecifierDefault=t.isVar=t.isBlockScoped=t.isLet=t.isValidIdentifier=t.isReferenced=t.isBinding=t.getOuterBindingIdentifiers=t.getBindingIdentifiers=t.TYPES=t.react=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;var i=v(r(150)),n=v(r(1)),s=v(r(44)),a=v(r(45)),o=r(74);Object.defineProperty(t,"STATEMENT_OR_BLOCK_KEYS",{enumerable:!0,get:function(){return o.STATEMENT_OR_BLOCK_KEYS}}),Object.defineProperty(t,"FLATTENABLE_KEYS",{enumerable:!0,get:function(){return o.FLATTENABLE_KEYS}}),Object.defineProperty(t,"FOR_INIT_KEYS",{enumerable:!0,get:function(){return o.FOR_INIT_KEYS}}),Object.defineProperty(t,"COMMENT_KEYS",{enumerable:!0,get:function(){return o.COMMENT_KEYS}}),Object.defineProperty(t,"LOGICAL_OPERATORS",{enumerable:!0,get:function(){return o.LOGICAL_OPERATORS}}),Object.defineProperty(t,"UPDATE_OPERATORS",{enumerable:!0,get:function(){return o.UPDATE_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return o.BOOLEAN_NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"EQUALITY_BINARY_OPERATORS",{enumerable:!0,get:function(){return o.EQUALITY_BINARY_OPERATORS}}),Object.defineProperty(t,"COMPARISON_BINARY_OPERATORS",{enumerable:!0,get:function(){return o.COMPARISON_BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_BINARY_OPERATORS",{enumerable:!0,get:function(){return o.BOOLEAN_BINARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return o.NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"BINARY_OPERATORS",{enumerable:!0,get:function(){return o.BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_UNARY_OPERATORS",{enumerable:!0,get:function(){return o.BOOLEAN_UNARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_UNARY_OPERATORS",{enumerable:!0,get:function(){return o.NUMBER_UNARY_OPERATORS}}),Object.defineProperty(t,"STRING_UNARY_OPERATORS",{enumerable:!0,get:function(){return o.STRING_UNARY_OPERATORS}}),Object.defineProperty(t,"UNARY_OPERATORS",{enumerable:!0,get:function(){return o.UNARY_OPERATORS}}),Object.defineProperty(t,"INHERIT_KEYS",{enumerable:!0,get:function(){return o.INHERIT_KEYS}}),Object.defineProperty(t,"BLOCK_SCOPED_SYMBOL",{enumerable:!0,get:function(){return o.BLOCK_SCOPED_SYMBOL}}),Object.defineProperty(t,"NOT_LOCAL_BINDING",{enumerable:!0,get:function(){return o.NOT_LOCAL_BINDING}}),t.is=function(e,t,r){if(!t)return!1;if(!g(t.type,e))return!1;return void 0===r||A.shallowEqual(t,r)},t.isType=g,t.validate=C,t.shallowEqual=function(e,t){var r=(0,s.default)(t),i=Array.isArray(r),a=0;for(r=i?r:(0,n.default)(r);;){var o;if(i){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var u=o;if(e[u]!==t[u])return!1}return!0},t.appendToMemberExpression=function(e,t,r){return e.object=A.memberExpression(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e},t.prependToMemberExpression=function(e,t){return e.object=A.memberExpression(t,e.object),e},t.ensureBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=A.toBlock(e[t],e)},t.clone=F,t.cloneWithoutLoc=function(e){var t=F(e);return delete t.loc,t},t.cloneDeep=function(e){if(!e)return e;var t={};for(var r in e)if("_"!==r[0]){var i=e[r];i&&(i.type?i=A.cloneDeep(i):Array.isArray(i)&&(i=i.map(A.cloneDeep))),t[r]=i}return t},t.buildMatchMemberExpression=function(e,t){var r=e.split(".");return function(e){if(!A.isMemberExpression(e))return!1;for(var i=[e],n=0;i.length;){var s=i.shift();if(t&&n===r.length)return!0;if(A.isIdentifier(s)){if(r[n]!==s.name)return!1}else{if(!A.isStringLiteral(s)){if(A.isMemberExpression(s)){if(s.computed&&!A.isStringLiteral(s.property))return!1;i.push(s.object),i.push(s.property);continue}return!1}if(r[n]!==s.value)return!1}if(++n>r.length)return!1}return!0}},t.removeComments=function(e){var t=A.COMMENT_KEYS,r=Array.isArray(t),i=0;for(t=r?t:(0,n.default)(t);;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if((i=t.next()).done)break;s=i.value}delete e[s]}return e},t.inheritsComments=function(e,t){return S(e,t),T(e,t),P(e,t),e},t.inheritTrailingComments=S,t.inheritLeadingComments=T,t.inheritInnerComments=P,t.inherits=function(e,t){if(!e||!t)return e;var r=A.INHERIT_KEYS.optional,i=Array.isArray(r),s=0;for(r=i?r:(0,n.default)(r);;){var a;if(i){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}var o=a;null==e[o]&&(e[o]=t[o])}for(var u in t)"_"===u[0]&&(e[u]=t[u]);var l=A.INHERIT_KEYS.force,c=Array.isArray(l),p=0;for(l=c?l:(0,n.default)(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;e[h]=t[h]}return A.inheritsComments(e,t),e},t.assertNode=function(e){if(!w(e))throw new TypeError("Not a valid node "+(e&&e.type))},t.isNode=w,t.traverseFast=_,t.removeProperties=O,t.removePropertiesDeep=function(e,t){return _(e,O,t),e};var u=r(101);Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return u.getBindingIdentifiers}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return u.getOuterBindingIdentifiers}});var l=r(163);Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return l.isBinding}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return l.isReferenced}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return l.isValidIdentifier}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return l.isLet}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return l.isBlockScoped}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return l.isVar}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return l.isSpecifierDefault}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return l.isScope}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return l.isImmutable}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return l.isNodesEquivalent}});var c=r(172);Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return c.toComputedKey}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return c.toSequenceExpression}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return c.toKeyAlias}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return c.toIdentifier}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return c.toBindingIdentifierName}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return c.toStatement}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return c.toExpression}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return c.toBlock}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return c.valueToNode}});var p=r(181);Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return p.createUnionTypeAnnotation}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return p.removeTypeDuplicates}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.createTypeAnnotationBasedOnTypeof}});var f=v(r(182)),h=v(r(106)),d=v(r(247));r(260);var m=r(15),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(267));function v(e){return e&&e.__esModule?e:{default:e}}var A=t;function E(e){var t=A["is"+e];t||(t=A["is"+e]=function(t,r){return A.is(e,t,r)}),A["assert"+e]=function(r,i){if(!t(r,i=i||{}))throw new Error("Expected type "+(0,a.default)(e)+" with option "+(0,a.default)(i))}}for(var D in t.VISITOR_KEYS=m.VISITOR_KEYS,t.ALIAS_KEYS=m.ALIAS_KEYS,t.NODE_FIELDS=m.NODE_FIELDS,t.BUILDER_KEYS=m.BUILDER_KEYS,t.DEPRECATED_KEYS=m.DEPRECATED_KEYS,t.react=y,A.VISITOR_KEYS)E(D);A.FLIPPED_ALIAS_KEYS={},(0,s.default)(A.ALIAS_KEYS).forEach((function(e){A.ALIAS_KEYS[e].forEach((function(t){(A.FLIPPED_ALIAS_KEYS[t]=A.FLIPPED_ALIAS_KEYS[t]||[]).push(e)}))})),(0,s.default)(A.FLIPPED_ALIAS_KEYS).forEach((function(e){A[e.toUpperCase()+"_TYPES"]=A.FLIPPED_ALIAS_KEYS[e],E(e)}));t.TYPES=(0,s.default)(A.VISITOR_KEYS).concat((0,s.default)(A.FLIPPED_ALIAS_KEYS)).concat((0,s.default)(A.DEPRECATED_KEYS));function g(e,t){if(e===t)return!0;if(A.ALIAS_KEYS[t])return!1;var r=A.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;var i=r,s=Array.isArray(i),a=0;for(i=s?i:(0,n.default)(i);;){var o;if(s){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}if(e===o)return!0}}return!1}(0,s.default)(A.BUILDER_KEYS).forEach((function(e){var t=A.BUILDER_KEYS[e];function r(){if(arguments.length>t.length)throw new Error("t."+e+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+t.length);var r={};r.type=e;var i=0,s=t,a=Array.isArray(s),o=0;for(s=a?s:(0,n.default)(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var l=u,c=A.NODE_FIELDS[e][l],p=arguments[i++];void 0===p&&(p=(0,h.default)(c.default)),r[l]=p}for(var f in r)C(r,f,r[f]);return r}A[e]=r,A[e[0].toLowerCase()+e.slice(1)]=r}));var x=function(e){var t=A.DEPRECATED_KEYS[e];function r(r){return function(){return console.trace("The node type "+e+" has been renamed to "+t),r.apply(this,arguments)}}A[e]=A[e[0].toLowerCase()+e.slice(1)]=r(A[t]),A["is"+e]=r(A["is"+t]),A["assert"+e]=r(A["assert"+t])};for(var b in A.DEPRECATED_KEYS)x(b);function C(e,t,r){if(e){var i=A.NODE_FIELDS[e.type];if(i){var n=i[t];n&&n.validate&&(n.optional&&null==r||n.validate(e,t,r))}}}function F(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e[r]);return t}function S(e,t){B("trailingComments",e,t)}function T(e,t){B("leadingComments",e,t)}function P(e,t){B("innerComments",e,t)}function B(e,t,r){t&&r&&(t[e]=(0,d.default)([].concat(t[e],r[e]).filter(Boolean)))}function w(e){return!(!e||!m.VISITOR_KEYS[e.type])}function _(e,t,r){if(e){var i=A.VISITOR_KEYS[e.type];if(i){t(e,r=r||{});var s=i,a=Array.isArray(s),o=0;for(s=a?s:(0,n.default)(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var l=e[u];if(Array.isArray(l)){var c=l,p=Array.isArray(c),f=0;for(c=p?c:(0,n.default)(c);;){var h;if(p){if(f>=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}_(h,t,r)}}else _(l,t,r)}}}}(0,f.default)(A),(0,f.default)(A.VISITOR_KEYS);var k=["tokens","start","end","loc","raw","rawValue"],N=A.COMMENT_KEYS.concat(["comments"]).concat(k);function O(e,t){var r=(t=t||{}).preserveComments?k:N,s=Array.isArray(r),a=0;for(r=s?r:(0,n.default)(r);;){var o;if(s){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var u=o;null!=e[u]&&(e[u]=void 0)}for(var l in e)"_"===l[0]&&null!=e[l]&&(e[l]=void 0);var c=(0,i.default)(e),p=Array.isArray(c),f=0;for(c=p?c:(0,n.default)(c);;){var h;if(p){if(f>=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}e[h]=null}}},function(e,t,r){e.exports={default:r(139),__esModule:!0}},function(e,t){var r=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var i=r(67)("wks"),n=r(41),s=r(3).Symbol,a="function"==typeof s;(e.exports=function(e){return i[e]||(i[e]=a&&s[e]||(a?s:n)("Symbol."+e))}).store=i},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){e.exports=!r(16)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){var i=r(104),n="object"==typeof self&&self&&self.Object===Object&&self,s=i||n||Function("return this")();e.exports=s},function(e,t,r){var i=r(3),n=r(2),s=r(24),a=r(11),o=r(13),u=function(e,t,r){var l,c,p,f=e&u.F,h=e&u.G,d=e&u.S,m=e&u.P,y=e&u.B,v=e&u.W,A=h?n:n[t]||(n[t]={}),E=A.prototype,D=h?i:d?i[t]:(i[t]||{}).prototype;for(l in h&&(r=t),r)(c=!f&&D&&void 0!==D[l])&&o(A,l)||(p=c?D[l]:r[l],A[l]=h&&"function"!=typeof D[l]?r[l]:y&&c?s(p,i):v&&D[l]==p?function(e){var t=function(t,r,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?s(Function.call,p):p,m&&((A.virtual||(A.virtual={}))[l]=p,e&u.R&&E&&!E[l]&&a(E,l,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){var i=r(12),n=r(93),s=r(62),a=Object.defineProperty;t.f=r(6)?Object.defineProperty:function(e,t,r){if(i(e),t=s(t,!0),i(r),n)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var i=r(9),n=r(39);e.exports=r(6)?function(e,t,r){return i.f(e,t,n(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var i=r(5);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var i=r(46),n=r(177),s=r(178),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):s(e)}},function(e,t,r){"use strict";t.__esModule=!0,t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=void 0;var i=o(r(1)),n=o(r(45)),s=o(r(28));t.assertEach=function(e){function t(t,r,i){if(Array.isArray(i))for(var n=0;n=u.length)break;p=u[c++]}else{if((c=u.next()).done)break;p=c.value}var f=p;if(a.is(f,s)){o=!0;break}}if(!o)throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+(0,n.default)(t)+" but instead got "+(0,n.default)(s&&s.type))}return s.oneOfNodeTypes=t,s},t.assertNodeOrValueType=function(){for(var e=arguments.length,t=Array(e),r=0;r=u.length)break;p=u[c++]}else{if((c=u.next()).done)break;p=c.value}var f=p;if(h(s)===f||a.is(f,s)){o=!0;break}}if(!o)throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+(0,n.default)(t)+" but instead got "+(0,n.default)(s&&s.type))}return s.oneOfNodeOrValueTypes=t,s},t.assertValueType=d,t.chain=function(){for(var e=arguments.length,t=Array(e),r=0;r=e.length)break;s=e[n++]}else{if((n=e.next()).done)break;s=n.value}var a=s;a.apply(void 0,arguments)}}return n.chainOf=t,n},t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.inherits&&m[t.inherits]||{};t.fields=t.fields||r.fields||{},t.visitor=t.visitor||r.visitor||[],t.aliases=t.aliases||r.aliases||[],t.builder=t.builder||r.builder||t.visitor||[],t.deprecatedAlias&&(f[t.deprecatedAlias]=e);var n=t.visitor.concat(t.builder),s=Array.isArray(n),a=0;for(n=s?n:(0,i.default)(n);;){var o;if(s){if(a>=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var y=o;t.fields[y]=t.fields[y]||{}}for(var v in t.fields){var A=t.fields[v];-1===t.builder.indexOf(v)&&(A.optional=!0),void 0===A.default?A.default=null:A.validate||(A.validate=d(h(A.default)))}u[e]=t.visitor,p[e]=t.builder,c[e]=t.fields,l[e]=t.aliases,m[e]=t};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function o(e){return e&&e.__esModule?e:{default:e}}var u=t.VISITOR_KEYS={},l=t.ALIAS_KEYS={},c=t.NODE_FIELDS={},p=t.BUILDER_KEYS={},f=t.DEPRECATED_KEYS={};function h(e){return Array.isArray(e)?"array":null===e?"null":void 0===e||void 0===e?"undefined":(0,s.default)(e)}function d(e){function t(t,r,i){if(!(h(i)===e))throw new TypeError("Property "+r+" expected type of "+e+" but got "+h(i))}return t.type=e,t}var m={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";t.__esModule=!0;var i=d(r(1)),n=d(r(18)),s=h(r(98)),a=d(r(268)),o=d(r(274)),u=d(r(22)),l=d(r(275)),c=d(r(84)),p=h(r(0)),f=r(57);function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var m=(0,a.default)("babel"),y=function(){function e(t,r){(0,n.default)(this,e),this.parent=r,this.hub=t,this.contexts=[],this.data={},this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.inList=!1,this.parentKey=null,this.key=null,this.node=null,this.scope=null,this.type=null,this.typeAnnotation=null}return e.get=function(t){var r=t.hub,i=t.parentPath,n=t.parent,s=t.container,a=t.listKey,u=t.key;!r&&i&&(r=i.hub),(0,o.default)(n,"To get a node path the parent needs to exist");var l=s[u],c=f.path.get(n)||[];f.path.has(n)||f.path.set(n,c);for(var p=void 0,h=0;h1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.file.buildCodeFrameError(this.node,e,t)},e.prototype.traverse=function(e,t){(0,u.default)(this.node,e,this.scope,t,this)},e.prototype.mark=function(e,t){this.hub.file.metadata.marked.push({type:e,message:t,loc:this.node.loc})},e.prototype.set=function(e,t){p.validate(this.node,e,t),this.node[e]=t},e.prototype.getPathLocation=function(){var e=[],t=this;do{var r=t.key;t.inList&&(r=t.listKey+"["+r+"]"),e.unshift(r)}while(t=t.parentPath);return e.join(".")},e.prototype.debug=function(e){m.enabled&&m(this.getPathLocation()+" "+this.type+": "+e())},e}();t.default=y,(0,l.default)(y.prototype,r(316)),(0,l.default)(y.prototype,r(317)),(0,l.default)(y.prototype,r(320)),(0,l.default)(y.prototype,r(329)),(0,l.default)(y.prototype,r(330)),(0,l.default)(y.prototype,r(331)),(0,l.default)(y.prototype,r(332)),(0,l.default)(y.prototype,r(333)),(0,l.default)(y.prototype,r(335)),(0,l.default)(y.prototype,r(337)),(0,l.default)(y.prototype,r(338));var v=function(){if(E){if(D>=A.length)return"break";g=A[D++]}else{if((D=A.next()).done)return"break";g=D.value}var e=g,t="is"+e;y.prototype[t]=function(e){return p[t](this.node,e)},y.prototype["assert"+e]=function(r){if(!this[t](r))throw new TypeError("Expected node path of type "+e)}},A=p.TYPES,E=Array.isArray(A),D=0;for(A=E?A:(0,i.default)(A);;){var g;if("break"===v())break}var x=function(e){if("_"===e[0])return"continue";p.TYPES.indexOf(e)<0&&p.TYPES.push(e);var t=s[e];y.prototype["is"+e]=function(e){return t.checkPath(this,e)}};for(var b in s)x(b);e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){var i=r(195),n=r(198);e.exports=function(e,t){var r=n(e,t);return i(r)?r:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var i=r(58),n=r(60);e.exports=function(e){return i(n(e))}},function(e,t,r){"use strict";t.__esModule=!0,t.visitors=t.Hub=t.Scope=t.NodePath=void 0;var i=d(r(1)),n=r(17);Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return d(n).default}});var s=r(84);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return d(s).default}});var a=r(136);Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return d(a).default}}),t.default=m;var o=d(r(339)),u=h(r(340)),l=h(r(89)),c=d(r(88)),p=h(r(0)),f=h(r(57));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t,r,i,n){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error(l.get("traverseNeedsParent",e.type));u.explode(t),m.node(e,t,r,i,n)}}function y(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.visitors=u,m.visitors=u,m.verify=u.verify,m.explode=u.explode,m.NodePath=r(17),m.Scope=r(84),m.Hub=r(136),m.cheap=function(e,t){return p.traverseFast(e,t)},m.node=function(e,t,r,n,s,a){var u=p.VISITOR_KEYS[e.type];if(u){var l=new o.default(r,t,n,s),c=u,f=Array.isArray(c),h=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(h>=c.length)break;d=c[h++]}else{if((h=c.next()).done)break;d=h.value}var m=d;if((!a||!a[m])&&l.visit(e,m))return}}},m.clearNode=function(e,t){p.removeProperties(e,t),f.path.delete(e)},m.removeProperties=function(e,t){return p.traverseFast(e,m.clearNode,t),e},m.hasType=function(e,t,r,i){if((0,c.default)(i,e.type))return!1;if(e.type===r)return!0;var n={has:!1,type:r};return m(e,{blacklist:i,enter:y},t,n),n.has},m.clearCache=function(){f.clear()},m.clearCache.clearPath=f.clearPath,m.clearCache.clearScope=f.clearScope,m.copyCache=function(e,t){f.path.has(e)&&f.path.set(t,f.path.get(e))}},function(e,t){e.exports={}},function(e,t,r){var i=r(92);e.exports=function(e,t,r){if(i(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,n){return e.call(t,r,i,n)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var i=r(95),n=r(68);e.exports=Object.keys||function(e){return i(e,n)}},function(e,t,r){var i=r(60);e.exports=function(e){return Object(i(e))}},function(e,t,r){var i=r(41)("meta"),n=r(5),s=r(13),a=r(9).f,o=0,u=Object.isExtensible||function(){return!0},l=!r(16)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,i,{value:{i:"O"+ ++o,w:{}}})},p=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!s(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return l&&p.NEED&&u(e)&&!s(e,i)&&c(e),e}}},function(e,t,r){"use strict";t.__esModule=!0;var i=a(r(164)),n=a(r(166)),s="function"==typeof n.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof n.default&&"symbol"===s(i.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t,r){var i=r(79),n=r(110);e.exports=function(e,t,r,s){var a=!r;r||(r={});for(var o=-1,u=t.length;++oE;E++)if((y=t?A(a(d=e[E])[0],d[1]):A(e[E]))===l||y===c)return y}else for(m=v.call(e);!(d=m.next()).done;)if((y=n(m,A,d.value,t))===l||y===c)return y}).BREAK=l,t.RETURN=c},function(e,t,r){var i=r(5);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},function(e,t,r){r(140);for(var i=r(3),n=r(11),s=r(23),a=r(4)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;udocument.F=Object<\/script>"),e.close(),u=e.F;i--;)delete u.prototype[s[i]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(o.prototype=i(e),r=new o,o.prototype=null,r[a]=e):r=u(),void 0===t?r:n(r,t)}},function(e,t){var r=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},function(e,t,r){var i=r(9).f,n=r(13),s=r(4)("toStringTag");e.exports=function(e,t,r){e&&!n(e=r?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){e.exports={default:r(155),__esModule:!0}},function(e,t,r){e.exports={default:r(158),__esModule:!0}},function(e,t,r){var i=r(7).Symbol;e.exports=i},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){(function(e){var i=r(104),n=t&&!t.nodeType&&t,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===n&&i.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}).call(this,r(49)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var i=r(185),n=r(186),s=r(187),a=r(188),o=r(189);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0?n(i(e),9007199254740991):0}},function(e,t){var r=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},function(e,t,r){var i=r(67)("keys"),n=r(41);e.exports=function(e){return i[e]||(i[e]=n(e))}},function(e,t,r){var i=r(2),n=r(3),s=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:r(38)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){"use strict";var i=r(148)(!0);r(61)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=i(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var i=r(3),n=r(13),s=r(6),a=r(8),o=r(63),u=r(27).KEY,l=r(16),c=r(67),p=r(42),f=r(41),h=r(4),d=r(71),m=r(72),y=r(152),v=r(99),A=r(12),E=r(5),D=r(26),g=r(21),x=r(62),b=r(39),C=r(40),F=r(153),S=r(154),T=r(73),P=r(9),B=r(25),w=S.f,_=P.f,k=F.f,N=i.Symbol,O=i.JSON,I=O&&O.stringify,L=h("_hidden"),R=h("toPrimitive"),M={}.propertyIsEnumerable,j=c("symbol-registry"),V=c("symbols"),G=c("op-symbols"),U=Object.prototype,K="function"==typeof N&&!!T.f,Y=i.QObject,q=!Y||!Y.prototype||!Y.prototype.findChild,W=s&&l((function(){return 7!=C(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a}))?function(e,t,r){var i=w(U,t);i&&delete U[t],_(e,t,r),i&&e!==U&&_(U,t,i)}:_,H=function(e){var t=V[e]=C(N.prototype);return t._k=e,t},J=K&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},X=function(e,t,r){return e===U&&X(G,t,r),A(e),t=x(t,!0),A(r),n(V,t)?(r.enumerable?(n(e,L)&&e[L][t]&&(e[L][t]=!1),r=C(r,{enumerable:b(0,!1)})):(n(e,L)||_(e,L,b(1,{})),e[L][t]=!0),W(e,t,r)):_(e,t,r)},$=function(e,t){A(e);for(var r,i=y(t=g(t)),n=0,s=i.length;s>n;)X(e,r=i[n++],t[r]);return e},z=function(e){var t=M.call(this,e=x(e,!0));return!(this===U&&n(V,e)&&!n(G,e))&&(!(t||!n(this,e)||!n(V,e)||n(this,L)&&this[L][e])||t)},Q=function(e,t){if(e=g(e),t=x(t,!0),e!==U||!n(V,t)||n(G,t)){var r=w(e,t);return!r||!n(V,t)||n(e,L)&&e[L][t]||(r.enumerable=!0),r}},Z=function(e){for(var t,r=k(g(e)),i=[],s=0;r.length>s;)n(V,t=r[s++])||t==L||t==u||i.push(t);return i},ee=function(e){for(var t,r=e===U,i=k(r?G:g(e)),s=[],a=0;i.length>a;)!n(V,t=i[a++])||r&&!n(U,t)||s.push(V[t]);return s};K||(o((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===U&&t.call(G,r),n(this,L)&&n(this[L],e)&&(this[L][e]=!1),W(this,e,b(1,r))};return s&&q&&W(U,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",(function(){return this._k})),S.f=Q,P.f=X,r(100).f=F.f=Z,r(43).f=z,T.f=ee,s&&!r(38)&&o(U,"propertyIsEnumerable",z,!0),d.f=function(e){return H(h(e))}),a(a.G+a.W+a.F*!K,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)h(te[re++]);for(var ie=B(h.store),ne=0;ie.length>ne;)m(ie[ne++]);a(a.S+a.F*!K,"Symbol",{for:function(e){return n(j,e+="")?j[e]:j[e]=N(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!K,"Object",{create:function(e,t){return void 0===t?C(e):$(C(e),t)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var se=l((function(){T.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(D(e))}}),O&&a(a.S+a.F*(!K||l((function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,i=[e],n=1;arguments.length>n;)i.push(arguments[n++]);if(r=t=i[1],(E(t)||void 0!==e)&&!J(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!J(t))return t}),i[1]=t,I.apply(O,i)}}),N.prototype[R]||r(11)(N.prototype,R,N.prototype.valueOf),p(N,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,r){t.f=r(4)},function(e,t,r){var i=r(3),n=r(2),s=r(38),a=r(71),o=r(9).f;e.exports=function(e){var t=n.Symbol||(n.Symbol=s?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";t.__esModule=!0,t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;var i,n=r(159),s=(i=n)&&i.__esModule?i:{default:i};t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],t.LOGICAL_OPERATORS=["||","&&"],t.UPDATE_OPERATORS=["++","--"];var a=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],o=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],u=t.COMPARISON_BINARY_OPERATORS=[].concat(o,["in","instanceof"]),l=t.BOOLEAN_BINARY_OPERATORS=[].concat(u,a),c=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],p=(t.BINARY_OPERATORS=["+"].concat(c,l),t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),f=t.NUMBER_UNARY_OPERATORS=["+","-","++","--","~"],h=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void"].concat(p,f,h),t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=(0,s.default)("var used to be block scoped"),t.NOT_LOCAL_BINDING=(0,s.default)("should not be considered a local binding")},function(e,t,r){e.exports={default:r(161),__esModule:!0}},function(e,t){},function(e,t,r){var i=r(105)(Object.getPrototypeOf,Object);e.exports=i},function(e,t,r){var i=r(19)(r(7),"Map");e.exports=i},function(e,t,r){var i=r(110),n=r(52),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];s.call(e,t)&&n(a,r)&&(void 0!==r||t in e)||i(e,t,r)}},function(e,t,r){var i=r(227),n=r(116),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:(e=Object(e),i(a(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},function(e,t,r){var i=r(231),n=r(78),s=r(232),a=r(120),o=r(233),u=r(14),l=r(108),c=l(i),p=l(n),f=l(s),h=l(a),d=l(o),m=u;(i&&"[object DataView]"!=m(new i(new ArrayBuffer(1)))||n&&"[object Map]"!=m(new n)||s&&"[object Promise]"!=m(s.resolve())||a&&"[object Set]"!=m(new a)||o&&"[object WeakMap]"!=m(new o))&&(m=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,i=r?l(r):"";if(i)switch(i){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,r){var i=r(236);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,r){var i=r(52),n=r(32),s=r(114),a=r(20);e.exports=function(e,t,r){if(!a(r))return!1;var o=typeof t;return!!("number"==o?n(r)&&s(t,r.length):"string"==o&&t in r)&&i(r[t],e)}},function(e,t,r){"use strict";t.__esModule=!0;var i=E(r(44)),n=E(r(75)),s=E(r(127)),a=E(r(18)),o=E(r(1)),u=E(r(88)),l=E(r(301)),c=E(r(305)),p=E(r(22)),f=E(r(306)),h=A(r(89)),d=E(r(134)),m=E(r(307)),y=A(r(0)),v=r(57);function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}var D=0;var g={For:function(e){var t=y.FOR_INIT_KEYS,r=Array.isArray(t),i=0;for(t=r?t:(0,o.default)(t);;){var n;if(r){if(i>=t.length)break;n=t[i++]}else{if((i=t.next()).done)break;n=i.value}var s=n,a=e.get(s);a.isVar()&&e.scope.getFunctionParent().registerBinding("var",a)}},Declaration:function(e){e.isBlockScoped()||e.isExportDeclaration()&&e.get("declaration").isDeclaration()||e.scope.getFunctionParent().registerDeclaration(e)},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var r=e.get("left");(r.isPattern()||r.isIdentifier())&&t.constantViolations.push(r)},ExportDeclaration:{exit:function(e){var t=e.node,r=e.scope,i=t.declaration;if(y.isClassDeclaration(i)||y.isFunctionDeclaration(i)){var n=i.id;if(!n)return;var s=r.getBinding(n.name);s&&s.reference(e)}else if(y.isVariableDeclaration(i)){var a=i.declarations,u=Array.isArray(a),l=0;for(a=u?a:(0,o.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var p=c,f=y.getBindingIdentifiers(p);for(var h in f){var d=r.getBinding(h);d&&d.reference(e)}}}}},LabeledStatement:function(e){e.scope.getProgramParent().addGlobal(e.node),e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function(e,t){t.assignments.push(e)},UpdateExpression:function(e,t){t.constantViolations.push(e.get("argument"))},UnaryExpression:function(e,t){"delete"===e.node.operator&&t.constantViolations.push(e.get("argument"))},BlockScoped:function(e){var t=e.scope;t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e)},ClassDeclaration:function(e){var t=e.node.id;if(t){var r=t.name;e.scope.bindings[r]=e.scope.getBinding(r)}},Block:function(e){var t=e.get("body"),r=Array.isArray(t),i=0;for(t=r?t:(0,o.default)(t);;){var n;if(r){if(i>=t.length)break;n=t[i++]}else{if((i=t.next()).done)break;n=i.value}var s=n;s.isFunctionDeclaration()&&e.scope.getBlockParent().registerDeclaration(s)}}},x=0,b=function(){function e(t,r){if((0,a.default)(this,e),r&&r.block===t.node)return r;var i=function(e,t,r){var i=v.scope.get(e.node)||[],n=i,s=Array.isArray(n),a=0;for(n=s?n:(0,o.default)(n);;){var u;if(s){if(a>=n.length)break;u=n[a++]}else{if((a=n.next()).done)break;u=a.value}var l=u;if(l.parent===t&&l.path===e)return l}i.push(r),v.scope.has(e.node)||v.scope.set(e.node,i)}(t,r,this);if(i)return i;this.uid=x++,this.parent=r,this.hub=t.hub,this.parentBlock=t.parent,this.block=t.node,this.path=t,this.labels=new s.default}return e.prototype.traverse=function(e,t,r){(0,p.default)(e,t,this,r,this.path)},e.prototype.generateDeclaredUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp",t=this.generateUidIdentifier(e);return this.push({id:t}),t},e.prototype.generateUidIdentifier=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";return y.identifier(this.generateUid(e))},e.prototype.generateUid=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";e=y.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");var t=void 0,r=0;do{t=this._generateUid(e,r),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var i=this.getProgramParent();return i.references[t]=!0,i.uids[t]=!0,t},e.prototype._generateUid=function(e,t){var r=e;return t>1&&(r+=t),"_"+r},e.prototype.generateUidIdentifierBasedOnNode=function(e,t){var r=e;y.isAssignmentExpression(e)?r=e.left:y.isVariableDeclarator(e)?r=e.id:(y.isObjectProperty(r)||y.isObjectMethod(r))&&(r=r.key);var i=[];!function e(t,r){if(y.isModuleDeclaration(t))if(t.source)e(t.source,r);else if(t.specifiers&&t.specifiers.length){var i=t.specifiers,n=Array.isArray(i),s=0;for(i=n?i:(0,o.default)(i);;){var a;if(n){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}e(a,r)}}else t.declaration&&e(t.declaration,r);else if(y.isModuleSpecifier(t))e(t.local,r);else if(y.isMemberExpression(t))e(t.object,r),e(t.property,r);else if(y.isIdentifier(t))r.push(t.name);else if(y.isLiteral(t))r.push(t.value);else if(y.isCallExpression(t))e(t.callee,r);else if(y.isObjectExpression(t)||y.isObjectPattern(t)){var u=t.properties,l=Array.isArray(u),c=0;for(u=l?u:(0,o.default)(u);;){var p;if(l){if(c>=u.length)break;p=u[c++]}else{if((c=u.next()).done)break;p=c.value}var f=p;e(f.key||f.argument,r)}}}(r,i);var n=i.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUidIdentifier(n.slice(0,20))},e.prototype.isStatic=function(e){if(y.isThisExpression(e)||y.isSuper(e))return!0;if(y.isIdentifier(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},e.prototype.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t||this.push({id:r}),r},e.prototype.checkBlockScopedCollisions=function(e,t,r,i){if("param"!==t&&!("hoisted"===t&&"let"===e.kind||"let"!==t&&"let"!==e.kind&&"const"!==e.kind&&"module"!==e.kind&&("param"!==e.kind||"let"!==t&&"const"!==t)))throw this.hub.file.buildCodeFrameError(i,h.get("scopeDuplicateDeclaration",r),TypeError)},e.prototype.rename=function(e,t,r){var i=this.getBinding(e);if(i)return t=t||this.generateUidIdentifier(e).name,new c.default(i,e,t).rename(r)},e.prototype._renameFromMap=function(e,t,r,i){e[t]&&(e[r]=i,e[t]=null)},e.prototype.dump=function(){var e=(0,l.default)("-",60);console.log(e);var t=this;do{for(var r in console.log("#",t.block.type),t.bindings){var i=t.bindings[r];console.log(" -",r,{constant:i.constant,references:i.references,violations:i.constantViolations.length,kind:i.kind})}}while(t=t.parent);console.log(e)},e.prototype.toArray=function(e,t){var r=this.hub.file;if(y.isIdentifier(e)){var i=this.getBinding(e.name);if(i&&i.constant&&i.path.isGenericType("Array"))return e}if(y.isArrayExpression(e))return e;if(y.isIdentifier(e,{name:"arguments"}))return y.callExpression(y.memberExpression(y.memberExpression(y.memberExpression(y.identifier("Array"),y.identifier("prototype")),y.identifier("slice")),y.identifier("call")),[e]);var n="toArray",s=[e];return!0===t?n="toConsumableArray":t&&(s.push(y.numericLiteral(t)),n="slicedToArray"),y.callExpression(r.addHelper(n),s)},e.prototype.hasLabel=function(e){return!!this.getLabel(e)},e.prototype.getLabel=function(e){return this.labels.get(e)},e.prototype.registerLabel=function(e){this.labels.set(e.node.label.name,e)},e.prototype.registerDeclaration=function(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){var t=e.get("declarations"),r=Array.isArray(t),i=0;for(t=r?t:(0,o.default)(t);;){var n;if(r){if(i>=t.length)break;n=t[i++]}else{if((i=t.next()).done)break;n=i.value}var s=n;this.registerBinding(e.node.kind,s)}}else if(e.isClassDeclaration())this.registerBinding("let",e);else if(e.isImportDeclaration()){var a=e.get("specifiers"),u=Array.isArray(a),l=0;for(a=u?a:(0,o.default)(a);;){var c;if(u){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var p=c;this.registerBinding("module",p)}}else if(e.isExportDeclaration()){var f=e.get("declaration");(f.isClassDeclaration()||f.isFunctionDeclaration()||f.isVariableDeclaration())&&this.registerDeclaration(f)}else this.registerBinding("unknown",e)},e.prototype.buildUndefinedNode=function(){return this.hasBinding("undefined")?y.unaryExpression("void",y.numericLiteral(0),!0):y.identifier("undefined")},e.prototype.registerConstantViolation=function(e){var t=e.getBindingIdentifiers();for(var r in t){var i=this.getBinding(r);i&&i.reassign(e)}},e.prototype.registerBinding=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){var i=t.get("declarations"),n=i,s=Array.isArray(n),a=0;for(n=s?n:(0,o.default)(n);;){var u;if(s){if(a>=n.length)break;u=n[a++]}else{if((a=n.next()).done)break;u=a.value}var l=u;this.registerBinding(e,l)}}else{var c=this.getProgramParent(),p=t.getBindingIdentifiers(!0);for(var f in p){var h=p[f],m=Array.isArray(h),y=0;for(h=m?h:(0,o.default)(h);;){var v;if(m){if(y>=h.length)break;v=h[y++]}else{if((y=h.next()).done)break;v=y.value}var A=v,E=this.getOwnBinding(f);if(E){if(E.identifier===A)continue;this.checkBlockScopedCollisions(E,e,f,A)}E&&E.path.isFlow()&&(E=null),c.references[f]=!0,this.bindings[f]=new d.default({identifier:A,existing:E,scope:this,path:r,kind:e})}}}},e.prototype.addGlobal=function(e){this.globals[e.name]=e},e.prototype.hasUid=function(e){var t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1},e.prototype.hasGlobal=function(e){var t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1},e.prototype.hasReference=function(e){var t=this;do{if(t.references[e])return!0}while(t=t.parent);return!1},e.prototype.isPure=function(e,t){if(y.isIdentifier(e)){var r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(y.isClass(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&this.isPure(e.body,t);if(y.isClassBody(e)){var i=e.body,n=Array.isArray(i),s=0;for(i=n?i:(0,o.default)(i);;){var a;if(n){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var u=a;if(!this.isPure(u,t))return!1}return!0}if(y.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(y.isArrayExpression(e)){var l=e.elements,c=Array.isArray(l),p=0;for(l=c?l:(0,o.default)(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;if(!this.isPure(h,t))return!1}return!0}if(y.isObjectExpression(e)){var d=e.properties,m=Array.isArray(d),v=0;for(d=m?d:(0,o.default)(d);;){var A;if(m){if(v>=d.length)break;A=d[v++]}else{if((v=d.next()).done)break;A=v.value}var E=A;if(!this.isPure(E,t))return!1}return!0}return y.isClassMethod(e)?!(e.computed&&!this.isPure(e.key,t))&&("get"!==e.kind&&"set"!==e.kind):y.isClassProperty(e)||y.isObjectProperty(e)?!(e.computed&&!this.isPure(e.key,t))&&this.isPure(e.value,t):y.isUnaryExpression(e)?this.isPure(e.argument,t):y.isPureish(e)},e.prototype.setData=function(e,t){return this.data[e]=t},e.prototype.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},e.prototype.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},e.prototype.init=function(){this.references||this.crawl()},e.prototype.crawl=function(){D++,this._crawl(),D--},e.prototype._crawl=function(){var e=this.path;if(this.references=(0,n.default)(null),this.bindings=(0,n.default)(null),this.globals=(0,n.default)(null),this.uids=(0,n.default)(null),this.data=(0,n.default)(null),e.isLoop()){var t=y.FOR_INIT_KEYS,r=Array.isArray(t),i=0;for(t=r?t:(0,o.default)(t);;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if((i=t.next()).done)break;s=i.value}var a=s,u=e.get(a);u.isBlockScoped()&&this.registerBinding(u.node.kind,u)}}if(e.isFunctionExpression()&&e.has("id")&&(e.get("id").node[y.NOT_LOCAL_BINDING]||this.registerBinding("local",e.get("id"),e)),e.isClassExpression()&&e.has("id")&&(e.get("id").node[y.NOT_LOCAL_BINDING]||this.registerBinding("local",e)),e.isFunction()){var l=e.get("params"),c=Array.isArray(l),p=0;for(l=c?l:(0,o.default)(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;this.registerBinding("param",h)}}if(e.isCatchClause()&&this.registerBinding("let",e),!this.getProgramParent().crawling){var d={references:[],constantViolations:[],assignments:[]};this.crawling=!0,e.traverse(g,d),this.crawling=!1;var m=d.assignments,v=Array.isArray(m),A=0;for(m=v?m:(0,o.default)(m);;){var E;if(v){if(A>=m.length)break;E=m[A++]}else{if((A=m.next()).done)break;E=A.value}var D=E,x=D.getBindingIdentifiers(),b=void 0;for(var C in x)D.scope.getBinding(C)||(b=b||D.scope.getProgramParent()).addGlobal(x[C]);D.scope.registerConstantViolation(D)}var F=d.references,S=Array.isArray(F),T=0;for(F=S?F:(0,o.default)(F);;){var P;if(S){if(T>=F.length)break;P=F[T++]}else{if((T=F.next()).done)break;P=T.value}var B=P,w=B.scope.getBinding(B.node.name);w?w.reference(B):B.scope.getProgramParent().addGlobal(B.node)}var _=d.constantViolations,k=Array.isArray(_),N=0;for(_=k?_:(0,o.default)(_);;){var O;if(k){if(N>=_.length)break;O=_[N++]}else{if((N=_.next()).done)break;O=N.value}var I=O;I.scope.registerConstantViolation(I)}}},e.prototype.push=function(e){var t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=this.getFunctionParent().path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(y.ensureBlock(t.node),t=t.get("body"));var r=e.unique,i=e.kind||"var",n=null==e._blockHoist?2:e._blockHoist,s="declaration:"+i+":"+n,a=!r&&t.getData(s);if(!a){var o=y.variableDeclaration(i,[]);o._generated=!0,o._blockHoist=n,a=t.unshiftContainer("body",[o])[0],r||t.setData(s,a)}var u=y.variableDeclarator(e.id,e.init);a.node.declarations.push(u),this.registerBinding(i,a.get("declarations").pop())},e.prototype.getProgramParent=function(){var e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getFunctionParent=function(){var e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getBlockParent=function(){var 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...")},e.prototype.getAllBindings=function(){var e=(0,n.default)(null),t=this;do{(0,f.default)(e,t.bindings),t=t.parent}while(t);return e},e.prototype.getAllBindingsOfKind=function(){var e=(0,n.default)(null),t=arguments,r=Array.isArray(t),i=0;for(t=r?t:(0,o.default)(t);;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if((i=t.next()).done)break;s=i.value}var a=s,u=this;do{for(var l in u.bindings){var c=u.bindings[l];c.kind===a&&(e[l]=c)}u=u.parent}while(u)}return e},e.prototype.bindingIdentifierEquals=function(e,t){return this.getBindingIdentifier(e)===t},e.prototype.warnOnFlowBinding=function(e){return 0===D&&e&&e.path.isFlow()&&console.warn("\n You or one of the Babel plugins you are using are using Flow declarations as bindings.\n Support for this will be removed in version 7. To find out the caller, grep for this\n message and change it to a `console.trace()`.\n "),e},e.prototype.getBinding=function(e){var t=this;do{var r=t.getOwnBinding(e);if(r)return this.warnOnFlowBinding(r)}while(t=t.parent)},e.prototype.getOwnBinding=function(e){return this.warnOnFlowBinding(this.bindings[e])},e.prototype.getBindingIdentifier=function(e){var t=this.getBinding(e);return t&&t.identifier},e.prototype.getOwnBindingIdentifier=function(e){var t=this.bindings[e];return t&&t.identifier},e.prototype.hasOwnBinding=function(e){return!!this.getOwnBinding(e)},e.prototype.hasBinding=function(t,r){return!!t&&(!!this.hasOwnBinding(t)||(!!this.parentHasBinding(t,r)||(!!this.hasUid(t)||(!(r||!(0,u.default)(e.globals,t))||!(r||!(0,u.default)(e.contextVariables,t))))))},e.prototype.parentHasBinding=function(e,t){return this.parent&&this.parent.hasBinding(e,t)},e.prototype.moveBindingTo=function(e,t){var r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)},e.prototype.removeOwnBinding=function(e){delete this.bindings[e]},e.prototype.removeBinding=function(e){var t=this.getBinding(e);t&&t.scope.removeOwnBinding(e);var r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)},e}();b.globals=(0,i.default)(m.default.builtin),b.contextVariables=["arguments","undefined","Infinity","NaN"],t.default=b,e.exports=t.default},function(e,t,r){var i=r(11);e.exports=function(e,t,r){for(var n in t)r&&e[n]?e[n]=t[n]:i(e,n,t[n]);return e}},function(e,t){e.exports=function(e,t,r,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var i=r(24),n=r(58),s=r(26),a=r(64),o=r(289);e.exports=function(e,t){var r=1==e,u=2==e,l=3==e,c=4==e,p=6==e,f=5==e||p,h=t||o;return function(t,o,d){for(var m,y,v=s(t),A=n(v),E=i(o,d,3),D=a(A.length),g=0,x=r?h(t,D):u?h(t,0):void 0;D>g;g++)if((f||g in A)&&(y=E(m=A[g],g,v),e))if(r)x[g]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return g;case 2:x.push(m)}else if(c)return!1;return p?-1:l||c?c:x}}},function(e,t,r){var i=r(121),n=r(32),s=r(296),a=r(131),o=r(299),u=Math.max;e.exports=function(e,t,r,l){e=n(e)?e:o(e),r=r&&!l?a(r):0;var c=e.length;return r<0&&(r=u(c+r,0)),s(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&i(e,t,r)>-1}},function(e,t,r){"use strict";t.__esModule=!0,t.MESSAGES=void 0;var i,n=r(45),s=(i=n)&&i.__esModule?i:{default:i};t.get=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i=0}}Object.defineProperty(t,"__esModule",{value:!0});var n={6:i("enum await"),strict:i("implements interface let package private protected public static yield"),strictBind:i("eval arguments")},s=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super"),a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",u=new RegExp("["+a+"]"),l=new RegExp("["+a+o+"]");a=o=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],p=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function f(e,t){for(var r=65536,i=0;ie)return!1;if((r+=t[i+1])>=e)return!0}}function h(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):f(e,c)))}function d(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):f(e,c)||f(e,p))))}var m={sourceType:"script",sourceFilename:void 0,startLine:1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null};var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},A=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},E=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},D=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,e),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null},g=function(e){function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v(this,t),i.keyword=r,E(this,e.call(this,r,i))}return A(t,e),t}(D),x=function(e){function t(r,i){return v(this,t),E(this,e.call(this,r,{beforeExpr:!0,binop:i}))}return A(t,e),t}(D),b={num:new D("num",{startsExpr:!0}),regexp:new D("regexp",{startsExpr:!0}),string:new D("string",{startsExpr:!0}),name:new D("name",{startsExpr:!0}),eof:new D("eof"),bracketL:new D("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new D("]"),braceL:new D("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:new D("{|",{beforeExpr:!0,startsExpr:!0}),braceR:new D("}"),braceBarR:new D("|}"),parenL:new D("(",{beforeExpr:!0,startsExpr:!0}),parenR:new D(")"),comma:new D(",",{beforeExpr:!0}),semi:new D(";",{beforeExpr:!0}),colon:new D(":",{beforeExpr:!0}),doubleColon:new D("::",{beforeExpr:!0}),dot:new D("."),question:new D("?",{beforeExpr:!0}),arrow:new D("=>",{beforeExpr:!0}),template:new D("template"),ellipsis:new D("...",{beforeExpr:!0}),backQuote:new D("`",{startsExpr:!0}),dollarBraceL:new D("${",{beforeExpr:!0,startsExpr:!0}),at:new D("@"),eq:new D("=",{beforeExpr:!0,isAssign:!0}),assign:new D("_=",{beforeExpr:!0,isAssign:!0}),incDec:new D("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new D("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:new x("||",1),logicalAND:new x("&&",2),bitwiseOR:new x("|",3),bitwiseXOR:new x("^",4),bitwiseAND:new x("&",5),equality:new x("==/!=",6),relational:new x("",7),bitShift:new x("<>",8),plusMin:new D("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:new x("%",10),star:new x("*",10),slash:new x("/",10),exponent:new D("**",{beforeExpr:!0,binop:11,rightAssociative:!0})},C={break:new g("break"),case:new g("case",{beforeExpr:!0}),catch:new g("catch"),continue:new g("continue"),debugger:new g("debugger"),default:new g("default",{beforeExpr:!0}),do:new g("do",{isLoop:!0,beforeExpr:!0}),else:new g("else",{beforeExpr:!0}),finally:new g("finally"),for:new g("for",{isLoop:!0}),function:new g("function",{startsExpr:!0}),if:new g("if"),return:new g("return",{beforeExpr:!0}),switch:new g("switch"),throw:new g("throw",{beforeExpr:!0}),try:new g("try"),var:new g("var"),let:new g("let"),const:new g("const"),while:new g("while",{isLoop:!0}),with:new g("with"),new:new g("new",{beforeExpr:!0,startsExpr:!0}),this:new g("this",{startsExpr:!0}),super:new g("super",{startsExpr:!0}),class:new g("class"),extends:new g("extends",{beforeExpr:!0}),export:new g("export"),import:new g("import",{startsExpr:!0}),yield:new g("yield",{beforeExpr:!0,startsExpr:!0}),null:new g("null",{startsExpr:!0}),true:new g("true",{startsExpr:!0}),false:new g("false",{startsExpr:!0}),in:new g("in",{beforeExpr:!0,binop:7}),instanceof:new g("instanceof",{beforeExpr:!0,binop:7}),typeof:new g("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),void:new g("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),delete:new g("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})};Object.keys(C).forEach((function(e){b["_"+e]=C[e]}));var F=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(F.source,"g");function T(e){return 10===e||13===e||8232===e||8233===e}var P=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,B=function e(t,r,i,n){v(this,e),this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n},w={braceStatement:new B("{",!1),braceExpression:new B("{",!0),templateQuasi:new B("${",!0),parenStatement:new B("(",!1),parenExpression:new B("(",!0),template:new B("`",!0,!0,(function(e){return e.readTmplToken()})),functionExpression:new B("function",!0)};b.parenR.updateContext=b.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===w.braceStatement&&this.curContext()===w.functionExpression?(this.state.context.pop(),this.state.exprAllowed=!1):e===w.templateQuasi?this.state.exprAllowed=!0:this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},b.name.updateContext=function(e){this.state.exprAllowed=!1,e!==b._let&&e!==b._const&&e!==b._var||F.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)},b.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?w.braceStatement:w.braceExpression),this.state.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.state.context.push(w.templateQuasi),this.state.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.state.context.push(t?w.parenStatement:w.parenExpression),this.state.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=function(){this.curContext()!==w.braceStatement&&this.state.context.push(w.functionExpression),this.state.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===w.template?this.state.context.pop():this.state.context.push(w.template),this.state.exprAllowed=!1};var _=function e(t,r){v(this,e),this.line=t,this.column=r},k=function e(t,r){v(this,e),this.start=t,this.end=r};var N=function(){function e(){v(this,e)}return e.prototype.init=function(e,t){return this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.inMethod=this.inFunction=this.inGenerator=this.inAsync=this.inPropertyName=this.inType=this.inClassProperty=this.noAnonFunctionType=!1,this.labels=[],this.decorators=[],this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[w.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[],this},e.prototype.curPosition=function(){return new _(this.curLine,this.pos-this.lineStart)},e.prototype.clone=function(t){var r=new e;for(var i in this){var n=this[i];t&&"context"!==i||!Array.isArray(n)||(n=n.slice()),r[i]=n}return r},e}(),O=function e(t){v(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new k(t.startLoc,t.endLoc)};function I(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}var L=function(){function e(t,r){v(this,e),this.state=new N,this.state.init(t,r)}return e.prototype.next=function(){this.isLookahead||this.state.tokens.push(new O(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.match=function(e){return this.state.type===e},e.prototype.isKeyword=function(e){return s(e)},e.prototype.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state.clone(!0);return this.state=e,t},e.prototype.setStrict=function(e){if(this.state.strict=e,this.match(b.num)||this.match(b.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(b.eof):e.override?e.override(this):this.readToken(this.fullCharCodeAtPos())},e.prototype.readToken=function(e){return h(e)||92===e?this.readWord():this.getTokenFromCode(e)},e.prototype.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.state.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.state.pos+1)-56613888},e.prototype.pushComment=function(e,t,r,i,n,s){var a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:i,loc:new k(n,s)};this.isLookahead||(this.state.tokens.push(a),this.state.comments.push(a),this.addComment(a))},e.prototype.skipBlockComment=function(){var e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,S.lastIndex=t;for(var i=void 0;(i=S.exec(this.input))&&i.index8&&e<14||e>=5760&&P.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(r)},e.prototype.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.state.pos+2);return 46===e&&46===t?(this.state.pos+=3,this.finishToken(b.ellipsis)):(++this.state.pos,this.finishToken(b.dot))},e.prototype.readToken_slash=function(){return this.state.exprAllowed?(++this.state.pos,this.readRegexp()):61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},e.prototype.readToken_mult_modulo=function(e){var t=42===e?b.star:b.modulo,r=1,i=this.input.charCodeAt(this.state.pos+1);return 42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=b.exponent),61===i&&(r++,t=b.assign),this.finishOp(t,r)},e.prototype.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?this.finishOp(124===e?b.logicalOR:b.logicalAND,2):61===t?this.finishOp(b.assign,2):124===e&&125===t&&this.hasPlugin("flow")?this.finishOp(b.braceBarR,2):this.finishOp(124===e?b.bitwiseOR:b.bitwiseAND,1)},e.prototype.readToken_caret=function(){return 61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},e.prototype.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?45===t&&62===this.input.charCodeAt(this.state.pos+2)&&F.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):61===t?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},e.prototype.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?this.finishOp(b.assign,r+1):this.finishOp(b.bitShift,r)):33===t&&60===e&&45===this.input.charCodeAt(this.state.pos+2)&&45===this.input.charCodeAt(this.state.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(r=2),this.finishOp(b.relational,r))},e.prototype.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);return 61===t?this.finishOp(b.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===e?b.eq:b.prefix,1)},e.prototype.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.state.pos,this.finishToken(b.parenL);case 41:return++this.state.pos,this.finishToken(b.parenR);case 59:return++this.state.pos,this.finishToken(b.semi);case 44:return++this.state.pos,this.finishToken(b.comma);case 91:return++this.state.pos,this.finishToken(b.bracketL);case 93:return++this.state.pos,this.finishToken(b.bracketR);case 123:return this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(b.braceBarL,2):(++this.state.pos,this.finishToken(b.braceL));case 125:return++this.state.pos,this.finishToken(b.braceR);case 58:return this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(b.doubleColon,2):(++this.state.pos,this.finishToken(b.colon));case 63:return++this.state.pos,this.finishToken(b.question);case 64:return++this.state.pos,this.finishToken(b.at);case 96:return++this.state.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(b.prefix,1)}this.raise(this.state.pos,"Unexpected character '"+I(e)+"'")},e.prototype.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);return this.state.pos+=t,this.finishToken(e,r)},e.prototype.readRegexp=function(){for(var e=this.state.pos,t=void 0,r=void 0;;){this.state.pos>=this.input.length&&this.raise(e,"Unterminated regular expression");var i=this.input.charAt(this.state.pos);if(F.test(i)&&this.raise(e,"Unterminated regular expression"),t)t=!1;else{if("["===i)r=!0;else if("]"===i&&r)r=!1;else if("/"===i&&!r)break;t="\\"===i}++this.state.pos}var n=this.input.slice(e,this.state.pos);++this.state.pos;var s=this.readWord1();if(s){/^[gmsiyu]*$/.test(s)||this.raise(e,"Invalid regular expression flag")}return this.finishToken(b.regexp,{pattern:n,flags:s})},e.prototype.readInt=function(e,t){for(var r=this.state.pos,i=0,n=0,s=null==t?1/0:t;n=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=e)break;++this.state.pos,i=i*e+o}return this.state.pos===r||null!=t&&this.state.pos-r!==t?null:i},e.prototype.readRadixNumber=function(e){this.state.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.state.start+2,"Expected number in radix "+e),h(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),this.finishToken(b.num,t)},e.prototype.readNumber=function(e){var t=this.state.pos,r=48===this.input.charCodeAt(t),i=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number"),r&&this.state.pos==t+1&&(r=!1);var n=this.input.charCodeAt(this.state.pos);46!==n||r||(++this.state.pos,this.readInt(10),i=!0,n=this.input.charCodeAt(this.state.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.state.pos))&&45!==n||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),i=!0),h(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var s=this.input.slice(t,this.state.pos),a=void 0;return i?a=parseFloat(s):r&&1!==s.length?this.state.strict?this.raise(t,"Invalid number"):a=/[89]/.test(s)?parseInt(s,10):parseInt(s,8):a=parseInt(s,10),this.finishToken(b.num,a)},e.prototype.readCodePoint=function(e){var t=void 0;if(123===this.input.charCodeAt(this.state.pos)){var r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=r-2,null;this.raise(r,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t},e.prototype.readString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===e)break;92===i?(t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos):(T(i)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}return t+=this.input.slice(r,this.state.pos++),this.finishToken(b.string,t)},e.prototype.readTmplToken=function(){for(var e="",t=this.state.pos,r=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var i=this.input.charCodeAt(this.state.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(b.template)?36===i?(this.state.pos+=2,this.finishToken(b.dollarBraceL)):(++this.state.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.state.pos),this.finishToken(b.template,r?null:e));if(92===i){e+=this.input.slice(t,this.state.pos);var n=this.readEscapedChar(!0);null===n?r=!0:e+=n,t=this.state.pos}else if(T(i)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,i){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},e.prototype.readEscapedChar=function(e){var t=!e,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){case 110:return"\n";case 114:return"\r";case 120:var i=this.readHexChar(2,t);return null===i?null:String.fromCharCode(i);case 117:var n=this.readCodePoint(t);return null===n?null:I(n);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(r>=48&&r<=55){var s=this.state.pos-1,a=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(a,8);if(o>255&&(a=a.slice(0,-1),o=parseInt(a,8)),o>0){if(e)return this.state.invalidTemplateEscapePosition=s,null;this.state.strict?this.raise(s,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=s)}return this.state.pos+=a.length-1,String.fromCharCode(o)}return String.fromCharCode(r)}},e.prototype.readHexChar=function(e,t){var r=this.state.pos,i=this.readInt(16,e);return null===i&&(t?this.raise(r,"Bad character escape sequence"):(this.state.pos=r-1,this.state.invalidTemplateEscapePosition=r-1)),i},e.prototype.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,r=this.state.pos;this.state.pos-1)||!!this.plugins[e]},t.prototype.extend=function(e,t){this[e]=t(this[e])},t.prototype.loadAllPlugins=function(){var e=this,t=Object.keys(R).filter((function(e){return"flow"!==e&&"estree"!==e}));t.push("flow"),t.forEach((function(t){var r=R[t];r&&r(e)}))},t.prototype.loadPlugins=function(e){if(e.indexOf("*")>=0)return this.loadAllPlugins(),{"*":!0};var t={};e.indexOf("flow")>=0&&(e=e.filter((function(e){return"flow"!==e}))).push("flow"),e.indexOf("estree")>=0&&(e=e.filter((function(e){return"estree"!==e}))).unshift("estree");var r=e,i=Array.isArray(r),n=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(n>=r.length)break;s=r[n++]}else{if((n=r.next()).done)break;s=n.value}var a=s;if(!t[a]){t[a]=!0;var o=R[a];o&&o(this)}}return t},t.prototype.parse=function(){var e=this.startNode(),t=this.startNode();return this.nextToken(),this.parseTopLevel(e,t)},t}(L),V=j.prototype;V.addExtra=function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)},V.isRelational=function(e){return this.match(b.relational)&&this.state.value===e},V.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,b.relational)},V.isContextual=function(e){return this.match(b.name)&&this.state.value===e},V.eatContextual=function(e){return this.state.value===e&&this.eat(b.name)},V.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},V.canInsertSemicolon=function(){return this.match(b.eof)||this.match(b.braceR)||F.test(this.input.slice(this.state.lastTokEnd,this.state.start))},V.isLineTerminator=function(){return this.eat(b.semi)||this.canInsertSemicolon()},V.semicolon=function(){this.isLineTerminator()||this.unexpected(null,b.semi)},V.expect=function(e,t){return this.eat(e)||this.unexpected(t,e)},V.unexpected=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected token";t&&"object"===(void 0===t?"undefined":y(t))&&t.label&&(t="Unexpected token, expected "+t.label),this.raise(null!=e?e:this.state.start,t)};var G=j.prototype;G.parseTopLevel=function(e,t){return t.sourceType=this.options.sourceType,this.parseBlockBody(t,!0,!0,b.eof),e.program=this.finishNode(t,"Program"),e.comments=this.state.comments,e.tokens=this.state.tokens,this.finishNode(e,"File")};var U={kind:"loop"},K={kind:"switch"};G.stmtToDirective=function(e){var t=e.expression,r=this.startNodeAt(t.start,t.loc.start),i=this.startNodeAt(e.start,e.loc.start),n=this.input.slice(t.start,t.end),s=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",s),i.value=this.finishNodeAt(r,"DirectiveLiteral",t.end,t.loc.end),this.finishNodeAt(i,"Directive",e.end,e.loc.end)},G.parseStatement=function(e,t){this.match(b.at)&&this.parseDecorators(!0);var r=this.state.type,i=this.startNode();switch(r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e||this.unexpected(),this.parseFunctionStatement(i);case b._class:return e||this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._let:case b._const:e||this.unexpected();case b._var:return this.parseVarStatement(i,r);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock();case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.hasPlugin("dynamicImport")&&this.lookahead().type===b.parenL)break;return this.options.allowImportExportEverywhere||(t||this.raise(this.state.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.state.start,"'import' and 'export' may appear only with 'sourceType: \"module\"'")),r===b._import?this.parseImport(i):this.parseExport(i);case b.name:if("async"===this.state.value){var n=this.state.clone();if(this.next(),this.match(b._function)&&!this.canInsertSemicolon())return this.expect(b._function),this.parseFunction(i,!0,!1,!0);this.state=n}}var s=this.state.value,a=this.parseExpression();return r===b.name&&"Identifier"===a.type&&this.eat(b.colon)?this.parseLabeledStatement(i,s,a):this.parseExpressionStatement(i,a)},G.takeDecorators=function(e){this.state.decorators.length&&(e.decorators=this.state.decorators,this.state.decorators=[])},G.parseDecorators=function(e){for(;this.match(b.at);){var t=this.parseDecorator();this.state.decorators.push(t)}e&&this.match(b._export)||this.match(b._class)||this.raise(this.state.start,"Leading decorators must be attached to a class declaration")},G.parseDecorator=function(){this.hasPlugin("decorators")||this.unexpected();var e=this.startNode();return this.next(),e.expression=this.parseMaybeAssign(),this.finishNode(e,"Decorator")},G.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.isLineTerminator()?e.label=null:this.match(b.name)?(e.label=this.parseIdentifier(),this.semicolon()):this.unexpected();var i=void 0;for(i=0;i=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.state.type.isLoop?"loop":this.match(b._switch)?"switch":null,u=this.state.labels.length-1;u>=0;u--){var l=this.state.labels[u];if(l.statementStart!==e.start)break;l.statementStart=this.state.start,l.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.state.start}),e.body=this.parseStatement(!0),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},G.parseBlock=function(e){var t=this.startNode();return this.expect(b.braceL),this.parseBlockBody(t,e,!1,b.braceR),this.finishNode(t,"BlockStatement")},G.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},G.parseBlockBody=function(e,t,r,i){e.body=[],e.directives=[];for(var n=!1,s=void 0,a=void 0;!this.eat(i);){n||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,r);if(t&&!n&&this.isValidDirective(o)){var u=this.stmtToDirective(o);e.directives.push(u),void 0===s&&"use strict"===u.value.value&&(s=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}else n=!0,e.body.push(o)}!1===s&&this.setStrict(!1)},G.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.match(b.semi)?null:this.parseExpression(),this.expect(b.semi),e.update=this.match(b.parenR)?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},G.parseForIn=function(e,t,r){var i=void 0;return r?(this.eatContextual("of"),i="ForAwaitStatement"):(i=this.match(b._in)?"ForInStatement":"ForOfStatement",this.next()),e.left=t,e.right=this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,i)},G.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r.keyword;;){var i=this.startNode();if(this.parseVarHead(i),this.eat(b.eq)?i.init=this.parseMaybeAssign(t):r!==b._const||this.match(b._in)||this.isContextual("of")?"Identifier"===i.id.type||t&&(this.match(b._in)||this.isContextual("of"))?i.init=null:this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(b.comma))break}return e},G.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},G.parseFunction=function(e,t,r,i,n){var s=this.state.inMethod;return this.state.inMethod=!1,this.initFunction(e,i),this.match(b.star)&&(e.async&&!this.hasPlugin("asyncGenerators")?this.unexpected():(e.generator=!0,this.next())),!t||n||this.match(b.name)||this.match(b._yield)||this.unexpected(),(this.match(b.name)||this.match(b._yield))&&(e.id=this.parseBindingIdentifier()),this.parseFunctionParams(e),this.parseFunctionBody(e,r),this.state.inMethod=s,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR)},G.parseClass=function(e,t,r){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,r),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},G.isClassProperty=function(){return this.match(b.eq)||this.match(b.semi)||this.match(b.braceR)},G.isClassMethod=function(){return this.match(b.parenL)},G.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},G.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0;var r=!1,i=!1,n=[],s=this.startNode();for(s.body=[],this.expect(b.braceL);!this.eat(b.braceR);)if(this.eat(b.semi))n.length>0&&this.raise(this.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(this.match(b.at))n.push(this.parseDecorator());else{var a=this.startNode();if(n.length&&(a.decorators=n,n=[]),a.static=!1,this.match(b.name)&&"static"===this.state.value){var o=this.parseIdentifier(!0);if(this.isClassMethod()){a.kind="method",a.computed=!1,a.key=o,this.parseClassMethod(s,a,!1,!1);continue}if(this.isClassProperty()){a.computed=!1,a.key=o,s.body.push(this.parseClassProperty(a));continue}a.static=!0}if(this.eat(b.star))a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.parseClassMethod(s,a,!0,!1);else{var u=this.match(b.name),l=this.parsePropertyName(a);if(a.computed||!a.static||"prototype"!==a.key.name&&"prototype"!==a.key.value||this.raise(a.key.start,"Classes may not have static property named prototype"),this.isClassMethod())this.isNonstaticConstructor(a)?(i?this.raise(l.start,"Duplicate constructor in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),i=!0,a.kind="constructor"):a.kind="method",this.parseClassMethod(s,a,!1,!1);else if(this.isClassProperty())this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),s.body.push(this.parseClassProperty(a));else if(u&&"async"===l.name&&!this.isLineTerminator()){var c=this.hasPlugin("asyncGenerators")&&this.eat(b.star);a.kind="method",this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.parseClassMethod(s,a,c,!0)}else!u||"get"!==l.name&&"set"!==l.name||this.isLineTerminator()&&this.match(b.star)?this.hasPlugin("classConstructorCall")&&u&&"call"===l.name&&this.match(b.name)&&"constructor"===this.state.value?(r?this.raise(a.start,"Duplicate constructor call in the same class"):a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),r=!0,a.kind="constructorCall",this.parsePropertyName(a),this.parseClassMethod(s,a,!1,!1)):this.isLineTerminator()?(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Classes may not have a non-static field named 'constructor'"),s.body.push(this.parseClassProperty(a))):this.unexpected():(a.kind=l.name,this.parsePropertyName(a),this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.parseClassMethod(s,a,!1,!1),this.checkGetterSetterParamCount(a))}}n.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(s,"ClassBody"),this.state.strict=t},G.parseClassProperty=function(e){return this.state.inClassProperty=!0,this.match(b.eq)?(this.hasPlugin("classProperties")||this.unexpected(),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.finishNode(e,"ClassProperty")},G.parseClassMethod=function(e,t,r,i){this.parseMethod(t,r,i),e.body.push(this.finishNode(t,"ClassMethod"))},G.parseClassId=function(e,t,r){this.match(b.name)?e.id=this.parseIdentifier():r||!t?e.id=null:this.unexpected()},G.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts():null},G.parseExport=function(e){if(this.next(),this.match(b.star)){var t=this.startNode();if(this.next(),!this.hasPlugin("exportExtensions")||!this.eatContextual("as"))return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");t.exported=this.parseIdentifier(),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)}else if(this.hasPlugin("exportExtensions")&&this.isExportDefaultSpecifier()){var r=this.startNode();if(r.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],this.match(b.comma)&&this.lookahead().type===b.star){this.expect(b.comma);var i=this.startNode();this.expect(b.star),this.expectContextual("as"),i.exported=this.parseIdentifier(),e.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(b._default)){var n=this.startNode(),s=!1;return this.eat(b._function)?n=this.parseFunction(n,!0,!1,!1,!0):this.match(b._class)?n=this.parseClass(n,!0,!0):(s=!0,n=this.parseMaybeAssign()),e.declaration=n,s&&this.semicolon(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)):(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e))}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},G.parseExportDeclaration=function(){return this.parseStatement(!0)},G.isExportDefaultSpecifier=function(){if(this.match(b.name))return"async"!==this.state.value;if(!this.match(b._default))return!1;var e=this.lookahead();return e.type===b.comma||e.type===b.name&&"from"===e.value},G.parseExportSpecifiersMaybe=function(e){this.eat(b.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},G.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(b.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},G.shouldParseExportDeclaration=function(){return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isContextual("async")},G.checkExport=function(e,t,r){if(t)if(r)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length){var i=e.specifiers,n=Array.isArray(i),s=0;for(i=n?i:i[Symbol.iterator]();;){var a;if(n){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var o=a;this.checkDuplicateExports(o,o.exported.name)}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)this.checkDuplicateExports(e,e.declaration.id.name);else if("VariableDeclaration"===e.declaration.type){var u=e.declaration.declarations,l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var p;if(l){if(c>=u.length)break;p=u[c++]}else{if((c=u.next()).done)break;p=c.value}var f=p;this.checkDeclaration(f.id)}}if(this.state.decorators.length){var h=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);e.declaration&&h||this.raise(e.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(e.declaration)}},G.checkDeclaration=function(e){if("ObjectPattern"===e.type){var t=e.properties,r=Array.isArray(t),i=0;for(t=r?t:t[Symbol.iterator]();;){var n;if(r){if(i>=t.length)break;n=t[i++]}else{if((i=t.next()).done)break;n=i.value}var s=n;this.checkDeclaration(s)}}else if("ArrayPattern"===e.type){var a=e.elements,o=Array.isArray(a),u=0;for(a=o?a:a[Symbol.iterator]();;){var l;if(o){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;c&&this.checkDeclaration(c)}}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type||"RestProperty"===e.type?this.checkDeclaration(e.argument):"Identifier"===e.type&&this.checkDuplicateExports(e,e.name)},G.checkDuplicateExports=function(e,t){this.state.exportedIdentifiers.indexOf(t)>-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},G.raiseDuplicateExportError=function(e,t){this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},G.parseExportSpecifiers=function(){var e=[],t=!0,r=void 0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.eat(b.braceR))break;var i=this.match(b._default);i&&!r&&(r=!0);var n=this.startNode();n.local=this.parseIdentifier(i),n.exported=this.eatContextual("as")?this.parseIdentifier(!0):n.local.__clone(),e.push(this.finishNode(n,"ExportSpecifier"))}return r&&!this.isContextual("from")&&this.unexpected(),e},G.parseImport=function(e){return this.eat(b._import),this.match(b.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(b.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},G.parseImportSpecifiers=function(e){var t=!0;if(this.match(b.name)){var r=this.state.start,i=this.state.startLoc;if(e.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(),r,i)),!this.eat(b.comma))return}if(this.match(b.star)){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdentifier(),this.checkLVal(n.local,!0,void 0,"import namespace specifier"),void e.specifiers.push(this.finishNode(n,"ImportNamespaceSpecifier"))}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.eat(b.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(b.comma),this.eat(b.braceR))break;this.parseImportSpecifier(e)}},G.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},G.parseImportSpecifierDefault=function(e,t,r){var i=this.startNodeAt(t,r);return i.local=e,this.checkLVal(i.local,!0,void 0,"default import specifier"),this.finishNode(i,"ImportDefaultSpecifier")};var q=j.prototype;q.toAssignable=function(e,t,r){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";var i=e.properties,n=Array.isArray(i),s=0;for(i=n?i:i[Symbol.iterator]();;){var a;if(n){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var o=a;"ObjectMethod"===o.type?"get"===o.kind||"set"===o.kind?this.raise(o.key.start,"Object pattern can't contain getter or setter"):this.raise(o.key.start,"Object pattern can't contain methods"):this.toAssignable(o,t,"object destructuring pattern")}break;case"ObjectProperty":this.toAssignable(e.value,t,r);break;case"SpreadProperty":e.type="RestProperty";var u=e.argument;this.toAssignable(u,t,r);break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t,r);break;case"AssignmentExpression":"="===e.operator?(e.type="AssignmentPattern",delete e.operator):this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break;case"MemberExpression":if(!t)break;default:var l="Invalid left-hand side"+(r?" in "+r:"expression");this.raise(e.start,l)}return e},q.toAssignableList=function(e,t,r){var i=e.length;if(i){var n=e[i-1];if(n&&"RestElement"===n.type)--i;else if(n&&"SpreadElement"===n.type){n.type="RestElement";var s=n.argument;this.toAssignable(s,t,r),"Identifier"!==s.type&&"MemberExpression"!==s.type&&"ArrayPattern"!==s.type&&this.unexpected(s.start),--i}}for(var a=0;a=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var l=u;"ObjectProperty"===l.type&&(l=l.value),this.checkLVal(l,t,r,"object destructuring pattern")}break;case"ArrayPattern":var c=e.elements,p=Array.isArray(c),f=0;for(c=p?c:c[Symbol.iterator]();;){var h;if(p){if(f>=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}var d=h;d&&this.checkLVal(d,t,r,"array destructuring pattern")}break;case"AssignmentPattern":this.checkLVal(e.left,t,r,"assignment pattern");break;case"RestProperty":this.checkLVal(e.argument,t,r,"rest property");break;case"RestElement":this.checkLVal(e.argument,t,r,"rest element");break;default:var m=(t?"Binding invalid":"Invalid")+" left-hand side"+(i?" in "+i:"expression");this.raise(e.start,m)}};var W=j.prototype;W.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var r=e.key;"__proto__"===("Identifier"===r.type?r.name:String(r.value))&&(t.proto&&this.raise(r.start,"Redefinition of __proto__ property"),t.proto=!0)}},W.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(b.eof)||this.unexpected(),e},W.parseExpression=function(e,t){var r=this.state.start,i=this.state.startLoc,n=this.parseMaybeAssign(e,t);if(this.match(b.comma)){var s=this.startNodeAt(r,i);for(s.expressions=[n];this.eat(b.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n},W.parseMaybeAssign=function(e,t,r,i){var n=this.state.start,s=this.state.startLoc;if(this.match(b._yield)&&this.state.inGenerator){var a=this.parseYield();return r&&(a=r.call(this,a,n,s)),a}var o=void 0;t?o=!1:(t={start:0},o=!0),(this.match(b.parenL)||this.match(b.name))&&(this.state.potentialArrowAt=this.state.start);var u=this.parseMaybeConditional(e,t,i);if(r&&(u=r.call(this,u,n,s)),this.state.type.isAssign){var l=this.startNodeAt(n,s);if(l.operator=this.state.value,l.left=this.match(b.eq)?this.toAssignable(u,void 0,"assignment expression"):u,t.start=0,this.checkLVal(u,void 0,void 0,"assignment expression"),u.extra&&u.extra.parenthesized){var c=void 0;"ObjectPattern"===u.type?c="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===u.type&&(c="`([a]) = 0` use `([a] = 0)`"),c&&this.raise(u.start,"You're trying to assign to a parenthesized expression, eg. instead of "+c)}return this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return o&&t.start&&this.unexpected(t.start),u},W.parseMaybeConditional=function(e,t,r){var i=this.state.start,n=this.state.startLoc,s=this.parseExprOps(e,t);return t&&t.start?s:this.parseConditional(s,e,i,n,r)},W.parseConditional=function(e,t,r,i){if(this.eat(b.question)){var n=this.startNodeAt(r,i);return n.test=e,n.consequent=this.parseMaybeAssign(),this.expect(b.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return e},W.parseExprOps=function(e,t){var r=this.state.start,i=this.state.startLoc,n=this.parseMaybeUnary(t);return t&&t.start?n:this.parseExprOp(n,r,i,-1,e)},W.parseExprOp=function(e,t,r,i,n){var s=this.state.type.binop;if(!(null==s||n&&this.match(b._in))&&s>i){var a=this.startNodeAt(t,r);a.left=e,a.operator=this.state.value,"**"!==a.operator||"UnaryExpression"!==e.type||!e.extra||e.extra.parenthesizedArgument||e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var o=this.state.type;this.next();var u=this.state.start,l=this.state.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),u,l,o.rightAssociative?s-1:s,n),this.finishNode(a,o===b.logicalOR||o===b.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,t,r,i,n)}return e},W.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),r=this.match(b.incDec);t.operator=this.state.value,t.prefix=!0,this.next();var i=this.state.type;return t.argument=this.parseMaybeUnary(),this.addExtra(t,"parenthesizedArgument",!(i!==b.parenL||t.argument.extra&&t.argument.extra.parenthesized)),e&&e.start&&this.unexpected(e.start),r?this.checkLVal(t.argument,void 0,void 0,"prefix operation"):this.state.strict&&"delete"===t.operator&&"Identifier"===t.argument.type&&this.raise(t.start,"Deleting local variable in strict mode"),this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var n=this.state.start,s=this.state.startLoc,a=this.parseExprSubscripts(e);if(e&&e.start)return a;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(n,s);o.operator=this.state.value,o.prefix=!1,o.argument=a,this.checkLVal(a,void 0,void 0,"postfix operation"),this.next(),a=this.finishNode(o,"UpdateExpression")}return a},W.parseExprSubscripts=function(e){var t=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(e);return"ArrowFunctionExpression"===n.type&&n.start===i||e&&e.start?n:this.parseSubscripts(n,t,r)},W.parseSubscripts=function(e,t,r,i){for(;;){if(!i&&this.eat(b.doubleColon)){var n=this.startNodeAt(t,r);return n.object=e,n.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r,i)}if(this.eat(b.dot)){var s=this.startNodeAt(t,r);s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,e=this.finishNode(s,"MemberExpression")}else if(this.eat(b.bracketL)){var a=this.startNodeAt(t,r);a.object=e,a.property=this.parseExpression(),a.computed=!0,this.expect(b.bracketR),e=this.finishNode(a,"MemberExpression")}else if(!i&&this.match(b.parenL)){var o=this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon();this.next();var u=this.startNodeAt(t,r);if(u.callee=e,u.arguments=this.parseCallExpressionArguments(b.parenR,o),"Import"===u.callee.type&&1!==u.arguments.length&&this.raise(u.start,"import() requires exactly one argument"),e=this.finishNode(u,"CallExpression"),o&&this.shouldParseAsyncArrow())return this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),u);this.toReferencedList(u.arguments)}else{if(!this.match(b.backQuote))return e;var l=this.startNodeAt(t,r);l.tag=e,l.quasi=this.parseTemplate(!0),e=this.finishNode(l,"TaggedTemplateExpression")}}},W.parseCallExpressionArguments=function(e,t){for(var r=[],i=void 0,n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(b.comma),this.eat(e))break;this.match(b.parenL)&&!i&&(i=this.state.start),r.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0))}return t&&i&&this.shouldParseAsyncArrow()&&this.unexpected(),r},W.shouldParseAsyncArrow=function(){return this.match(b.arrow)},W.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(b.arrow),this.parseArrowExpression(e,t.arguments,!0)},W.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},W.parseExprAtom=function(e){var t=this.state.potentialArrowAt===this.state.start,r=void 0;switch(this.state.type){case b._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"'super' outside of function or class"),r=this.startNode(),this.next(),this.match(b.parenL)||this.match(b.bracketL)||this.match(b.dot)||this.unexpected(),this.match(b.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(r.start,"super() outside of class constructor"),this.finishNode(r,"Super");case b._import:return this.hasPlugin("dynamicImport")||this.unexpected(),r=this.startNode(),this.next(),this.match(b.parenL)||this.unexpected(null,b.parenL),this.finishNode(r,"Import");case b._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case b._yield:this.state.inGenerator&&this.unexpected();case b.name:r=this.startNode();var i="await"===this.state.value&&this.state.inAsync,n=this.shouldAllowYieldIdentifier(),s=this.parseIdentifier(i||n);if("await"===s.name){if(this.state.inAsync||this.inModule)return this.parseAwait(r)}else{if("async"===s.name&&this.match(b._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(r,!1,!1,!0);if(t&&"async"===s.name&&this.match(b.name)){var a=[this.parseIdentifier()];return this.expect(b.arrow),this.parseArrowExpression(r,a,!0)}}return t&&!this.canInsertSemicolon()&&this.eat(b.arrow)?this.parseArrowExpression(r,[s]):s;case b._do:if(this.hasPlugin("doExpressions")){var o=this.startNode();this.next();var u=this.state.inFunction,l=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,o.body=this.parseBlock(!1,!0),this.state.inFunction=u,this.state.labels=l,this.finishNode(o,"DoExpression")}case b.regexp:var c=this.state.value;return(r=this.parseLiteral(c.value,"RegExpLiteral")).pattern=c.pattern,r.flags=c.flags,r;case b.num:return this.parseLiteral(this.state.value,"NumericLiteral");case b.string:return this.parseLiteral(this.state.value,"StringLiteral");case b._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case b._true:case b._false:return(r=this.startNode()).value=this.match(b._true),this.next(),this.finishNode(r,"BooleanLiteral");case b.parenL:return this.parseParenAndDistinguishExpression(null,null,t);case b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,e),this.toReferencedList(r.elements),this.finishNode(r,"ArrayExpression");case b.braceL:return this.parseObj(!1,e);case b._function:return this.parseFunctionExpression();case b.at:this.parseDecorators();case b._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate(!1);case b.doubleColon:r=this.startNode(),this.next(),r.object=null;var p=r.callee=this.parseNoCallExpr();if("MemberExpression"===p.type)return this.finishNode(r,"BindExpression");this.raise(p.start,"Binding should be performed on object property.");default:this.unexpected()}},W.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(b.dot)&&this.hasPlugin("functionSent")?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},W.parseMetaProperty=function(e,t,r){return e.meta=t,e.property=this.parseIdentifier(!0),e.property.name!==r&&this.raise(e.property.start,"The only valid meta property for new is "+t.name+"."+r),this.finishNode(e,"MetaProperty")},W.parseLiteral=function(e,t,r,i){r=r||this.state.start,i=i||this.state.startLoc;var n=this.startNodeAt(r,i);return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)},W.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},W.parseParenAndDistinguishExpression=function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;var i=void 0;this.expect(b.parenL);for(var n=this.state.start,s=this.state.startLoc,a=[],o={start:0},u={start:0},l=!0,c=void 0,p=void 0;!this.match(b.parenR);){if(l)l=!1;else if(this.expect(b.comma,u.start||null),this.match(b.parenR)){p=this.state.start;break}if(this.match(b.ellipsis)){var f=this.state.start,h=this.state.startLoc;c=this.state.start,a.push(this.parseParenItem(this.parseRest(),f,h));break}a.push(this.parseMaybeAssign(!1,o,this.parseParenItem,u))}var d=this.state.start,m=this.state.startLoc;this.expect(b.parenR);var y=this.startNodeAt(e,t);if(r&&this.shouldParseArrow()&&(y=this.parseArrow(y))){var v=a,A=Array.isArray(v),E=0;for(v=A?v:v[Symbol.iterator]();;){var D;if(A){if(E>=v.length)break;D=v[E++]}else{if((E=v.next()).done)break;D=E.value}var g=D;g.extra&&g.extra.parenthesized&&this.unexpected(g.extra.parenStart)}return this.parseArrowExpression(y,a)}return a.length||this.unexpected(this.state.lastTokStart),p&&this.unexpected(p),c&&this.unexpected(c),o.start&&this.unexpected(o.start),u.start&&this.unexpected(u.start),a.length>1?((i=this.startNodeAt(n,s)).expressions=a,this.toReferencedList(i.expressions),this.finishNodeAt(i,"SequenceExpression",d,m)):i=a[0],this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",e),i},W.shouldParseArrow=function(){return!this.canInsertSemicolon()},W.parseArrow=function(e){if(this.eat(b.arrow))return e},W.parseParenItem=function(e){return e},W.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(b.dot)){var r=this.parseMetaProperty(e,t,"target");return this.state.inFunction||this.raise(r.property.start,"new.target can only be used in functions"),r}return e.callee=this.parseNoCallExpr(),this.eat(b.parenL)?(e.arguments=this.parseExprList(b.parenR),this.toReferencedList(e.arguments)):e.arguments=[],this.finishNode(e,"NewExpression")},W.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e&&this.hasPlugin("templateInvalidEscapes")?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(b.backQuote),this.finishNode(t,"TemplateElement")},W.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(b.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(b.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},W.parseObj=function(e,t){var r=[],i=Object.create(null),n=!0,s=this.startNode();s.properties=[],this.next();for(var a=null;!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.eat(b.braceR))break;for(;this.match(b.at);)r.push(this.parseDecorator());var o=this.startNode(),u=!1,l=!1,c=void 0,p=void 0;if(r.length&&(o.decorators=r,r=[]),this.hasPlugin("objectRestSpread")&&this.match(b.ellipsis)){if((o=this.parseSpread(e?{start:0}:void 0)).type=e?"RestProperty":"SpreadProperty",e&&this.toAssignable(o.argument,!0,"object pattern"),s.properties.push(o),!e)continue;var f=this.state.start;if(null===a){if(this.eat(b.braceR))break;if(this.match(b.comma)&&this.lookahead().type===b.braceR)continue;a=f;continue}this.unexpected(a,"Cannot have multiple rest elements when destructuring")}if(o.method=!1,o.shorthand=!1,(e||t)&&(c=this.state.start,p=this.state.startLoc),e||(u=this.eat(b.star)),!e&&this.isContextual("async")){u&&this.unexpected();var h=this.parseIdentifier();this.match(b.colon)||this.match(b.parenL)||this.match(b.braceR)||this.match(b.eq)||this.match(b.comma)?(o.key=h,o.computed=!1):(l=!0,this.hasPlugin("asyncGenerators")&&(u=this.eat(b.star)),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,c,p,u,l,e,t),this.checkPropClash(o,i),o.shorthand&&this.addExtra(o,"shorthand",!0),s.properties.push(o)}return null!==a&&this.unexpected(a,"The rest element has to be the last element when destructuring"),r.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(s,e?"ObjectPattern":"ObjectExpression")},W.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(b.string)||this.match(b.num)||this.match(b.bracketL)||this.match(b.name)||this.state.type.keyword)},W.checkGetterSetterParamCount=function(e){var t="get"===e.kind?0:1;if(e.params.length!==t){var r=e.start;"get"===e.kind?this.raise(r,"getter should have no params"):this.raise(r,"setter should have exactly one param")}},W.parseObjectMethod=function(e,t,r,i){return r||t||this.match(b.parenL)?(i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r),this.finishNode(e,"ObjectMethod")):this.isGetterOrSetterMethod(e,i)?((t||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e),this.checkGetterSetterParamCount(e),this.finishNode(e,"ObjectMethod")):void 0},W.parseObjectProperty=function(e,t,r,i,n){return this.eat(b.colon)?(e.value=i?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,n),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),i?e.value=this.parseMaybeDefault(t,r,e.key.__clone()):this.match(b.eq)&&n?(n.start||(n.start=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},W.parseObjPropValue=function(e,t,r,i,n,s,a){var o=this.parseObjectMethod(e,i,n,s)||this.parseObjectProperty(e,t,r,s,a);return o||this.unexpected(),o},W.parsePropertyName=function(e){if(this.eat(b.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR);else{e.computed=!1;var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(b.num)||this.match(b.string)?this.parseExprAtom():this.parseIdentifier(!0),this.state.inPropertyName=t}return e.key},W.initFunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,e.async=!!t},W.parseMethod=function(e,t,r){var i=this.state.inMethod;return this.state.inMethod=e.kind||!0,this.initFunction(e,r),this.expect(b.parenL),e.params=this.parseBindingList(b.parenR),e.generator=!!t,this.parseFunctionBody(e),this.state.inMethod=i,e},W.parseArrowExpression=function(e,t,r){return this.initFunction(e,r),e.params=this.toAssignableList(t,!0,"arrow function parameters"),this.parseFunctionBody(e,!0),this.finishNode(e,"ArrowFunctionExpression")},W.isStrictBody=function(e,t){if(!t&&e.body.directives.length){var r=e.body.directives,i=Array.isArray(r),n=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(n>=r.length)break;s=r[n++]}else{if((n=r.next()).done)break;s=n.value}if("use strict"===s.value.value)return!0}}return!1},W.parseFunctionBody=function(e,t){var r=t&&!this.match(b.braceL),i=this.state.inAsync;if(this.state.inAsync=e.async,r)e.body=this.parseMaybeAssign(),e.expression=!0;else{var n=this.state.inFunction,s=this.state.inGenerator,a=this.state.labels;this.state.inFunction=!0,this.state.inGenerator=e.generator,this.state.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.state.inFunction=n,this.state.inGenerator=s,this.state.labels=a}this.state.inAsync=i;var o=this.isStrictBody(e,r),u=this.state.strict||t||o;if(o&&e.id&&"Identifier"===e.id.type&&"yield"===e.id.name&&this.raise(e.id.start,"Binding yield in strict mode"),u){var l=Object.create(null),c=this.state.strict;o&&(this.state.strict=!0),e.id&&this.checkLVal(e.id,!0,void 0,"function name");var p=e.params,f=Array.isArray(p),h=0;for(p=f?p:p[Symbol.iterator]();;){var d;if(f){if(h>=p.length)break;d=p[h++]}else{if((h=p.next()).done)break;d=h.value}var m=d;o&&"Identifier"!==m.type&&this.raise(m.start,"Non-simple parameter in strict mode"),this.checkLVal(m,!0,l,"function parameter list")}this.state.strict=c}},W.parseExprList=function(e,t,r){for(var i=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(b.comma),this.eat(e))break;i.push(this.parseExprListItem(t,r))}return i},W.parseExprListItem=function(e,t,r){return e&&this.match(b.comma)?null:this.match(b.ellipsis)?this.parseSpread(t):this.parseMaybeAssign(!1,t,this.parseParenItem,r)},W.parseIdentifier=function(e){var t=this.startNode();return e||this.checkReservedWord(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(b.name)?t.name=this.state.value:this.state.type.keyword?t.name=this.state.type.keyword:this.unexpected(),!e&&"await"===t.name&&this.state.inAsync&&this.raise(t.start,"invalid use of await inside of an async function"),t.loc.identifierName=t.name,this.next(),this.finishNode(t,"Identifier")},W.checkReservedWord=function(e,t,r,i){(this.isReservedWord(e)||r&&this.isKeyword(e))&&this.raise(t,e+" is a reserved word"),this.state.strict&&(n.strict(e)||i&&n.strictBind(e))&&this.raise(t,e+" is a reserved word in strict mode")},W.parseAwait=function(e){return this.state.inAsync||this.unexpected(),this.match(b.star)&&this.raise(e.start,"await* has been removed from the async functions proposal. Use Promise.all() instead."),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},W.parseYield=function(){var e=this.startNode();return this.next(),this.match(b.semi)||this.canInsertSemicolon()||!this.match(b.star)&&!this.state.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(b.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")};var H=j.prototype,J=["leadingComments","trailingComments","innerComments"],X=function(){function e(t,r,i){v(this,e),this.type="",this.start=t,this.end=0,this.loc=new k(r),i&&(this.loc.filename=i)}return e.prototype.__clone=function(){var t=new e;for(var r in this)J.indexOf(r)<0&&(t[r]=this[r]);return t},e}();function $(e,t,r,i){return e.type=t,e.end=r,e.loc.end=i,this.processComment(e),e}function z(e){return e[e.length-1]}H.startNode=function(){return new X(this.state.start,this.state.startLoc,this.filename)},H.startNodeAt=function(e,t){return new X(e,t,this.filename)},H.finishNode=function(e,t){return $.call(this,e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)},H.finishNodeAt=function(e,t,r,i){return $.call(this,e,t,r,i)},j.prototype.raise=function(e,t){var r=function(e,t){for(var r=1,i=0;;){S.lastIndex=i;var n=S.exec(e);if(!(n&&n.index0)){var t=this.state.commentStack,r=void 0,i=void 0,n=void 0,s=void 0,a=void 0;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else{var o=z(t);t.length>0&&o.trailingComments&&o.trailingComments[0].start>=e.end&&(n=o.trailingComments,o.trailingComments=null)}for(t.length>0&&z(t).start>=e.start&&(r=t.pop());t.length>0&&z(t).start>=e.start;)i=t.pop();if(!i&&r&&(i=r),r&&this.state.leadingComments.length>0){var u=z(this.state.leadingComments);if("ObjectProperty"===r.type){if(u.start>=e.start&&this.state.commentPreviousNode){for(a=0;a0&&(r.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var l=z(e.arguments);l&&u.start>=l.start&&u.end<=e.end&&this.state.commentPreviousNode&&this.state.leadingComments.length>0&&(l.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}if(i){if(i.leadingComments)if(i!==e&&z(i.leadingComments).end<=e.start)e.leadingComments=i.leadingComments,i.leadingComments=null;else for(s=i.leadingComments.length-2;s>=0;--s)if(i.leadingComments[s].end<=e.start){e.leadingComments=i.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(z(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(a=0;a0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(s=0;se.start);s++);e.leadingComments=this.state.leadingComments.slice(0,s),0===e.leadingComments.length&&(e.leadingComments=null),0===(n=this.state.leadingComments.slice(s)).length&&(n=null)}this.state.commentPreviousNode=e,n&&(n.length&&n[0].start>=e.start&&z(n).end<=e.end?e.innerComments=n:e.trailingComments=n),t.push(e)}};var Z=j.prototype;function ee(e){return e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}Z.estreeParseRegExpLiteral=function(e){var t=e.pattern,r=e.flags,i=null;try{i=new RegExp(t,r)}catch(e){}var n=this.estreeParseLiteral(i);return n.regex={pattern:t,flags:r},n},Z.estreeParseLiteral=function(e){return this.parseLiteral(e,"Literal")},Z.directiveToStmt=function(e){var t=e.value,r=this.startNodeAt(e.start,e.loc.start),i=this.startNodeAt(t.start,t.loc.start);return i.value=t.value,i.raw=t.extra.raw,r.expression=this.finishNodeAt(i,"Literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)};var te=["any","mixed","empty","bool","boolean","number","string","void","null"],re=j.prototype;re.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||b.colon);var r=this.flowParseType();return this.state.inType=t,r},re.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,r=this.state.start;this.expect(b.modulo);var i=this.state.startLoc;return this.expectContextual("checks"),t.line===i.line&&t.column===i.column-1||this.raise(r,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(b.parenL)?(e.expression=this.parseExpression(),this.expect(b.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},re.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(b.colon);var t=null,r=null;return this.match(b.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(b.modulo)&&(r=this.flowParsePredicate())),[t,r]},re.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},re.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),i=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(b.parenL);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,this.expect(b.parenR);var s,a=this.flowParseTypeAndPredicateInitialiser();return r.returnType=a[0],s=a[1],i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),i.predicate=s,t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},re.flowParseDeclare=function(e){return this.match(b._class)?this.flowParseDeclareClass(e):this.match(b._function)?this.flowParseDeclareFunction(e):this.match(b._var)?this.flowParseDeclareVariable(e):this.isContextual("module")?this.lookahead().type===b.dot?this.flowParseDeclareModuleExports(e):this.flowParseDeclareModule(e):this.isContextual("type")?this.flowParseDeclareTypeAlias(e):this.isContextual("opaque")?this.flowParseDeclareOpaqueType(e):this.isContextual("interface")?this.flowParseDeclareInterface(e):this.match(b._export)?this.flowParseDeclareExportDeclaration(e):void this.unexpected()},re.flowParseDeclareExportDeclaration=function(e){if(this.expect(b._export),this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");throw this.unexpected()},re.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.semicolon(),this.finishNode(e,"DeclareVariable")},re.flowParseDeclareModule=function(e){this.next(),this.match(b.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),r=t.body=[];for(this.expect(b.braceL);!this.match(b.braceR);){var i=this.startNode();if(this.match(b._import)){var n=this.lookahead();"type"!==n.value&&"typeof"!==n.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseImport(i)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),i=this.flowParseDeclare(i,!0);r.push(i)}return this.expect(b.braceR),this.finishNode(t,"BlockStatement"),this.finishNode(e,"DeclareModule")},re.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(b.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},re.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},re.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},re.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},re.flowParseInterfaceish=function(e){if(e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.mixins=[],this.eat(b._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(b.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(b.comma))}e.body=this.flowParseObjectType(!0,!1,!1)},re.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},re.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},re.flowParseRestrictedIdentifier=function(e){return te.indexOf(this.state.value)>-1&&this.raise(this.state.start,"Cannot overwrite primitive type "+this.state.value),this.parseIdentifier(e)},re.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(b.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},re.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(b.colon)&&(e.supertype=this.flowParseTypeInitialiser(b.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(b.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},re.flowParseTypeParameter=function(){var e=this.startNode(),t=this.flowParseVariance(),r=this.flowParseTypeAnnotatableIdentifier();return e.name=r.name,e.variance=t,e.bound=r.typeAnnotation,this.match(b.eq)&&(this.eat(b.eq),e.default=this.flowParseType()),this.finishNode(e,"TypeParameter")},re.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(b.jsxTagStart)?this.next():this.unexpected();do{t.params.push(this.flowParseTypeParameter()),this.isRelational(">")||this.expect(b.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},re.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(b.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},re.flowParseObjectPropertyKey=function(){return this.match(b.num)||this.match(b.string)?this.parseExprAtom():this.parseIdentifier(!0)},re.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,this.expect(b.bracketL),this.lookahead().type===b.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(b.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeIndexer")},re.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(b.parenL);!this.match(b.parenR)&&!this.match(b.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(b.parenR)||this.expect(b.comma);return this.eat(b.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(b.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},re.flowParseObjectTypeMethod=function(e,t,r,i){var n=this.startNodeAt(e,t);return n.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e,t)),n.static=r,n.key=i,n.optional=!1,this.flowObjectTypeSemicolon(),this.finishNode(n,"ObjectTypeProperty")},re.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeCallProperty")},re.flowParseObjectType=function(e,t,r){var i=this.state.inType;this.state.inType=!0;var n=this.startNode(),s=void 0,a=void 0,o=!1;n.callProperties=[],n.properties=[],n.indexers=[];var u=void 0,l=void 0;for(t&&this.match(b.braceBarL)?(this.expect(b.braceBarL),u=b.braceBarR,l=!0):(this.expect(b.braceL),u=b.braceR,l=!1),n.exact=l;!this.match(u);){var c=!1,p=this.state.start,f=this.state.startLoc;s=this.startNode(),e&&this.isContextual("static")&&this.lookahead().type!==b.colon&&(this.next(),o=!0);var h=this.state.start,d=this.flowParseVariance();this.match(b.bracketL)?n.indexers.push(this.flowParseObjectTypeIndexer(s,o,d)):this.match(b.parenL)||this.isRelational("<")?(d&&this.unexpected(h),n.callProperties.push(this.flowParseObjectTypeCallProperty(s,o))):this.match(b.ellipsis)?(r||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),d&&this.unexpected(d.start,"Spread properties cannot have variance"),this.expect(b.ellipsis),s.argument=this.flowParseType(),this.flowObjectTypeSemicolon(),n.properties.push(this.finishNode(s,"ObjectTypeSpreadProperty"))):(a=this.flowParseObjectPropertyKey(),this.isRelational("<")||this.match(b.parenL)?(d&&this.unexpected(d.start),n.properties.push(this.flowParseObjectTypeMethod(p,f,o,a))):(this.eat(b.question)&&(c=!0),s.key=a,s.value=this.flowParseTypeInitialiser(),s.optional=c,s.static=o,s.variance=d,this.flowObjectTypeSemicolon(),n.properties.push(this.finishNode(s,"ObjectTypeProperty")))),o=!1}this.expect(u);var m=this.finishNode(n,"ObjectTypeAnnotation");return this.state.inType=i,m},re.flowObjectTypeSemicolon=function(){this.eat(b.semi)||this.eat(b.comma)||this.match(b.braceR)||this.match(b.braceBarR)||this.unexpected()},re.flowParseQualifiedTypeIdentifier=function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var i=r||this.parseIdentifier();this.eat(b.dot);){var n=this.startNodeAt(e,t);n.qualification=i,n.id=this.parseIdentifier(),i=this.finishNode(n,"QualifiedTypeIdentifier")}return i},re.flowParseGenericType=function(e,t,r){var i=this.startNodeAt(e,t);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t,r),this.isRelational("<")&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")},re.flowParseTypeofType=function(){var e=this.startNode();return this.expect(b._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},re.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(b.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t={params:e,rest:null};!this.match(b.parenR)&&!this.match(b.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(b.parenR)||this.expect(b.comma);return this.eat(b.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),t},re.flowIdentToTypeAnnotation=function(e,t,r,i){switch(i.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"void":return this.finishNode(r,"VoidTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");default:return this.flowParseGenericType(e,t,i)}},re.flowParsePrimaryType=function(){var e=this.state.start,t=this.state.startLoc,r=this.startNode(),i=void 0,n=void 0,s=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case b.name:return this.flowIdentToTypeAnnotation(e,t,r,this.parseIdentifier());case b.braceL:return this.flowParseObjectType(!1,!1,!0);case b.braceBarL:return this.flowParseObjectType(!1,!0,!0);case b.bracketL:return this.flowParseTupleType();case b.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(b.parenL),i=this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(b.parenR),this.expect(b.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case b.parenL:if(this.next(),!this.match(b.parenR)&&!this.match(b.ellipsis))if(this.match(b.name)){var o=this.lookahead().type;s=o!==b.question&&o!==b.colon}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(b.comma)||this.match(b.parenR)&&this.lookahead().type===b.arrow))return this.expect(b.parenR),n;this.eat(b.comma)}return i=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=i.params,r.rest=i.rest,this.expect(b.parenR),this.expect(b.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case b.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case b._true:case b._false:return r.value=this.match(b._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case b.plusMin:if("-"===this.state.value)return this.next(),this.match(b.num)||this.unexpected(null,"Unexpected token, expected number"),this.parseLiteral(-this.state.value,"NumericLiteralTypeAnnotation",r.start,r.loc.start);this.unexpected();case b.num:return this.parseLiteral(this.state.value,"NumericLiteralTypeAnnotation");case b._null:return r.value=this.match(b._null),this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case b._this:return r.value=this.match(b._this),this.next(),this.finishNode(r,"ThisTypeAnnotation");case b.star:return this.next(),this.finishNode(r,"ExistentialTypeParam");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}this.unexpected()},re.flowParsePostfixType=function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType();!this.canInsertSemicolon()&&this.match(b.bracketL);){var i=this.startNodeAt(e,t);i.elementType=r,this.expect(b.bracketL),this.expect(b.bracketR),r=this.finishNode(i,"ArrayTypeAnnotation")}return r},re.flowParsePrefixType=function(){var e=this.startNode();return this.eat(b.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},re.flowParseAnonFunctionWithoutParens=function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(b.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e},re.flowParseIntersectionType=function(){var e=this.startNode();this.eat(b.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(b.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},re.flowParseUnionType=function(){var e=this.startNode();this.eat(b.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(b.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},re.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},re.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},re.flowParseTypeAndPredicateAnnotation=function(){var e=this.startNode(),t=this.flowParseTypeAndPredicateInitialiser();return e.typeAnnotation=t[0],e.predicate=t[1],this.finishNode(e,"TypeAnnotation")},re.flowParseTypeAnnotatableIdentifier=function(){var e=this.flowParseRestrictedIdentifier();return this.match(b.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,e.type)),e},re.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.finishNodeAt(e.expression,e.expression.type,e.typeAnnotation.end,e.typeAnnotation.loc.end)},re.flowParseVariance=function(){var e=null;return this.match(b.plusMin)&&("+"===this.state.value?e="plus":"-"===this.state.value&&(e="minus"),this.next()),e};var ie=String.fromCodePoint; /*! https://mths.be/fromcodepoint v0.2.1 by @mathias */if(!ie){var ne=String.fromCharCode,se=Math.floor;ie=function(){var e=16384,t=[],r=void 0,i=void 0,n=-1,s=arguments.length;if(!s)return"";for(var a="";++n1114111||se(o)!=o)throw RangeError("Invalid code point: "+o);o<=65535?t.push(o):(r=55296+((o-=65536)>>10),i=o%1024+56320,t.push(r,i)),(n+1==s||t.length>e)&&(a+=ne.apply(null,t),t.length=0)}return a}}var ae=ie,oe={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},ue=/^[\da-fA-F]+$/,le=/^\d+$/;w.j_oTag=new B("...",!0,!0),b.jsxName=new D("jsxName"),b.jsxText=new D("jsxText",{beforeExpr:!0}),b.jsxTagStart=new D("jsxTagStart",{startsExpr:!0}),b.jsxTagEnd=new D("jsxTagEnd"),b.jsxTagStart.updateContext=function(){this.state.context.push(w.j_expr),this.state.context.push(w.j_oTag),this.state.exprAllowed=!1},b.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===w.j_oTag&&e===b.slash||t===w.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===w.j_expr):this.state.exprAllowed=!0};var ce=j.prototype;function pe(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?pe(e.object)+"."+pe(e.property):void 0}ce.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(b.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(b.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:T(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},ce.jsxReadNewLine=function(e){var t=this.input.charCodeAt(this.state.pos),r=void 0;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r},ce.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):T(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(b.string,t)},ce.jsxReadEntity=function(){for(var e="",t=0,r=void 0,i=this.input[this.state.pos],n=++this.state.pos;this.state.pos")}return r.openingElement=n,r.closingElement=s,r.children=i,this.match(b.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSXElement")},ce.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)};R.estree=function(e){e.extend("checkDeclaration",(function(e){return function(t){ee(t)?this.checkDeclaration(t.value):e.call(this,t)}})),e.extend("checkGetterSetterParamCount",(function(){return function(e){var t="get"===e.kind?0:1;if(e.value.params.length!==t){var r=e.start;"get"===e.kind?this.raise(r,"getter should have no params"):this.raise(r,"setter should have exactly one param")}}})),e.extend("checkLVal",(function(e){return function(t,r,i){var n=this;switch(t.type){case"ObjectPattern":t.properties.forEach((function(e){n.checkLVal("Property"===e.type?e.value:e,r,i,"object destructuring pattern")}));break;default:for(var s=arguments.length,a=Array(s>3?s-3:0),o=3;o0){var r=e.body.body,i=Array.isArray(r),n=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(n>=r.length)break;s=r[n++]}else{if((n=r.next()).done)break;s=n.value}var a=s;if("ExpressionStatement"!==a.type||"Literal"!==a.expression.type)break;if("use strict"===a.expression.value)return!0}}return!1}})),e.extend("isValidDirective",(function(){return function(e){return!("ExpressionStatement"!==e.type||"Literal"!==e.expression.type||"string"!=typeof e.expression.value||e.expression.extra&&e.expression.extra.parenthesized)}})),e.extend("stmtToDirective",(function(e){return function(t){var r=e.call(this,t),i=t.expression.value;return r.value.value=i,r}})),e.extend("parseBlockBody",(function(e){return function(t){for(var r=this,i=arguments.length,n=Array(i>1?i-1:0),s=1;s1?i-1:0),s=1;s2?i-2:0),s=2;s=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var c=l;"get"===c.kind||"set"===c.kind?this.raise(c.key.start,"Object pattern can't contain getter or setter"):c.method?this.raise(c.key.start,"Object pattern can't contain methods"):this.toAssignable(c,r,"object destructuring pattern")}return t}return e.call.apply(e,[this,t,r].concat(n))}}))},R.flow=function(e){e.extend("parseFunctionBody",(function(e){return function(t,r){return this.match(b.colon)&&!r&&(t.returnType=this.flowParseTypeAndPredicateAnnotation()),e.call(this,t,r)}})),e.extend("parseStatement",(function(e){return function(t,r){if(this.state.strict&&this.match(b.name)&&"interface"===this.state.value){var i=this.startNode();return this.next(),this.flowParseInterface(i)}return e.call(this,t,r)}})),e.extend("parseExpressionStatement",(function(e){return function(t,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(b._class)||this.match(b.name)||this.match(b._function)||this.match(b._var)||this.match(b._export))return this.flowParseDeclare(t)}else if(this.match(b.name)){if("interface"===r.name)return this.flowParseInterface(t);if("type"===r.name)return this.flowParseTypeAlias(t);if("opaque"===r.name)return this.flowParseOpaqueType(t,!1)}return e.call(this,t,r)}})),e.extend("shouldParseExportDeclaration",(function(e){return function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||e.call(this)}})),e.extend("isExportDefaultSpecifier",(function(e){return function(){return(!this.match(b.name)||"type"!==this.state.value&&"interface"!==this.state.value&&"opaque"!==this.state.value)&&e.call(this)}})),e.extend("parseConditional",(function(e){return function(t,r,i,n,s){if(s&&this.match(b.question)){var a=this.state.clone();try{return e.call(this,t,r,i,n)}catch(e){if(e instanceof SyntaxError)return this.state=a,s.start=e.pos||this.state.start,t;throw e}}return e.call(this,t,r,i,n)}})),e.extend("parseParenItem",(function(e){return function(t,r,i){if(t=e.call(this,t,r,i),this.eat(b.question)&&(t.optional=!0),this.match(b.colon)){var n=this.startNodeAt(r,i);return n.expression=t,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return t}})),e.extend("parseExport",(function(e){return function(t){return"ExportNamedDeclaration"===(t=e.call(this,t)).type&&(t.exportKind=t.exportKind||"value"),t}})),e.extend("parseExportDeclaration",(function(e){return function(t){if(this.isContextual("type")){t.exportKind="type";var r=this.startNode();return this.next(),this.match(b.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(r)}if(this.isContextual("opaque")){t.exportKind="type";var i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}if(this.isContextual("interface")){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}return e.call(this,t)}})),e.extend("parseClassId",(function(e){return function(t){e.apply(this,arguments),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}})),e.extend("isKeyword",(function(e){return function(t){return(!this.state.inType||"void"!==t)&&e.call(this,t)}})),e.extend("readToken",(function(e){return function(t){return!this.state.inType||62!==t&&60!==t?e.call(this,t):this.finishOp(b.relational,1)}})),e.extend("jsx_readToken",(function(e){return function(){if(!this.state.inType)return e.call(this)}})),e.extend("toAssignable",(function(e){return function(t,r,i){return"TypeCastExpression"===t.type?e.call(this,this.typeCastToParameter(t),r,i):e.call(this,t,r,i)}})),e.extend("toAssignableList",(function(e){return function(t,r,i){for(var n=0;n2?i-2:0),s=2;su;)i(o,r=t[u++])&&(~s(l,r)||l.push(r));return l}},function(e,t,r){var i=r(97),n=r(4)("iterator"),s=r(23);e.exports=r(2).getIteratorMethod=function(e){if(null!=e)return e[n]||e["@@iterator"]||s[i(e)]}},function(e,t,r){var i=r(59),n=r(4)("toStringTag"),s="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),n))?r:s?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){"use strict";t.__esModule=!0,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 i=r(0),n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(i);t.ReferencedIdentifier={types:["Identifier","JSXIdentifier"],checkPath:function(e,t){var r=e.node,s=e.parent;if(!n.isIdentifier(r,t)&&!n.isJSXMemberExpression(s,t)){if(!n.isJSXIdentifier(r,t))return!1;if(i.react.isCompatTag(r.name))return!1}return n.isReferenced(r,s)}},t.ReferencedMemberExpression={types:["MemberExpression"],checkPath:function(e){var t=e.node,r=e.parent;return n.isMemberExpression(t)&&n.isReferenced(t,r)}},t.BindingIdentifier={types:["Identifier"],checkPath:function(e){var t=e.node,r=e.parent;return n.isIdentifier(t)&&n.isBinding(t,r)}},t.Statement={types:["Statement"],checkPath:function(e){var t=e.node,r=e.parent;if(n.isStatement(t)){if(n.isVariableDeclaration(t)){if(n.isForXStatement(r,{left:t}))return!1;if(n.isForStatement(r,{init:t}))return!1}return!0}return!1}},t.Expression={types:["Expression"],checkPath:function(e){return e.isIdentifier()?e.isReferencedIdentifier():n.isExpression(e.node)}},t.Scope={types:["Scopable"],checkPath:function(e){return n.isScope(e.node,e.parent)}},t.Referenced={checkPath:function(e){return n.isReferenced(e.node,e.parent)}},t.BlockScoped={checkPath:function(e){return n.isBlockScoped(e.node)}},t.Var={types:["VariableDeclaration"],checkPath:function(e){return n.isVar(e.node)}},t.User={checkPath:function(e){return e.node&&!!e.node.loc}},t.Generated={checkPath:function(e){return!e.isUser()}},t.Pure={checkPath:function(e,t){return e.scope.isPure(e.node,t)}},t.Flow={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath:function(e){var t=e.node;return!!n.isFlow(t)||(n.isImportDeclaration(t)?"type"===t.importKind||"typeof"===t.importKind:n.isExportDeclaration(t)?"type"===t.exportKind:!!n.isImportSpecifier(t)&&("type"===t.importKind||"typeof"===t.importKind))}}},function(e,t,r){var i=r(59);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,r){var i=r(95),n=r(68).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,n)}},function(e,t,r){"use strict";t.__esModule=!0;var i,n=r(75),s=(i=n)&&i.__esModule?i:{default:i};t.getBindingIdentifiers=o,t.getOuterBindingIdentifiers=function(e,t){return o(e,t,!0)};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function o(e,t,r){for(var i=[].concat(e),n=(0,s.default)(null);i.length;){var o=i.shift();if(o){var u=a.getBindingIdentifiers.keys[o.type];if(a.isIdentifier(o))t?(n[o.name]=n[o.name]||[]).push(o):n[o.name]=o;else if(a.isExportDeclaration(o))a.isDeclaration(o.declaration)&&i.push(o.declaration);else{if(r){if(a.isFunctionDeclaration(o)){i.push(o.id);continue}if(a.isFunctionExpression(o))continue}if(u)for(var l=0;l=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(s=new Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&i.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?n[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?n[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()},function(e,t){var r="object"==typeof global&&global&&global.Object===Object&&global;e.exports=r},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var i=r(183);e.exports=function(e){return i(e,4)}},function(e,t,r){var i=r(14),n=r(20);e.exports=function(e){if(!n(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var i=r(199),n=r(206),s=r(208),a=r(209),o=r(210);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var i=r(118),n=r(77),s=r(80),a=r(116),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,s(e)),e=n(e);return t}:a;e.exports=o},function(e,t){e.exports=function(e,t){for(var r=-1,i=t.length,n=e.length;++r<]/g}},function(e,t,r){"use strict";t.__esModule=!0;var i,n=r(18),s=(i=n)&&i.__esModule?i:{default:i};t.default=function e(t,r){(0,s.default)(this,e),this.file=t,this.options=r},e.exports=t.default},function(e,t){e.exports=require("os")},function(e,t,r){const i=process.env.JS_PARSER_ENABLE_LOGGING&&"true"===process.env.JS_PARSER_ENABLE_LOGGING.trim()||process.argv&&process.argv.includes("enableVerboseLogging"),n=process.env.JS_PARSER_ERROR_LOGGING&&"true"===process.env.JS_PARSER_ERROR_LOGGING.trim()||!i&&process.argv&&process.argv.includes("enableErrorLogging");loggingSettings={logPath:r(35).join(__dirname,"logs","i.txt"),strategy:"console",APP_NAME:"js_parser",showErrorsAndWarnings:n,disable:!i};var s=r(36),a=r(90),o=r(22),u=r(341),l=r(345)(loggingSettings),c=r(35),p=r(347),f=r(137).EOL,h=__dirname+"/../",d="out/out_parsed_typescript.txt",m="input_parsed_typescript",y=D(v="sbg-interface-names.txt"),v="sbg-interfaces-names.txt",A=[],E=[];process.env.JS_PARSER_OUT_FILE&&(d=process.env.JS_PARSER_OUT_FILE.trim()),process.env.JS_PARSER_INPUT_DIR&&(m=process.env.JS_PARSER_INPUT_DIR.trim()),process.env.JS_PARSER_INTERFACE_FILE_PATH&&(y=process.env.JS_PARSER_INTERFACE_FILE_PATH.trim()),m=s.readFileSync(D("sbg-input-file.txt"),"UTF-8").trim();try{s.unlinkSync(D("sbg-bindings.txt"))}catch(e){}function D(e){return c.resolve(`${h}/${e}`)}d=D("sbg-bindings.txt"),y=D(v),inputFilesPath=D("sbg-js-parsed-files.txt");var g,x,b,C=c.join(m,"..","internal","ts_helpers.js"),F=function(e,t){t.errCode&&1===t.errCode?(l.error(`Error processing '${e}': ${t.message}`),l.error("PROCESS EXITING..."),process.stderr.write(t.message),process.exit(4)):l.error(`Error processing '${e}:' `+t)};(g=inputFilesPath,x=E,b=C,new Promise((function(e,t){s.createReadStream(g).pipe(u()).on("data",(function(e){/\S/.test(e)&&x.push(e.toString().trim())})).on("error",(function(e){return t(e)})).on("close",(function(t){return e(b)}))}))).then((function(e){return new Promise((function(t,r){s.readFile(e,"utf8",(function(i,n){if(i)return l.warn("+DIDN'T parse ast from file "+e),r(i);l.info("+parsing ast from "+e);var s=a.parse(n,{minify:!1,plugins:["decorators"]});return t(s)}))}))})).then((function(e,t){return new Promise((function(e,t){s.createReadStream(y).pipe(u()).on("data",(function(e){/\S/.test(e)&&A.push(e.toString().trim())})).on("error",(function(e){return t(!1)})).on("close",(function(t){return m=c.normalize(m),e(m)}))}))})).then((function(e,t){if(!s.existsSync(e))throw"The input dir: "+e+" does not exist!";!function(e){for(var t=e.length,r=0;r=e.length?(this._t=void 0,n(1)):n(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t,r){"use strict";var i=r(40),n=r(39),s=r(42),a={};r(11)(a,r(4)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=i(a,{next:n(1,r)}),s(e,t+" Iterator")}},function(e,t,r){var i=r(9),n=r(12),s=r(25);e.exports=r(6)?Object.defineProperties:function(e,t){n(e);for(var r,a=s(t),o=a.length,u=0;o>u;)i.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var i=r(21),n=r(64),s=r(145);e.exports=function(e){return function(t,r,a){var o,u=i(t),l=n(u.length),c=s(a,l);if(e&&r!=r){for(;l>c;)if((o=u[c++])!=o)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var i=r(65),n=Math.max,s=Math.min;e.exports=function(e,t){return(e=i(e))<0?n(e+t,0):s(e,t)}},function(e,t,r){var i=r(3).document;e.exports=i&&i.documentElement},function(e,t,r){var i=r(13),n=r(26),s=r(66)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=n(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var i=r(65),n=r(60);e.exports=function(e){return function(t,r){var s,a,o=String(n(t)),u=i(r),l=o.length;return u<0||u>=l?e?"":void 0:(s=o.charCodeAt(u))<55296||s>56319||u+1===l||(a=o.charCodeAt(u+1))<56320||a>57343?e?o.charAt(u):s:e?o.slice(u,u+2):a-56320+(s-55296<<10)+65536}}},function(e,t,r){var i=r(12),n=r(96);e.exports=r(2).getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,r){e.exports={default:r(151),__esModule:!0}},function(e,t,r){r(70),e.exports=r(2).Object.getOwnPropertySymbols},function(e,t,r){var i=r(25),n=r(73),s=r(43);e.exports=function(e){var t=i(e),r=n.f;if(r)for(var a,o=r(e),u=s.f,l=0;o.length>l;)u.call(e,a=o[l++])&&t.push(a);return t}},function(e,t,r){var i=r(21),n=r(100).f,s={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==s.call(e)?function(e){try{return n(e)}catch(e){return a.slice()}}(e):n(i(e))}},function(e,t,r){var i=r(43),n=r(39),s=r(21),a=r(62),o=r(13),u=r(93),l=Object.getOwnPropertyDescriptor;t.f=r(6)?l:function(e,t){if(e=s(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(o(e,t))return n(!i.f.call(e,t),e[t])}},function(e,t,r){r(156),e.exports=r(2).Object.keys},function(e,t,r){var i=r(26),n=r(25);r(157)("keys",(function(){return function(e){return n(i(e))}}))},function(e,t,r){var i=r(8),n=r(2),s=r(16);e.exports=function(e,t){var r=(n.Object||{})[e]||Object[e],a={};a[e]=t(r),i(i.S+i.F*s((function(){r(1)})),"Object",a)}},function(e,t,r){var i=r(2),n=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return n.stringify.apply(n,arguments)}},function(e,t,r){e.exports={default:r(160),__esModule:!0}},function(e,t,r){r(70),e.exports=r(2).Symbol.for},function(e,t,r){r(162);var i=r(2).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,r){var i=r(8);i(i.S,"Object",{create:r(40)})},function(e,t,r){"use strict";t.__esModule=!0;var i=c(r(44)),n=c(r(28)),s=c(r(1));t.isBinding=function(e,t){var r=a.getBindingIdentifiers.keys[t.type];if(r)for(var i=0;i=0)return!0}else if(s===e)return!0}return!1},t.isReferenced=function(e,t){switch(t.type){case"BindExpression":return t.object===e||t.callee===e;case"MemberExpression":case"JSXMemberExpression":return!(t.property!==e||!t.computed)||t.object===e;case"MetaProperty":return!1;case"ObjectProperty":if(t.key===e)return t.computed;case"VariableDeclarator":return t.id!==e;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":var r=t.params,i=Array.isArray(r),n=0;for(r=i?r:(0,s.default)(r);;){var a;if(i){if(n>=r.length)break;a=r[n++]}else{if((n=r.next()).done)break;a=n.value}if(a===e)return!1}return t.id!==e;case"ExportSpecifier":return!t.source&&t.local===e;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"JSXAttribute":return t.name!==e;case"ClassProperty":return t.key===e?t.computed:t.value===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ClassDeclaration":case"ClassExpression":return t.id!==e;case"ClassMethod":case"ObjectMethod":return t.key===e&&t.computed;case"LabeledStatement":return!1;case"CatchClause":return t.param!==e;case"RestElement":return!1;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ObjectPattern":case"ArrayPattern":return!1}return!0},t.isValidIdentifier=function(e){return"string"==typeof e&&!o.default.keyword.isReservedWordES6(e,!0)&&("await"!==e&&o.default.keyword.isIdentifierNameES6(e))},t.isLet=function(e){return u.isVariableDeclaration(e)&&("var"!==e.kind||e[l.BLOCK_SCOPED_SYMBOL])},t.isBlockScoped=function(e){return u.isFunctionDeclaration(e)||u.isClassDeclaration(e)||u.isLet(e)},t.isVar=function(e){return u.isVariableDeclaration(e,{kind:"var"})&&!e[l.BLOCK_SCOPED_SYMBOL]},t.isSpecifierDefault=function(e){return u.isImportDefaultSpecifier(e)||u.isIdentifier(e.imported||e.exported,{name:"default"})},t.isScope=function(e,t){if(u.isBlockStatement(e)&&u.isFunction(t,{body:e}))return!1;return u.isScopable(e)},t.isImmutable=function(e){if(u.isType(e.type,"Immutable"))return!0;if(u.isIdentifier(e))return"undefined"===e.name;return!1},t.isNodesEquivalent=function e(t,r){if("object"!==(void 0===t?"undefined":(0,n.default)(t))||"object"!==(void 0===t?"undefined":(0,n.default)(t))||null==t||null==r)return t===r;if(t.type!==r.type)return!1;var a=(0,i.default)(u.NODE_FIELDS[t.type]||t.type),o=Array.isArray(a),l=0;for(a=o?a:(0,s.default)(a);;){var c;if(o){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var p=c;if((0,n.default)(t[p])!==(0,n.default)(r[p]))return!1;if(Array.isArray(t[p])){if(!Array.isArray(r[p]))return!1;if(t[p].length!==r[p].length)return!1;for(var f=0;f=i)return!1;if(!(56320<=(s=e.charCodeAt(r))&&s<=57343))return!1;n=1024*(n-55296)+(s-56320)+65536}if(!a(n))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:i,isKeywordES6:n,isReservedWordES5:s,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return o(e)&&!s(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},function(e,t,r){"use strict";t.__esModule=!0;var i=l(r(173)),n=l(r(45)),s=l(r(1));t.toComputedKey=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key||e.property;e.computed||u.isIdentifier(t)&&(t=u.stringLiteral(t.name));return t},t.toSequenceExpression=function(e,t){if(!e||!e.length)return;var r=[],i=function e(t,r,i){var n=[],a=!0,o=t,l=Array.isArray(o),c=0;for(o=l?o:(0,s.default)(o);;){var p;if(l){if(c>=o.length)break;p=o[c++]}else{if((c=o.next()).done)break;p=c.value}var f=p;if(a=!1,u.isExpression(f))n.push(f);else if(u.isExpressionStatement(f))n.push(f.expression);else if(u.isVariableDeclaration(f)){if("var"!==f.kind)return;var h=f.declarations,d=Array.isArray(h),m=0;for(h=d?h:(0,s.default)(h);;){var y;if(d){if(m>=h.length)break;y=h[m++]}else{if((m=h.next()).done)break;y=m.value}var v=y,A=u.getBindingIdentifiers(v);for(var E in A)i.push({kind:f.kind,id:A[E]});v.init&&n.push(u.assignmentExpression("=",v.id,v.init))}a=!0}else if(u.isIfStatement(f)){var D=f.consequent?e([f.consequent],r,i):r.buildUndefinedNode(),g=f.alternate?e([f.alternate],r,i):r.buildUndefinedNode();if(!D||!g)return;n.push(u.conditionalExpression(f.test,D,g))}else if(u.isBlockStatement(f)){var x=e(f.body,r,i);if(!x)return;n.push(x)}else{if(!u.isEmptyStatement(f))return;a=!0}}a&&n.push(r.buildUndefinedNode());return 1===n.length?n[0]:u.sequenceExpression(n)}(e,t,r);if(!i)return;var n=r,a=Array.isArray(n),o=0;for(n=a?n:(0,s.default)(n);;){var l;if(a){if(o>=n.length)break;l=n[o++]}else{if((o=n.next()).done)break;l=o.value}var c=l;t.push(c)}return i},t.toKeyAlias=c,t.toIdentifier=p,t.toBindingIdentifierName=function(e){"eval"!==(e=p(e))&&"arguments"!==e||(e="_"+e);return e},t.toStatement=function(e,t){if(u.isStatement(e))return e;var r=!1,i=void 0;if(u.isClass(e))r=!0,i="ClassDeclaration";else if(u.isFunction(e))r=!0,i="FunctionDeclaration";else if(u.isAssignmentExpression(e))return u.expressionStatement(e);r&&!e.id&&(i=!1);if(!i){if(t)return!1;throw new Error("cannot turn "+e.type+" to a statement")}return e.type=i,e},t.toExpression=function(e){u.isExpressionStatement(e)&&(e=e.expression);if(u.isExpression(e))return e;u.isClass(e)?e.type="ClassExpression":u.isFunction(e)&&(e.type="FunctionExpression");if(!u.isExpression(e))throw new Error("cannot turn "+e.type+" to an expression");return e},t.toBlock=function(e,t){if(u.isBlockStatement(e))return e;u.isEmptyStatement(e)&&(e=[]);Array.isArray(e)||(u.isStatement(e)||(e=u.isFunction(t)?u.returnStatement(e):u.expressionStatement(e)),e=[e]);return u.blockStatement(e)},t.valueToNode=function(e){if(void 0===e)return u.identifier("undefined");if(!0===e||!1===e)return u.booleanLiteral(e);if(null===e)return u.nullLiteral();if("string"==typeof e)return u.stringLiteral(e);if("number"==typeof e)return u.numericLiteral(e);if((0,o.default)(e)){var t=e.source,r=e.toString().match(/\/([a-z]+|)$/)[1];return u.regExpLiteral(t,r)}if(Array.isArray(e))return u.arrayExpression(e.map(u.valueToNode));if((0,a.default)(e)){var i=[];for(var n in e){var s=void 0;s=u.isValidIdentifier(n)?u.identifier(n):u.stringLiteral(n),i.push(u.objectProperty(s,u.valueToNode(e[n])))}return u.objectExpression(i)}throw new Error("don't know how to turn this value into a node")};var a=l(r(176)),o=l(r(179)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key,r=void 0;return"method"===e.kind?c.increment()+"":(r=u.isIdentifier(t)?t.name:u.isStringLiteral(t)?(0,n.default)(t.value):(0,n.default)(u.removePropertiesDeep(u.cloneDeep(t))),e.computed&&(r="["+r+"]"),e.static&&(r="static:"+r),r)}function p(e){return e=(e=(e=(e+="").replace(/[^a-zA-Z0-9$_]/g,"-")).replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),u.isValidIdentifier(e)||(e="_"+e),e||"_"}c.uid=0,c.increment=function(){return c.uid>=i.default?c.uid=0:c.uid++}},function(e,t,r){e.exports={default:r(174),__esModule:!0}},function(e,t,r){r(175),e.exports=9007199254740991},function(e,t,r){var i=r(8);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var i=r(14),n=r(77),s=r(10),a=Function.prototype,o=Object.prototype,u=a.toString,l=o.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=i(e))return!1;var t=n(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},function(e,t,r){var i=r(46),n=Object.prototype,s=n.hasOwnProperty,a=n.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var i=!0}catch(e){}var n=a.call(e);return i&&(t?e[o]=r:delete e[o]),n}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var i=r(180),n=r(47),s=r(48),a=s&&s.isRegExp,o=a?n(a):i;e.exports=o},function(e,t,r){var i=r(14),n=r(10);e.exports=function(e){return n(e)&&"[object RegExp]"==i(e)}},function(e,t,r){"use strict";t.__esModule=!0,t.createUnionTypeAnnotation=function(e){var t=n(e);return 1===t.length?t[0]:i.unionTypeAnnotation(t)},t.removeTypeDuplicates=n,t.createTypeAnnotationBasedOnTypeof=function(e){if("string"===e)return i.stringTypeAnnotation();if("number"===e)return i.numberTypeAnnotation();if("undefined"===e)return i.voidTypeAnnotation();if("boolean"===e)return i.booleanTypeAnnotation();if("function"===e)return i.genericTypeAnnotation(i.identifier("Function"));if("object"===e)return i.genericTypeAnnotation(i.identifier("Object"));if("symbol"===e)return i.genericTypeAnnotation(i.identifier("Symbol"));throw new Error("Invalid typeof value")};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function n(e){for(var t={},r={},s=[],a=[],o=0;o=0)){if(i.isAnyTypeAnnotation(u))return[u];if(i.isFlowBaseAnnotation(u))r[u.type]=u;else if(i.isUnionTypeAnnotation(u))s.indexOf(u.types)<0&&(e=e.concat(u.types),s.push(u.types));else if(i.isGenericTypeAnnotation(u)){var l=u.id.name;if(t[l]){var c=t[l];c.typeParameters?u.typeParameters&&(c.typeParameters.params=n(c.typeParameters.params.concat(u.typeParameters.params))):c=u.typeParameters}else t[l]=u}else a.push(u)}}for(var p in r)a.push(r[p]);for(var f in t)a.push(t[f]);return a}},function(e,t,r){"use strict";e.exports=function e(t){function r(){}r.prototype=t;var i=new r;function n(){return typeof i.foo}return n(),n(),t}},function(e,t,r){var i=r(184),n=r(211),s=r(79),a=r(212),o=r(221),u=r(224),l=r(225),c=r(226),p=r(228),f=r(229),h=r(230),d=r(81),m=r(234),y=r(235),v=r(241),A=r(31),E=r(113),D=r(243),g=r(20),x=r(245),b=r(30),C=r(56),F={};F["[object Arguments]"]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F["[object Object]"]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F["[object Function]"]=F["[object WeakMap]"]=!1,e.exports=function e(t,r,S,T,P,B){var w,_=1&r,k=2&r,N=4&r;if(S&&(w=P?S(t,T,P,B):S(t)),void 0!==w)return w;if(!g(t))return t;var O=A(t);if(O){if(w=m(t),!_)return l(t,w)}else{var I=d(t),L="[object Function]"==I||"[object GeneratorFunction]"==I;if(E(t))return u(t,_);if("[object Object]"==I||"[object Arguments]"==I||L&&!P){if(w=k||L?{}:v(t),!_)return k?p(t,o(w,t)):c(t,a(w,t))}else{if(!F[I])return P?t:{};w=y(t,I,_)}}B||(B=new i);var R=B.get(t);if(R)return R;B.set(t,w),x(t)?t.forEach((function(i){w.add(e(i,r,S,i,t,B))})):D(t)&&t.forEach((function(i,n){w.set(n,e(i,r,S,n,t,B))}));var M=O?void 0:(N?k?h:f:k?C:b)(t);return n(M||t,(function(i,n){M&&(i=t[n=i]),s(w,n,e(i,r,S,n,t,B))})),w}},function(e,t,r){var i=r(50),n=r(190),s=r(191),a=r(192),o=r(193),u=r(194);function l(e){var t=this.__data__=new i(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=a,l.prototype.has=o,l.prototype.set=u,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var i=r(51),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=i(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},function(e,t,r){var i=r(51);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var i=r(51);e.exports=function(e){return i(this.__data__,e)>-1}},function(e,t,r){var i=r(51);e.exports=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},function(e,t,r){var i=r(50);e.exports=function(){this.__data__=new i,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var i=r(50),n=r(78),s=r(109);e.exports=function(e,t){var r=this.__data__;if(r instanceof i){var a=r.__data__;if(!n||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new s(a)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var i=r(107),n=r(196),s=r(20),a=r(108),o=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,p=l.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(i(e)?f:o).test(a(e))}},function(e,t,r){var i,n=r(197),s=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},function(e,t,r){var i=r(7)["__core-js_shared__"];e.exports=i},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var i=r(200),n=r(50),s=r(78);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||n),string:new i}}},function(e,t,r){var i=r(201),n=r(202),s=r(203),a=r(204),o=r(205);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=200){var m=t?null:o(e);if(m)return u(m);f=!1,c=a,d=new i}else d=t?[]:h;e:for(;++l-1}},function(e,t){e.exports=function(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())},function(e,t){var r=1e3,i=6e4,n=60*i,s=24*n;function a(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&!1===isNaN(e))return t.long?a(o=e,s,"day")||a(o,n,"hour")||a(o,i,"minute")||a(o,r,"second")||o+" ms":function(e){if(e>=s)return Math.round(e/s)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=i)return Math.round(e/i)+"m";if(e>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){var i=r(272),n=r(124);(t=e.exports=r(123)).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),i=0;i1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(s--,a):void 0,o&&n(r[0],r[1],o)&&(a=s<3?void 0:a,s=1),t=Object(t);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){r(76),r(69),r(37),r(284),r(291),r(294),r(295),e.exports=r(2).Map},function(e,t,r){"use strict";var i=r(285),n=r(34);e.exports=r(128)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(n(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(n(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,r){"use strict";var i=r(9).f,n=r(40),s=r(85),a=r(24),o=r(86),u=r(33),l=r(61),c=r(91),p=r(288),f=r(6),h=r(27).fastKey,d=r(34),m=f?"_s":"size",y=function(e,t){var r,i=h(t);if("F"!==i)return e._i[i];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,l){var c=e((function(e,i){o(e,c,t,"_i"),e._t=t,e._i=n(null),e._f=void 0,e._l=void 0,e[m]=0,null!=i&&u(i,r,e[l],e)}));return s(c.prototype,{clear:function(){for(var e=d(this,t),r=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete r[i.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var r=d(this,t),i=y(r,e);if(i){var n=i.n,s=i.p;delete r._i[i.i],i.r=!0,s&&(s.n=n),n&&(n.p=s),r._f==i&&(r._f=n),r._l==i&&(r._l=s),r[m]--}return!!i},forEach:function(e){d(this,t);for(var r,i=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(i(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!y(d(this,t),e)}}),f&&i(c.prototype,"size",{get:function(){return d(this,t)[m]}}),c},def:function(e,t,r){var i,n,s=y(e,t);return s?s.v=r:(e._l=s={i:n=h(t,!0),k:t,v:r,p:i=e._l,n:void 0,r:!1},e._f||(e._f=s),i&&(i.n=s),e[m]++,"F"!==n&&(e._i[n]=s)),e},getEntry:y,setStrong:function(e,t,r){l(e,t,(function(e,r){this._t=d(e,t),this._k=r,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))}),r?"entries":"values",!r,!0),p(t)}}},function(e,t,r){var i=r(12);e.exports=function(e,t,r,n){try{return n?t(i(r)[0],r[1]):t(r)}catch(t){var s=e.return;throw void 0!==s&&i(s.call(e)),t}}},function(e,t,r){var i=r(23),n=r(4)("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[n]===e)}},function(e,t,r){"use strict";var i=r(3),n=r(2),s=r(9),a=r(6),o=r(4)("species");e.exports=function(e){var t="function"==typeof n[e]?n[e]:i[e];a&&t&&!t[o]&&s.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,r){var i=r(290);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,r){var i=r(5),n=r(99),s=r(4)("species");e.exports=function(e){var t;return n(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!n(t.prototype)||(t=void 0),i(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){var i=r(8);i(i.P+i.R,"Map",{toJSON:r(292)("Map")})},function(e,t,r){var i=r(97),n=r(293);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");return n(this)}}},function(e,t,r){var i=r(33);e.exports=function(e,t){var r=[];return i(e,!1,r.push,r,t),r}},function(e,t,r){r(129)("Map")},function(e,t,r){r(130)("Map")},function(e,t,r){var i=r(14),n=r(31),s=r(10);e.exports=function(e){return"string"==typeof e||!n(e)&&s(e)&&"[object String]"==i(e)}},function(e,t,r){var i=r(298);e.exports=function(e){return e?(e=i(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,r){var i=r(20),n=r(132),s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(n(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var r=o.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):a.test(e)?NaN:+e}},function(e,t,r){var i=r(300),n=r(30);e.exports=function(e){return null==e?[]:i(e,n(e))}},function(e,t,r){var i=r(133);e.exports=function(e,t){return i(t,(function(t){return e[t]}))}},function(e,t,r){var i=r(302),n=r(83),s=r(131),a=r(303);e.exports=function(e,t,r){return t=(r?n(e,t,r):void 0===t)?1:s(t),i(a(e),t)}},function(e,t){var r=Math.floor;e.exports=function(e,t){var i="";if(!e||t<1||t>9007199254740991)return i;do{t%2&&(i+=e),(t=r(t/2))&&(e+=e)}while(t);return i}},function(e,t,r){var i=r(304);e.exports=function(e){return null==e?"":i(e)}},function(e,t,r){var i=r(46),n=r(133),s=r(31),a=r(132),o=i?i.prototype:void 0,u=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(e,t,r){"use strict";t.__esModule=!0;var i=s(r(18)),n=(s(r(134)),function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0)));function s(e){return e&&e.__esModule?e:{default:e}}var a={ReferencedIdentifier:function(e,t){var r=e.node;r.name===t.oldName&&(r.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||e.skip()},"AssignmentExpression|Declaration":function(e,t){var r=e.getOuterBindingIdentifiers();for(var i in r)i===t.oldName&&(r[i].name=t.newName)}},o=function(){function e(t,r,n){(0,i.default)(this,e),this.newName=n,this.oldName=r,this.binding=t}return e.prototype.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath.isExportDeclaration()&&e.parentPath;if(t){var r=t.isExportDefaultDeclaration();r&&(e.isFunctionDeclaration()||e.isClassDeclaration())&&!e.node.id&&(e.node.id=e.scope.generateUidIdentifier("default"));var i=e.getOuterBindingIdentifiers(),s=[];for(var a in i){var o=a===this.oldName?this.newName:a,u=r?"default":a;s.push(n.exportSpecifier(n.identifier(o),n.identifier(u)))}if(s.length){var l=n.exportNamedDeclaration(null,s);e.isFunctionDeclaration()&&(l._blockHoist=3),t.insertAfter(l),t.replaceWith(e.node)}}},e.prototype.rename=function(e){var t=this.binding,r=this.oldName,i=this.newName,n=t.scope,s=t.path.find((function(e){return e.isDeclaration()||e.isFunctionExpression()}));s&&this.maybeConvertFromExportDeclaration(s),n.traverse(e||n.block,a,this),e||(n.removeOwnBinding(r),n.bindings[i]=t,this.binding.identifier.name=i),t.type},e}();t.default=o,e.exports=t.default},function(e,t,r){var i=r(125),n=r(52),s=r(83),a=r(56),o=Object.prototype,u=o.hasOwnProperty,l=i((function(e,t){e=Object(e);var r=-1,i=t.length,l=i>2?t[2]:void 0;for(l&&s(t[0],t[1],l)&&(i=1);++r0?arguments[0]:void 0)}},A={get:function(e){if(c(e)){var t=d(e);return!0===t?y(p(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(p(this,"WeakMap"),e,t)}},E=e.exports=r(128)("WeakMap",v,A,l,!0,!0);f&&h&&(u((i=l.getConstructor(v,"WeakMap")).prototype,A),o.NEED=!0,s(["delete","has","get","set"],(function(e){var t=E.prototype,r=t[e];a(t,e,(function(t,n){if(c(t)&&!m(t)){this._f||(this._f=new i);var s=this._f[e](t,n);return"set"==e?this:s}return r.call(this,t,n)}))})))},function(e,t,r){"use strict";var i=r(6),n=r(25),s=r(73),a=r(43),o=r(26),u=r(58),l=Object.assign;e.exports=!l||r(16)((function(){var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var r=o(e),l=arguments.length,c=1,p=s.f,f=a.f;l>c;)for(var h,d=u(arguments[c++]),m=p?n(d).concat(p(d)):n(d),y=m.length,v=0;y>v;)h=m[v++],i&&!f.call(d,h)||(r[h]=d[h]);return r}:l},function(e,t,r){"use strict";var i=r(85),n=r(27).getWeak,s=r(12),a=r(5),o=r(86),u=r(33),l=r(87),c=r(13),p=r(34),f=l(5),h=l(6),d=0,m=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},v=function(e,t){return f(e.a,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var r=v(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,s){var l=e((function(e,i){o(e,l,t,"_i"),e._t=t,e._i=d++,e._l=void 0,null!=i&&u(i,r,e[s],e)}));return i(l.prototype,{delete:function(e){if(!a(e))return!1;var r=n(e);return!0===r?m(p(this,t)).delete(e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=n(e);return!0===r?m(p(this,t)).has(e):r&&c(r,this._i)}}),l},def:function(e,t,r){var i=n(s(t),!0);return!0===i?m(e).set(t,r):i[e._i]=r,e},ufstore:m}},function(e,t,r){r(129)("WeakMap")},function(e,t,r){r(130)("WeakMap")},function(e,t,r){"use strict";t.__esModule=!0;var i=s(r(1));t.findParent=function(e){var t=this;for(;t=t.parentPath;)if(e(t))return t;return null},t.find=function(e){var t=this;do{if(e(t))return t}while(t=t.parentPath);return null},t.getFunctionParent=function(){return this.findParent((function(e){return e.isFunction()||e.isProgram()}))},t.getStatementParent=function(){var e=this;do{if(Array.isArray(e.container))return e}while(e=e.parentPath)},t.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){var s=void 0,a=n.VISITOR_KEYS[e.type],o=r,u=Array.isArray(o),l=0;for(o=u?o:(0,i.default)(o);;){var c;if(u){if(l>=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var p=c[t+1];if(s)if(p.listKey&&s.listKey===p.listKey&&p.keya.indexOf(p.parentKey)&&(s=p);else s=p}return s}))},t.getDeepestCommonAncestorFrom=function(e,t){var r=this;if(!e.length)return this;if(1===e.length)return e[0];var n=1/0,s=void 0,a=void 0,o=e.map((function(e){var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==r);return t.length=p.length)break;d=p[h++]}else{if((h=p.next()).done)break;d=h.value}if(d[l]!==c)break e}s=l,a=c}if(a)return t?t(a,s,o):a;throw new Error("Couldn't find intersection")},t.getAncestry=function(){var e=this,t=[];do{t.push(e)}while(e=e.parentPath);return t},t.isAncestor=function(e){return e.isDescendant(this)},t.isDescendant=function(e){return!!this.findParent((function(t){return t===e}))},t.inType=function(){var e=this;for(;e;){var t=arguments,r=Array.isArray(t),n=0;for(t=r?t:(0,i.default)(t);;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{if((n=t.next()).done)break;s=n.value}var a=s;if(e.node.type===a)return!0}e=e.parentPath}return!1},t.inShadow=function(e){var t=this.isFunction()?this:this.findParent((function(e){return e.isFunction()}));if(!t)return;if(t.isFunctionExpression()||t.isFunctionDeclaration()){var r=t.node.shadow;if(r&&(!e||!1!==r[e]))return t}else if(t.isArrowFunctionExpression())return t;return null};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));s(r(17));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=!0;var i,n=r(1),s=(i=n)&&i.__esModule?i:{default:i};t.getTypeAnnotation=function(){if(this.typeAnnotation)return this.typeAnnotation;var e=this._getTypeAnnotation()||o.anyTypeAnnotation();o.isTypeAnnotation(e)&&(e=e.typeAnnotation);return this.typeAnnotation=e},t._getTypeAnnotation=function(){var e=this.node;if(!e){if("init"===this.key&&this.parentPath.isVariableDeclarator()){var t=this.parentPath.parentPath,r=t.parentPath;return"left"===t.key&&r.isForInStatement()?o.stringTypeAnnotation():"left"===t.key&&r.isForOfStatement()?o.anyTypeAnnotation():o.voidTypeAnnotation()}return}if(e.typeAnnotation)return e.typeAnnotation;var i=a[e.type];if(i)return i.call(this,e);if((i=a[this.parentPath.type])&&i.validParent)return this.parentPath.getTypeAnnotation()},t.isBaseType=function(e,t){return l(e,this.getTypeAnnotation(),t)},t.couldBeBaseType=function(e){var t=this.getTypeAnnotation();if(o.isAnyTypeAnnotation(t))return!0;if(o.isUnionTypeAnnotation(t)){var r=t.types,i=Array.isArray(r),n=0;for(r=i?r:(0,s.default)(r);;){var a;if(i){if(n>=r.length)break;a=r[n++]}else{if((n=r.next()).done)break;a=n.value}var u=a;if(o.isAnyTypeAnnotation(u)||l(e,u,!0))return!0}return!1}return l(e,t,!0)},t.baseTypeStrictlyMatches=function(e){var t=this.getTypeAnnotation();if(e=e.getTypeAnnotation(),!o.isAnyTypeAnnotation(t)&&o.isFlowBaseAnnotation(t))return e.type===t.type},t.isGenericType=function(e){var t=this.getTypeAnnotation();return o.isGenericTypeAnnotation(t)&&o.isIdentifier(t.id,{name:e})};var a=u(r(318)),o=u(r(0));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function l(e,t,r){if("string"===e)return o.isStringTypeAnnotation(t);if("number"===e)return o.isNumberTypeAnnotation(t);if("boolean"===e)return o.isBooleanTypeAnnotation(t);if("any"===e)return o.isAnyTypeAnnotation(t);if("mixed"===e)return o.isMixedTypeAnnotation(t);if("empty"===e)return o.isEmptyTypeAnnotation(t);if("void"===e)return o.isVoidTypeAnnotation(t);if(r)return!1;throw new Error("Unknown base type "+e)}},function(e,t,r){"use strict";t.__esModule=!0,t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=t.Identifier=void 0;var i=r(319);Object.defineProperty(t,"Identifier",{enumerable:!0,get:function(){return(e=i,e&&e.__esModule?e:{default:e}).default;var e}}),t.VariableDeclarator=function(){return this.get("id").isIdentifier()?this.get("init").getTypeAnnotation():void 0},t.TypeCastExpression=s,t.NewExpression=function(e){if(this.get("callee").isIdentifier())return n.genericTypeAnnotation(e.callee)},t.TemplateLiteral=function(){return n.stringTypeAnnotation()},t.UnaryExpression=function(e){var t=e.operator;if("void"===t)return n.voidTypeAnnotation();if(n.NUMBER_UNARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.STRING_UNARY_OPERATORS.indexOf(t)>=0)return n.stringTypeAnnotation();if(n.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation()},t.BinaryExpression=function(e){var t=e.operator;if(n.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return n.numberTypeAnnotation();if(n.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return n.booleanTypeAnnotation();if("+"===t){var r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?n.numberTypeAnnotation():i.isBaseType("string")||r.isBaseType("string")?n.stringTypeAnnotation():n.unionTypeAnnotation([n.stringTypeAnnotation(),n.numberTypeAnnotation()])}},t.LogicalExpression=function(){return n.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},t.ConditionalExpression=function(){return n.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function(e){var t=e.operator;if("++"===t||"--"===t)return n.numberTypeAnnotation()},t.StringLiteral=function(){return n.stringTypeAnnotation()},t.NumericLiteral=function(){return n.numberTypeAnnotation()},t.BooleanLiteral=function(){return n.booleanTypeAnnotation()},t.NullLiteral=function(){return n.nullLiteralTypeAnnotation()},t.RegExpLiteral=function(){return n.genericTypeAnnotation(n.identifier("RegExp"))},t.ObjectExpression=function(){return n.genericTypeAnnotation(n.identifier("Object"))},t.ArrayExpression=a,t.RestElement=o,t.CallExpression=function(){return l(this.get("callee"))},t.TaggedTemplateExpression=function(){return l(this.get("tag"))};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function s(e){return e.typeAnnotation}function a(){return n.genericTypeAnnotation(n.identifier("Array"))}function o(){return a()}function u(){return n.genericTypeAnnotation(n.identifier("Function"))}function l(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?n.genericTypeAnnotation(n.identifier("AsyncIterator")):n.genericTypeAnnotation(n.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}s.validParent=!0,o.validParent=!0,t.FunctionExpression=u,t.ArrowFunctionExpression=u,t.FunctionDeclaration=u,t.ClassExpression=u,t.ClassDeclaration=u},function(e,t,r){"use strict";t.__esModule=!0;var i,n=r(1),s=(i=n)&&i.__esModule?i:{default:i};t.default=function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t){var r=e.scope.getBinding(t),i=[];e.typeAnnotation=a.unionTypeAnnotation(i);var n=[],l=o(r,e,n),c=function e(t,r){var i=function(e){var t=void 0;for(;t=e.parentPath;){if(t.isIfStatement()||t.isConditionalExpression())return"test"===e.key?void 0:t;e=t}}(t);if(!i)return;var n=[i.get("test")],s=[];do{var o=n.shift().resolve();if(o.isLogicalExpression()&&(n.push(o.get("left")),n.push(o.get("right"))),o.isBinaryExpression()){var l=u(r,o);l&&s.push(l)}}while(n.length);return s.length?{typeAnnotation:a.createUnionTypeAnnotation(s),ifStatement:i}:e(i,r)}(e,t);if(c){var p=o(r,c.ifStatement);l=l.filter((function(e){return p.indexOf(e)<0})),i.push(c.typeAnnotation)}if(l.length){var f=l=l.concat(n),h=Array.isArray(f),d=0;for(f=h?f:(0,s.default)(f);;){var m;if(h){if(d>=f.length)break;m=f[d++]}else{if((d=f.next()).done)break;m=d.value}var y=m;i.push(y.getTypeAnnotation())}}if(i.length)return a.createUnionTypeAnnotation(i)}(this,e.name):"undefined"===e.name?a.voidTypeAnnotation():"NaN"===e.name||"Infinity"===e.name?a.numberTypeAnnotation():void e.name}};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function o(e,t,r){var i=e.constantViolations.slice();return i.unshift(e.path),i.filter((function(e){var i=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"function"===i&&r.push(e),"before"===i}))}function u(e,t){var r=t.node.operator,i=t.get("right").resolve(),n=t.get("left").resolve(),s=void 0;if(n.isIdentifier({name:e})?s=i:i.isIdentifier({name:e})&&(s=n),s)return"==="===r?s.getTypeAnnotation():a.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(r)>=0?a.numberTypeAnnotation():void 0;if("==="===r){var o=void 0,u=void 0;if(n.isUnaryExpression({operator:"typeof"})?(o=n,u=i):i.isUnaryExpression({operator:"typeof"})&&(o=i,u=n),u||o)if((u=u.resolve()).isLiteral())if("string"==typeof u.node.value&&o.get("argument").isIdentifier({name:e}))return a.createTypeAnnotationBasedOnTypeof(u.node.value)}}e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var i=l(r(1));t.replaceWithMultiple=function(e){this.resync(),e=this._verifyNodeList(e),u.inheritLeadingComments(e[0],this.node),u.inheritTrailingComments(e[e.length-1],this.node),this.node=this.container[this.key]=null,this.insertAfter(e),this.node?this.requeue():this.remove()},t.replaceWithSourceString=function(e){this.resync();try{e="("+e+")",e=(0,o.parse)(e)}catch(r){var t=r.loc;throw t&&(r.message+=" - make sure this is an expression.",r.message+="\n"+(0,n.default)(e,t.line,t.column+1)),r}return e=e.program.body[0].expression,s.default.removeProperties(e),this.replaceWith(e)},t.replaceWith=function(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");e instanceof a.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;if(this.isProgram()&&!u.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()`");this.isNodeType("Statement")&&u.isExpression(e)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(e)||this.parentPath.isExportDefaultDeclaration()||(e=u.expressionStatement(e)));if(this.isNodeType("Expression")&&u.isStatement(e)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e))return this.replaceExpressionWithStatements([e]);var t=this.node;t&&(u.inheritsComments(e,t),u.removeComments(t));this._replaceWith(e),this.type=e.type,this.setScope(),this.requeue()},t._replaceWith=function(e){if(!this.container)throw new ReferenceError("Container is falsy");this.inList?u.validate(this.parent,this.key,[e]):u.validate(this.parent,this.key,e);this.debug((function(){return"Replace with "+(e&&e.type)})),this.node=this.container[this.key]=e},t.replaceExpressionWithStatements=function(e){this.resync();var t=u.toSequenceExpression(e,this.scope);if(u.isSequenceExpression(t)){var r=t.expressions;r.length>=2&&this.parentPath.isExpressionStatement()&&this._maybePopFromStatements(r),1===r.length?this.replaceWith(r[0]):this.replaceWith(t)}else{if(!t){var n=u.functionExpression(null,[],u.blockStatement(e));n.shadow=!0,this.replaceWith(u.callExpression(n,[])),this.traverse(c);var s=this.get("callee").getCompletionRecords(),a=Array.isArray(s),o=0;for(s=a?s:(0,i.default)(s);;){var l;if(a){if(o>=s.length)break;l=s[o++]}else{if((o=s.next()).done)break;l=o.value}var p=l;if(p.isExpressionStatement()){var f=p.findParent((function(e){return e.isLoop()}));if(f){var h=f.getData("expressionReplacementReturnUid");if(h)h=u.identifier(h.name);else{var d=this.get("callee");h=d.scope.generateDeclaredUidIdentifier("ret"),d.get("body").pushContainer("body",u.returnStatement(h)),f.setData("expressionReplacementReturnUid",h)}p.get("expression").replaceWith(u.assignmentExpression("=",h,p.node.expression))}else p.replaceWith(u.returnStatement(p.node.expression))}}return this.node}this.replaceWith(t)}},t.replaceInline=function(e){return this.resync(),Array.isArray(e)?Array.isArray(this.container)?(e=this._verifyNodeList(e),this._containerInsertAfter(e),this.remove()):this.replaceWithMultiple(e):this.replaceWith(e)};var n=l(r(321)),s=l(r(22)),a=l(r(17)),o=r(90),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function l(e){return e&&e.__esModule?e:{default:e}}var c={Function:function(e){e.skip()},VariableDeclaration:function(e){if("var"===e.node.kind){var t=e.getBindingIdentifiers();for(var r in t)e.scope.push({id:t[r]});var n=[],s=e.node.declarations,a=Array.isArray(s),o=0;for(s=a?s:(0,i.default)(s);;){var l;if(a){if(o>=s.length)break;l=s[o++]}else{if((o=s.next()).done)break;l=o.value}var c=l;c.init&&n.push(u.expressionStatement(u.assignmentExpression("=",c.id,c.init)))}e.replaceWithMultiple(n)}}}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r=Math.max(r,0);var n=i.highlightCode&&a.default.supportsColor||i.forceColor,s=a.default;i.forceColor&&(s=new a.default.constructor({enabled:!0}));var o=function(e,t){return n?e(t):t},c=u(s);n&&(e=h(c,e));var p=i.linesAbove||2,f=i.linesBelow||3,d=e.split(l),m=Math.max(t-(p+1),0),y=Math.min(d.length,t+f);t||r||(m=0,y=d.length);var v=String(y).length,A=d.slice(m,y).map((function(e,i){var n=m+1+i,s=" "+(" "+n).slice(-v)+" | ";if(n===t){var a="";if(r){var u=e.slice(0,r-1).replace(/[^\t]/g," ");a=["\n ",o(c.gutter,s.replace(/\d/g," ")),u,o(c.marker,"^")].join("")}return[o(c.marker,">"),o(c.gutter,s),e,a].join("")}return" "+o(c.gutter,s)+e})).join("\n");return n?s.reset(A):A};var i=r(322),n=o(i),s=o(r(102)),a=o(r(323));function o(e){return e&&e.__esModule?e:{default:e}}function u(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold,gutter:e.grey,marker:e.red.bold}}var l=/\r\n|[\n\r\u2028\u2029]/,c=/^[a-z][\w-]*$/i,p=/^[()\[\]{}]$/;function f(e){var t=e.slice(-2),r=t[0],n=t[1],a=(0,i.matchToToken)(e);if("name"===a.type){if(s.default.keyword.isReservedWordES6(a.value))return"keyword";if(c.test(a.value)&&("<"===n[r-1]||"!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,r){"use strict";var i=r(324),n=r(325),s=r(326),a=r(327),o=r(328),u=Object.defineProperties,l="win32"===process.platform&&!/^xterm/i.test(process.env.TERM);function c(e){this.enabled=e&&void 0!==e.enabled?e.enabled:o}l&&(n.blue.open="");var p,f=(p={},Object.keys(n).forEach((function(e){n[e].closeRe=new RegExp(i(n[e].close),"g"),p[e]={get:function(){return d.call(this,this._styles.concat(e))}}})),p),h=u((function(){}),f);function d(e){var t=function(){return m.apply(t,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=h,t}function m(){var e=arguments,t=e.length,r=0!==t&&String(arguments[0]);if(t>1)for(var i=1;i=h.length)break;y=h[m++]}else{if((m=h.next()).done)break;y=m.value}var v=y;if(!e)break;l+=v.value.cooked;var A=f[p++];A&&(l+=String(c(A)))}if(!e)return;return l}if(t.isConditionalExpression()){var E=c(t.get("test"));if(!e)return;return c(E?t.get("consequent"):t.get("alternate"))}if(t.isExpressionWrapper())return c(t.get("expression"));if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:r})){var D=t.get("property"),g=t.get("object");if(g.isLiteral()&&D.isIdentifier()){var x=g.node.value,b=void 0===x?"undefined":(0,i.default)(x);if("number"===b||"string"===b)return x[D.node.name]}}if(t.isReferencedIdentifier()){var C=t.scope.getBinding(r.name);if(C&&C.constantViolations.length>0)return a(C.path);if(C&&t.node.start=B.length)break;k=B[_++]}else{if((_=B.next()).done)break;k=_.value}var N=k;if(!(N=N.evaluate()).confident)return a(N);P.push(N.value)}return P}if(t.isObjectExpression()){var O={},I=t.get("properties"),L=Array.isArray(I),R=0;for(I=L?I:(0,n.default)(I);;){var M;if(L){if(R>=I.length)break;M=I[R++]}else{if((R=I.next()).done)break;M=R.value}var j=M;if(j.isObjectMethod()||j.isSpreadProperty())return a(j);var V=j.get("key"),G=V;if(j.node.computed){if(!(G=G.evaluate()).confident)return a(V);G=G.value}else G=G.isIdentifier()?G.node.name:G.node.value;var U=j.get("value"),K=U.evaluate();if(!K.confident)return a(U);K=K.value,O[G]=K}return O}if(t.isLogicalExpression()){var Y=e,q=c(t.get("left")),W=e;e=Y;var H=c(t.get("right")),J=e;switch(e=W&&J,r.operator){case"||":if(q&&W)return e=!0,q;if(!e)return;return q||H;case"&&":if((!q&&W||!H&&J)&&(e=!0),!e)return;return q&&H}}if(t.isBinaryExpression()){var X=c(t.get("left"));if(!e)return;var $=c(t.get("right"));if(!e)return;switch(r.operator){case"-":return X-$;case"+":return X+$;case"/":return X/$;case"*":return X*$;case"%":return X%$;case"**":return Math.pow(X,$);case"<":return X<$;case">":return X>$;case"<=":return X<=$;case">=":return X>=$;case"==":return X==$;case"!=":return X!=$;case"===":return X===$;case"!==":return X!==$;case"|":return X|$;case"&":return X&$;case"^":return X^$;case"<<":return X<<$;case">>":return X>>$;case">>>":return X>>>$}}if(t.isCallExpression()){var z=t.get("callee"),Q=void 0,Z=void 0;if(z.isIdentifier()&&!t.scope.getBinding(z.node.name,!0)&&o.indexOf(z.node.name)>=0&&(Z=global[r.callee.name]),z.isMemberExpression()){var ee=z.get("object"),te=z.get("property");if(ee.isIdentifier()&&te.isIdentifier()&&o.indexOf(ee.node.name)>=0&&u.indexOf(te.node.name)<0&&(Q=global[ee.node.name],Z=Q[te.node.name]),ee.isLiteral()&&te.isIdentifier()){var re=(0,i.default)(ee.node.value);"string"!==re&&"number"!==re||(Q=ee.node.value,Z=Q[te.node.name])}}if(Z){var ie=t.get("arguments").map(c);if(!e)return;return Z.apply(Q,ie)}}a(t)}(t);return e&&(p.resolved=!0,p.value=f),f}};var o=["String","Number","Math"],u=["random"]},function(e,t,r){"use strict";t.__esModule=!0,t.toComputedKey=function(){var e=this.node,t=void 0;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}e.computed||i.isIdentifier(t)&&(t=i.stringLiteral(t.name));return t},t.ensureBlock=function(){return i.ensureBlock(this.node)},t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.ensureBlock();var e=this.node;e.expression=!1,e.type="FunctionExpression",e.shadow=e.shadow||!0};var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0))},function(e,t,r){"use strict";t.__esModule=!0,t.is=void 0;var i=a(r(1));t.matchesPattern=function(e,t){if(!this.isMemberExpression())return!1;var r=e.split("."),i=[this.node],n=0;function a(e){var t=r[n];return"*"===t||e===t}for(;i.length;){var o=i.shift();if(t&&n===r.length)return!0;if(s.isIdentifier(o)){if(!a(o.name))return!1}else if(s.isLiteral(o)){if(!a(o.value))return!1}else{if(s.isMemberExpression(o)){if(o.computed&&!s.isLiteral(o.property))return!1;i.unshift(o.property),i.unshift(o.object);continue}if(!s.isThisExpression(o))return!1;if(!a("this"))return!1}if(++n>r.length)return!1}return n===r.length},t.has=o,t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t},t.isNodeType=function(e){return s.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return s.isBlockStatement(e);if(this.isBlockStatement())return s.isExpression(e);return!1},t.isCompletionRecord=function(e){var t=this,r=!0;do{var i=t.container;if(t.isFunction()&&!r)return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!s.isBlockStatement(this.container)&&(0,n.default)(s.STATEMENT_OR_BLOCK_KEYS,this.key)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier())return!1;var r=this.scope.getBinding(this.node.name);if(!r||"module"!==r.kind)return!1;var i=r.path,n=i.parentPath;if(!n.isImportDeclaration())return!1;if(n.node.source.value!==e)return!1;if(!t)return!0;if(i.isImportDefaultSpecifier()&&"default"===t)return!0;if(i.isImportNamespaceSpecifier()&&"*"===t)return!0;if(i.isImportSpecifier()&&i.node.imported.name===t)return!0;return!1},t.getSource=function(){var e=this.node;return e.end?this.hub.file.code.slice(e.start,e.end):""},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function(e){var t=e.scope.getFunctionParent(),r=this.scope.getFunctionParent();if(t.node!==r.node){var i=this._guessExecutionStatusRelativeToDifferentFunctions(t);if(i)return i;e=t.path}var n=e.getAncestry();if(n.indexOf(this)>=0)return"after";var a=this.getAncestry(),o=void 0,u=void 0,l=void 0;for(l=0;l=0){o=c;break}}if(!o)return"before";var p=n[u-1],f=a[l-1];if(!p||!f)return"before";if(p.listKey&&p.container===f.container)return p.key>f.key?"before":"after";var h=s.VISITOR_KEYS[p.type].indexOf(p.key),d=s.VISITOR_KEYS[f.type].indexOf(f.key);return h>d?"before":"after"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){var t=e.path;if(!t.isFunctionDeclaration())return;var r=t.scope.getBinding(t.node.id.name);if(!r.references)return"before";var n=r.referencePaths,s=n,a=Array.isArray(s),o=0;for(s=a?s:(0,i.default)(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var l=u;if("callee"!==l.key||!l.parentPath.isCallExpression())return}var c=void 0,p=n,f=Array.isArray(p),h=0;for(p=f?p:(0,i.default)(p);;){var d;if(f){if(h>=p.length)break;d=p[h++]}else{if((h=p.next()).done)break;d=h.value}var m=d;if(!!!m.find((function(e){return e.node===t.node}))){var y=this._guessExecutionStatusRelativeTo(m);if(c){if(c!==y)return}else c=y}}return c},t.resolve=function(e,t){return this._resolve(e,t)||this},t._resolve=function(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()){var r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){var n=r.path.resolve(e,t);if(this.find((function(e){return e.node===n.node})))return;return n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var a=this.toComputedKey();if(!s.isLiteral(a))return;var o=a.value,u=this.get("object").resolve(e,t);if(u.isObjectExpression()){var l=u.get("properties"),c=Array.isArray(l),p=0;for(l=c?l:(0,i.default)(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;if(h.isProperty()){var d=h.get("key"),m=h.isnt("computed")&&d.isIdentifier({name:o});if(m=m||d.isLiteral({value:o}))return h.get("value").resolve(e,t)}}}else if(u.isArrayExpression()&&!isNaN(+o)){var y=u.get("elements")[o];if(y)return y.resolve(e,t)}}}};var n=a(r(88)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}t.is=o},function(e,t,r){"use strict";t.__esModule=!0;var i=s(r(1));t.call=function(e){var t=this.opts;if(this.debug((function(){return 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(e){if(!e)return!1;var t=e,r=Array.isArray(t),n=0;for(t=r?t:(0,i.default)(t);;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{if((n=t.next()).done)break;s=n.value}var a=s;if(a){var o=this.node;if(!o)return!0;if(a.call(this.state,this,this.state))throw new Error("Unexpected return value from visitor method "+a);if(this.node!==o)return!0;if(this.shouldStop||this.shouldSkip||this.removed)return!0}}return!1},t.isBlacklisted=function(){var e=this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1},t.visit=function(){if(!this.node)return!1;if(this.isBlacklisted())return!1;if(this.opts.shouldSkip&&this.opts.shouldSkip(this))return!1;if(this.call("enter")||this.shouldSkip)return this.debug((function(){return"Skip..."})),this.shouldStop;return this.debug((function(){return"Recursing into..."})),n.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){this.skipKeys[e]=!0},t.stop=function(){this.shouldStop=!0,this.shouldSkip=!0},t.setScope=function(){if(this.opts&&this.opts.noScope)return;var e=this.context&&this.context.scope;if(!e)for(var t=this.parentPath;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(e){this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.skipKeys={},e&&(this.context=e,this.state=e.state,this.opts=e.opts);return this.setScope(),this},t.resync=function(){if(this.removed)return;this._resyncParent(),this._resyncList(),this._resyncKey()},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this;if(e.removed)return;var t=this.contexts,r=t,n=Array.isArray(r),s=0;for(r=n?r:(0,i.default)(r);;){var a;if(n){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}var o=a;o.maybeQueue(e)}},t._getQueueContexts=function(){var e=this,t=this.contexts;for(;!t.length;)e=e.parentPath,t=e.contexts;return t};var n=s(r(22));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=!0;var i,n=r(1),s=(i=n)&&i.__esModule?i:{default:i};t.remove=function(){if(this._assertUnremoved(),this.resync(),this._callRemovalHooks())return void this._markRemoved();this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()},t._callRemovalHooks=function(){var e=a.hooks,t=Array.isArray(e),r=0;for(e=t?e:(0,s.default)(e);;){var i;if(t){if(r>=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}if(i(this,this.parentPath))return!0}},t._remove=function(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)},t._markRemoved=function(){this.shouldSkip=!0,this.removed=!0,this.node=null},t._assertUnremoved=function(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")};var a=r(334)},function(e,t,r){"use strict";t.__esModule=!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}]},function(e,t,r){"use strict";t.__esModule=!0;var i=l(r(28)),n=l(r(1));t.insertBefore=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertBefore(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key)this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertBefore(e);if(!this.isStatementOrBlock())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?");this.node&&e.push(this.node),this._replaceWith(u.blockStatement(e))}return[this]},t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);for(var r=[],i=0;i=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}var d=h;d.setScope(),d.debug((function(){return"Inserted."}));var m=l,y=Array.isArray(m),v=0;for(m=y?m:(0,n.default)(m);;){var A;if(y){if(v>=m.length)break;A=m[v++]}else{if((v=m.next()).done)break;A=v.value}A.maybeQueue(d,!0)}}return r},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t._maybePopFromStatements=function(e){var t=e[e.length-1];(u.isIdentifier(t)||u.isExpressionStatement(t)&&u.isIdentifier(t.expression))&&!this.isCompletionRecord()&&e.pop()},t.insertAfter=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertAfter(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key){if(this.node){var t=this.scope.generateDeclaredUidIdentifier();e.unshift(u.expressionStatement(u.assignmentExpression("=",t,this.node))),e.push(u.expressionStatement(t))}this.replaceExpressionWithStatements(e)}else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertAfter(e);if(!this.isStatementOrBlock())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?");this.node&&e.unshift(this.node),this._replaceWith(u.blockStatement(e))}return[this]},t.updateSiblingKeys=function(e,t){if(!this.parent)return;for(var r=s.path.get(this.parent),i=0;i=e&&(n.key+=t)}},t._verifyNodeList=function(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:this.scope,t=new a.default(this,e);return t.run()};var s=r(57),a=l(r(336)),o=l(r(17)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(0));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.__esModule=!0;var i=o(r(1)),n=o(r(18)),s=r(0),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(s);function o(e){return e&&e.__esModule?e:{default:e}}var u={ReferencedIdentifier:function(e,t){if(!e.isJSXIdentifier()||!s.react.isCompatTag(e.node.name)||e.parentPath.isJSXMemberExpression()){if("this"===e.node.name){var r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}var i=e.scope.getBinding(e.node.name);i&&i===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=i)}}},l=function(){function e(t,r){(0,n.default)(this,e),this.breakOnScopePaths=[],this.bindings={},this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}return e.prototype.isCompatibleScope=function(e){for(var t in this.bindings){var r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0},e.prototype.getCompatibleScopes=function(){var 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)},e.prototype.getAttachmentPath=function(){var e=this._getAttachmentPath();if(e){var t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(var r in this.bindings)if(t.hasOwnBinding(r)){var n=this.bindings[r];if("param"!==n.kind&&this.getAttachmentParentForPath(n.path).key>e.key){this.attachAfter=!0,e=n.path;var s=n.constantViolations,a=Array.isArray(s),o=0;for(s=a?s:(0,i.default)(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var l=u;this.getAttachmentParentForPath(l).key>e.key&&(e=l)}}}return e.parentPath.isExportDeclaration()&&(e=e.parentPath),e}},e.prototype._getAttachmentPath=function(){var e=this.scopes.pop();if(e){if(e.path.isFunction()){if(this.hasOwnParamBindings(e)){if(this.scope===e)return;return e.path.get("body").get("body")[0]}return this.getNextScopeAttachmentParent()}return e.path.isProgram()?this.getNextScopeAttachmentParent():void 0}},e.prototype.getNextScopeAttachmentParent=function(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)},e.prototype.getAttachmentParentForPath=function(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()||e.isVariableDeclarator()&&null!==e.parentPath.node&&e.parentPath.node.declarations.length>1)return e}while(e=e.parentPath)},e.prototype.hasOwnParamBindings=function(e){for(var t in this.bindings)if(e.hasOwnBinding(t)){var r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1},e.prototype.run=function(){var e=this.path.node;if(!e._hoisted){e._hoisted=!0,this.path.traverse(u,this),this.getCompatibleScopes();var t=this.getAttachmentPath();if(t&&t.getFunctionParent()!==this.path.getFunctionParent()){var r=t.scope.generateUidIdentifier("ref"),i=a.variableDeclarator(r,this.path.node);t[this.attachAfter?"insertAfter":"insertBefore"]([t.isVariableDeclarator()?i:a.variableDeclaration("var",[i])]);var n=this.path.parentPath;n.isJSXElement()&&this.path.container===n.node.children&&(r=a.JSXExpressionContainer(r)),this.path.replaceWith(r)}}},e}();t.default=l,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var i=o(r(75)),n=o(r(1));t.getStatementParent=function(){var 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.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left")},t.getCompletionRecords=function(){var e=[],t=function(t){t&&(e=e.concat(t.getCompletionRecords()))};if(this.isIfStatement())t(this.get("consequent")),t(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())t(this.get("body"));else if(this.isProgram()||this.isBlockStatement())t(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(t(this.get("block")),t(this.get("handler")),t(this.get("finalizer"))):e.push(this)}return e},t.getSibling=function(e){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.getPrevSibling=function(){return this.getSibling(this.key-1)},t.getNextSibling=function(){return this.getSibling(this.key+1)},t.getAllNextSiblings=function(){var e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},t.getAllPrevSiblings=function(){var e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},t.get=function(e,t){!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},t._getKey=function(e,t){var r=this,i=this.node,n=i[e];return Array.isArray(n)?n.map((function(a,o){return s.default.get({listKey:e,parentPath:r,parent:i,container:n,key:o}).setContext(t)})):s.default.get({parentPath:this,parent:i,container:i,key:e}).setContext(t)},t._getPattern=function(e,t){var r=this,i=e,s=Array.isArray(i),a=0;for(i=s?i:(0,n.default)(i);;){var o;if(s){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var u=o;r="."===u?r.parentPath:Array.isArray(r)?r[u]:r.get(u,t)}return r},t.getBindingIdentifiers=function(e){return a.getBindingIdentifiers(this.node,e)},t.getOuterBindingIdentifiers=function(e){return a.getOuterBindingIdentifiers(this.node,e)},t.getBindingIdentifierPaths=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this,n=[].concat(r),s=(0,i.default)(null);for(;n.length;){var o=n.shift();if(o&&o.node){var u=a.getBindingIdentifiers.keys[o.node.type];if(o.isIdentifier())if(e){var l=s[o.node.name]=s[o.node.name]||[];l.push(o)}else s[o.node.name]=o;else if(o.isExportDeclaration()){var c=o.get("declaration");c.isDeclaration()&&n.push(c)}else{if(t){if(o.isFunctionDeclaration()){n.push(o.get("id"));continue}if(o.isFunctionExpression())continue}if(u)for(var p=0;p=n.length)break;u=n[o++]}else{if((o=n.next()).done)break;u=o.value}if(e[u])return!0}return!1},e.prototype.create=function(e,t,r,i){return s.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:i})},e.prototype.maybeQueue=function(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))},e.prototype.visitMultiple=function(e,t,r){if(0===e.length)return!1;for(var i=[],n=0;n=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var u=o;if(u.resync(),0!==u.contexts.length&&u.contexts[u.contexts.length-1]===this||u.pushContext(this),null!==u.key&&!(t.indexOf(u.node)>=0)){if(t.push(u.node),u.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}}var l=e,c=Array.isArray(l),p=0;for(l=c?l:(0,i.default)(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}f.popContext()}return this.queue=null,r},e.prototype.visit=function(e,t){var r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))},e}();t.default=u,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var i=p(r(28)),n=p(r(44)),s=p(r(1));t.explode=f,t.verify=h,t.merge=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2],i={},n=0;n=o.length)break;f=o[p++]}else{if((p=o.next()).done)break;f=p.value}e[f]=i}}}h(e),delete e.__esModule,function(e){for(var t in e)if(!A(t)){var r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),y(e);var d=(0,n.default)(e),m=Array.isArray(d),D=0;for(d=m?d:(0,s.default)(d);;){var g;if(m){if(D>=d.length)break;g=d[D++]}else{if((D=d.next()).done)break;g=D.value}var x=g;if(!A(x)){var b=a[x];if(b){var C=e[x];for(var F in C)C[F]=v(b,C[F]);if(delete e[x],b.types){var S=b.types,T=Array.isArray(S),P=0;for(S=T?S:(0,s.default)(S);;){var B;if(T){if(P>=S.length)break;B=S[P++]}else{if((P=S.next()).done)break;B=P.value}var w=B;e[w]?E(e[w],C):e[w]=C}}else E(e,C)}}}for(var _ in e)if(!A(_)){var k=e[_],N=u.FLIPPED_ALIAS_KEYS[_],O=u.DEPRECATED_KEYS[_];if(O&&(console.trace("Visitor defined for "+_+" but it has been renamed to "+O),N=[O]),N){delete e[_];var I=N,L=Array.isArray(I),R=0;for(I=L?I:(0,s.default)(I);;){var M;if(L){if(R>=I.length)break;M=I[R++]}else{if((R=I.next()).done)break;M=R.value}var j=M,V=e[j];V?E(V,k):e[j]=(0,l.default)(k)}}}for(var G in e)A(G)||y(e[G]);return e}function h(e){if(!e._verified){if("function"==typeof e)throw new Error(o.get("traverseVerifyRootFunction"));for(var t in e)if("enter"!==t&&"exit"!==t||d(t,e[t]),!A(t)){if(u.TYPES.indexOf(t)<0)throw new Error(o.get("traverseVerifyNodeType",t));var r=e[t];if("object"===(void 0===r?"undefined":(0,i.default)(r)))for(var n in r){if("enter"!==n&&"exit"!==n)throw new Error(o.get("traverseVerifyVisitorProperty",t,n));d(t+"."+n,r[n])}}e._verified=!0}}function d(e,t){var r=[].concat(t),n=Array.isArray(r),a=0;for(r=n?r:(0,s.default)(r);;){var o;if(n){if(a>=r.length)break;o=r[a++]}else{if((a=r.next()).done)break;o=a.value}var u=o;if("function"!=typeof u)throw new TypeError("Non-function found defined in "+e+" with type "+(void 0===u?"undefined":(0,i.default)(u)))}}function m(e,t,r){var i={},n=function(n){var s=e[n];if(!Array.isArray(s))return"continue";s=s.map((function(e){var i=e;return t&&(i=function(r){return e.call(t,r,t)}),r&&(i=r(t.key,n,i)),i})),i[n]=s};for(var s in e)n(s);return i}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function v(e,t){var r=function(r){if(e.checkPath(r))return t.apply(this,arguments)};return r.toString=function(){return t.toString()},r}function A(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("blacklist"===e||"noScope"===e||"skipKeys"===e))}function E(e,t){for(var r in t)e[r]=[].concat(e[r]||[],t[r])}},function(e,t,r){var i=r(342),n=r(344).StringDecoder;e.exports=function(e,t,r){var s=new n,a="",o=r&&r.maxLength,u=!r||!1!==r.trailing;"function"==typeof e&&(t=e,e=null);e||(e=/\r?\n/);function l(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}void 0!==r&&e.queue(r)}else e.queue(r)}function c(t,r){var i=((null!=a?a:"")+r).split(e);if(a=i.pop(),o&&a.length>o)return t.emit("error",new Error("maximum buffer reached"));for(var n=0;n=3&&(e.isFunctionDeclaration(t.node.body[1])&&t.node.body[1].id&&(i=t.node.body[1].id.name),e.isReturnStatement(t.node.body[t.node.body.length-1])&&(n=t.node.body[t.node.body.length-1].argument.name));if(i===n&&i){var u=t.node.body[1],l=function(t){if(e.isExpressionStatement(t)&&e.isCallExpression(t.expression)){var r=t.expression.arguments;if(2==r.length)return r[1].name}}(t.node.body[0]);if(l){var c=[],p=[];if(u.body.body.forEach(t=>{e.isVariableDeclaration(t)?c.push(t):e.isExpressionStatement(t)&&p.push(t)}),c.length>0||p.length>0){var f=(d=l,((m=c.filter(t=>e.isLogicalExpression(t.declarations[0].init)&&e.isCallExpression(t.declarations[0].init.left)&&t.declarations[0].init.left.callee.object.name===d)).length>0?m[0].declarations[0].init.left:null)||function(t,r){var i=t.filter(t=>e.isAssignmentExpression(t.expression)&&e.isLogicalExpression(t.expression.right)&&e.isCallExpression(t.expression.right.left)&&t.expression.right.left.callee.object.name===r);return i.length>0?i[0].expression.right.left:null}(p,l));if(f){var h=f.callee.property;s=h.loc.start.column+1,a=h.loc.start.line,o=!0}}}}var d,m;o||r.logger.info("[WARN] TypeScript-extended class has a super() call in an unsupported format. ctor function name: "+i);return{line:a,column:s}}(a,r),y=p(t,1,r);e.isCallExpression(y)&&(f=y.node.arguments[0].name);var v,A,E=function(e,t,r){var i=p(e,r).node.body;for(var n in i){var s=i[n];if(u(s))return o(s.expression).arguments[0].elements}return null}(t,0,3),D=!1,g=[];E||(E=function(e,t,r){var i=p(e,r),n=i.getSibling(i.key+1).node;if(n&&u(n))return o(n.expression).arguments[0].elements;return null}(t,0,7));if(E)for(var x in E){var b=E[x];if(e.isCallExpression(b)){if(b.callee.name===r.interfacesDecoratorName){b.callee.skipMeOnVisit=!0;var C=b.arguments[0].elements;for(var x in C){var F=l(C[x]);g.push(F)}}b.callee.name===r.extendDecoratorName&&(b.callee.skipMeOnVisit=!0,D=!0,v=void 0===r.extendDecoratorName?"JavaProxy":r.extendDecoratorName,A=b.arguments[0].value)}}if(D)!function(e,t,r,i,n,s){t.logger&&t.logger.info("\t+in "+r+" anchor");var a=e,o=d(a,i,n,"",t.fullPathName,s);t.logger&&t.logger.info(o);m(a,t.fullPathName,o)}(A,r,v,n,s,g);else{var S;S=d("",n,s,{file:r.filePath,line:h.line,column:h.column,className:f},"",g),r.logger&&r.logger.info(S),i.push(S)}}(t,r))}function o(t){if(!t)return null;for(var r=t.right;e.isAssignmentExpression(r);)r=r.right;return r}function u(t){var r=o(t.expression);return e.isExpressionStatement(t)&&e.isAssignmentExpression(t.expression)&&r.callee&&"__decorate"===r.callee.name&&r.arguments&&e.isArrayExpression(r.arguments[0])}function l(t){var r="";return e.isMemberExpression(t)&&(r+=function t(r){var i="";e.isMemberExpression(r)&&(e.isMemberExpression(r.object)?(i+=t(r.object),i+=r.property.name+"."):(i+=r.object.name+".",i+=r.property.name+"."));return i}(t.object),r+=t.property.name),r}function c(t){for(var r=[],i=!1;void 0!==t;){if(!e.isMemberExpression(t)){i&&r.push(t.name);break}i=!0,r.push(t.property.name),t=t.object}return r}function p(e,t,r){if(!e)throw{message:"JSParser Error: No parent found for node in file: "+r.fullPathName,errCode:1};return 0===t?e:p(e.parentPath,--t)}function f(e){return!!e&&/^((\w+\.)+\w+)$/.test(e)}function h(e){return!(!e||""==e)&&/^(\w+)$/.test(e)}function d(e,t,r,i,n,s=""){return t+"*"+(i.file?i.file.replace(/[-\\/\\. ]/g,"_"):"")+"*"+(i.line?i.line:"")+"*"+(i.column?i.column:"")+"*"+(i.className?i.className:"")+"*"+r+"*"+e+"*"+n+"*"+s}function m(e,r,i){-1===s.indexOf(e)?(t.push(i),s.push(e)):(console.log("Warning: there already is an extend called "+e+"."),-1===r.indexOf("tns_modules")&&(console.log("Warning: The static binding generator will generate extend from:"+r+" implementation"),t.push(i),s.push(e)))}return a.getProxyExtendInfo=function(){var e=t.slice();return t=[],e},a.getCommonExtendInfo=function(){var e=[];for(var t in i)"*"!==i[t][0]&&e.push(i[t]);return i=[],e},a.getInterfaceInfo=function(){var e=n.slice();return n=[],e},{es5Visitor:a}}();e.exports=i}]);