!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.babel=t():e.babel=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}(function(e){for(var t in e)if(object.prototype.hasownproperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var r=t.slice(1),n=e[t[0]];return function(e,t,i){n.apply(this,[e,t,i].concat(r))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,r){"use strict";function n(e,t){return g(t)&&"string"==typeof t[0]?e.hasownproperty(t[0])?[e[t[0]]].concat(t.slice(1)):void 0:"string"==typeof t?e[t]:t}function i(e){var t=(e.presets||[]).map(function(e){var t=n(e,e);if(!t)throw new error('invalid preset specified in babel options: "'+e+'"');return g(t)&&"object"===h(t[0])&&t[0].hasownproperty("buildpreset")&&(t[0]=d({},t[0],{buildpreset:t[0].buildpreset})),t}),r=(e.plugins||[]).map(function(e){var t=n(b,e);if(!t)throw new error('invalid plugin specified in babel options: "'+e+'"');return t});return d({babelrc:!1},e,{presets:t,plugins:r})}function s(e,t){return y.transform(e,i(t))}function a(e,t,r){return y.transformfromast(e,t,i(r))}function o(e,t){b.hasownproperty(e)&&console.warn('a plugin named "'+e+'" is already registered, it will be overridden'),b[e]=t}function u(e){object.keys(e).foreach(function(t){return o(t,e[t])})}function l(e,t){e.hasownproperty(e)&&console.warn('a preset named "'+e+'" is already registered, it will be overridden'),e[e]=t}function c(e){object.keys(e).foreach(function(t){return l(t,e[t])})}function f(e){(0,v.runscripts)(s,e)}function p(){window.removeeventlistener("domcontentloaded",f)}object.defineproperty(t,"__esmodule",{value:!0}),t.version=t.buildexternalhelpers=t.availablepresets=t.availableplugins=void 0;var d=object.assign||function(e){for(var t=1;t=n.length)break;a=n[s++]}else{if(s=n.next(),s.done)break;a=s.value}if(e===a)return!0}}return!1}function o(e,t,r){if(e){var n=z.node_fields[e.type];if(n){var i=n[t];i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}}}function u(e,t){for(var r=(0,b.default)(t),n=r,i=array.isarray(n),s=0,n=i?n:(0,t.default)(n);;){var a;if(i){if(s>=n.length)break;a=n[s++]}else{if(s=n.next(),s.done)break;a=s.value}var o=a;if(e[o]!==t[o])return!1}return!0}function l(e,t,r){return e.object=z.memberexpression(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}function c(e,t){return e.object=z.memberexpression(t,e.object),e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=z.toblock(e[t],e)}function p(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e[r]);return t}function d(e){var t=p(e);return delete t.loc,t}function h(e){if(!e)return e;var t={};for(var r in e)if("_"!==r[0]){var n=e[r];n&&(n.type?n=z.clonedeep(n):array.isarray(n)&&(n=n.map(z.clonedeep))),t[r]=n}return t}function m(e,t){var r=e.split(".");return function(e){if(!z.ismemberexpression(e))return!1;for(var n=[e],i=0;n.length;){var s=n.shift();if(t&&i===r.length)return!0;if(z.isidentifier(s)){if(r[i]!==s.name)return!1}else{if(!z.isstringliteral(s)){if(z.ismemberexpression(s)){if(s.computed&&!z.isstringliteral(s.property))return!1;n.push(s.object),n.push(s.property);continue}return!1}if(r[i]!==s.value)return!1}if(++i>r.length)return!1}return!0}}function y(e){for(var t=z.comment_keys,r=array.isarray(t),n=0,t=r?t:(0,t.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}delete e[i]}return e}function v(e,t){return g(e,t),b(e,t),e(e,t),e}function g(e,t){x("trailingcomments",e,t)}function b(e,t){x("leadingcomments",e,t)}function e(e,t){x("innercomments",e,t)}function x(e,t,r){t&&r&&(t[e]=(0,k.default)([].concat(t[e],r[e]).filter(boolean)))}function a(e,t){if(!e||!t)return e;for(var r=z.inherit_keys.optional,n=array.isarray(r),i=0,r=n?r:(0,t.default)(r);;){var s;if(n){if(i>=r.length)break;s=r[i++]}else{if(i=r.next(),i.done)break;s=i.value}var a=s;null==e[a]&&(e[a]=t[a])}for(var o in t)"_"===o[0]&&(e[o]=t[o]);for(var u=z.inherit_keys.force,l=array.isarray(u),c=0,u=l?u:(0,t.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;e[p]=t[p]}return z.inheritscomments(e,t),e}function s(e){if(!_(e))throw new typeerror("not a valid node "+(e&&e.type))}function _(e){return!(!e||!h.visitor_keys[e.type])}function d(e,t,r){if(e){var n=z.visitor_keys[e.type];if(n){r=r||{},t(e,r);for(var i=n,s=array.isarray(i),a=0,i=s?i:(0,t.default)(i);;){var o;if(s){if(a>=i.length)break;o=i[a++]}else{if(a=i.next(),a.done)break;o=a.value}var u=o,l=e[u];if(array.isarray(l))for(var c=l,f=array.isarray(c),p=0,c=f?c:(0,t.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;d(h,t,r)}else d(l,t,r)}}}}function c(e,t){t=t||{};for(var r=t.preservecomments?z:ee,n=r,i=array.isarray(n),s=0,n=i?n:(0,t.default)(n);;){var a;if(i){if(s>=n.length)break;a=n[s++]}else{if(s=n.next(),s.done)break;a=s.value}var o=a;null!=e[o]&&(e[o]=void 0)}for(var u in e)"_"===u[0]&&null!=e[u]&&(e[u]=void 0);for(var l=(0,k.default)(e),c=l,f=array.isarray(c),p=0,c=f?c:(0,t.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}e[d]=null}}function w(e,t){return d(e,c,t),e}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 p=r(360),k=n(p),f=r(2),t=n(f),o=r(14),b=n(o),r=r(35),i=n(r),m=r(135);object.defineproperty(t,"statement_or_block_keys",{enumerable:!0,get:function(){return m.statement_or_block_keys}}),object.defineproperty(t,"flattenable_keys",{enumerable:!0,get:function(){return m.flattenable_keys}}),object.defineproperty(t,"for_init_keys",{enumerable:!0,get:function(){return m.for_init_keys}}),object.defineproperty(t,"comment_keys",{enumerable:!0,get:function(){return m.comment_keys}}),object.defineproperty(t,"logical_operators",{enumerable:!0,get:function(){return m.logical_operators}}),object.defineproperty(t,"update_operators",{enumerable:!0,get:function(){return m.update_operators}}),object.defineproperty(t,"boolean_number_binary_operators",{enumerable:!0,get:function(){return m.boolean_number_binary_operators}}),object.defineproperty(t,"equality_binary_operators",{enumerable:!0,get:function(){return m.equality_binary_operators}}),object.defineproperty(t,"comparison_binary_operators",{enumerable:!0,get:function(){return m.comparison_binary_operators}}),object.defineproperty(t,"boolean_binary_operators",{enumerable:!0,get:function(){return m.boolean_binary_operators}}),object.defineproperty(t,"number_binary_operators",{enumerable:!0,get:function(){return m.number_binary_operators}}),object.defineproperty(t,"binary_operators",{enumerable:!0,get:function(){return m.binary_operators}}),object.defineproperty(t,"boolean_unary_operators",{enumerable:!0,get:function(){return m.boolean_unary_operators}}),object.defineproperty(t,"number_unary_operators",{enumerable:!0,get:function(){return m.number_unary_operators}}),object.defineproperty(t,"string_unary_operators",{enumerable:!0,get:function(){return m.string_unary_operators}}),object.defineproperty(t,"unary_operators",{enumerable:!0,get:function(){return m.unary_operators}}),object.defineproperty(t,"inherit_keys",{enumerable:!0,get:function(){return m.inherit_keys}}),object.defineproperty(t,"block_scoped_symbol",{enumerable:!0,get:function(){return m.block_scoped_symbol}}),object.defineproperty(t,"not_local_binding",{enumerable:!0,get:function(){return m.not_local_binding}}),t.is=s,t.istype=a,t.validate=o,t.shallowequal=u,t.appendtomemberexpression=l,t.prependtomemberexpression=c,t.ensureblock=f,t.clone=p,t.clonewithoutloc=d,t.clonedeep=h,t.buildmatchmemberexpression=m,t.removecomments=y,t.inheritscomments=v,t.inherittrailingcomments=g,t.inheritleadingcomments=b,t.inheritinnercomments=e,t.inherits=a,t.assertnode=s,t.isnode=_,t.traversefast=d,t.removeproperties=c,t.removepropertiesdeep=w;var n=r(226);object.defineproperty(t,"getbindingidentifiers",{enumerable:!0,get:function(){return n.getbindingidentifiers}}),object.defineproperty(t,"getouterbindingidentifiers",{enumerable:!0,get:function(){return n.getouterbindingidentifiers}});var l=r(395);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 j=r(385);object.defineproperty(t,"tocomputedkey",{enumerable:!0,get:function(){return j.tocomputedkey}}),object.defineproperty(t,"tosequenceexpression",{enumerable:!0,get:function(){return j.tosequenceexpression}}),object.defineproperty(t,"tokeyalias",{enumerable:!0,get:function(){return j.tokeyalias}}),object.defineproperty(t,"toidentifier",{enumerable:!0,get:function(){return j.toidentifier}}),object.defineproperty(t,"tobindingidentifiername",{enumerable:!0,get:function(){return j.tobindingidentifiername}}),object.defineproperty(t,"tostatement",{enumerable:!0,get:function(){return j.tostatement}}),object.defineproperty(t,"toexpression",{enumerable:!0,get:function(){return j.toexpression}}),object.defineproperty(t,"toblock",{enumerable:!0,get:function(){return j.toblock}}),object.defineproperty(t,"valuetonode",{enumerable:!0,get:function(){return j.valuetonode}});var u=r(393);object.defineproperty(t,"createuniontypeannotation",{enumerable:!0,get:function(){return u.createuniontypeannotation}}),object.defineproperty(t,"removetypeduplicates",{enumerable:!0,get:function(){return u.removetypeduplicates}}),object.defineproperty(t,"createtypeannotationbasedontypeof",{enumerable:!0,get:function(){return u.createtypeannotationbasedontypeof}});var v=r(624),g=n(v),w=r(109),y=n(w),q=r(600),k=n(q);r(390);var h=r(26),j=r(394),x=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}(j),z=t;t.visitor_keys=h.visitor_keys,t.alias_keys=h.alias_keys,t.node_fields=h.node_fields,t.builder_keys=h.builder_keys,t.deprecated_keys=h.deprecated_keys,t.react=x;for(var $ in z.visitor_keys)i($);z.flipped_alias_keys={},(0,b.default)(z.alias_keys).foreach(function(e){z.alias_keys[e].foreach(function(t){(z.flipped_alias_keys[t]=z.flipped_alias_keys[t]||[]).push(e)})}),(0,b.default)(z.flipped_alias_keys).foreach(function(e){z[e.touppercase()+"_types"]=z.flipped_alias_keys[e],i(e)});t.types=(0,b.default)(z.visitor_keys).concat((0,b.default)(z.flipped_alias_keys)).concat((0,b.default)(z.deprecated_keys));(0,b.default)(z.builder_keys).foreach(function(e){function t(){if(arguments.length>r.length)throw new error("t."+e+": too many arguments passed. received "+arguments.length+" but can receive no more than "+r.length);var t={};t.type=e;for(var n=0,i=r,s=array.isarray(i),a=0,i=s?i:(0,t.default)(i);;){var u;if(s){if(a>=i.length)break;u=i[a++]}else{if(a=i.next(),a.done)break;u=a.value}var l=u,c=z.node_fields[e][l],f=arguments[n++];void 0===f&&(f=(0,y.default)(c.default)),t[l]=f}for(var p in t)o(t,p,t[p]);return t}var r=z.builder_keys[e];z[e]=t,z[e[0].tolowercase()+e.slice(1)]=t});for(var q in z.deprecated_keys)!function(e){function t(t){return function(){return console.trace("the node type "+e+" has been renamed to "+r),t.apply(this,arguments)}}var r=z.deprecated_keys[e];z[e]=z[e[0].tolowercase()+e.slice(1)]=t(z[r]),z["is"+e]=t(z["is"+r]),z["assert"+e]=t(z["assert"+r])}(q);(0,g.default)(z),(0,g.default)(z.visitor_keys);var z=["tokens","start","end","loc","raw","rawvalue"],ee=z.comment_keys.concat(["comments"]).concat(z)},function(e,t,r){"use strict";e.exports={default:r(404),__esmodule:!0}},function(e,t){"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){"use strict";function n(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 i(e){return e&&e.__esmodule?e:{default:e}}function s(e,t){e=(0,l.default)(e);var r=e,n=r.program;return t.length&&(0,m.default)(e,a,null,t),n.body.length>1?n.body:n.body[0]}t.__esmodule=!0;var a=r(10),o=i(a);t.default=function(e,t){var r=void 0;try{throw new error}catch(e){e.stack&&(r=e.stack.split("\n").slice(1).join("\n"))}t=(0,f.default)({allowreturnoutsidefunction:!0,allowsuperoutsidemethod:!0,preservecomments:!1},t);var n=function(){var i=void 0;try{i=v.parse(e,t),i=m.default.removeproperties(i,{preservecomments:t.preservecomments}),m.default.cheap(i,function(e){e[e]=!0})}catch(e){throw e.stack=e.stack+"from\n"+r,e}return n=function(){return i},i};return function(){for(var e=arguments.length,t=array(e),r=0;r=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var h=p;if((!s||!s[h])&&o.visit(e,h))return}},s.clearnode=function(e,t){x.removeproperties(e,t),s.path.delete(e)},s.removeproperties=function(e,t){return x.traversefast(e,s.clearnode,t),e},s.hastype=function(e,t,r,n){if((0,b.default)(n,e.type))return!1;if(e.type===r)return!0;var i={has:!1,type:r};return s(e,{blacklist:n,enter:a},t,i),i.has},s.clearcache=function(){s.clear()},s.clearcache.clearpath=s.clearpath,s.clearcache.clearscope=s.clearscope,s.copycache=function(e,t){s.path.has(e)&&s.path.set(t,s.path.get(e))}},function(e,t){"use strict";function r(){throw new error("settimeout has not been defined")}function n(){throw new error("cleartimeout has not been defined")}function i(e){if(c===settimeout)return settimeout(e,0);if((c===r||!c)&&settimeout)return c=settimeout,settimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function s(e){if(f===cleartimeout)return cleartimeout(e);if((f===n||!f)&&cleartimeout)return f=cleartimeout,cleartimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?h=d.concat(h):y=-1,h.length&&o())}function o(){if(!m){var e=i(a);m=!0;for(var t=h.length;t;){for(d=h,h=[];++y1)for(var r=1;r=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;s--){var a=s>=0?arguments[s]:e.cwd();if("string"!=typeof a)throw new typeerror("arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charat(0))}return t=r(n(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isabsolute(e),s="/"===a(e,-1);return e=r(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isabsolute=function(e){return"/"===e.charat(0)},t.join=function(){var e=array.prototype.slice.call(arguments,0);return t.normalize(n(e,function(e,t){if("string"!=typeof e)throw new typeerror("arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),s=n(r.split("/")),a=math.min(i.length,s.length),o=a,u=0;u1?t-1:0),n=1;n=s.length)break;u=s[o++]}else{if(o=s.next(),o.done)break;u=o.value}var l=u;if(b.is(l,n)){i=!0;break}}if(!i)throw new typeerror("property "+t+" of "+e.type+" expected node to be of a type "+(0,m.default)(r)+" but instead got "+(0,m.default)(n&&n.type))}for(var t=arguments.length,r=array(t),n=0;n=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;if(i(n)===c||b.is(c,n)){s=!0;break}}if(!s)throw new typeerror("property "+t+" of "+e.type+" expected node to be of a type "+(0,m.default)(r)+" but instead got "+(0,m.default)(n&&n.type))}for(var t=arguments.length,r=array(t),n=0;n=e.length)break;i=e[n++]}else{if(n=e.next(),n.done)break;i=n.value}i.apply(void 0,arguments)}}for(var t=arguments.length,r=array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.inherits&&d[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&&(_[t.deprecatedalias]=e);for(var n=t.visitor.concat(t.builder),s=array.isarray(n),a=0,n=s?n:(0,d.default)(n);;){var o;if(s){if(a>=n.length)break;o=n[a++]}else{if(a=n.next(),a.done)break;o=a.value}var u=o;t.fields[u]=t.fields[u]||{}}for(var c in t.fields){var f=t.fields[c];-1===t.builder.indexof(c)&&(f.optional=!0),void 0===f.default?f.default=null:f.validate||(f.validate=l(i(f.default)))}e[e]=t.visitor,s[e]=t.builder,a[e]=t.fields,x[e]=t.aliases,d[e]=t}t.__esmodule=!0,t.deprecated_keys=t.builder_keys=t.node_fields=t.alias_keys=t.visitor_keys=void 0;var p=r(2),d=n(p),h=r(35),m=n(h),y=r(11),v=n(y);t.asserteach=s,t.assertoneof=a,t.assertnodetype=o,t.assertnodeorvaluetype=u,t.assertvaluetype=l,t.chain=c,t.default=f;var g=r(1),b=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}(g),e=t.visitor_keys={},x=t.alias_keys={},a=t.node_fields={},s=t.builder_keys={},_=t.deprecated_keys={},d={}},function(e,t){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){"use strict";var r={}.hasownproperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(23),i=r(92);e.exports=r(22)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";function n(e){return null==e?void 0===e?u:o:l&&l in object(e)?s(e):a(e)}var i=r(45),s=r(534),a=r(559),o="[object null]",u="[object undefined]",l=i?i.tostringtag:void 0;e.exports=n},function(e,t,r){"use strict";function n(e,t,r,n){var a=!r;r||(r={});for(var o=-1,u=t.length;++o=s.length)break;u=s[o++]}else{if(o=s.next(),o.done)break;u=o.value}var l=u;if(l.container===t)return l.plugin}var c=void 0;if(c="function"==typeof t?t(b):t,"object"===(void 0===c?"undefined":(0,m.default)(c))){var f=new x.default(c,i);return e.memoisedplugins.push({container:t,plugin:f}),f}throw new typeerror(s.get("pluginnotobject",r,n,void 0===c?"undefined":(0,m.default)(c))+r+n)},e.createbareoptions=function(){var e={};for(var t in m.default){var r=m.default[t];e[t]=(0,o.default)(r.default)}return e},e.normaliseplugin=function(t,r,n,i){if(!((t=t.__esmodule?t.default:t)instanceof x.default)){if("function"!=typeof t&&"object"!==(void 0===t?"undefined":(0,m.default)(t)))throw new typeerror(s.get("pluginnotfunction",r,n,void 0===t?"undefined":(0,m.default)(t)));t=e.memoiseplugincontainer(t,r,n,i)}return t.init(r,n),t},e.normaliseplugins=function(t,n,i){return i.map(function(i,s){var a=void 0,o=void 0;if(!i)throw new typeerror("falsy value found in plugins");array.isarray(i)?(a=i[0],o=i[1]):a=i;var u="string"==typeof a?a:t+"$"+s;if("string"==typeof a){var l=(0,c.default)(a,n);if(!l)throw new referenceerror(s.get("pluginunknown",a,t,s,n));a=r(179)(l)}return a=e.normaliseplugin(a,t,s,u),[a,o]})},e.prototype.mergeoptions=function(t){var r=this,i=t.options,s=t.extending,a=t.alias,o=t.loc,u=t.dirname;if(a=a||"foreign",i){("object"!==(void 0===i?"undefined":(0,m.default)(i))||array.isarray(i))&&this.log.error("invalid options type for "+a,typeerror);var l=(0,f.default)(i,function(e){if(e instanceof x.default)return e});u=u||n.cwd(),o=o||a;for(var c in l){if(!m.default[c]&&this.log)if(l.default[c])this.log.error("using removed babel 5 option: "+a+"."+c+" - "+l.default[c].message,referenceerror);else{var p="unknown option: "+a+"."+c+". check out http://babeljs.io/docs/usage/options/ for more information about options.";this.log.error(p+"\n\na common cause of this error is the presence of a configuration options object without the corresponding preset name. example:\n\ninvalid:\n `{ presets: [{option: value}] }`\nvalid:\n `{ presets: [['presetname', {option: value}]] }`\n\nfor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.",referenceerror)}}(0,_.normaliseoptions)(l),l.plugins&&(l.plugins=e.normaliseplugins(o,u,l.plugins)),l.presets&&(l.passperpreset?l.presets=this.resolvepresets(l.presets,u,function(e,t){r.mergeoptions({options:e,extending:e,alias:t,loc:t,dirname:u})}):(this.mergepresets(l.presets,u),delete l.presets)),i===s?(0,f.default)(s,l):(0,r.default)(s||this.options,l)}},e.prototype.mergepresets=function(e,t){var r=this;this.resolvepresets(e,t,function(e,t){r.mergeoptions({options:e,alias:t,loc:t,dirname:g.default.dirname(t||"")})})},e.prototype.resolvepresets=function(e,t,n){return e.map(function(e){var i=void 0;if(array.isarray(e)){if(e.length>2)throw new error("unexpected extra options "+(0,l.default)(e.slice(2))+" passed to preset.");var s=e;e=s[0],i=s[1]}var a=void 0;try{if("string"==typeof e){if(!(a=(0,p.default)(e,t)))throw new error("couldn't find preset "+(0,l.default)(e)+" relative to directory "+(0,l.default)(t));e=r(179)(a)}if("object"===(void 0===e?"undefined":(0,m.default)(e))&&e.__esmodule)if(e.default)e=e.default;else{var u=e,c=(u.__esmodule,(0,o.default)(u,["__esmodule"]));e=c}if("object"===(void 0===e?"undefined":(0,m.default)(e))&&e.buildpreset&&(e=e.buildpreset),"function"!=typeof e&&void 0!==i)throw new error("options "+(0,l.default)(i)+" passed to "+(a||"a preset")+" which does not accept options.");if("function"==typeof e&&(e=e(b,i,{dirname:t})),"object"!==(void 0===e?"undefined":(0,m.default)(e)))throw new error("unsupported preset format: "+e+".");n&&n(e,a)}catch(e){throw a&&(e.message+=" (while processing preset: "+(0,l.default)(a)+")"),e}return e})},e.prototype.normaliseoptions=function(){var e=this.options;for(var t in m.default){var r=m.default[t],n=e[t];!n&&r.optional||(r.alias?e[r.alias]=e[r.alias]||n:e[t]=n)}},e.prototype.init=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.default)(e,this.log),r=array.isarray(t),n=0,t=r?t:(0,d.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}var s=i;this.mergeoptions(s)}return this.normaliseoptions(e),this.options},e}();t.default=w,w.memoisedplugins=[],e.exports=t.default}).call(t,r(8))},function(e,t,r){"use strict";e.exports={default:r(405),__esmodule:!0}},function(e,t,r){"use strict";function n(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 i(e){return e&&e.__esmodule?e:{default:e}}t.__esmodule=!0;var s=r(2),a=i(s),o=r(3),u=i(o),l=r(224),c=n(l),f=r(239),p=i(f),d=r(466),h=i(d),m=r(7),y=i(m),v=r(174),g=i(v),b=r(134),e=i(b),x=r(1),a=n(x),s=r(88),_=(0,p.default)("babel"),d=function(){function e(t,r){(0,u.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,n=t.parentpath,i=t.parent,s=t.container,a=t.listkey,o=t.key;!r&&n&&(r=n.hub),(0,h.default)(i,"to get a node path the parent needs to exist");var u=s[o],l=s.path.get(i)||[];s.path.has(i)||s.path.set(i,l);for(var c=void 0,f=0;f1&&void 0!==arguments[1]?arguments[1]:syntaxerror;return this.hub.file.buildcodeframeerror(this.node,e,t)},e.prototype.traverse=function(e,t){(0,y.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){a.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){_.enabled&&_(this.getpathlocation()+" "+this.type+": "+e())},e}();t.default=d,(0,g.default)(d.prototype,r(368)),(0,g.default)(d.prototype,r(374)),(0,g.default)(d.prototype,r(382)),(0,g.default)(d.prototype,r(372)),(0,g.default)(d.prototype,r(371)),(0,g.default)(d.prototype,r(377)),(0,g.default)(d.prototype,r(370)),(0,g.default)(d.prototype,r(381)),(0,g.default)(d.prototype,r(380)),(0,g.default)(d.prototype,r(373)),(0,g.default)(d.prototype,r(369));for(var c=a.types,w=array.isarray(c),p=0,c=w?c:(0,a.default)(c);;){var k;if("break"===function(){if(w){if(p>=c.length)return"break";k=c[p++]}else{if(p=c.next(),p.done)return"break";k=p.value}var e=k,t="is"+e;d.prototype[t]=function(e){return a[t](this.node,e)},d.prototype["assert"+e]=function(r){if(!this[t](r))throw new typeerror("expected node path of type "+e)}}())break}for(var f in c){(function(e){if("_"===e[0])return"continue";a.types.indexof(e)<0&&a.types.push(e);var t=c[e];d.prototype["is"+e]=function(e){return t.checkpath(this,e)}})(f)}e.exports=t.default},function(e,t,r){"use strict";var n=r(142),i=r(140);e.exports=function(e){return n(i(e))}},function(e,t,r){"use strict";function n(e,t){var r=s(e,t);return i(r)?r:void 0}var i=r(497),s=r(535);e.exports=n},function(e,t){"use strict";e.exports=function(e){return e.webpackpolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackpolyfill=1),e}},function(e,t,r){"use strict";function n(e){return e&&e.__esmodule?e:{default:e}}function i(e,t,r,n){if(e.selfreference){if(!n.hasbinding(r.name)||n.hasglobal(r.name)){if(!f.isfunction(t))return;var i=p;t.generator&&(i=d);var s=i({function:t,function_id:r,function_key:n.generateuididentifier(r.name)}).expression;s.callee._skipmodulesremap=!0;for(var a=s.callee.body.body[0].params,u=0,l=(0,o.default)(t);u0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];(0,p.default)(this,n);var i=(0,h.default)(this,t.call(this));return i.pipeline=r,i.log=new l.default(i,e.filename||"unknown"),i.opts=i.initoptions(e),i.parseropts={sourcetype:i.opts.sourcetype,sourcefilename:i.opts.filename,plugins:[]},i.pluginvisitors=[],i.pluginpasses=[],i.buildpluginsforoptions(i.opts),i.opts.passperpreset&&(i.perpresetopts=[],i.opts.presets.foreach(function(e){var t=(0,c.default)((0,u.default)(i.opts),e);i.perpresetopts.push(t),i.buildpluginsforoptions(t)})),i.metadata={usedhelpers:[],marked:[],modules:{imports:[],exports:{exported:[],specifiers:[]}}},i.dynamicimporttypes={},i.dynamicimportids={},i.dynamicimports=[],i.declarations={},i.usedhelpers={},i.path=null,i.ast={},i.code="",i.shebang="",i.hub=new w.hub(i),i}return(0,y.default)(n,t),n.prototype.getmetadata=function(){for(var e=!1,t=this.ast.program.body,r=array.isarray(t),n=0,t=r?t:(0,a.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}var s=i;if(h.ismoduledeclaration(s)){e=!0;break}}e&&this.path.traverse(e,this)},n.prototype.initoptions=function(e){e=new _.default(this.log,this.pipeline).init(e),e.inputsourcemap&&(e.sourcemaps=!0),e.moduleid&&(e.moduleids=!0),e.basename=q.default.basename(e.filename,q.default.extname(e.filename)),e.ignore=w.arrayify(e.ignore,w.regexify),e.only&&(e.only=w.arrayify(e.only,w.regexify)),(0,m.default)(e,{moduleroot:e.sourceroot}),(0,m.default)(e,{sourceroot:e.moduleroot}),(0,m.default)(e,{filenamerelative:e.filename});var t=q.default.basename(e.filenamerelative);return(0,m.default)(e,{sourcefilename:t,sourcemaptarget:t}),e},n.prototype.buildpluginsforoptions=function(e){if(array.isarray(e.plugins)){for(var t=e.plugins.concat(te),r=[],n=[],i=t,s=array.isarray(i),o=0,i=s?i:(0,a.default)(i);;){var u;if(s){if(o>=i.length)break;u=i[o++]}else{if(o=i.next(),o.done)break;u=o.value}var l=u,c=l[0],f=l[1];r.push(c.visitor),n.push(new c.default(this,c,f)),c.manipulateoptions&&c.manipulateoptions(e,this.parseropts,this)}this.pluginvisitors.push(r),this.pluginpasses.push(n)}},n.prototype.getmodulename=function(){var e=this.opts;if(!e.moduleids)return null;if(null!=e.moduleid&&!e.getmoduleid)return e.moduleid;var t=e.filenamerelative,r="";if(null!=e.moduleroot&&(r=e.moduleroot+"/"),!e.filenamerelative)return r+e.filename.replace(/^\//,"");if(null!=e.sourceroot){var n=new regexp("^"+e.sourceroot+"/?");t=t.replace(n,"")}return t=t.replace(/\.(\w*?)$/,""),r+=t,r=r.replace(/\\/g,"/"),e.getmoduleid?e.getmoduleid(r)||r:r},n.prototype.resolvemodulesource=function(e){var t=this.opts.resolvemodulesource;return t&&(e=t(e,this.opts.filename)),e},n.prototype.addimport=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e+":"+t,i=this.dynamicimportids[n];if(!i){e=this.resolvemodulesource(e),i=this.dynamicimportids[n]=this.scope.generateuididentifier(r);var s=[];"*"===t?s.push(h.importnamespacespecifier(i)):"default"===t?s.push(h.importdefaultspecifier(i)):s.push(h.importspecifier(i,h.identifier(t)));var a=h.importdeclaration(s,h.stringliteral(e));a._blockhoist=3,this.path.unshiftcontainer("body",a)}return i},n.prototype.addhelper=function(e){var t=this.declarations[e];if(t)return t;this.usedhelpers[e]||(this.metadata.usedhelpers.push(e),this.usedhelpers[e]=!0);var r=this.get("helpergenerator"),n=this.get("helpersnamespace");if(r){var i=r(e);if(i)return i}else if(n)return h.memberexpression(n,h.identifier(e));var s=(0,g.default)(e),a=this.declarations[e]=this.scope.generateuididentifier(e);return h.isfunctionexpression(s)&&!s.id?(s.body._compact=!0,s._generated=!0,s.id=a,s.type="functiondeclaration",this.path.unshiftcontainer("body",s)):(s._compact=!0,this.scope.push({id:a,init:s,unique:!0})),a},n.prototype.addtemplateobject=function(e,t,r){var n=r.elements.map(function(e){return e.value}),i=e+"_"+r.elements.length+"_"+n.join(","),s=this.declarations[i];if(s)return s;var a=this.declarations[i]=this.scope.generateuididentifier("templateobject"),o=this.addhelper(e),u=h.callexpression(o,[t,r]);return u._compact=!0,this.scope.push({id:a,init:u,_blockhoist:1.9}),a},n.prototype.buildcodeframeerror=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:syntaxerror,n=e&&(e.loc||e._loc),i=new r(t);return n?i.loc=n.start:((0,p.default)(e,re,this.scope,i),i.message+=" (this is an error on an internal node. probably an internal error",i.loc&&(i.message+=". location has been estimated."),i.message+=")"),i},n.prototype.mergesourcemap=function(e){var t=this.opts.inputsourcemap;if(t){var r=new f.default.sourcemapconsumer(t),n=new f.default.sourcemapconsumer(e),i=new f.default.sourcemapgenerator({file:r.file,sourceroot:r.sourceroot}),s=n.sources[0];r.eachmapping(function(e){var t=n.generatedpositionfor({line:e.generatedline,column:e.generatedcolumn,source:s});null!=t.column&&i.addmapping({source:e.source,original:null==e.source?null:{line:e.originalline,column:e.originalcolumn},generated:t})});var a=i.tojson();return t.mappings=a.mappings,t}return e},n.prototype.parse=function(t){var n=v.parse,i=this.opts.parseropts;if(i&&(i=(0,c.default)({},this.parseropts,i),i.parser)){if("string"==typeof i.parser){var s=q.default.dirname(this.opts.filename)||e.cwd(),a=(0,x.default)(i.parser,s);if(!a)throw new error("couldn't find parser "+i.parser+' with "parse" method relative to directory '+s);n=r(178)(a).parse}else n=i.parser;i.parser={parse:function(e){return(0,v.parse)(e,i)}}}this.log.debug("parse start");var o=n(t,i||this.parseropts);return this.log.debug("parse stop"),o},n.prototype._addast=function(e){this.path=w.nodepath.get({hub:this.hub,parentpath:null,parent:e,container:e,key:"program"}).setcontext(),this.scope=this.path.scope,this.ast=e,this.getmetadata()},n.prototype.addast=function(e){this.log.debug("start set ast"),this._addast(e),this.log.debug("end set ast")},n.prototype.transform=function(){for(var e=0;e=r.length)break;s=r[i++]}else{if(i=r.next(),i.done)break;s=i.value}var o=s,u=o.plugin,l=u[e];l&&l.call(o,this)}},n.prototype.parseinputsourcemap=function(e){var t=this.opts;if(!1!==t.inputsourcemap){var r=a.default.fromsource(e);r&&(t.inputsourcemap=r.toobject(),e=a.default.removecomments(e))}return e},n.prototype.parseshebang=function(){var e=ee.exec(this.code);e&&(this.shebang=e[0],this.code=this.code.replace(ee,""))},n.prototype.makeresult=function(e){var t=e.code,r=e.map,n=e.ast,i=e.ignored,s={metadata:null,options:this.opts,ignored:!!i,code:null,ast:null,map:r||null};return this.opts.code&&(s.code=t),this.opts.ast&&(s.ast=n),this.opts.metadata&&(s.metadata=this.metadata),s},n.prototype.generate=function(){var t=this.opts,n=this.ast,i={ast:n};if(!t.code)return this.makeresult(i);var s=o.default;if(t.generatoropts.generator&&"string"==typeof(s=t.generatoropts.generator)){var a=q.default.dirname(this.opts.filename)||e.cwd(),o=(0,x.default)(s,a);if(!o)throw new error("couldn't find generator "+s+' with "print" method relative to directory '+a);s=r(178)(o).print}this.log.debug("generation start");var u=s(n,t.generatoropts?(0,c.default)(t,t.generatoropts):t,this.code);return i.code=u.code,i.map=u.map,this.log.debug("generation end"),this.shebang&&(i.code=this.shebang+"\n"+i.code),i.map&&(i.map=this.mergesourcemap(i.map)),"inline"!==t.sourcemaps&&"both"!==t.sourcemaps||(i.code+="\n"+a.default.fromobject(i.map).tocomment()),"inline"===t.sourcemaps&&(i.map=null),this.makeresult(i)},n}(u.default);t.default=ne,t.file=ne}).call(t,r(8))},function(e,t,r){(function(n){"use strict";function i(e){return e&&e.__esmodule?e:{default:e}}function s(e){var t=x[e];return null==t?x[e]=e.default.existssync(e):t}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=e.filename,n=new s(t);return!1!==e.babelrc&&n.findconfigs(r),n.mergeconfig({options:e,alias:"base",dirname:r&&g.default.dirname(r)}),n.configs}t.__esmodule=!0;var o=r(87),u=i(o),l=r(3),c=i(l);t.default=a;var f=r(118),p=i(f),d=r(470),h=i(d),m=r(604),y=i(m),v=r(19),g=i(v),b=r(115),e=i(b),x={},a={},s=function(){function e(t){(0,c.default)(this,e),this.resolvedconfigs=[],this.configs=[],this.log=t}return e.prototype.findconfigs=function(e){if(e){(0,y.default)(e)||(e=g.default.join(n.cwd(),e));for(var t=!1,r=!1;e!==(e=g.default.dirname(e));){if(!t){var i=g.default.join(e,".babelrc");s(i)&&(this.addconfig(i),t=!0);var a=g.default.join(e,"package.json");!t&&s(a)&&(t=this.addconfig(a,"babel",json))}if(!r){var o=g.default.join(e,".babelignore");s(o)&&(this.addignoreconfig(o),r=!0)}if(r&&t)return}}},e.prototype.addignoreconfig=function(e){var t=e.default.readfilesync(e,"utf8"),r=t.split("\n");r=r.map(function(e){return e.replace(/#(.*?)$/,"").trim()}).filter(function(e){return!!e}),r.length&&this.mergeconfig({options:{ignore:r},alias:e,dirname:g.default.dirname(e)})},e.prototype.addconfig=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default;if(this.resolvedconfigs.indexof(e)>=0)return!1 ;this.resolvedconfigs.push(e);var n=e.default.readfilesync(e,"utf8"),i=void 0;try{i=a[n]=a[n]||r.parse(n),t&&(i=i[t])}catch(t){throw t.message=e+": error while parsing json - "+t.message,t}return this.mergeconfig({options:i,alias:e,dirname:g.default.dirname(e)}),!!i},e.prototype.mergeconfig=function(e){var t=e.options,r=e.alias,i=e.loc,s=e.dirname;if(!t)return!1;if(t=(0,u.default)({},t),s=s||n.cwd(),i=i||r,t.extends){var a=(0,p.default)(t.extends,s);a?this.addconfig(a):this.log&&this.log.error("couldn't resolve extends clause of "+t.extends+" in "+r),delete t.extends}this.configs.push({options:t,alias:r,loc:i,dirname:s});var o=void 0,l=n.env.babel_env||"production"||"development";t.env&&(o=t.env[l],delete t.env),this.mergeconfig({options:o,alias:r+".env."+l,dirname:s})},e}();e.exports=t.default}).call(t,r(8))},function(e,t,r){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e){var r=e[t];if(null!=r){var n=o.default[t];if(n&&n.alias&&(n=o.default[n.alias]),n){var i=s[n.type];i&&(r=i(r)),e[t]=r}}}return e}t.__esmodule=!0,t.config=void 0,t.normaliseoptions=n;var i=r(53),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}(i),a=r(33),o=function(e){return e&&e.__esmodule?e:{default:e}}(a);t.config=o.default},function(e,t,r){"use strict";function n(e){return!!e}function i(e){return l.booleanify(e)}function s(e){return l.list(e)}t.__esmodule=!0,t.filename=void 0,t.boolean=n,t.booleanstring=i,t.list=s;var a=r(284),o=function(e){return e&&e.__esmodule?e:{default:e}}(a),u=r(122),l=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}(u);t.filename=o.default},function(e,t){"use strict";e.exports={auxiliarycomment:{message:"use `auxiliarycommentbefore` or `auxiliarycommentafter`"},blacklist:{message:"put the specific transforms you want in the `plugins` option"},breakconfig:{message:"this is not a necessary option in babel 6"},experimental:{message:"put the specific transforms you want in the `plugins` option"},externalhelpers:{message:"use the `external-helpers` plugin instead. check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxpragma:{message:"use the `pragma` option in the `react-jsx` plugin . check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadatausedhelpers:{message:"not required anymore as this is enabled by default"},modules:{message:"use the corresponding module transform plugin in the `plugins` option. check out http://babeljs.io/docs/plugins/#modules"},nonstandard:{message:"use the `react-jsx` and `flow-strip-types` plugins to support jsx and flow. also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"put the specific transforms you want in the `plugins` option"},sourcemapname:{message:"use the `sourcemaptarget` option"},stage:{message:"check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"put the specific transforms you want in the `plugins` option"}}},function(e,t,r){"use strict";var n=r(43),i=r(428),s=r(427),a=r(21),o=r(153),u=r(238),l={},c={},f=e.exports=function(e,t,r,f,p){var d,h,m,y,v=p?function(){return e}:u(e),g=n(r,f,t?2:1),b=0;if("function"!=typeof v)throw typeerror(e+" is not iterable!");if(s(v)){for(d=o(e.length);d>b;b++)if((y=t?g(a(h=e[b])[0],h[1]):g(e[b]))===l||y===c)return y}else for(m=v.call(e);!(h=m.next()).done;)if((y=i(m,g,h.value,t))===l||y===c)return y};f.break=l,f.return=c},function(e,t){"use strict";e.exports={}},function(e,t,r){"use strict";var n="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},i=r(95)("meta"),s=r(16),a=r(28),o=r(23).f,u=0,l=object.isextensible||function(){return!0},c=!r(27)(function(){return l(object.preventextensions({}))}),f=function(e){o(e,i,{value:{i:"o"+ ++u,w:{}}})},p=function(e,t){if(!s(e))return"symbol"==(void 0===e?"undefined":n(e))?e:("string"==typeof e?"s":"p")+e;if(!a(e,i)){if(!l(e))return"f";if(!t)return"e";f(e)}return e[i].i},d=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;f(e)}return e[i].w},h=function(e){return c&&m.need&&l(e)&&!a(e,i)&&f(e),e},m=e.exports={key:i,need:!1,fastkey:p,getweak:d,onfreeze:h}},function(e,t,r){"use strict";var n=r(16);e.exports=function(e,t){if(!n(e)||e._t!==t)throw typeerror("incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";r(440);for(var n=r(15),i=r(29),s=r(56),a=r(13)("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;u=0;c--)a=u[c],"."===a?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return r=u.join("/"),""===r&&(r=o?"/":"."),s?(s.path=r,i(s)):r}function a(e,t){""===e&&(e="."),""===t&&(t=".");var r=n(t),a=n(e);if(a&&(e=a.path||"/"),r&&!r.scheme)return a&&(r.scheme=a.scheme),i(r);if(r||t.match(v))return t;if(a&&!a.host&&!a.path)return a.host=t,i(a);var o="/"===t.charat(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=o,i(a)):o}function o(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexof(e+"/");){var n=e.lastindexof("/");if(n<0)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return array(r+1).join("../")+t.substr(e.length+1)}function u(e){return e}function l(e){return f(e)?"$"+e:e}function c(e){return f(e)?e.slice(1):e}function f(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charcodeat(t-1)||95!==e.charcodeat(t-2)||111!==e.charcodeat(t-3)||116!==e.charcodeat(t-4)||111!==e.charcodeat(t-5)||114!==e.charcodeat(t-6)||112!==e.charcodeat(t-7)||95!==e.charcodeat(t-8)||95!==e.charcodeat(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charcodeat(r))return!1;return!0}function p(e,t,r){var n=e.source-t.source;return 0!==n?n:0!==(n=e.originalline-t.originalline)?n:0!==(n=e.originalcolumn-t.originalcolumn)||r?n:0!==(n=e.generatedcolumn-t.generatedcolumn)?n:(n=e.generatedline-t.generatedline,0!==n?n:e.name-t.name)}function d(e,t,r){var n=e.generatedline-t.generatedline;return 0!==n?n:0!==(n=e.generatedcolumn-t.generatedcolumn)||r?n:0!==(n=e.source-t.source)?n:0!==(n=e.originalline-t.originalline)?n:(n=e.originalcolumn-t.originalcolumn,0!==n?n:e.name-t.name)}function h(e,t){return e===t?0:e>t?1:-1}function m(e,t){var r=e.generatedline-t.generatedline;return 0!==r?r:0!==(r=e.generatedcolumn-t.generatedcolumn)?r:0!==(r=h(e.source,t.source))?r:0!==(r=e.originalline-t.originalline)?r:(r=e.originalcolumn-t.originalcolumn,0!==r?r:h(e.name,t.name))}t.getarg=r;var y=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\s*)$/,v=/^data:.+\,.+$/;t.urlparse=n,t.urlgenerate=i,t.normalize=s,t.join=a,t.isabsolute=function(e){return"/"===e.charat(0)||!!e.match(y)},t.relative=o;var g=function(){return!("__proto__"in object.create(null))}();t.tosetstring=g?u:l,t.fromsetstring=g?u:c,t.comparebyoriginalpositions=p,t.comparebygeneratedpositionsdeflated=d,t.comparebygeneratedpositionsinflated=m},function(e,t,r){(function(t){"use strict";function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=math.min(r,n);i=0;o--)if(u[o]!==l[o])return!1;for(o=u.length-1;o>=0;o--)if(a=u[o],!d(e[a],t[a],r,n))return!1;return!0}function y(e,t,r){d(e,t,!0)&&f(e,t,r,"notdeepstrictequal",y)}function v(e,t){if(!e||!t)return!1;if("[object regexp]"==object.prototype.tostring.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!error.isprototypeof(t)&&!0===t.call({},e)}function g(e){var t;try{e()}catch(e){t=e}return t}function b(e,t,r,n){var i;if("function"!=typeof t)throw new typeerror('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=g(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&f(i,r,"missing expected exception"+n);var s="string"==typeof n,a=!e&&x.iserror(i),o=!e&&i&&!r;if((a&&s&&v(i,r)||o)&&f(i,r,"got unwanted exception"+n),e&&i&&r&&!v(i,r)||!e&&i)throw i}var e="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},x=r(117),a=object.prototype.hasownproperty,s=array.prototype.slice,_=function(){return"foo"===function(){}.name}(),d=e.exports=p,c=/\s*function\s+([^\(\s]*)\s*/;d.assertionerror=function(e){this.name="assertionerror",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedmessage=!1):(this.message=c(this),this.generatedmessage=!0);var t=e.stackstartfunction||f;if(error.capturestacktrace)error.capturestacktrace(this,t);else{var r=new error;if(r.stack){var n=r.stack,i=o(t),s=n.indexof("\n"+i);if(s>=0){var a=n.indexof("\n",s+1);n=n.substring(a+1)}this.stack=n}}},x.inherits(d.assertionerror,error),d.fail=f,d.ok=p,d.equal=function(e,t,r){e!=t&&f(e,t,r,"==",d.equal)},d.notequal=function(e,t,r){e==t&&f(e,t,r,"!=",d.notequal)},d.deepequal=function(e,t,r){d(e,t,!1)||f(e,t,r,"deepequal",d.deepequal)},d.deepstrictequal=function(e,t,r){d(e,t,!0)||f(e,t,r,"deepstrictequal",d.deepstrictequal)},d.notdeepequal=function(e,t,r){d(e,t,!1)&&f(e,t,r,"notdeepequal",d.notdeepequal)},d.notdeepstrictequal=y,d.strictequal=function(e,t,r){e!==t&&f(e,t,r,"===",d.strictequal)},d.notstrictequal=function(e,t,r){e===t&&f(e,t,r,"!==",d.notstrictequal)},d.throws=function(e,t,r){b(!0,e,t,r)},d.doesnotthrow=function(e,t,r){b(!1,e,t,r)},d.iferror=function(e){if(e)throw e};var w=object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(t,function(){return this}())},function(e,t,r){"use strict";function n(e){return e&&e.__esmodule?e:{default:e}}t.__esmodule=!0;var i=r(2),s=n(i),a=r(3),o=n(a),u=r(42),l=n(u),c=r(41),f=n(c),p=r(34),d=n(p),h=r(20),m=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}(h),y=r(119),v=n(y),g=r(7),b=n(g),e=r(174),x=n(e),a=r(109),s=n(a),_=["enter","exit"],d=function(e){function t(r,n){(0,o.default)(this,t);var i=(0,l.default)(this,e.call(this));return i.initialized=!1,i.raw=(0,x.default)({},r),i.key=i.take("name")||n,i.manipulateoptions=i.take("manipulateoptions"),i.post=i.take("post"),i.pre=i.take("pre"),i.visitor=i.normalisevisitor((0,s.default)(i.take("visitor"))||{}),i}return(0,f.default)(t,e),t.prototype.take=function(e){var t=this.raw[e];return delete this.raw[e],t},t.prototype.chain=function(e,t){if(!e[t])return this[t];if(!this[t])return e[t];var r=[e[t],this[t]];return function(){for(var e=void 0,t=arguments.length,n=array(t),i=0;i=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;if(c){var f=c.apply(this,n);null!=f&&(e=f)}}return e}},t.prototype.maybeinherit=function(e){var t=this.take("inherits");t&&(t=d.default.normaliseplugin(t,e,"inherits"),this.manipulateoptions=this.chain(t,"manipulateoptions"),this.post=this.chain(t,"post"),this.pre=this.chain(t,"pre"),this.visitor=b.default.visitors.merge([t.visitor,this.visitor]))},t.prototype.init=function(e,t){if(!this.initialized){this.initialized=!0,this.maybeinherit(e);for(var r in this.raw)throw new error(m.get("plugininvalidproperty",e,t,r))}},t.prototype.normalisevisitor=function(e){for(var t=_,r=array.isarray(t),n=0,t=r?t:(0,s.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}if(e[i])throw new error("plugins aren't allowed to specify catch-all enter/exit handlers. please target individual nodes.")}return b.default.explode(e),e},t}(v.default);t.default=d,e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0;var n=r(2),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);t.default=function(e){var t=e.messages;return{visitor:{scope:function(e){var r=e.scope;for(var n in r.bindings){var s=r.bindings[n];if("const"===s.kind||"module"===s.kind)for(var a=s.constantviolations,o=array.isarray(a),u=0,a=o?a:(0,i.default)(a);;){var l;if(o){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.done)break;l=u.value}var c=l;throw c.buildcodeframeerror(t.get("readonly",n))}}}}}},e.exports=t.default},function(e,t){"use strict";t.__esmodule=!0,t.default=function(){return{manipulateoptions:function(e,t){t.plugins.push("asyncfunctions")}}},e.exports=t.default},function(e,t){"use strict";t.__esmodule=!0,t.default=function(e){var t=e.types;return{visitor:{arrowfunctionexpression:function(e,r){if(r.opts.spec){var n=e.node;if(n.shadow)return;n.shadow={this:!1},n.type="functionexpression";var i=t.thisexpression();i._forceshadow=e,e.ensureblock(),e.get("body").unshiftcontainer("body",t.expressionstatement(t.callexpression(r.addhelper("newarrowcheck"),[t.thisexpression(),i]))),e.replacewith(t.callexpression(t.memberexpression(n,t.identifier("bind")),[t.thisexpression()]))}else e.arrowfunctiontoshadowed()}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0;var n=r(2),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);t.default=function(e){function t(e,t){for(var n=t.get(e),s=n,a=array.isarray(s),o=0,s=a?s:(0,i.default)(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if(o=s.next(),o.done)break;u=o.value}var l=u,c=l.node;if(l.isfunctiondeclaration()){var f=r.variabledeclaration("let",[r.variabledeclarator(c.id,r.toexpression(c))]);f._blockhoist=2,c.id=null,l.replacewith(f)}}}var r=e.types;return{visitor:{blockstatement:function(e){var n=e.node,i=e.parent;r.isfunction(i,{body:n})||r.isexportdeclaration(i)||t("body",e)},switchcase:function(e){t("consequent",e)}}}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esmodule?e:{default:e}}function i(e){return b.isloop(e.parent)||b.iscatchclause(e.parent)}function s(e){return!!b.isvariabledeclaration(e)&&(!!e[b.block_scoped_symbol]||("let"===e.kind||"const"===e.kind))}function a(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t||(t=e.node),!b.isfor(r))for(var s=0;s0&&e.traverse(p,t),e.skip()}},v.visitor]),p=y.default.visitors.merge([{referencedidentifier:function(e,t){var r=t.letreferences[e.node.name];if(r){var n=e.scope.getbindingidentifier(e.node.name);n&&n!==r||(t.closurify=!0)}}},v.visitor]),k={enter:function(e,t){var r=e.node;e.parent;if(e.isforstatement()){if(o(r.init)){var n=t.pushdeclar(r.init);1===n.length?r.init=n[0]:r.init=b.sequenceexpression(n)}}else if(e.isfor())o(r.left)&&(t.pushdeclar(r.left),r.left=r.left.declarations[0].id);else if(o(r))e.replacewithmultiple(t.pushdeclar(r).map(function(e){return b.expressionstatement(e)}));else if(e.isfunction())return e.skip()}},f={labeledstatement:function(e,t){var r=e.node;t.innerlabels.push(r.label.name)}},t={enter:function(e,t){if(e.isassignmentexpression()||e.isupdateexpression()){var r=e.getbindingidentifiers();for(var n in r)t.outsidereferences[n]===e.scope.getbindingidentifier(n)&&(t.reassignments[n]=!0)}}},o={loop:function(e,t){var r=t.ignorelabeless;t.ignorelabeless=!0,e.traverse(o,t),t.ignorelabeless=r,e.skip()},function:function(e){e.skip()},switchcase:function(e,t){var r=t.inswitchcase;t.inswitchcase=!0,e.traverse(o,t),t.inswitchcase=r,e.skip()},"breakstatement|continuestatement|returnstatement":function(e,t){var r=e.node,n=e.parent,i=e.scope;if(!r[this.loop_ignore]){var s=void 0,a=u(r);if(a){if(r.label){if(t.innerlabels.indexof(r.label.name)>=0)return;a=a+"|"+r.label.name}else{if(t.ignorelabeless)return;if(t.inswitchcase)return;if(b.isbreakstatement(r)&&b.isswitchcase(n))return}t.hasbreakcontinue=!0,t.map[a]=r,s=b.stringliteral(a)}e.isreturnstatement()&&(t.hasreturn=!0,s=b.objectexpression([b.objectproperty(b.identifier("v"),r.argument||i.buildundefinednode())])),s&&(s=b.returnstatement(s),s[this.loop_ignore]=!0,e.skip(),e.replacewith(b.inherits(s,r)))}}},b=function(){function e(t,r,n,i,s){(0,h.default)(this,e),this.parent=n,this.scope=i,this.file=s,this.blockpath=r,this.block=r.node,this.outsideletreferences=(0,p.default)(null),this.hasletreferences=!1,this.letreferences=(0,p.default)(null),this.body=[],t&&(this.loopparent=t.parent,this.looplabel=b.islabeledstatement(this.loopparent)&&this.loopparent.label,this.looppath=t,this.loop=t.node)}return e.prototype.run=function(){var e=this.block;if(!e._letdone){e._letdone=!0;var t=this.getletreferences();if(b.isfunction(this.parent)||b.isprogram(this.block))return void this.updatescopeinfo();if(this.hasletreferences)return t?this.wrapclosure():this.remap(),this.updatescopeinfo(t),this.looplabel&&!b.islabeledstatement(this.loopparent)?b.labeledstatement(this.looplabel,this.loop):void 0}},e.prototype.updatescopeinfo=function(e){var t=this.scope,r=t.getfunctionparent(),n=this.letreferences;for(var i in n){var s=n[i],a=t.getbinding(s.name);a&&("let"!==a.kind&&"const"!==a.kind||(a.kind="var",e?t.removebinding(s.name):t.movebindingto(s.name,r)))}},e.prototype.remap=function(){var e=this.letreferences,t=this.scope;for(var r in e){var n=e[r];(t.parenthasbinding(r)||t.hasglobal(r))&&(t.hasownbinding(r)&&t.rename(n.name),this.blockpath.scope.hasownbinding(r)&&this.blockpath.scope.rename(n.name))}},e.prototype.wrapclosure=function(){if(this.file.opts.throwifclosurerequired)throw this.blockpath.buildcodeframeerror("compiling let/const in this block would add a closure (throwifclosurerequired).");var e=this.block,t=this.outsideletreferences;if(this.loop)for(var r in t){var n=t[r];(this.scope.hasglobal(n.name)||this.scope.parenthasbinding(n.name))&&(delete t[n.name],delete this.letreferences[n.name],this.scope.rename(n.name),this.letreferences[n.name]=n,t[n.name]=n)}this.has=this.checkloop(),this.hoistvardeclarations();var i=(0,x.default)(t),s=(0,x.default)(t),a=this.blockpath.isswitchstatement(),o=b.functionexpression(null,i,b.blockstatement(a?[e]:e.body));o.shadow=!0,this.addcontinuations(o);var u=o;this.loop&&(u=this.scope.generateuididentifier("loop"),this.looppath.insertbefore(b.variabledeclaration("var",[b.variabledeclarator(u,o)])));var l=b.callexpression(u,s),c=this.scope.generateuididentifier("ret");y.default.hastype(o.body,this.scope,"yieldexpression",b.function_types)&&(o.generator=!0,l=b.yieldexpression(l,!0)),y.default.hastype(o.body,this.scope,"awaitexpression",b.function_types)&&(o.async=!0,l=b.awaitexpression(l)),this.buildclosure(c,l),a?this.blockpath.replacewithmultiple(this.body):e.body=this.body},e.prototype.buildclosure=function(e,t){var r=this.has;r.hasreturn||r.hasbreakcontinue?this.buildhas(e,t):this.body.push(b.expressionstatement(t))},e.prototype.addcontinuations=function(e){var t={reassignments:{},outsidereferences:this.outsideletreferences};this.scope.traverse(e,t,t);for(var r=0;r=t.length)break;o=t[a++]}else{if(a=t.next(),a.done)break;o=a.value}var u=o;"get"===u.kind||"set"===u.kind?n(e,u):r(e.objid,u,e.body)}}function a(e){for(var s=e.objid,a=e.body,u=e.computedprops,l=e.state,c=u,f=array.isarray(c),p=0,c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d,m=o.tocomputedkey(h);if("get"===h.kind||"set"===h.kind)n(e,h);else if(o.isstringliteral(m,{value:"__proto__"}))r(s,h,a);else{if(1===u.length)return o.callexpression(l.addhelper("defineproperty"),[e.initpropexpression,m,t(h)]);a.push(o.expressionstatement(o.callexpression(l.addhelper("defineproperty"),[s,m,t(h)])))}}}var o=e.types,u=e.template,l=u("\n mutator_map_ref[key] = mutator_map_ref[key] || {};\n mutator_map_ref[key].kind = value;\n ");return{visitor:{objectexpression:{exit:function(e,t){for(var r=e.node,n=e.parent,u=e.scope,l=!1,c=r.properties,f=array.isarray(c),p=0,c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}if(l=!0===d.computed)break}if(l){for(var h=[],m=[],y=!1,v=r.properties,g=array.isarray(v),b=0,v=g?v:(0,i.default)(v);;){var e;if(g){if(b>=v.length)break;e=v[b++]}else{if(b=v.next(),b.done)break;e=b.value}var x=e;x.computed&&(y=!0),y?m.push(x):h.push(x)}var a=u.generateuididentifierbasedonnode(n),s=o.objectexpression(h),_=[];_.push(o.variabledeclaration("var",[o.variabledeclarator(a,s)]));var d=a;t.opts.loose&&(d=s);var c=void 0,w=function(){return c||(c=u.generateuididentifier("mutatormap"),_.push(o.variabledeclaration("var",[o.variabledeclarator(c,o.objectexpression([]))]))),c},p=d({scope:u,objid:a,body:_,computedprops:m,initpropexpression:s,getmutatorid:w,state:t});c&&_.push(o.expressionstatement(o.callexpression(t.addhelper("defineenumerableproperties"),[a,c]))),p?e.replacewith(p):(_.push(o.expressionstatement(a)),e.replacewithmultiple(_))}}}}}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esmodule?e:{default:e}}t.__esmodule=!0;var i=r(3),s=n(i),a=r(2),o=n(a);t.default=function(e){function t(e){for(var t=e.declarations,r=array.isarray(t),i=0,t=r?t:(0,o.default)(t);;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if(i=t.next(),i.done)break;s=i.value}var a=s;if(n.ispattern(a.id))return!0}return!1}function r(e){for(var t=e.elements,r=array.isarray(t),i=0,t=r?t:(0,o.default)(t);;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if(i=t.next(),i.done)break;s=i.value}var a=s;if(n.isrestelement(a))return!0}return!1}var n=e.types,i={referencedidentifier:function(e,t){t.bindings[e.node.name]&&(t.deopt=!0,e.stop())}},a=function(){function e(t){(0,s.default)(this,e),this.blockhoist=t.blockhoist,this.operator=t.operator,this.arrays={},this.nodes=t.nodes||[],this.scope=t.scope,this.file=t.file,this.kind=t.kind} return e.prototype.buildvariableassignment=function(e,t){var r=this.operator;n.ismemberexpression(e)&&(r="=");var i=void 0;return i=r?n.expressionstatement(n.assignmentexpression(r,e,t)):n.variabledeclaration(this.kind,[n.variabledeclarator(e,t)]),i._blockhoist=this.blockhoist,i},e.prototype.buildvariabledeclaration=function(e,t){var r=n.variabledeclaration("var",[n.variabledeclarator(e,t)]);return r._blockhoist=this.blockhoist,r},e.prototype.push=function(e,t){n.isobjectpattern(e)?this.pushobjectpattern(e,t):n.isarraypattern(e)?this.pusharraypattern(e,t):n.isassignmentpattern(e)?this.pushassignmentpattern(e,t):this.nodes.push(this.buildvariableassignment(e,t))},e.prototype.toarray=function(e,t){return this.file.opts.loose||n.isidentifier(e)&&this.arrays[e.name]?e:this.scope.toarray(e,t)},e.prototype.pushassignmentpattern=function(e,t){var r=this.scope.generateuididentifierbasedonnode(t),i=n.variabledeclaration("var",[n.variabledeclarator(r,t)]);i._blockhoist=this.blockhoist,this.nodes.push(i);var s=n.conditionalexpression(n.binaryexpression("===",r,n.identifier("undefined")),e.right,r),a=e.left;if(n.ispattern(a)){var o=n.expressionstatement(n.assignmentexpression("=",r,s));o._blockhoist=this.blockhoist,this.nodes.push(o),this.push(a,r)}else this.nodes.push(this.buildvariableassignment(a,s))},e.prototype.pushobjectrest=function(e,t,r,i){for(var s=[],a=0;a=i)break;if(!n.isrestproperty(o)){var u=o.key;n.isidentifier(u)&&!o.computed&&(u=n.stringliteral(o.key.name)),s.push(u)}}s=n.arrayexpression(s);var l=n.callexpression(this.file.addhelper("objectwithoutproperties"),[t,s]);this.nodes.push(this.buildvariableassignment(r.argument,l))},e.prototype.pushobjectproperty=function(e,t){n.isliteral(e.key)&&(e.computed=!0);var r=e.value,i=n.memberexpression(t,e.key,e.computed);n.ispattern(r)?this.push(r,i):this.nodes.push(this.buildvariableassignment(r,i))},e.prototype.pushobjectpattern=function(e,t){if(e.properties.length||this.nodes.push(n.expressionstatement(n.callexpression(this.file.addhelper("objectdestructuringempty"),[t]))),e.properties.length>1&&!this.scope.isstatic(t)){var r=this.scope.generateuididentifierbasedonnode(t);this.nodes.push(this.buildvariabledeclaration(r,t)),t=r}for(var i=0;it.elements.length)){if(e.elements.length=s.length)break;l=s[u++]}else{if(u=s.next(),u.done)break;l=u.value}var c=l;if(!c)return!1;if(n.ismemberexpression(c))return!1}for(var f=t.elements,p=array.isarray(f),d=0,f=p?f:(0,o.default)(f);;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if(d=f.next(),d.done)break;h=d.value}var m=h;if(n.isspreadelement(m))return!1;if(n.iscallexpression(m))return!1;if(n.ismemberexpression(m))return!1}var y=n.getbindingidentifiers(e),v={deopt:!1,bindings:y};return this.scope.traverse(t,i,v),!v.deopt}},e.prototype.pushunpackedarraypattern=function(e,t){for(var r=0;r=y.length)break;b=y[g++]}else{if(g=y.next(),g.done)break;b=g.value}var e=b,x=m[m.length-1];if(x&&n.isvariabledeclaration(x)&&n.isvariabledeclaration(e)&&x.kind===e.kind){var a;(a=x.declarations).push.apply(a,e.declarations)}else m.push(e)}for(var s=m,_=array.isarray(s),d=0,s=_?s:(0,o.default)(s);;){var c;if(_){if(d>=s.length)break;c=s[d++]}else{if(d=s.next(),d.done)break;c=d.value}var w=c;if(w.declarations)for(var p=w.declarations,k=array.isarray(p),f=0,p=k?p:(0,o.default)(p);;){var t;if(k){if(f>=p.length)break;t=p[f++]}else{if(f=p.next(),f.done)break;t=f.value}var o=t,b=o.id.name;s.bindings[b]&&(s.bindings[b].kind=w.kind)}}1===m.length?e.replacewith(m[0]):e.replacewithmultiple(m)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esmodule=!0,t.default=function(e){function t(e){var t=e.node,r=e.scope,n=[],i=t.right;if(!a.isidentifier(i)||!r.hasbinding(i.name)){var s=r.generateuididentifier("arr");n.push(a.variabledeclaration("var",[a.variabledeclarator(s,i)])),i=s}var u=r.generateuididentifier("i"),l=o({body:t.body,key:u,arr:i});a.inherits(l,t),a.ensureblock(l);var c=a.memberexpression(i,u,!0),f=t.left;return a.isvariabledeclaration(f)?(f.declarations[0].init=c,l.body.body.unshift(f)):l.body.body.unshift(a.expressionstatement(a.assignmentexpression("=",f,c))),e.parentpath.islabeledstatement()&&(l=a.labeledstatement(e.parentpath.node.label,l)),n.push(l),n}function r(e,t){var r=e.node,n=e.scope,s=e.parent,o=r.left,l=void 0,c=void 0;if(a.isidentifier(o)||a.ispattern(o)||a.ismemberexpression(o))c=o;else{if(!a.isvariabledeclaration(o))throw t.buildcodeframeerror(o,i.get("unknownforhead",o.type));c=n.generateuididentifier("ref"),l=a.variabledeclaration(o.kind,[a.variabledeclarator(o.declarations[0].id,c)])}var f=n.generateuididentifier("iterator"),p=n.generateuididentifier("isarray"),d=u({loop_object:f,is_array:p,object:r.right,index:n.generateuididentifier("i"),id:c});l||d.body.body.shift();var h=a.islabeledstatement(s),m=void 0;return h&&(m=a.labeledstatement(s.label,d)),{replaceparent:h,declar:l,node:m||d,loop:d}}function n(e,t){var r=e.node,n=e.scope,s=e.parent,o=r.left,u=void 0,c=n.generateuididentifier("step"),f=a.memberexpression(c,a.identifier("value"));if(a.isidentifier(o)||a.ispattern(o)||a.ismemberexpression(o))u=a.expressionstatement(a.assignmentexpression("=",o,f));else{if(!a.isvariabledeclaration(o))throw t.buildcodeframeerror(o,i.get("unknownforhead",o.type));u=a.variabledeclaration(o.kind,[a.variabledeclarator(o.declarations[0].id,f)])}var p=n.generateuididentifier("iterator"),d=l({iterator_had_error_key:n.generateuididentifier("diditeratorerror"),iterator_completion:n.generateuididentifier("iteratornormalcompletion"),iterator_error_key:n.generateuididentifier("iteratorerror"),iterator_key:p,step_key:c,object:r.right,body:null}),h=a.islabeledstatement(s),m=d[3].block.body,y=m[0];return h&&(m[0]=a.labeledstatement(s.label,y)),{replaceparent:h,declar:u,loop:y,node:d}}var i=e.messages,s=e.template,a=e.types,o=s("\n for (var key = 0; key < arr.length; key++) body;\n "),u=s("\n for (var loop_object = object,\n is_array = array.isarray(loop_object),\n index = 0,\n loop_object = is_array ? loop_object : loop_object[symbol.iterator]();;) {\n var id;\n if (is_array) {\n if (index >= loop_object.length) break;\n id = loop_object[index++];\n } else {\n index = loop_object.next();\n if (index.done) break;\n id = index.value;\n }\n }\n "),l=s("\n var iterator_completion = true;\n var iterator_had_error_key = false;\n var iterator_error_key = undefined;\n try {\n for (var iterator_key = object[symbol.iterator](), step_key; !(iterator_completion = (step_key = iterator_key.next()).done); iterator_completion = true) {\n }\n } catch (err) {\n iterator_had_error_key = true;\n iterator_error_key = err;\n } finally {\n try {\n if (!iterator_completion && iterator_key.return) {\n iterator_key.return();\n }\n } finally {\n if (iterator_had_error_key) {\n throw iterator_error_key;\n }\n }\n }\n ");return{visitor:{forofstatement:function(e,i){if(e.get("right").isarrayexpression())return e.parentpath.islabeledstatement()?e.parentpath.replacewithmultiple(t(e)):e.replacewithmultiple(t(e));var s=n;i.opts.loose&&(s=r);var o=e.node,u=s(e,i),l=u.declar,c=u.loop,f=c.body;e.ensureblock(),l&&f.body.push(l),f.body=f.body.concat(o.body.body),a.inherits(c,o),a.inherits(c.body,o.body),u.replaceparent?(e.parentpath.replacewithmultiple(u.node),e.remove()):e.replacewithmultiple(u.node)}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0,t.default=function(){return{visitor:{functionexpression:{exit:function(e){if("value"!==e.key&&!e.parentpath.isobjectproperty()){var t=(0,i.default)(e);t&&e.replacewith(t)}}},objectproperty:function(e){var t=e.get("value");if(t.isfunction()){var r=(0,i.default)(t);r&&t.replacewith(r)}}}}};var n=r(40),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);e.exports=t.default},function(e,t){"use strict";t.__esmodule=!0,t.default=function(){return{visitor:{numericliteral:function(e){var t=e.node;t.extra&&/^0[ob]/i.test(t.extra.raw)&&(t.extra=void 0)},stringliteral:function(e){var t=e.node;t.extra&&/\\[u]/gi.test(t.extra.raw)&&(t.extra=void 0)}}}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esmodule?e:{default:e}}t.__esmodule=!0;var i=r(14),s=n(i),a=r(9),o=n(a),u=r(2),l=n(u),c=r(10),f=n(c);t.default=function(){var e=(0,f.default)(),t={referencedidentifier:function(e){var t=e.node.name,r=this.remaps[t];if(r&&this.scope.getbinding(t)===e.scope.getbinding(t)){if(e.parentpath.iscallexpression({callee:e.node}))e.replacewith(g.sequenceexpression([g.numericliteral(0),r]));else if(e.isjsxidentifier()&&g.ismemberexpression(r)){var n=r.object,i=r.property;e.replacewith(g.jsxmemberexpression(g.jsxidentifier(n.name),g.jsxidentifier(i.name)))}else e.replacewith(r);this.requeueinparent(e)}},assignmentexpression:function(t){var r=t.node;if(!r[e]){var n=t.get("left");if(n.isidentifier()){var i=n.node.name,s=this.exports[i];if(!s)return;if(this.scope.getbinding(i)!==t.scope.getbinding(i))return;r[e]=!0;for(var a=s,o=array.isarray(a),u=0,a=o?a:(0,l.default)(a);;){var c;if(o){if(u>=a.length)break;c=a[u++]}else{if(u=a.next(),u.done)break;c=u.value}r=s(c,r).expression}t.replacewith(r),this.requeueinparent(t)}else if(n.isobjectpattern())for(var f=n.node.properties,p=array.isarray(f),d=0,f=p?f:(0,l.default)(f);;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if(d=f.next(),d.done)break;h=d.value}var m=h,y=m.value.name,v=this.exports[y];if(v){if(this.scope.getbinding(y)!==t.scope.getbinding(y))return;r[e]=!0,t.insertafter(s(g.identifier(y),g.identifier(y)))}}else if(n.isarraypattern())for(var b=n.node.elements,e=array.isarray(b),x=0,b=e?b:(0,l.default)(b);;){var a;if(e){if(x>=b.length)break;a=b[x++]}else{if(x=b.next(),x.done)break;a=x.value}var _=a;if(_){var d=_.name,c=this.exports[d];if(c){if(this.scope.getbinding(d)!==t.scope.getbinding(d))return;r[e]=!0,t.insertafter(s(g.identifier(d),g.identifier(d)))}}}}},updateexpression:function(e){var t=e.get("argument");if(t.isidentifier()){var r=t.node.name;if(this.exports[r]&&this.scope.getbinding(r)===e.scope.getbinding(r)){var n=g.assignmentexpression(e.node.operator[0]+"=",t.node,g.numericliteral(1));if(e.parentpath.isexpressionstatement()&&!e.iscompletionrecord()||e.node.prefix)return e.replacewith(n),void this.requeueinparent(e);var i=[];i.push(n);var s=void 0;s="--"===e.node.operator?"+":"-",i.push(g.binaryexpression(s,t.node,g.numericliteral(1))),e.replacewithmultiple(g.sequenceexpression(i))}}}};return{inherits:y.default,visitor:{thisexpression:function(e,t){this.rancommonjs||!0===t.opts.allowtoplevelthis||e.findparent(function(e){return!e.is("shadow")&&d.indexof(e.type)>=0})||e.replacewith(g.identifier("undefined"))},program:{exit:function(e){function r(t,r){var n=c[t];if(n)return n;var i=e.scope.generateuididentifier((0,p.basename)(t,(0,p.extname)(t))),s=g.variabledeclaration("var",[g.variabledeclarator(i,b(g.stringliteral(t)).expression)]);return h[t]&&(s.loc=h[t].loc),"number"==typeof r&&r>0&&(s._blockhoist=r),v.push(s),c[t]=i}function n(e,t,r){var n=e[t]||[];e[t]=n.concat(r)}this.rancommonjs=!0;var i=!!this.opts.strict,a=!!this.opts.nointerop,u=e.scope;u.rename("module"),u.rename("exports"),u.rename("require");for(var c=!1,f=!1,d=e.get("body"),h=(0,o.default)(null),m=(0,o.default)(null),y=(0,o.default)(null),v=[],d=(0,o.default)(null),c=(0,o.default)(null),w=d,p=array.isarray(w),k=0,w=p?w:(0,l.default)(w);;){var f;if(p){if(k>=w.length)break;f=w[k++]}else{if(k=w.next(),k.done)break;f=k.value}var t=f;if(t.isexportdeclaration()){c=!0;for(var o=[].concat(t.get("declaration"),t.get("specifiers")),b=o,r=array.isarray(b),i=0,b=r?b:(0,l.default)(b);;){var m;if(r){if(i>=b.length)break;m=b[i++]}else{if(i=b.next(),i.done)break;m=i.value}var n=m;if(n.getbindingidentifiers().__esmodule)throw n.buildcodeframeerror('illegal export "__esmodule"')}}if(t.isimportdeclaration()){var l;f=!0;var j=t.node.source.value,u=h[j]||{specifiers:[],maxblockhoist:0,loc:t.node.loc};(l=u.specifiers).push.apply(l,t.node.specifiers),"number"==typeof t.node._blockhoist&&(u.maxblockhoist=math.max(t.node._blockhoist,u.maxblockhoist)),h[j]=u,t.remove()}else if(t.isexportdefaultdeclaration()){var v=t.get("declaration");if(v.isfunctiondeclaration()){var g=v.node.id,w=g.identifier("default");g?(n(m,g.name,w),v.push(s(w,g)),t.replacewith(v.node)):(v.push(s(w,g.toexpression(v.node))),t.remove())}else if(v.isclassdeclaration()){var y=v.node.id,q=g.identifier("default");y?(n(m,y.name,q),t.replacewithmultiple([v.node,s(q,y)])):(t.replacewith(s(q,g.toexpression(v.node))),t.parentpath.requeue(t.get("expression.left")))}else t.replacewith(s(g.identifier("default"),v.node)),t.parentpath.requeue(t.get("expression.left"))}else if(t.isexportnameddeclaration()){var k=t.get("declaration");if(k.node){if(k.isfunctiondeclaration()){var h=k.node.id;n(m,h.name,h),v.push(s(h,h)),t.replacewith(k.node)}else if(k.isclassdeclaration()){var j=k.node.id;n(m,j.name,j),t.replacewithmultiple([k.node,s(j,j)]),y[j.name]=!0}else if(k.isvariabledeclaration()){for(var x=k.get("declarations"),z=x,$=array.isarray(z),q=0,z=$?z:(0,l.default)(z);;){var z;if($){if(q>=z.length)break;z=z[q++]}else{if(q=z.next(),q.done)break;z=q.value}var ee=z,te=ee.get("id"),re=ee.get("init"),ne=[];if(re.node||re.replacewith(g.identifier("undefined")),te.isidentifier())n(m,te.node.name,te.node),re.replacewith(s(te.node,re.node).expression),y[te.node.name]=!0;else if(te.isobjectpattern())for(var ie=0;ie=he.length)break;ve=he[ye++]}else{if(ye=he.next(),ye.done)break;ve=ye.value}var ge=ve;ge.isexportnamespacespecifier()||ge.isexportdefaultspecifier()||ge.isexportspecifier()&&(a||"default"!==ge.node.local.name?v.push(x(g.stringliteral(ge.node.exported.name),g.memberexpression(de,ge.node.local))):v.push(x(g.stringliteral(ge.node.exported.name),g.memberexpression(g.callexpression(this.addhelper("interoprequiredefault"),[de]),ge.node.local))),y[ge.node.exported.name]=!0)}else for(var be=ce,ee=array.isarray(be),xe=0,be=ee?be:(0,l.default)(be);;){var ae;if(ee){if(xe>=be.length)break;ae=be[xe++]}else{if(xe=be.next(),xe.done)break;ae=xe.value}var se=ae;se.isexportspecifier()&&(n(m,se.node.local.name,se.node.exported),y[se.node.exported.name]=!0,fe.push(s(se.node.exported,se.node.local)))}t.replacewithmultiple(fe)}else if(t.isexportalldeclaration()){var _e=_({object:r(t.node.source.value,t.node._blockhoist)});_e.loc=t.node.loc,v.push(_e),t.remove()}}for(var de in h){var ce=h[de],o=ce.specifiers,we=ce.maxblockhoist;if(o.length){for(var pe=r(de,we),ke=void 0,fe=0;fe0&&(oe._blockhoist=we),v.push(oe)}ke=te.local}else g.isimportdefaultspecifier(te)&&(o[fe]=g.importspecifier(te.local,g.identifier("default")))}for(var be=o,re=array.isarray(be),ie=0,be=re?be:(0,l.default)(be);;){var me;if(re){if(ie>=be.length)break;me=be[ie++]}else{if(ie=be.next(),ie.done)break;me=ie.value}var ne=me;if(g.isimportspecifier(ne)){var le=pe;if("default"===ne.imported.name)if(ke)le=ke;else if(!a){le=ke=e.scope.generateuididentifier(pe.name);var je=g.variabledeclaration("var",[g.variabledeclarator(le,g.callexpression(this.addhelper("interoprequiredefault"),[pe]))]);we>0&&(je._blockhoist=we),v.push(je)}d[ne.local.name]=g.memberexpression(le,g.clonewithoutloc(ne.imported))}}}else{var ue=b(g.stringliteral(de));ue.loc=h[de].loc,v.push(ue)}}if(f&&(0,s.default)(y).length)for(var ve=(0,s.default)(y),ge=0;ge=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;d.isobjectproperty()&&(d=d.get("value")),t(d,d.node,e.scope,o,i)}a&&(e.scope.push({id:a}),e.replacewith(r.assignmentexpression("=",a,e.node)))}}}}}};var u=r(193),l=n(u);e.exports=t.default},function(e,t,r){"use strict";function n(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}t.__esmodule=!0;var i=r(2),s=function(e){return e&&e.__esmodule?e:{default:e}}(i);t.default=function(){return{visitor:a.visitors.merge([{arrowfunctionexpression:function(e){for(var t=e.get("params"),r=t,n=array.isarray(r),i=0,r=n?r:(0,s.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;if(o.isrestelement()||o.isassignmentpattern()){e.arrowfunctiontoshadowed();break}}}},u.visitor,p.visitor,c.visitor])}};var a=r(7),o=r(334),u=n(o),l=r(333),c=n(l),f=r(335),p=n(f);e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0,t.default=function(){return{visitor:{objectmethod:function(e){var t=e.node;if("method"===t.kind){var r=i.functionexpression(null,t.params,t.body,t.generator,t.async);r.returntype=t.returntype,e.replacewith(i.objectproperty(t.key,r,t.computed))}},objectproperty:function(e){var t=e.node;t.shorthand&&(t.shorthand=!1)}}}};var n=r(1),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}(n);e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0;var n=r(2),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);t.default=function(e){function t(e,t,r){return r.opts.loose&&!s.isidentifier(e.argument,{name:"arguments"})?e.argument:t.toarray(e.argument,!0)}function r(e){for(var t=0;t=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;s.isspreadelement(d)?(a(),o.push(t(d,r,n))):u.push(d)}return a(),o}var s=e.types;return{visitor:{arrayexpression:function(e,t){var i=e.node,a=e.scope,o=i.elements;if(r(o)){var u=n(o,a,t),l=u.shift();s.isarrayexpression(l)||(u.unshift(l),l=s.arrayexpression([])),e.replacewith(s.callexpression(s.memberexpression(l,s.identifier("concat")),u))}},callexpression:function(e,t){var i=e.node,a=e.scope,o=i.arguments;if(r(o)){var u=e.get("callee");if(!u.issuper()){var l=s.identifier("undefined");i.arguments=[];var c=void 0;c=1===o.length&&"arguments"===o[0].argument.name?[o[0].argument]:n(o,a,t);var f=c.shift();c.length?i.arguments.push(s.callexpression(s.memberexpression(f,s.identifier("concat")),c)):i.arguments.push(f);var p=i.callee;if(u.ismemberexpression()){var d=a.maybegeneratememoised(p.object);d?(p.object=s.assignmentexpression("=",d,p.object),l=d):l=p.object,s.appendtomemberexpression(p,s.identifier("apply"))}else i.callee=s.memberexpression(i.callee,s.identifier("apply"));s.issuper(l)&&(l=s.thisexpression()),i.arguments.unshift(l)}}},newexpression:function(e,t){var i=e.node,a=e.scope,o=i.arguments;if(r(o)){var u=n(o,a,t),l=s.arrayexpression([s.nullliteral()]);o=s.callexpression(s.memberexpression(l,s.identifier("concat")),u),e.replacewith(s.newexpression(s.callexpression(s.memberexpression(s.memberexpression(s.memberexpression(s.identifier("function"),s.identifier("prototype")),s.identifier("bind")),s.identifier("apply")),[i.callee,o]),[]))}}}}},e.exports=t.default},function(e,t,r){"use strict";function n(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}t.__esmodule=!0,t.default=function(){return{visitor:{regexpliteral:function(e){var t=e.node;s.is(t,"y")&&e.replacewith(o.newexpression(o.identifier("regexp"),[o.stringliteral(t.pattern),o.stringliteral(t.flags)]))}}}};var i=r(192),s=n(i),a=r(1),o=n(a);e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0;var n=r(2),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);t.default=function(e){function t(e){return n.isliteral(e)&&"string"==typeof e.value}function r(e,t){return n.binaryexpression("+",e,t)}var n=e.types;return{visitor:{taggedtemplateexpression:function(e,t){for(var r=e.node,s=r.quasi,a=[],o=[],u=[],l=s.quasis,c=array.isarray(l),f=0,l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if(f=l.next(),f.done)break;p=f.value}var d=p;o.push(n.stringliteral(d.value.cooked)),u.push(n.stringliteral(d.value.raw))}o=n.arrayexpression(o),u=n.arrayexpression(u);var h="taggedtemplateliteral";t.opts.loose&&(h+="loose");var m=t.file.addtemplateobject(h,o,u);a.push(m),a=a.concat(s.expressions),e.replacewith(n.callexpression(r.tag,a))},templateliteral:function(e,s){for(var a=[],o=e.get("expressions"),u=e.node.quasis,l=array.isarray(u),c=0,u=l?u:(0,i.default)(u);;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;a.push(n.stringliteral(p.value.cooked));var d=o.shift();d&&(!s.opts.spec||d.isbasetype("string")||d.isbasetype("number")?a.push(d.node):a.push(n.callexpression(n.identifier("string"),[d.node])))}if(a=a.filter(function(e){return!n.isliteral(e,{value:""})}),t(a[0])||t(a[1])||a.unshift(n.stringliteral("")),a.length>1){for(var h=r(a.shift(),a.shift()),m=a,y=array.isarray(m),v=0,m=y?m:(0,i.default)(m);;){var g;if(y){if(v>=m.length)break;g=m[v++]}else{if(v=m.next(),v.done)break;g=v.value}h=r(h,g)}e.replacewith(h)}else e.replacewith(a[0])}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0;var n=r(10),i=function(e){return e&&e.__esmodule?e:{default:e}}(n);t.default=function(e){var t=e.types,r=(0,i.default)();return{visitor:{scope:function(e){var t=e.scope;t.getbinding("symbol")&&t.rename("symbol")},unaryexpression:function(e){var n=e.node,i=e.parent;if(!n[r]&&!e.find(function(e){return e.node&&!!e.node._generated})){if(e.parentpath.isbinaryexpression()&&t.equality_binary_operators.indexof(i.operator)>=0){var s=e.getopposite();if(s.isliteral()&&"symbol"!==s.node.value&&"object"!==s.node.value)return}if("typeof"===n.operator){var a=t.callexpression(this.addhelper("typeof"),[n.argument]);if(e.get("argument").isidentifier()){var o=t.stringliteral("undefined"),u=t.unaryexpression("typeof",n.argument);u[r]=!0,e.replacewith(t.conditionalexpression(t.binaryexpression("===",u,o),o,a))}else e.replacewith(a)}}}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esmodule=!0,t.default=function(){return{visitor:{regexpliteral:function(e){var t=e.node;a.is(t,"u")&&(t.pattern=(0,i.default)(t.pattern,t.flags),a.pullflag(t,"u"))}}}};var n=r(612),i=function(e){return e&&e.__esmodule?e:{default:e}}(n),s=r(192),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);e.exports=t.default},function(e,t,r){"use strict";e.exports=r(606)},function(e,t,r){"use strict";e.exports={default:r(408),__esmodule:!0}},function(e,t,r){"use strict";function n(){i(),s()}function i(){t.path=u=new o.default}function s(){t.scope=l=new o.default}t.__esmodule=!0,t.scope=t.path=void 0;var a=r(364),o=function(e){return e&&e.__esmodule?e:{default:e}}(a);t.clear=n,t.clearpath=i,t.clearscope=s;var u=t.path=new o.default,l=t.scope=new o.default},function(e,t){"use strict";function r(e){return e=e.split(" "),function(t){return e.indexof(t)>=0}}function n(e,t){for(var r=65536,n=0;ne)return!1;if((r+=t[n+1])>=e)return!0}}function i(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&x.test(string.fromcharcode(e)):n(e,s)))}function s(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(string.fromcharcode(e)):n(e,s)||n(e,_))))}function a(e){var t={};for(var r in d)t[r]=e&&r in e?e[r]:d[r];return t}function o(e){return 10===e||13===e||8232===e||8233===e}function u(e,t){for(var r=1,n=0;;){n.lastindex=n;var i=n.exec(e);if(!(i&&i.index>10),56320+(e-65536&1023))}function c(e,t,r,n){return e.type=t,e.end=r,e.loc.end=n,this.processcomment(e),e}function f(e){return e[e.length-1]}function p(e){return e&&"property"===e.type&&"init"===e.kind&&!1===e.method}function d(e){return"jsxidentifier"===e.type?e.name:"jsxnamespacedname"===e.type?e.namespace.name+":"+e.name.name:"jsxmemberexpression"===e.type?d(e.object)+"."+d(e.property):void 0}function h(e,t){return new j(t,e).parse()}function m(e,t){var r=new j(t,e);return r.options.strictmode&&(r.state.strict=!0),r.getexpression()}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};object.defineproperty(t,"__esmodule",{value:!0});var v={6:r("enum await"),strict:r("implements interface let package private protected public static yield"),strictbind:r("eval arguments") },g=r("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"),b="ªµºà-öø-öø-ˁˆ-ˑˠ-ˤˬˮͱ-ʹͷͷͺ-ͽͿάέ-ίόύ-ρσ-ϵϸ-ҁҋ-ԯա-ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎⴀ-ⴥჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḁ-ἕἐ-ἕἠ-ὅὀ-ὅὐ-ὗὑὓὕὗ-ώᾀ-ᾴᾶ-ᾳιῂ-ῄῆ-ῃῐ-ΐῖ-ίῠ-ῥῲ-ῴῶ-ῳⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤωℨk-ℹℼ-ℿⅅ-ⅉⅎⅰ-ↈⰰ-ⱞⰰ-ⱞⱡ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙁ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜣ-ꞈꞌ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼa-za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",e="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",x=new regexp("["+b+"]"),a=new regexp("["+b+e+"]");b=e=null;var s=[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],_=[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],d={sourcetype:"script",sourcefilename:void 0,startline:1,allowreturnoutsidefunction:!1,allowimportexporteverywhere:!1,allowsuperoutsidemethod:!1,plugins:[],strictmode:null},c="function"==typeof symbol&&"symbol"===y(symbol.iterator)?function(e){return void 0===e?"undefined":y(e)}:function(e){return e&&"function"==typeof symbol&&e.constructor===symbol&&e!==symbol.prototype?"symbol":void 0===e?"undefined":y(e)},w=function(e,t){if(!(e instanceof t))throw new typeerror("cannot call a class as a function")},p=function(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("super expression must either be null or a function, not "+(void 0===t?"undefined":y(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)},k=function(e,t){if(!e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":y(t))&&"function"!=typeof t?e:t},f=!0,t=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(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},o=function(e){function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w(this,t),n.keyword=r,k(this,e.call(this,r,n))}return p(t,e),t}(t),b=function(e){function t(r,n){return w(this,t),k(this,e.call(this,r,{beforeexpr:f,binop:n}))}return p(t,e),t}(t),r={num:new t("num",{startsexpr:!0}),regexp:new t("regexp",{startsexpr:!0}),string:new t("string",{startsexpr:!0}),name:new t("name",{startsexpr:!0}),eof:new t("eof"),bracketl:new t("[",{beforeexpr:f,startsexpr:!0}),bracketr:new t("]"),bracel:new t("{",{beforeexpr:f,startsexpr:!0}),bracebarl:new t("{|",{beforeexpr:f,startsexpr:!0}),bracer:new t("}"),bracebarr:new t("|}"),parenl:new t("(",{beforeexpr:f,startsexpr:!0}),parenr:new t(")"),comma:new t(",",{beforeexpr:f}),semi:new t(";",{beforeexpr:f}),colon:new t(":",{beforeexpr:f}),doublecolon:new t("::",{beforeexpr:f}),dot:new t("."),question:new t("?",{beforeexpr:f}),arrow:new t("=>",{beforeexpr:f}),template:new t("template"),ellipsis:new t("...",{beforeexpr:f}),backquote:new t("`",{startsexpr:!0}),dollarbracel:new t("${",{beforeexpr:f,startsexpr:!0}),at:new t("@"),eq:new t("=",{beforeexpr:f,isassign:!0}),assign:new t("_=",{beforeexpr:f,isassign:!0}),incdec:new t("++/--",{prefix:!0,postfix:!0,startsexpr:!0}),prefix:new t("prefix",{beforeexpr:f,prefix:!0,startsexpr:!0}),logicalor:new b("||",1),logicaland:new b("&&",2),bitwiseor:new b("|",3),bitwisexor:new b("^",4),bitwiseand:new b("&",5),equality:new b("==/!=",6),relational:new b("",7),bitshift:new b("<>",8),plusmin:new t("+/-",{beforeexpr:f,binop:9,prefix:!0,startsexpr:!0}),modulo:new b("%",10),star:new b("*",10),slash:new b("/",10),exponent:new t("**",{beforeexpr:f,binop:11,rightassociative:!0})},i={break:new o("break"),case:new o("case",{beforeexpr:f}),catch:new o("catch"),continue:new o("continue"),debugger:new o("debugger"),default:new o("default",{beforeexpr:f}),do:new o("do",{isloop:!0,beforeexpr:f}),else:new o("else",{beforeexpr:f}),finally:new o("finally"),for:new o("for",{isloop:!0}),function:new o("function",{startsexpr:!0}),if:new o("if"),return:new o("return",{beforeexpr:f}),switch:new o("switch"),throw:new o("throw",{beforeexpr:f}),try:new o("try"),var:new o("var"),let:new o("let"),const:new o("const"),while:new o("while",{isloop:!0}),with:new o("with"),new:new o("new",{beforeexpr:f,startsexpr:!0}),this:new o("this",{startsexpr:!0}),super:new o("super",{startsexpr:!0}),class:new o("class"),extends:new o("extends",{beforeexpr:f}),export:new o("export"),import:new o("import",{startsexpr:!0}),yield:new o("yield",{beforeexpr:f,startsexpr:!0}),null:new o("null",{startsexpr:!0}),true:new o("true",{startsexpr:!0}),false:new o("false",{startsexpr:!0}),in:new o("in",{beforeexpr:f,binop:7}),instanceof:new o("instanceof",{beforeexpr:f,binop:7}),typeof:new o("typeof",{beforeexpr:f,prefix:!0,startsexpr:!0}),void:new o("void",{beforeexpr:f,prefix:!0,startsexpr:!0}),delete:new o("delete",{beforeexpr:f,prefix:!0,startsexpr:!0})};object.keys(i).foreach(function(e){r["_"+e]=i[e]});var m=/\r\n?|\n|\u2028|\u2029/,n=new regexp(m.source,"g"),l=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,j=function e(t,r,n,i){w(this,e),this.token=t,this.isexpr=!!r,this.preservespace=!!n,this.override=i},u={bracestatement:new j("{",!1),braceexpression:new j("{",!0),templatequasi:new j("${",!0),parenstatement:new j("(",!1),parenexpression:new j("(",!0),template:new j("`",!0,!0,function(e){return e.readtmpltoken()}),functionexpression:new j("function",!0)};r.parenr.updatecontext=r.bracer.updatecontext=function(){if(1===this.state.context.length)return void(this.state.exprallowed=!0);var e=this.state.context.pop();e===u.bracestatement&&this.curcontext()===u.functionexpression?(this.state.context.pop(),this.state.exprallowed=!1):e===u.templatequasi?this.state.exprallowed=!0:this.state.exprallowed=!e.isexpr},r.name.updatecontext=function(e){this.state.exprallowed=!1,e!==r._let&&e!==r._const&&e!==r._var||m.test(this.input.slice(this.state.end))&&(this.state.exprallowed=!0)},r.bracel.updatecontext=function(e){this.state.context.push(this.braceisblock(e)?u.bracestatement:u.braceexpression),this.state.exprallowed=!0},r.dollarbracel.updatecontext=function(){this.state.context.push(u.templatequasi),this.state.exprallowed=!0},r.parenl.updatecontext=function(e){var t=e===r._if||e===r._for||e===r._with||e===r._while;this.state.context.push(t?u.parenstatement:u.parenexpression),this.state.exprallowed=!0},r.incdec.updatecontext=function(){},r._function.updatecontext=function(){this.curcontext()!==u.bracestatement&&this.state.context.push(u.functionexpression),this.state.exprallowed=!1},r.backquote.updatecontext=function(){this.curcontext()===u.template?this.state.context.pop():this.state.context.push(u.template),this.state.exprallowed=!1};var v=function e(t,r){w(this,e),this.line=t,this.column=r},g=function e(t,r){w(this,e),this.start=t,this.end=r},w=function(){function e(){w(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=r.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=[u.bracestatement],this.exprallowed=!0,this.containsesc=this.containsoctal=!1,this.octalposition=null,this.invalidtemplateescapeposition=null,this.exportedidentifiers=[],this},e.prototype.curposition=function(){return new v(this.curline,this.pos-this.linestart)},e.prototype.clone=function(t){var r=new e;for(var n in this){var i=this[n];t&&"context"!==n||!array.isarray(i)||(i=i.slice()),r[n]=i}return r},e}(),y=function e(t){w(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new g(t.startloc,t.endloc)},q=function(){function e(t,r){w(this,e),this.state=new w,this.state.init(t,r)}return e.prototype.next=function(){this.islookahead||this.state.tokens.push(new y(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 g(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(r.num)||this.match(r.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishtoken(r.eof):e.override?e.override(this):this.readtoken(this.fullcharcodeatpos())},e.prototype.readtoken=function(e){return i(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,n,i,s){var a={type:e?"commentblock":"commentline",value:t,start:r,end:n,loc:new g(i,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,n.lastindex=t;for(var n=void 0;(n=n.exec(this.input))&&n.index8&&e<14||e>=5760&&l.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(r.ellipsis)):(++this.state.pos,this.finishtoken(r.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(r.assign,2):this.finishop(r.slash,1)},e.prototype.readtoken_mult_modulo=function(e){var t=42===e?r.star:r.modulo,r=1,n=this.input.charcodeat(this.state.pos+1);return 42===n&&(r++,n=this.input.charcodeat(this.state.pos+2),t=r.exponent),61===n&&(r++,t=r.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?r.logicalor:r.logicaland,2):61===t?this.finishop(r.assign,2):124===e&&125===t&&this.hasplugin("flow")?this.finishop(r.bracebarr,2):this.finishop(124===e?r.bitwiseor:r.bitwiseand,1)},e.prototype.readtoken_caret=function(){return 61===this.input.charcodeat(this.state.pos+1)?this.finishop(r.assign,2):this.finishop(r.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)&&m.test(this.input.slice(this.state.lasttokend,this.state.pos))?(this.skiplinecomment(3),this.skipspace(),this.nexttoken()):this.finishop(r.incdec,2):61===t?this.finishop(r.assign,2):this.finishop(r.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(r.assign,r+1):this.finishop(r.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(r.relational,r))},e.prototype.readtoken_eq_excl=function(e){var t=this.input.charcodeat(this.state.pos+1);return 61===t?this.finishop(r.equality,61===this.input.charcodeat(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishtoken(r.arrow)):this.finishop(61===e?r.eq:r.prefix,1)},e.prototype.gettokenfromcode=function(e){switch(e){case 46:return this.readtoken_dot();case 40:return++this.state.pos,this.finishtoken(r.parenl);case 41:return++this.state.pos,this.finishtoken(r.parenr);case 59:return++this.state.pos,this.finishtoken(r.semi);case 44:return++this.state.pos,this.finishtoken(r.comma);case 91:return++this.state.pos,this.finishtoken(r.bracketl);case 93:return++this.state.pos,this.finishtoken(r.bracketr);case 123:return this.hasplugin("flow")&&124===this.input.charcodeat(this.state.pos+1)?this.finishop(r.bracebarl,2):(++this.state.pos,this.finishtoken(r.bracel));case 125:return++this.state.pos,this.finishtoken(r.bracer);case 58:return this.hasplugin("functionbind")&&58===this.input.charcodeat(this.state.pos+1)?this.finishop(r.doublecolon,2):(++this.state.pos,this.finishtoken(r.colon));case 63:return++this.state.pos,this.finishtoken(r.question);case 64:return++this.state.pos,this.finishtoken(r.at);case 96:return++this.state.pos,this.finishtoken(r.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(r.prefix,1)}this.raise(this.state.pos,"unexpected character '"+l(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 n=this.input.charat(this.state.pos);if(m.test(n)&&this.raise(e,"unterminated regular expression"),t)t=!1;else{if("["===n)r=!0;else if("]"===n&&r)r=!1;else if("/"===n&&!r)break;t="\\"===n}++this.state.pos}var i=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(r.regexp,{pattern:i,flags:s})},e.prototype.readint=function(e,t){for(var r=this.state.pos,n=0,i=0,s=null==t?1/0:t;i=97?a-97+10:a>=65?a-65+10:a>=48&&a<=57?a-48:1/0)>=e)break;++this.state.pos,n=n*e+o}return this.state.pos===r||null!=t&&this.state.pos-r!==t?null:n},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),i(this.fullcharcodeatpos())&&this.raise(this.state.pos,"identifier directly after number"),this.finishtoken(r.num,t)},e.prototype.readnumber=function(e){var t=this.state.pos,r=48===this.input.charcodeat(t),n=!1;e||null!==this.readint(10)||this.raise(t,"invalid number"),r&&this.state.pos==t+1&&(r=!1);var s=this.input.charcodeat(this.state.pos);46!==s||r||(++this.state.pos,this.readint(10),n=!0,s=this.input.charcodeat(this.state.pos)),69!==s&&101!==s||r||(s=this.input.charcodeat(++this.state.pos),43!==s&&45!==s||++this.state.pos,null===this.readint(10)&&this.raise(t,"invalid number"),n=!0),i(this.fullcharcodeatpos())&&this.raise(this.state.pos,"identifier directly after number");var a=this.input.slice(t,this.state.pos),o=void 0;return n?o=parsefloat(a):r&&1!==a.length?this.state.strict?this.raise(t,"invalid number"):o=/[89]/.test(a)?parseint(a,10):parseint(a,8):o=parseint(a,10),this.finishtoken(r.num,o)},e.prototype.readcodepoint=function(e){var t=this.input.charcodeat(this.state.pos),r=void 0;if(123===t){var n=++this.state.pos;if(r=this.readhexchar(this.input.indexof("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===r)--this.state.invalidtemplateescapeposition;else if(r>1114111){if(!e)return this.state.invalidtemplateescapeposition=n-2,null;this.raise(n,"code point out of bounds")}}else r=this.readhexchar(4,e);return r},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 n=this.input.charcodeat(this.state.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.state.pos),t+=this.readescapedchar(!1),r=this.state.pos):(o(n)&&this.raise(this.state.start,"unterminated string constant"),++this.state.pos)}return t+=this.input.slice(r,this.state.pos++),this.finishtoken(r.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 n=this.input.charcodeat(this.state.pos);if(96===n||36===n&&123===this.input.charcodeat(this.state.pos+1))return this.state.pos===this.state.start&&this.match(r.template)?36===n?(this.state.pos+=2,this.finishtoken(r.dollarbracel)):(++this.state.pos,this.finishtoken(r.backquote)):(e+=this.input.slice(t,this.state.pos),this.finishtoken(r.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var i=this.readescapedchar(!0);null===i?r=!0:e+=i,t=this.state.pos}else if(o(n)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,n){case 13:10===this.input.charcodeat(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=string.fromcharcode(n)}++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 n=this.readhexchar(2,t);return null===n?null:string.fromcharcode(n);case 117:var i=this.readcodepoint(t);return null===i?null:l(i);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,n=this.readint(16,e);return null===n&&(t?this.raise(r,"bad character escape sequence"):(this.state.pos=r-1,this.state.invalidtemplateescapeposition=r-1)),n},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(k).filter(function(e){return"flow"!==e&&"estree"!==e});t.push("flow"),t.foreach(function(t){var r=k[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}),e.push("flow")),e.indexof("estree")>=0&&(e=e.filter(function(e){return"estree"!==e}),e.unshift("estree"));for(var r=e,n=array.isarray(r),i=0,r=n?r:r[symbol.iterator]();;){var s;if(n){if(i>=r.length)break;s=r[i++]}else{if(i=r.next(),i.done)break;s=i.value}var a=s;if(!t[a]){t[a]=!0;var o=k[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}(q),x=j.prototype;x.addextra=function(e,t,r){if(e){(e.extra=e.extra||{})[t]=r}},x.isrelational=function(e){return this.match(r.relational)&&this.state.value===e},x.expectrelational=function(e){this.isrelational(e)?this.next():this.unexpected(null,r.relational)},x.iscontextual=function(e){return this.match(r.name)&&this.state.value===e},x.eatcontextual=function(e){return this.state.value===e&&this.eat(r.name)},x.expectcontextual=function(e,t){this.eatcontextual(e)||this.unexpected(null,t)},x.caninsertsemicolon=function(){return this.match(r.eof)||this.match(r.bracer)||m.test(this.input.slice(this.state.lasttokend,this.state.start))},x.islineterminator=function(){return this.eat(r.semi)||this.caninsertsemicolon()},x.semicolon=function(){this.islineterminator()||this.unexpected(null,r.semi)},x.expect=function(e,t){return this.eat(e)||this.unexpected(t,e)},x.unexpected=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected token";t&&"object"===(void 0===t?"undefined":c(t))&&t.label&&(t="unexpected token, expected "+t.label),this.raise(null!=e?e:this.state.start,t)};var z=j.prototype;z.parsetoplevel=function(e,t){return t.sourcetype=this.options.sourcetype,this.parseblockbody(t,!0,!0,r.eof),e.program=this.finishnode(t,"program"),e.comments=this.state.comments,e.tokens=this.state.tokens,this.finishnode(e,"file")};var $={kind:"loop"},q={kind:"switch"};z.stmttodirective=function(e){var t=e.expression,r=this.startnodeat(t.start,t.loc.start),n=this.startnodeat(e.start,e.loc.start),i=this.input.slice(t.start,t.end),s=r.value=i.slice(1,-1);return this.addextra(r,"raw",i),this.addextra(r,"rawvalue",s),n.value=this.finishnodeat(r,"directiveliteral",t.end,t.loc.end),this.finishnodeat(n,"directive",e.end,e.loc.end)},z.parsestatement=function(e,t){this.match(r.at)&&this.parsedecorators(!0);var r=this.state.type,n=this.startnode();switch(r){case r._break:case r._continue:return this.parsebreakcontinuestatement(n,r.keyword);case r._debugger:return this.parsedebuggerstatement(n);case r._do:return this.parsedostatement(n);case r._for:return this.parseforstatement(n);case r._function:return e||this.unexpected(),this.parsefunctionstatement(n);case r._class:return e||this.unexpected(),this.parseclass(n,!0);case r._if:return this.parseifstatement(n);case r._return:return this.parsereturnstatement(n);case r._switch:return this.parseswitchstatement(n);case r._throw:return this.parsethrowstatement(n);case r._try:return this.parsetrystatement(n);case r._let:case r._const:e||this.unexpected();case r._var:return this.parsevarstatement(n,r);case r._while:return this.parsewhilestatement(n);case r._with:return this.parsewithstatement(n);case r.bracel:return this.parseblock();case r.semi:return this.parseemptystatement(n);case r._export:case r._import:if(this.hasplugin("dynamicimport")&&this.lookahead().type===r.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===r._import?this.parseimport(n):this.parseexport(n);case r.name:if("async"===this.state.value){var i=this.state.clone();if(this.next(),this.match(r._function)&&!this.caninsertsemicolon())return this.expect(r._function),this.parsefunction(n,!0,!1,!0);this.state=i}}var s=this.state.value,a=this.parseexpression();return r===r.name&&"identifier"===a.type&&this.eat(r.colon)?this.parselabeledstatement(n,s,a):this.parseexpressionstatement(n,a)},z.takedecorators=function(e){this.state.decorators.length&&(e.decorators=this.state.decorators,this.state.decorators=[])},z.parsedecorators=function(e){for(;this.match(r.at);){var t=this.parsedecorator();this.state.decorators.push(t)}e&&this.match(r._export)||this.match(r._class)||this.raise(this.state.start,"leading decorators must be attached to a class declaration")},z.parsedecorator=function(){this.hasplugin("decorators")||this.unexpected();var e=this.startnode();return this.next(),e.expression=this.parsemaybeassign(),this.finishnode(e,"decorator")},z.parsebreakcontinuestatement=function(e,t){var r="break"===t;this.next(),this.islineterminator()?e.label=null:this.match(r.name)?(e.label=this.parseidentifier(),this.semicolon()):this.unexpected();var n=void 0;for(n=0;n=n.length)break;a=n[s++]}else{if(s=n.next(),s.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(r._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")},z.parseexpressionstatement=function(e,t){return e.expression=t,this.semicolon(),this.finishnode(e,"expressionstatement")},z.parseblock=function(e){var t=this.startnode();return this.expect(r.bracel),this.parseblockbody(t,e,!1,r.bracer),this.finishnode(t,"blockstatement")},z.isvaliddirective=function(e){return"expressionstatement"===e.type&&"stringliteral"===e.expression.type&&!e.expression.extra.parenthesized},z.parseblockbody=function(e,t,r,n){e.body=[],e.directives=[];for(var i=!1,s=void 0,a=void 0;!this.eat(n);){i||!this.state.containsoctal||a||(a=this.state.octalposition);var o=this.parsestatement(!0,r);if(t&&!i&&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 i=!0,e.body.push(o)}!1===s&&this.setstrict(!1)},z.parsefor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.match(r.semi)?null:this.parseexpression(),this.expect(r.semi),e.update=this.match(r.parenr)?null:this.parseexpression(),this.expect(r.parenr),e.body=this.parsestatement(!1),this.state.labels.pop(),this.finishnode(e,"forstatement")},z.parseforin=function(e,t,r){var n=void 0;return r?(this.eatcontextual("of"),n="forawaitstatement"):(n=this.match(r._in)?"forinstatement":"forofstatement",this.next()),e.left=t,e.right=this.parseexpression(),this.expect(r.parenr),e.body=this.parsestatement(!1),this.state.labels.pop(),this.finishnode(e,n)},z.parsevar=function(e,t,r){for(e.declarations=[],e.kind=r.keyword;;){var n=this.startnode();if(this.parsevarhead(n),this.eat(r.eq)?n.init=this.parsemaybeassign(t):r!==r._const||this.match(r._in)||this.iscontextual("of")?"identifier"===n.id.type||t&&(this.match(r._in)||this.iscontextual("of"))?n.init=null:this.raise(this.state.lasttokend,"complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishnode(n,"variabledeclarator")),!this.eat(r.comma))break}return e},z.parsevarhead=function(e){e.id=this.parsebindingatom(),this.checklval(e.id,!0,void 0,"variable declaration")},z.parsefunction=function(e,t,r,n,i){var s=this.state.inmethod;return this.state.inmethod=!1,this.initfunction(e,n),this.match(r.star)&&(e.async&&!this.hasplugin("asyncgenerators")?this.unexpected():(e.generator=!0,this.next())),!t||i||this.match(r.name)||this.match(r._yield)||this.unexpected(),(this.match(r.name)||this.match(r._yield))&&(e.id=this.parsebindingidentifier()),this.parsefunctionparams(e),this.parsefunctionbody(e,r),this.state.inmethod=s,this.finishnode(e,t?"functiondeclaration":"functionexpression")},z.parsefunctionparams=function(e){this.expect(r.parenl),e.params=this.parsebindinglist(r.parenr)},z.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")},z.isclassproperty=function(){return this.match(r.eq)||this.match(r.semi)||this.match(r.bracer)},z.isclassmethod=function(){return this.match(r.parenl)},z.isnonstaticconstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},z.parseclassbody=function(e){var t=this.state.strict;this.state.strict=!0;var r=!1,n=!1,i=[],s=this.startnode();for(s.body=[],this.expect(r.bracel);!this.eat(r.bracer);)if(this.eat(r.semi))i.length>0&&this.raise(this.state.lasttokend,"decorators must not be followed by a semicolon");else if(this.match(r.at))i.push(this.parsedecorator());else{var a=this.startnode();if(i.length&&(a.decorators=i,i=[]),a.static=!1,this.match(r.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(r.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(r.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)?(n?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"),n=!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(r.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(r.star)?this.hasplugin("classconstructorcall")&&u&&"call"===l.name&&this.match(r.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))}}i.length&&this.raise(this.state.start,"you have trailing decorators with no method"),e.body=this.finishnode(s,"classbody"),this.state.strict=t},z.parseclassproperty=function(e){return this.state.inclassproperty=!0,this.match(r.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")},z.parseclassmethod=function(e,t,r,n){this.parsemethod(t,r,n),e.body.push(this.finishnode(t,"classmethod"))},z.parseclassid=function(e,t,r){this.match(r.name)?e.id=this.parseidentifier():r||!t?e.id=null:this.unexpected()},z.parseclasssuper=function(e){e.superclass=this.eat(r._extends)?this.parseexprsubscripts():null},z.parseexport=function(e){if(this.next(),this.match(r.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(r.comma)&&this.lookahead().type===r.star){this.expect(r.comma);var n=this.startnode();this.expect(r.star),this.expectcontextual("as"),n.exported=this.parseidentifier(),e.specifiers.push(this.finishnode(n,"exportnamespacespecifier"))}else this.parseexportspecifiersmaybe(e);this.parseexportfrom(e,!0)}else{if(this.eat(r._default)){var i=this.startnode(),s=!1;return this.eat(r._function)?i=this.parsefunction(i,!0,!1,!1,!0):this.match(r._class)?i=this.parseclass(i,!0,!0):(s=!0,i=this.parsemaybeassign()),e.declaration=i,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")},z.parseexportdeclaration=function(){return this.parsestatement(!0)},z.isexportdefaultspecifier=function(){if(this.match(r.name))return"async"!==this.state.value;if(!this.match(r._default))return!1;var e=this.lookahead();return e.type===r.comma||e.type===r.name&&"from"===e.value},z.parseexportspecifiersmaybe=function(e){this.eat(r.comma)&&(e.specifiers=e.specifiers.concat(this.parseexportspecifiers()))},z.parseexportfrom=function(e,t){this.eatcontextual("from")?(e.source=this.match(r.string)?this.parseexpratom():this.unexpected(),this.checkexport(e)):t?this.unexpected():e.source=null,this.semicolon()},z.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")},z.checkexport=function(e,t,r){if(t)if(r)this.checkduplicateexports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var n=e.specifiers,i=array.isarray(n),s=0,n=i?n:n[symbol.iterator]();;){var a;if(i){if(s>=n.length)break;a=n[s++]}else{if(s=n.next(),s.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)for(var u=e.declaration.declarations,l=array.isarray(u),c=0,u=l?u:u[symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if(c=u.next(),c.done)break;f=c.value}var p=f;this.checkdeclaration(p.id)}if(this.state.decorators.length){var d=e.declaration&&("classdeclaration"===e.declaration.type||"classexpression"===e.declaration.type);e.declaration&&d||this.raise(e.start,"you can only use decorators on an export when exporting a class"),this.takedecorators(e.declaration)}},z.checkdeclaration=function(e){if("objectpattern"===e.type)for(var t=e.properties,r=array.isarray(t),n=0,t=r?t:t[symbol.iterator]();;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if(n=t.next(),n.done)break;i=n.value}var s=i;this.checkdeclaration(s)}else if("arraypattern"===e.type)for(var a=e.elements,o=array.isarray(a),u=0,a=o?a:a[symbol.iterator]();;){var l;if(o){if(u>=a.length)break;l=a[u++]}else{if(u=a.next(),u.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)},z.checkduplicateexports=function(e,t){this.state.exportedidentifiers.indexof(t)>-1&&this.raiseduplicateexporterror(e,t),this.state.exportedidentifiers.push(t)},z.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.")},z.parseexportspecifiers=function(){var e=[],t=!0,r=void 0;for(this.expect(r.bracel);!this.eat(r.bracer);){if(t)t=!1;else if(this.expect(r.comma),this.eat(r.bracer))break;var n=this.match(r._default);n&&!r&&(r=!0);var i=this.startnode();i.local=this.parseidentifier(n),i.exported=this.eatcontextual("as")?this.parseidentifier(!0):i.local.__clone(),e.push(this.finishnode(i,"exportspecifier"))}return r&&!this.iscontextual("from")&&this.unexpected(),e},z.parseimport=function(e){return this.eat(r._import),this.match(r.string)?(e.specifiers=[],e.source=this.parseexpratom()):(e.specifiers=[],this.parseimportspecifiers(e),this.expectcontextual("from"),e.source=this.match(r.string)?this.parseexpratom():this.unexpected()),this.semicolon(),this.finishnode(e,"importdeclaration")},z.parseimportspecifiers=function(e){var t=!0;if(this.match(r.name)){var r=this.state.start,n=this.state.startloc;if(e.specifiers.push(this.parseimportspecifierdefault(this.parseidentifier(),r,n)),!this.eat(r.comma))return}if(this.match(r.star)){var i=this.startnode();return this.next(),this.expectcontextual("as"),i.local=this.parseidentifier(),this.checklval(i.local,!0,void 0,"import namespace specifier"),void e.specifiers.push(this.finishnode(i,"importnamespacespecifier"))}for(this.expect(r.bracel);!this.eat(r.bracer);){if(t)t=!1;else if(this.eat(r.colon)&&this.unexpected(null,"es2015 named imports do not destructure. use another statement for destructuring after the import."),this.expect(r.comma),this.eat(r.bracer))break;this.parseimportspecifier(e)}},z.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"))},z.parseimportspecifierdefault=function(e,t,r){var n=this.startnodeat(t,r);return n.local=e,this.checklval(n.local,!0,void 0,"default import specifier"),this.finishnode(n,"importdefaultspecifier")};var ee=j.prototype;ee.toassignable=function(e,t,r){if(e)switch(e.type){case"identifier":case"objectpattern":case"arraypattern":case"assignmentpattern":break;case"objectexpression":e.type="objectpattern";for(var n=e.properties,i=array.isarray(n),s=0,n=i?n:n[symbol.iterator]();;){var a;if(i){if(s>=n.length)break;a=n[s++]}else{if(s=n.next(),s.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},ee.toassignablelist=function(e,t,r){var n=e.length;if(n){var i=e[n-1];if(i&&"restelement"===i.type)--n;else if(i&&"spreadelement"===i.type){i.type="restelement";var s=i.argument;this.toassignable(s,t,r),"identifier"!==s.type&&"memberexpression"!==s.type&&"arraypattern"!==s.type&&this.unexpected(s.start),--n}}for(var a=0;a=s.length)break;u=s[o++]}else{if(o=s.next(),o.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":for(var c=e.elements,f=array.isarray(c),p=0,c=f?c:c[symbol.iterator]();;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if(p=c.next(),p.done)break;d=p.value}var h=d;h&&this.checklval(h,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"+(n?" in "+n:"expression");this.raise(e.start,m)}};var te=j.prototype;te.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)}},te.getexpression=function(){this.nexttoken();var e=this.parseexpression();return this.match(r.eof)||this.unexpected(),e},te.parseexpression=function(e,t){var r=this.state.start,n=this.state.startloc,i=this.parsemaybeassign(e,t);if(this.match(r.comma)){var s=this.startnodeat(r,n);for(s.expressions=[i];this.eat(r.comma);)s.expressions.push(this.parsemaybeassign(e,t));return this.toreferencedlist(s.expressions),this.finishnode(s,"sequenceexpression")}return i},te.parsemaybeassign=function(e,t,r,n){var i=this.state.start,s=this.state.startloc;if(this.match(r._yield)&&this.state.ingenerator){var a=this.parseyield();return r&&(a=r.call(this,a,i,s)),a}var o=void 0;t?o=!1:(t={start:0},o=!0),(this.match(r.parenl)||this.match(r.name))&&(this.state.potentialarrowat=this.state.start);var u=this.parsemaybeconditional(e,t,n);if(r&&(u=r.call(this,u,i,s)),this.state.type.isassign){var l=this.startnodeat(i,s);if(l.operator=this.state.value,l.left=this.match(r.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},te.parsemaybeconditional=function(e,t,r){var n=this.state.start,i=this.state.startloc,s=this.parseexprops(e,t);return t&&t.start?s:this.parseconditional(s,e,n,i,r)},te.parseconditional=function(e,t,r,n){if(this.eat(r.question)){var i=this.startnodeat(r,n);return i.test=e,i.consequent=this.parsemaybeassign(),this.expect(r.colon),i.alternate=this.parsemaybeassign(t),this.finishnode(i,"conditionalexpression")}return e},te.parseexprops=function(e,t){var r=this.state.start,n=this.state.startloc,i=this.parsemaybeunary(t);return t&&t.start?i:this.parseexprop(i,r,n,-1,e)},te.parseexprop=function(e,t,r,n,i){var s=this.state.type.binop;if(!(null==s||i&&this.match(r._in))&&s>n){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,i),this.finishnode(a,o===r.logicalor||o===r.logicaland?"logicalexpression":"binaryexpression"),this.parseexprop(a,t,r,n,i)}return e},te.parsemaybeunary=function(e){if(this.state.type.prefix){var t=this.startnode(),r=this.match(r.incdec);t.operator=this.state.value,t.prefix=!0,this.next();var n=this.state.type;return t.argument=this.parsemaybeunary(),this.addextra(t,"parenthesizedargument",!(n!==r.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 i=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(i,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},te.parseexprsubscripts=function(e){var t=this.state.start,r=this.state.startloc,n=this.state.potentialarrowat,i=this.parseexpratom(e);return"arrowfunctionexpression"===i.type&&i.start===n?i:e&&e.start?i:this.parsesubscripts(i,t,r)},te.parsesubscripts=function(e,t,r,n){for(;;){if(!n&&this.eat(r.doublecolon)){var i=this.startnodeat(t,r);return i.object=e,i.callee=this.parsenocallexpr(),this.parsesubscripts(this.finishnode(i,"bindexpression"),t,r,n)}if(this.eat(r.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(r.bracketl)){var a=this.startnodeat(t,r);a.object=e,a.property=this.parseexpression(),a.computed=!0,this.expect(r.bracketr),e=this.finishnode(a,"memberexpression")}else if(!n&&this.match(r.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(r.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(r.backquote))return e;var l=this.startnodeat(t,r);l.tag=e,l.quasi=this.parsetemplate(!0),e=this.finishnode(l,"taggedtemplateexpression")}}},te.parsecallexpressionarguments=function(e,t){for(var r=[],n=void 0,i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(r.comma),this.eat(e))break;this.match(r.parenl)&&!n&&(n=this.state.start),r.push(this.parseexprlistitem(!1,t?{start:0}:void 0,t?{start:0}:void 0))}return t&&n&&this.shouldparseasyncarrow()&&this.unexpected(),r},te.shouldparseasyncarrow=function(){return this.match(r.arrow)},te.parseasyncarrowfromcallexpression=function(e,t){return this.expect(r.arrow),this.parsearrowexpression(e,t.arguments,!0)},te.parsenocallexpr=function(){var e=this.state.start,t=this.state.startloc;return this.parsesubscripts(this.parseexpratom(),e,t,!0)},te.parseexpratom=function(e){var t=this.state.potentialarrowat===this.state.start,r=void 0;switch(this.state.type){case r._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(r.parenl)||this.match(r.bracketl)||this.match(r.dot)||this.unexpected(),this.match(r.parenl)&&"constructor"!==this.state.inmethod&&!this.options.allowsuperoutsidemethod&&this.raise(r.start,"super() outside of class constructor"),this.finishnode(r,"super");case r._import:return this.hasplugin("dynamicimport")||this.unexpected(),r=this.startnode(),this.next(),this.match(r.parenl)||this.unexpected(null,r.parenl),this.finishnode(r,"import");case r._this:return r=this.startnode(),this.next(),this.finishnode(r,"thisexpression");case r._yield:this.state.ingenerator&&this.unexpected();case r.name:r=this.startnode();var n="await"===this.state.value&&this.state.inasync,i=this.shouldallowyieldidentifier(),s=this.parseidentifier(n||i);if("await"===s.name){if(this.state.inasync||this.inmodule)return this.parseawait(r)}else{if("async"===s.name&&this.match(r._function)&&!this.caninsertsemicolon())return this.next(),this.parsefunction(r,!1,!1,!0);if(t&&"async"===s.name&&this.match(r.name)){var a=[this.parseidentifier()];return this.expect(r.arrow),this.parsearrowexpression(r,a,!0)}}return t&&!this.caninsertsemicolon()&&this.eat(r.arrow)?this.parsearrowexpression(r,[s]):s;case r._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 r.regexp:var c=this.state.value;return r=this.parseliteral(c.value,"regexpliteral"),r.pattern=c.pattern,r.flags=c.flags,r;case r.num:return this.parseliteral(this.state.value,"numericliteral");case r.string:return this.parseliteral(this.state.value,"stringliteral");case r._null:return r=this.startnode(),this.next(),this.finishnode(r,"nullliteral");case r._true:case r._false:return r=this.startnode(),r.value=this.match(r._true),this.next(),this.finishnode(r,"booleanliteral");case r.parenl:return this.parseparenanddistinguishexpression(null,null,t);case r.bracketl:return r=this.startnode(),this.next(),r.elements=this.parseexprlist(r.bracketr,!0,e),this.toreferencedlist(r.elements),this.finishnode(r,"arrayexpression");case r.bracel:return this.parseobj(!1,e);case r._function:return this.parsefunctionexpression();case r.at:this.parsedecorators();case r._class:return r=this.startnode(),this.takedecorators(r),this.parseclass(r,!1);case r._new:return this.parsenew();case r.backquote:return this.parsetemplate(!1);case r.doublecolon:r=this.startnode(),this.next(),r.object=null;var f=r.callee=this.parsenocallexpr();if("memberexpression"===f.type)return this.finishnode(r,"bindexpression");this.raise(f.start,"binding should be performed on object property.");default:this.unexpected()}},te.parsefunctionexpression=function(){var e=this.startnode(),t=this.parseidentifier(!0);return this.state.ingenerator&&this.eat(r.dot)&&this.hasplugin("functionsent")?this.parsemetaproperty(e,t,"sent"):this.parsefunction(e,!1)},te.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")},te.parseliteral=function(e,t,r,n){r=r||this.state.start,n=n||this.state.startloc;var i=this.startnodeat(r,n);return this.addextra(i,"rawvalue",e),this.addextra(i,"raw",this.input.slice(r,this.state.end)),i.value=e,this.next(),this.finishnode(i,t)},te.parseparenexpression=function(){this.expect(r.parenl);var e=this.parseexpression();return this.expect(r.parenr),e},te.parseparenanddistinguishexpression=function(e,t,r){e=e||this.state.start,t=t||this.state.startloc;var n=void 0;this.expect(r.parenl);for(var i=this.state.start,s=this.state.startloc,a=[],o={start:0},u={start:0},l=!0,c=void 0,f=void 0;!this.match(r.parenr);){if(l)l=!1;else if(this.expect(r.comma,u.start||null),this.match(r.parenr)){f=this.state.start;break} if(this.match(r.ellipsis)){var p=this.state.start,d=this.state.startloc;c=this.state.start,a.push(this.parseparenitem(this.parserest(),p,d));break}a.push(this.parsemaybeassign(!1,o,this.parseparenitem,u))}var h=this.state.start,m=this.state.startloc;this.expect(r.parenr);var y=this.startnodeat(e,t);if(r&&this.shouldparsearrow()&&(y=this.parsearrow(y))){for(var v=a,g=array.isarray(v),b=0,v=g?v:v[symbol.iterator]();;){var e;if(g){if(b>=v.length)break;e=v[b++]}else{if(b=v.next(),b.done)break;e=b.value}var x=e;x.extra&&x.extra.parenthesized&&this.unexpected(x.extra.parenstart)}return this.parsearrowexpression(y,a)}return a.length||this.unexpected(this.state.lasttokstart),f&&this.unexpected(f),c&&this.unexpected(c),o.start&&this.unexpected(o.start),u.start&&this.unexpected(u.start),a.length>1?(n=this.startnodeat(i,s),n.expressions=a,this.toreferencedlist(n.expressions),this.finishnodeat(n,"sequenceexpression",h,m)):n=a[0],this.addextra(n,"parenthesized",!0),this.addextra(n,"parenstart",e),n},te.shouldparsearrow=function(){return!this.caninsertsemicolon()},te.parsearrow=function(e){if(this.eat(r.arrow))return e},te.parseparenitem=function(e){return e},te.parsenew=function(){var e=this.startnode(),t=this.parseidentifier(!0);if(this.eat(r.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(r.parenl)?(e.arguments=this.parseexprlist(r.parenr),this.toreferencedlist(e.arguments)):e.arguments=[],this.finishnode(e,"newexpression")},te.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(r.backquote),this.finishnode(t,"templateelement")},te.parsetemplate=function(e){var t=this.startnode();this.next(),t.expressions=[];var r=this.parsetemplateelement(e);for(t.quasis=[r];!r.tail;)this.expect(r.dollarbracel),t.expressions.push(this.parseexpression()),this.expect(r.bracer),t.quasis.push(r=this.parsetemplateelement(e));return this.next(),this.finishnode(t,"templateliteral")},te.parseobj=function(e,t){var r=[],n=object.create(null),i=!0,s=this.startnode();s.properties=[],this.next();for(var a=null;!this.eat(r.bracer);){if(i)i=!1;else if(this.expect(r.comma),this.eat(r.bracer))break;for(;this.match(r.at);)r.push(this.parsedecorator());var o=this.startnode(),u=!1,l=!1,c=void 0,f=void 0;if(r.length&&(o.decorators=r,r=[]),this.hasplugin("objectrestspread")&&this.match(r.ellipsis)){if(o=this.parsespread(e?{start:0}:void 0),o.type=e?"restproperty":"spreadproperty",e&&this.toassignable(o.argument,!0,"object pattern"),s.properties.push(o),!e)continue;var p=this.state.start;if(null===a){if(this.eat(r.bracer))break;if(this.match(r.comma)&&this.lookahead().type===r.bracer)continue;a=p;continue}this.unexpected(a,"cannot have multiple rest elements when destructuring")}if(o.method=!1,o.shorthand=!1,(e||t)&&(c=this.state.start,f=this.state.startloc),e||(u=this.eat(r.star)),!e&&this.iscontextual("async")){u&&this.unexpected();var d=this.parseidentifier();this.match(r.colon)||this.match(r.parenl)||this.match(r.bracer)||this.match(r.eq)||this.match(r.comma)?(o.key=d,o.computed=!1):(l=!0,this.hasplugin("asyncgenerators")&&(u=this.eat(r.star)),this.parsepropertyname(o))}else this.parsepropertyname(o);this.parseobjpropvalue(o,c,f,u,l,e,t),this.checkpropclash(o,n),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")},te.isgetterorsettermethod=function(e,t){return!t&&!e.computed&&"identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(r.string)||this.match(r.num)||this.match(r.bracketl)||this.match(r.name)||this.state.type.keyword)},te.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")}},te.parseobjectmethod=function(e,t,r,n){return r||t||this.match(r.parenl)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parsemethod(e,t,r),this.finishnode(e,"objectmethod")):this.isgetterorsettermethod(e,n)?((t||r)&&this.unexpected(),e.kind=e.key.name,this.parsepropertyname(e),this.parsemethod(e),this.checkgettersetterparamcount(e),this.finishnode(e,"objectmethod")):void 0},te.parseobjectproperty=function(e,t,r,n,i){return this.eat(r.colon)?(e.value=n?this.parsemaybedefault(this.state.start,this.state.startloc):this.parsemaybeassign(!1,i),this.finishnode(e,"objectproperty")):e.computed||"identifier"!==e.key.type?void 0:(this.checkreservedword(e.key.name,e.key.start,!0,!0),n?e.value=this.parsemaybedefault(t,r,e.key.__clone()):this.match(r.eq)&&i?(i.start||(i.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"))},te.parseobjpropvalue=function(e,t,r,n,i,s,a){var o=this.parseobjectmethod(e,n,i,s)||this.parseobjectproperty(e,t,r,s,a);return o||this.unexpected(),o},te.parsepropertyname=function(e){if(this.eat(r.bracketl))e.computed=!0,e.key=this.parsemaybeassign(),this.expect(r.bracketr);else{e.computed=!1;var t=this.state.inpropertyname;this.state.inpropertyname=!0,e.key=this.match(r.num)||this.match(r.string)?this.parseexpratom():this.parseidentifier(!0),this.state.inpropertyname=t}return e.key},te.initfunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,e.async=!!t},te.parsemethod=function(e,t,r){var n=this.state.inmethod;return this.state.inmethod=e.kind||!0,this.initfunction(e,r),this.expect(r.parenl),e.params=this.parsebindinglist(r.parenr),e.generator=!!t,this.parsefunctionbody(e),this.state.inmethod=n,e},te.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")},te.isstrictbody=function(e,t){if(!t&&e.body.directives.length)for(var r=e.body.directives,n=array.isarray(r),i=0,r=n?r:r[symbol.iterator]();;){var s;if(n){if(i>=r.length)break;s=r[i++]}else{if(i=r.next(),i.done)break;s=i.value}var a=s;if("use strict"===a.value.value)return!0}return!1},te.parsefunctionbody=function(e,t){var r=t&&!this.match(r.bracel),n=this.state.inasync;if(this.state.inasync=e.async,r)e.body=this.parsemaybeassign(),e.expression=!0;else{var i=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=i,this.state.ingenerator=s,this.state.labels=a}this.state.inasync=n;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");for(var f=e.params,p=array.isarray(f),d=0,f=p?f:f[symbol.iterator]();;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if(d=f.next(),d.done)break;h=d.value}var m=h;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}},te.parseexprlist=function(e,t,r){for(var n=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(r.comma),this.eat(e))break;n.push(this.parseexprlistitem(t,r))}return n},te.parseexprlistitem=function(e,t,r){return e&&this.match(r.comma)?null:this.match(r.ellipsis)?this.parsespread(t):this.parsemaybeassign(!1,t,this.parseparenitem,r)},te.parseidentifier=function(e){var t=this.startnode();return e||this.checkreservedword(this.state.value,this.state.start,!!this.state.type.keyword,!1),this.match(r.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")},te.checkreservedword=function(e,t,r,n){(this.isreservedword(e)||r&&this.iskeyword(e))&&this.raise(t,e+" is a reserved word"),this.state.strict&&(v.strict(e)||n&&v.strictbind(e))&&this.raise(t,e+" is a reserved word in strict mode")},te.parseawait=function(e){return this.state.inasync||this.unexpected(),this.match(r.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")},te.parseyield=function(){var e=this.startnode();return this.next(),this.match(r.semi)||this.caninsertsemicolon()||!this.match(r.star)&&!this.state.type.startsexpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(r.star),e.argument=this.parsemaybeassign()),this.finishnode(e,"yieldexpression")};var re=j.prototype,ne=["leadingcomments","trailingcomments","innercomments"],ie=function(){function e(t,r,n){w(this,e),this.type="",this.start=t,this.end=0,this.loc=new g(r),n&&(this.loc.filename=n)}return e.prototype.__clone=function(){var t=new e;for(var r in this)ne.indexof(r)<0&&(t[r]=this[r]);return t},e}();re.startnode=function(){return new ie(this.state.start,this.state.startloc,this.filename)},re.startnodeat=function(e,t){return new ie(e,t,this.filename)},re.finishnode=function(e,t){return c.call(this,e,t,this.state.lasttokend,this.state.lasttokendloc)},re.finishnodeat=function(e,t,r,n){return c.call(this,e,t,r,n)},j.prototype.raise=function(e,t){var r=u(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new syntaxerror(t);throw n.pos=e,n.loc=r,n};var se=j.prototype;se.addcomment=function(e){this.filename&&(e.loc.filename=this.filename),this.state.trailingcomments.push(e),this.state.leadingcomments.push(e)},se.processcomment=function(e){if(!("program"===e.type&&e.body.length>0)){var t=this.state.commentstack,r=void 0,n=void 0,i=void 0,s=void 0,a=void 0;if(this.state.trailingcomments.length>0)this.state.trailingcomments[0].start>=e.end?(i=this.state.trailingcomments,this.state.trailingcomments=[]):this.state.trailingcomments.length=0;else{var o=f(t);t.length>0&&o.trailingcomments&&o.trailingcomments[0].start>=e.end&&(i=o.trailingcomments,o.trailingcomments=null)}for(t.length>0&&f(t).start>=e.start&&(r=t.pop());t.length>0&&f(t).start>=e.start;)n=t.pop();if(!n&&r&&(n=r),r&&this.state.leadingcomments.length>0){var u=f(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=f(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(n){if(n.leadingcomments)if(n!==e&&f(n.leadingcomments).end<=e.start)e.leadingcomments=n.leadingcomments,n.leadingcomments=null;else for(s=n.leadingcomments.length-2;s>=0;--s)if(n.leadingcomments[s].end<=e.start){e.leadingcomments=n.leadingcomments.splice(0,s+1);break}}else if(this.state.leadingcomments.length>0)if(f(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),i=this.state.leadingcomments.slice(s),0===i.length&&(i=null)}this.state.commentpreviousnode=e,i&&(i.length&&i[0].start>=e.start&&f(i).end<=e.end?e.innercomments=i:e.trailingcomments=i),t.push(e)}};var ae=j.prototype;ae.estreeparseregexpliteral=function(e){var t=e.pattern,r=e.flags,n=null;try{n=new regexp(t,r)}catch(e){}var i=this.estreeparseliteral(n);return i.regex={pattern:t,flags:r},i},ae.estreeparseliteral=function(e){return this.parseliteral(e,"literal")},ae.directivetostmt=function(e){var t=e.value,r=this.startnodeat(e.start,e.loc.start),n=this.startnodeat(t.start,t.loc.start);return n.value=t.value,n.raw=t.extra.raw,r.expression=this.finishnodeat(n,"literal",t.end,t.loc.end),r.directive=t.extra.raw.slice(1,-1),this.finishnodeat(r,"expressionstatement",e.end,e.loc.end)};var oe=function(e){e.extend("checkdeclaration",function(e){return function(t){p(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,n){var i=this;switch(t.type){case"objectpattern":t.properties.foreach(function(e){i.checklval("property"===e.type?e.value:e,r,n,"object destructuring pattern")});break;default:for(var s=arguments.length,a=array(s>3?s-3:0),o=3;o0)for(var r=e.body.body,n=array.isarray(r),i=0,r=n?r:r[symbol.iterator]();;){var s;if(n){if(i>=r.length)break;s=r[i++]}else{if(i=r.next(),i.done)break;s=i.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),n=t.expression.value;return r.value.value=n,r}}),e.extend("parseblockbody",function(e){return function(t){for(var r=this,n=arguments.length,i=array(n>1?n-1:0),s=1;s1?n-1:0),s=1;s2?n-2:0),s=2;s=a.length)break;l=a[u++]}else{if(u=a.next(),u.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(i))}})},ue=["any","mixed","empty","bool","boolean","number","string","void","null"],le=j.prototype;le.flowparsetypeinitialiser=function(e){var t=this.state.intype;this.state.intype=!0,this.expect(e||r.colon);var r=this.flowparsetype();return this.state.intype=t,r},le.flowparsepredicate=function(){var e=this.startnode(),t=this.state.startloc,r=this.state.start;this.expect(r.modulo);var n=this.state.startloc;return this.expectcontextual("checks"),t.line===n.line&&t.column===n.column-1||this.raise(r,"spaces between ´%´ and ´checks´ are not allowed here."),this.eat(r.parenl)?(e.expression=this.parseexpression(),this.expect(r.parenr),this.finishnode(e,"declaredpredicate")):this.finishnode(e,"inferredpredicate")},le.flowparsetypeandpredicateinitialiser=function(){var e=this.state.intype;this.state.intype=!0,this.expect(r.colon);var t=null,r=null;return this.match(r.modulo)?(this.state.intype=e,r=this.flowparsepredicate()):(t=this.flowparsetype(),this.state.intype=e,this.match(r.modulo)&&(r=this.flowparsepredicate())),[t,r]},le.flowparsedeclareclass=function(e){return this.next(),this.flowparseinterfaceish(e,!0),this.finishnode(e,"declareclass")},le.flowparsedeclarefunction=function(e){this.next();var t=e.id=this.parseidentifier(),r=this.startnode(),n=this.startnode();this.isrelational("<")?r.typeparameters=this.flowparsetypeparameterdeclaration():r.typeparameters=null,this.expect(r.parenl);var i=this.flowparsefunctiontypeparams();r.params=i.params,r.rest=i.rest,this.expect(r.parenr);var s=null,a=this.flowparsetypeandpredicateinitialiser();return r.returntype=a[0],s=a[1],n.typeannotation=this.finishnode(r,"functiontypeannotation"),n.predicate=s,t.typeannotation=this.finishnode(n,"typeannotation"),this.finishnode(t,t.type),this.semicolon(),this.finishnode(e,"declarefunction")},le.flowparsedeclare=function(e){return this.match(r._class)?this.flowparsedeclareclass(e):this.match(r._function)?this.flowparsedeclarefunction(e):this.match(r._var)?this.flowparsedeclarevariable(e):this.iscontextual("module")?this.lookahead().type===r.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(r._export)?this.flowparsedeclareexportdeclaration(e):void this.unexpected()},le.flowparsedeclareexportdeclaration=function(e){if(this.expect(r._export),this.iscontextual("opaque"))return e.declaration=this.flowparsedeclare(this.startnode()),e.default=!1,this.finishnode(e,"declareexportdeclaration");throw this.unexpected()},le.flowparsedeclarevariable=function(e){return this.next(),e.id=this.flowparsetypeannotatableidentifier(),this.semicolon(),this.finishnode(e,"declarevariable")},le.flowparsedeclaremodule=function(e){this.next(),this.match(r.string)?e.id=this.parseexpratom():e.id=this.parseidentifier();var t=e.body=this.startnode(),r=t.body=[];for(this.expect(r.bracel);!this.match(r.bracer);){var n=this.startnode();if(this.match(r._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"imports within a `declare module` body must always be `import type` or `import typeof`"),this.parseimport(n)}else this.expectcontextual("declare","only declares and type imports are allowed inside declare module"),n=this.flowparsedeclare(n,!0);r.push(n)}return this.expect(r.bracer),this.finishnode(t,"blockstatement"),this.finishnode(e,"declaremodule")},le.flowparsedeclaremoduleexports=function(e){return this.expectcontextual("module"),this.expect(r.dot),this.expectcontextual("exports"),e.typeannotation=this.flowparsetypeannotation(),this.semicolon(),this.finishnode(e,"declaremoduleexports")},le.flowparsedeclaretypealias=function(e){return this.next(),this.flowparsetypealias(e),this.finishnode(e,"declaretypealias")},le.flowparsedeclareopaquetype=function(e){return this.next(),this.flowparseopaquetype(e,!0),this.finishnode(e,"declareopaquetype")},le.flowparsedeclareinterface=function(e){return this.next(),this.flowparseinterfaceish(e),this.finishnode(e,"declareinterface")},le.flowparseinterfaceish=function(e){if(e.id=this.parseidentifier(),this.isrelational("<")?e.typeparameters=this.flowparsetypeparameterdeclaration():e.typeparameters=null,e.extends=[],e.mixins=[],this.eat(r._extends))do{e.extends.push(this.flowparseinterfaceextends())}while(this.eat(r.comma));if(this.iscontextual("mixins")){this.next();do{e.mixins.push(this.flowparseinterfaceextends())}while(this.eat(r.comma))}e.body=this.flowparseobjecttype(!0,!1,!1)},le.flowparseinterfaceextends=function(){var e=this.startnode();return e.id=this.flowparsequalifiedtypeidentifier(),this.isrelational("<")?e.typeparameters=this.flowparsetypeparameterinstantiation():e.typeparameters=null,this.finishnode(e,"interfaceextends")},le.flowparseinterface=function(e){return this.flowparseinterfaceish(e,!1),this.finishnode(e,"interfacedeclaration")},le.flowparserestrictedidentifier=function(e){return ue.indexof(this.state.value)>-1&&this.raise(this.state.start,"cannot overwrite primitive type "+this.state.value),this.parseidentifier(e)},le.flowparsetypealias=function(e){return e.id=this.flowparserestrictedidentifier(),this.isrelational("<")?e.typeparameters=this.flowparsetypeparameterdeclaration():e.typeparameters=null,e.right=this.flowparsetypeinitialiser(r.eq),this.semicolon(),this.finishnode(e,"typealias")},le.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(r.colon)&&(e.supertype=this.flowparsetypeinitialiser(r.colon)),e.impltype=null,t||(e.impltype=this.flowparsetypeinitialiser(r.eq)),this.semicolon(),this.finishnode(e,"opaquetype")},le.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(r.eq)&&(this.eat(r.eq),e.default=this.flowparsetype()),this.finishnode(e,"typeparameter")},le.flowparsetypeparameterdeclaration=function(){var e=this.state.intype,t=this.startnode();t.params=[],this.state.intype=!0,this.isrelational("<")||this.match(r.jsxtagstart)?this.next():this.unexpected();do{t.params.push(this.flowparsetypeparameter()),this.isrelational(">")||this.expect(r.comma)}while(!this.isrelational(">"));return this.expectrelational(">"),this.state.intype=e,this.finishnode(t,"typeparameterdeclaration")},le.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(r.comma);return this.expectrelational(">"),this.state.intype=t,this.finishnode(e,"typeparameterinstantiation")},le.flowparseobjectpropertykey=function(){return this.match(r.num)||this.match(r.string)?this.parseexpratom():this.parseidentifier(!0)},le.flowparseobjecttypeindexer=function(e,t,r){return e.static=t,this.expect(r.bracketl),this.lookahead().type===r.colon?(e.id=this.flowparseobjectpropertykey(),e.key=this.flowparsetypeinitialiser()):(e.id=null,e.key=this.flowparsetype()),this.expect(r.bracketr),e.value=this.flowparsetypeinitialiser(),e.variance=r,this.flowobjecttypesemicolon(),this.finishnode(e,"objecttypeindexer")},le.flowparseobjecttypemethodish=function(e){for(e.params=[],e.rest=null,e.typeparameters=null,this.isrelational("<")&&(e.typeparameters=this.flowparsetypeparameterdeclaration()),this.expect(r.parenl);!this.match(r.parenr)&&!this.match(r.ellipsis);)e.params.push(this.flowparsefunctiontypeparam()),this.match(r.parenr)||this.expect(r.comma);return this.eat(r.ellipsis)&&(e.rest=this.flowparsefunctiontypeparam()),this.expect(r.parenr),e.returntype=this.flowparsetypeinitialiser(),this.finishnode(e,"functiontypeannotation")},le.flowparseobjecttypemethod=function(e,t,r,n){var i=this.startnodeat(e,t);return i.value=this.flowparseobjecttypemethodish(this.startnodeat(e,t)),i.static=r,i.key=n,i.optional=!1,this.flowobjecttypesemicolon(),this.finishnode(i,"objecttypeproperty")},le.flowparseobjecttypecallproperty=function(e,t){var r=this.startnode();return e.static=t,e.value=this.flowparseobjecttypemethodish(r),this.flowobjecttypesemicolon(),this.finishnode(e,"objecttypecallproperty")},le.flowparseobjecttype=function(e,t,r){var n=this.state.intype;this.state.intype=!0;var i=this.startnode(),s=void 0,a=void 0,o=!1;i.callproperties=[],i.properties=[],i.indexers=[];var u=void 0,l=void 0;for(t&&this.match(r.bracebarl)?(this.expect(r.bracebarl),u=r.bracebarr,l=!0):(this.expect(r.bracel),u=r.bracer,l=!1),i.exact=l;!this.match(u);){var c=!1,f=this.state.start,p=this.state.startloc;s=this.startnode(),e&&this.iscontextual("static")&&this.lookahead().type!==r.colon&&(this.next(),o=!0);var d=this.state.start,h=this.flowparsevariance();this.match(r.bracketl)?i.indexers.push(this.flowparseobjecttypeindexer(s,o,h)):this.match(r.parenl)||this.isrelational("<")?(h&&this.unexpected(d),i.callproperties.push(this.flowparseobjecttypecallproperty(s,o))):this.match(r.ellipsis)?(r||this.unexpected(null,"spread operator cannot appear in class or interface definitions"),h&&this.unexpected(h.start,"spread properties cannot have variance"),this.expect(r.ellipsis),s.argument=this.flowparsetype(),this.flowobjecttypesemicolon(),i.properties.push(this.finishnode(s,"objecttypespreadproperty"))):(a=this.flowparseobjectpropertykey(),this.isrelational("<")||this.match(r.parenl)?(h&&this.unexpected(h.start),i.properties.push(this.flowparseobjecttypemethod(f,p,o,a))):(this.eat(r.question)&&(c=!0),s.key=a,s.value=this.flowparsetypeinitialiser(),s.optional=c,s.static=o,s.variance=h,this.flowobjecttypesemicolon(),i.properties.push(this.finishnode(s,"objecttypeproperty")))),o=!1}this.expect(u);var m=this.finishnode(i,"objecttypeannotation");return this.state.intype=n,m},le.flowobjecttypesemicolon=function(){this.eat(r.semi)||this.eat(r.comma)||this.match(r.bracer)||this.match(r.bracebarr)||this.unexpected()},le.flowparsequalifiedtypeidentifier=function(e,t,r){e=e||this.state.start,t=t||this.state.startloc;for(var n=r||this.parseidentifier();this.eat(r.dot);){var i=this.startnodeat(e,t);i.qualification=n,i.id=this.parseidentifier(),n=this.finishnode(i,"qualifiedtypeidentifier")}return n},le.flowparsegenerictype=function(e,t,r){var n=this.startnodeat(e,t);return n.typeparameters=null,n.id=this.flowparsequalifiedtypeidentifier(e,t,r),this.isrelational("<")&&(n.typeparameters=this.flowparsetypeparameterinstantiation()),this.finishnode(n,"generictypeannotation")},le.flowparsetypeoftype=function(){var e=this.startnode();return this.expect(r._typeof),e.argument=this.flowparseprimarytype(),this.finishnode(e,"typeoftypeannotation")},le.flowparsetupletype=function(){var e=this.startnode();for(e.types=[],this.expect(r.bracketl);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t={params:e,rest:null};!this.match(r.parenr)&&!this.match(r.ellipsis);)t.params.push(this.flowparsefunctiontypeparam()),this.match(r.parenr)||this.expect(r.comma);return this.eat(r.ellipsis)&&(t.rest=this.flowparsefunctiontypeparam()),t},le.flowidenttotypeannotation=function(e,t,r,n){switch(n.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,n)}},le.flowparseprimarytype=function(){var e=this.state.start,t=this.state.startloc,r=this.startnode(),n=void 0,i=void 0,s=!1,a=this.state.noanonfunctiontype;switch(this.state.type){case r.name:return this.flowidenttotypeannotation(e,t,r,this.parseidentifier());case r.bracel:return this.flowparseobjecttype(!1,!1,!0);case r.bracebarl:return this.flowparseobjecttype(!1,!0,!0);case r.bracketl:return this.flowparsetupletype();case r.relational:if("<"===this.state.value)return r.typeparameters=this.flowparsetypeparameterdeclaration(),this.expect(r.parenl),n=this.flowparsefunctiontypeparams(),r.params=n.params,r.rest=n.rest,this.expect(r.parenr),this.expect(r.arrow),r.returntype=this.flowparsetype(),this.finishnode(r,"functiontypeannotation");break;case r.parenl:if(this.next(),!this.match(r.parenr)&&!this.match(r.ellipsis))if(this.match(r.name)){var o=this.lookahead().type;s=o!==r.question&&o!==r.colon}else s=!0;if(s){if(this.state.noanonfunctiontype=!1,i=this.flowparsetype(),this.state.noanonfunctiontype=a,this.state.noanonfunctiontype||!(this.match(r.comma)||this.match(r.parenr)&&this.lookahead().type===r.arrow))return this.expect(r.parenr),i;this.eat(r.comma)}return n=i?this.flowparsefunctiontypeparams([this.reinterprettypeasfunctiontypeparam(i)]):this.flowparsefunctiontypeparams(),r.params=n.params,r.rest=n.rest,this.expect(r.parenr),this.expect(r.arrow),r.returntype=this.flowparsetype(),r.typeparameters=null,this.finishnode(r,"functiontypeannotation");case r.string:return this.parseliteral(this.state.value,"stringliteraltypeannotation");case r._true:case r._false:return r.value=this.match(r._true),this.next(),this.finishnode(r,"booleanliteraltypeannotation");case r.plusmin:if("-"===this.state.value)return this.next(), this.match(r.num)||this.unexpected(null,"unexpected token, expected number"),this.parseliteral(-this.state.value,"numericliteraltypeannotation",r.start,r.loc.start);this.unexpected();case r.num:return this.parseliteral(this.state.value,"numericliteraltypeannotation");case r._null:return r.value=this.match(r._null),this.next(),this.finishnode(r,"nullliteraltypeannotation");case r._this:return r.value=this.match(r._this),this.next(),this.finishnode(r,"thistypeannotation");case r.star:return this.next(),this.finishnode(r,"existentialtypeparam");default:if("typeof"===this.state.type.keyword)return this.flowparsetypeoftype()}this.unexpected()},le.flowparsepostfixtype=function(){for(var e=this.state.start,t=this.state.startloc,r=this.flowparseprimarytype();!this.caninsertsemicolon()&&this.match(r.bracketl);){var n=this.startnodeat(e,t);n.elementtype=r,this.expect(r.bracketl),this.expect(r.bracketr),r=this.finishnode(n,"arraytypeannotation")}return r},le.flowparseprefixtype=function(){var e=this.startnode();return this.eat(r.question)?(e.typeannotation=this.flowparseprefixtype(),this.finishnode(e,"nullabletypeannotation")):this.flowparsepostfixtype()},le.flowparseanonfunctionwithoutparens=function(){var e=this.flowparseprefixtype();if(!this.state.noanonfunctiontype&&this.eat(r.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},le.flowparseintersectiontype=function(){var e=this.startnode();this.eat(r.bitwiseand);var t=this.flowparseanonfunctionwithoutparens();for(e.types=[t];this.eat(r.bitwiseand);)e.types.push(this.flowparseanonfunctionwithoutparens());return 1===e.types.length?t:this.finishnode(e,"intersectiontypeannotation")},le.flowparseuniontype=function(){var e=this.startnode();this.eat(r.bitwiseor);var t=this.flowparseintersectiontype();for(e.types=[t];this.eat(r.bitwiseor);)e.types.push(this.flowparseintersectiontype());return 1===e.types.length?t:this.finishnode(e,"uniontypeannotation")},le.flowparsetype=function(){var e=this.state.intype;this.state.intype=!0;var t=this.flowparseuniontype();return this.state.intype=e,t},le.flowparsetypeannotation=function(){var e=this.startnode();return e.typeannotation=this.flowparsetypeinitialiser(),this.finishnode(e,"typeannotation")},le.flowparsetypeandpredicateannotation=function(){var e=this.startnode(),t=this.flowparsetypeandpredicateinitialiser();return e.typeannotation=t[0],e.predicate=t[1],this.finishnode(e,"typeannotation")},le.flowparsetypeannotatableidentifier=function(){var e=this.flowparserestrictedidentifier();return this.match(r.colon)&&(e.typeannotation=this.flowparsetypeannotation(),this.finishnode(e,e.type)),e},le.typecasttoparameter=function(e){return e.expression.typeannotation=e.typeannotation,this.finishnodeat(e.expression,e.expression.type,e.typeannotation.end,e.typeannotation.loc.end)},le.flowparsevariance=function(){var e=null;return this.match(r.plusmin)&&("+"===this.state.value?e="plus":"-"===this.state.value&&(e="minus"),this.next()),e};var ce=function(e){e.extend("parsefunctionbody",function(e){return function(t,r){return this.match(r.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(r.name)&&"interface"===this.state.value){var n=this.startnode();return this.next(),this.flowparseinterface(n)}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(r._class)||this.match(r.name)||this.match(r._function)||this.match(r._var)||this.match(r._export))return this.flowparsedeclare(t)}else if(this.match(r.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(r.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,n,i,s){if(s&&this.match(r.question)){var a=this.state.clone();try{return e.call(this,t,r,n,i)}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,n,i)}}),e.extend("parseparenitem",function(e){return function(t,r,n){if(t=e.call(this,t,r,n),this.eat(r.question)&&(t.optional=!0),this.match(r.colon)){var i=this.startnodeat(r,n);return i.expression=t,i.typeannotation=this.flowparsetypeannotation(),this.finishnode(i,"typecastexpression")}return t}}),e.extend("parseexport",function(e){return function(t){return t=e.call(this,t),"exportnameddeclaration"===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(r.bracel)?(t.specifiers=this.parseexportspecifiers(),this.parseexportfrom(t),null):this.flowparsetypealias(r)}if(this.iscontextual("opaque")){t.exportkind="type";var n=this.startnode();return this.next(),this.flowparseopaquetype(n,!1)}if(this.iscontextual("interface")){t.exportkind="type";var i=this.startnode();return this.next(),this.flowparseinterface(i)}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(r.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,n){return"typecastexpression"===t.type?e.call(this,this.typecasttoparameter(t),r,n):e.call(this,t,r,n)}}),e.extend("toassignablelist",function(e){return function(t,r,n){for(var i=0;i2?n-2:0),s=2;s1114111||de(a)!=a)throw rangeerror("invalid code point: "+a);a<=65535?e.push(a):(a-=65536,t=55296+(a>>10),r=a%1024+56320,e.push(t,r)),(n+1==i||e.length>16384)&&(s+=pe.apply(null,e),e.length=0)}return s}}var he=fe,me={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:"♦"},ye=/^[\da-fa-f]+$/,ve=/^\d+$/;u.j_otag=new j("...",!0,!0),r.jsxname=new t("jsxname"),r.jsxtext=new t("jsxtext",{beforeexpr:!0}),r.jsxtagstart=new t("jsxtagstart",{startsexpr:!0}),r.jsxtagend=new t("jsxtagend"),r.jsxtagstart.updatecontext=function(){this.state.context.push(u.j_expr),this.state.context.push(u.j_otag),this.state.exprallowed=!1},r.jsxtagend.updatecontext=function(e){var t=this.state.context.pop();t===u.j_otag&&e===r.slash||t===u.j_ctag?(this.state.context.pop(),this.state.exprallowed=this.curcontext()===u.j_expr):this.state.exprallowed=!0};var ge=j.prototype;ge.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(r.jsxtagstart)):this.gettokenfromcode(r):(e+=this.input.slice(t,this.state.pos),this.finishtoken(r.jsxtext,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxreadentity(),t=this.state.pos;break;default:o(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxreadnewline(!0),t=this.state.pos):++this.state.pos}}},ge.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},ge.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 n=this.input.charcodeat(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxreadentity(),r=this.state.pos):o(n)?(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(r.string,t)},ge.jsxreadentity=function(){for(var e="",t=0,r=void 0,n=this.input[this.state.pos],i=++this.state.pos;this.state.pos")}return r.openingelement=i,r.closingelement=s,r.children=n,this.match(r.relational)&&"<"===this.state.value&&this.raise(this.state.start,"adjacent jsx elements must be wrapped in an enclosing tag"),this.finishnode(r,"jsxelement")},ge.jsxparseelement=function(){var e=this.state.start,t=this.state.startloc;return this.next(),this.jsxparseelementat(e,t)};var be=function(e){e.extend("parseexpratom",function(e){return function(t){if(this.match(r.jsxtext)){var r=this.parseliteral(this.state.value,"jsxtext");return r.extra=null,r}return this.match(r.jsxtagstart)?this.jsxparseelement():e.call(this,t)}}),e.extend("readtoken",function(e){return function(t){if(this.state.inpropertyname)return e.call(this,t);var r=this.curcontext();if(r===u.j_expr)return this.jsxreadtoken();if(r===u.j_otag||r===u.j_ctag){if(i(t))return this.jsxreadword();if(62===t)return++this.state.pos,this.finishtoken(r.jsxtagend);if((34===t||39===t)&&r===u.j_otag)return this.jsxreadstring(t)}return 60===t&&this.state.exprallowed?(++this.state.pos,this.finishtoken(r.jsxtagstart)):e.call(this,t)}}),e.extend("updatecontext",function(e){return function(t){if(this.match(r.bracel)){var r=this.curcontext();r===u.j_otag?this.state.context.push(u.braceexpression):r===u.j_expr?this.state.context.push(u.templatequasi):e.call(this,t),this.state.exprallowed=!0}else{if(!this.match(r.slash)||t!==r.jsxtagstart)return e.call(this,t);this.state.context.length-=2,this.state.context.push(u.j_ctag),this.state.exprallowed=!1}}})};k.estree=oe,k.flow=ce,k.jsx=be,t.parse=h,t.parseexpression=m,t.toktypes=r},function(e,t,r){"use strict";var n=r(21),i=r(431),s=r(141),a=r(150)("ie_proto"),o=function(){},u=function(){var e,t=r(230)("iframe"),n=s.length;for(t.style.display="none",r(426).appendchild(t),t.src="javascript:",e=t.contentwindow.document,e.open(),e.write("