/*! For license information please see 2.7f1834e3.chunk.js.LICENSE.txt */ (this.webpackJsonphanbit=this.webpackJsonphanbit||[]).push([[2],[function(e,t,r){"use strict";e.exports=r(228)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){for(var r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){var t,r,a="";if("string"===typeof e||"number"===typeof e)a+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,u=void 0!==o&&o,h=t.name,d=Object(i.a)(t,["defaultTheme","withTheme","name"]);var v=h,m=Object(l.a)(e,Object(a.a)({defaultTheme:n,Component:r,name:h||r.displayName,classNamePrefix:v},d)),y=s.a.forwardRef((function(e,t){e.classes;var o,c=e.innerRef,l=Object(i.a)(e,["classes","innerRef"]),d=m(Object(a.a)(Object(a.a)({},r.defaultProps),e)),v=l;return("string"===typeof h||u)&&(o=Object(p.a)()||n,h&&(v=Object(f.a)({theme:o,name:h,props:l})),u&&!v.theme&&(v.theme=o)),s.a.createElement(r,Object(a.a)({ref:c||t,classes:d},v))}));return c()(y,r),y}},d=r(53);t.a=function(e,t){return h(e,Object(n.a)({defaultTheme:d.a},t))}},function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return a})),r.d(t,"__assign",(function(){return i})),r.d(t,"__rest",(function(){return o})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return u})),r.d(t,"__metadata",(function(){return c})),r.d(t,"__awaiter",(function(){return l})),r.d(t,"__generator",(function(){return f})),r.d(t,"__createBinding",(function(){return p})),r.d(t,"__exportStar",(function(){return h})),r.d(t,"__values",(function(){return d})),r.d(t,"__read",(function(){return v})),r.d(t,"__spread",(function(){return m})),r.d(t,"__spreadArrays",(function(){return y})),r.d(t,"__spreadArray",(function(){return b})),r.d(t,"__await",(function(){return g})),r.d(t,"__asyncGenerator",(function(){return x})),r.d(t,"__asyncDelegator",(function(){return k})),r.d(t,"__asyncValues",(function(){return w})),r.d(t,"__makeTemplateObject",(function(){return E})),r.d(t,"__importStar",(function(){return T})),r.d(t,"__importDefault",(function(){return C})),r.d(t,"__classPrivateFieldGet",(function(){return _})),r.d(t,"__classPrivateFieldSet",(function(){return A}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(t){i(t)}}function s(e){try{u(n.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=a[e](t)).value instanceof g?Promise.resolve(r.value.v).then(u,c):l(i[0][2],r)}catch(n){l(i[0][3],n)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,a,(t=e[r](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&p(t,e,r);return S(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function _(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function A(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}},function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=r(229)},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t=0)return a[i];if("string"!==typeof n)throw new Error("missing name");return new p(n,e)}return new c(e)},def:function(e){return o.call(_,e)?_[e]:_[e]=new P(e)},hasDef:function(e){return o.call(_,e)}},r=[],a=[];function s(e,t){var n=i.call(t),o=new p(e,(function(e){return i.call(e)===n}));return t&&"function"===typeof t.constructor&&(r.push(t.constructor),a.push(o)),o}var m=s("string","truthy"),y=s("function",(function(){})),b=s("array",[]),g=s("object",{}),x=s("RegExp",/./),k=s("Date",new Date),w=s("number",3),E=s("boolean",!0),S=s("null",null),T=s("undefined",void 0),C={string:m,function:y,array:b,object:g,RegExp:x,Date:k,number:w,boolean:E,null:S,undefined:T},_=Object.create(null);function A(e){if(e&&"object"===typeof e){var t=e.type;if("string"===typeof t&&o.call(_,t)){var r=_[t];if(r.finalized)return r}}return null}var P=function(e){function r(t){var r=e.call(this,new p(t,(function(e,t){return r.check(e,t)})),t)||this;return r}return n.__extends(r,e),r.prototype.check=function(e,t){if(!0!==this.finalized)throw new Error("prematurely checking unfinalized type "+this.typeName);if(null===e||"object"!==typeof e)return!1;var r=A(e);return r?t&&r===this?this.checkAllFields(e,t):!!this.isSupertypeOf(r)&&(!t||r.checkAllFields(e,t)&&this.checkAllFields(e,!1)):("SourceLocation"===this.typeName||"Position"===this.typeName)&&this.checkAllFields(e,t)},r.prototype.build=function(){for(var e=this,t=[],r=0;r=0&&function(e){var t=N(e);if(D[t])return;var r=D[F(e)];if(!r)return;var n=function(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(Object(n.a)(3,e));var a=e.substring(t+1,e.length-1).split(",");return{type:r,values:a=a.map((function(e){return parseFloat(e)}))}}function o(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function s(e,t){var r=u(e),n=u(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),o({type:c,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,o(e)}function l(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return o(e)}function f(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return o(e)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(51);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=e}),i+" >= "+e)},defaults:{null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},isPrimitive:r.from((function(e){if(null===e)return!0;var t=typeof e;return"object"!==t&&"function"!==t}),o.toString())}},e.exports=t.default},function(e,t,r){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return k})),r.d(t,"b",(function(){return C})),r.d(t,"d",(function(){return A})),r.d(t,"c",(function(){return v})),r.d(t,"f",(function(){return m})),r.d(t,"e",(function(){return d}));var n=r(18);function a(e){return"/"===e.charAt(0)}function i(e,t){for(var r=t,n=r+1,a=e.length;n=0;p--){var h=o[p];"."===h?i(o,p):".."===h?(i(o,p),f++):f&&(i(o,p),f--)}if(!c)for(;f--;f)o.unshift("..");!c||""===o[0]||o[0]&&a(o[0])||o.unshift("");var d=o.join("/");return r&&"/"!==d.substr(-1)&&(d+="/"),d};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"===typeof t||"object"===typeof r){var n=s(t),a=s(r);return n!==t||a!==r?e(n,a):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1},c=r(31);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,r=e.search,n=e.hash,a=t||"/";return r&&"?"!==r&&(a+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(a+="#"===n.charAt(0)?n:"#"+n),a}function v(e,t,r,a){var i;"string"===typeof e?(i=function(e){var t=e||"/",r="",n="",a=t.indexOf("#");-1!==a&&(n=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(i=Object(n.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(i.key=r),a?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=o(i.pathname,a.pathname)):i.pathname=a.pathname:i.pathname||(i.pathname="/"),i}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,a){if(null!=e){var i="function"===typeof e?e(t,r):e;"string"===typeof i?"function"===typeof n?n(i,a):a(!0):a(!1!==i)}else a(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nt?r.splice(t,r.length-t,n):r.push(n),f({action:"PUSH",location:n,index:t,entries:r})}}))},replace:function(e,t){var n=v(e,t,p(),x.location);l.confirmTransitionTo(n,"REPLACE",r,(function(e){e&&(x.entries[x.index]=n,f({action:"REPLACE",location:n}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=x.index+e;return t>=0&&t=0||(a[r]=e[r]);return a}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!g(e[s],t[s],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function x(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function k(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(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,r,n){var a;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),a=function(e){var t;try{e()}catch(r){t=r}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&y(a,r,"Missing expected exception"+n);var i="string"===typeof n,s=!e&&a&&!r;if((!e&&o.isError(a)&&i&&k(a,r)||s)&&y(a,r,"Got unwanted exception"+n),e&&a&&r&&!k(a,r)||!e&&a)throw a}p.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=function(e){return v(m(e.actual),128)+" "+e.operator+" "+v(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,a=d(t),i=n.indexOf("\n"+a);if(i>=0){var o=n.indexOf("\n",i+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(p.AssertionError,Error),p.fail=y,p.ok=b,p.equal=function(e,t,r){e!=t&&y(e,t,r,"==",p.equal)},p.notEqual=function(e,t,r){e==t&&y(e,t,r,"!=",p.notEqual)},p.deepEqual=function(e,t,r){g(e,t,!1)||y(e,t,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,r){g(e,t,!0)||y(e,t,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,r){g(e,t,!1)&&y(e,t,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,r,n){g(t,r,!0)&&y(t,r,n,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,r){e!==t&&y(e,t,r,"===",p.strictEqual)},p.notStrictEqual=function(e,t,r){e===t&&y(e,t,r,"!==",p.notStrictEqual)},p.throws=function(e,t,r){w(!0,e,t,r)},p.doesNotThrow=function(e,t,r){w(!1,e,t,r)},p.ifError=function(e){if(e)throw e},p.strict=n((function e(t,r){t||y(t,!0,r,"==",e)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var E=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}}).call(this,r(59))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},U=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(e){var t=G(e,m.TITLE),r=G(e,N);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=G(e,P);return t||n||void 0},W=function(e){return G(e,F)||function(){}},V=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[m.BASE]})).map((function(e){return e[m.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),a=0;a=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},K=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout((function(){K(t)}),0)}}(),$=function(e){return clearTimeout(e)},Y="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||K:e.requestAnimationFrame||K,Q="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||$:e.cancelAnimationFrame||$,Z=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},ee=null,te=function(e,t){var r=e.baseTag,n=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,c=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ae(m.BODY,n),ae(m.HTML,a),ne(f,p);var h={baseTag:ie(m.BASE,r),linkTags:ie(m.LINK,i),metaTags:ie(m.META,o),noscriptTags:ie(m.NOSCRIPT,s),scriptTags:ie(m.SCRIPT,c),styleTags:ie(m.STYLE,l)},d={},v={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(d[e]=r),n.length&&(v[e]=h[e].oldTags)})),t&&t(),u(e,d,v)},re=function(e){return Array.isArray(e)?e.join(""):e},ne=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=re(e)),ae(m.TITLE,t)},ae=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-react-helmet"),a=n?n.split(","):[],i=[].concat(a),o=Object.keys(t),s=0;s=0;f--)r.removeAttribute(i[f]);a.length===i.length?r.removeAttribute("data-react-helmet"):r.getAttribute("data-react-helmet")!==o.join(",")&&r.setAttribute("data-react-helmet",o.join(","))}},ie=function(e,t){var r=document.head||document.querySelector(m.HEAD),n=r.querySelectorAll(e+"[data-react-helmet]"),a=Array.prototype.slice.call(n),i=[],o=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===k)r.innerHTML=t.innerHTML;else if(n===b)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute("data-react-helmet","true"),a.some((function(e,t){return o=t,r.isEqualNode(e)}))?a.splice(o,1):i.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:i}},oe=function(e){return Object.keys(e).reduce((function(t,r){var n="undefined"!==typeof e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[A[r]||r]=e[r],t}),t)},ue=function(e,t,r){switch(e){case m.TITLE:return{toComponent:function(){return function(e,t,r){var n,a=((n={key:t})["data-react-helmet"]=!0,n),i=se(r,a);return[l.a.createElement(m.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,r,n){var a=oe(r),i=re(t);return a?"<"+e+' data-react-helmet="true" '+a+">"+q(i,n)+"":"<"+e+' data-react-helmet="true">'+q(i,n)+""}(e,t.title,t.titleAttributes,r)}};case h:case d:return{toComponent:function(){return se(t)},toString:function(){return oe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,a=((n={key:r})["data-react-helmet"]=!0,n);return Object.keys(t).forEach((function(e){var r=A[e]||e;if(r===k||r===b){var n=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:n}}else a[r]=t[e]})),l.a.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var a=Object.keys(n).filter((function(e){return!(e===k||e===b)})).reduce((function(e,t){var a="undefined"===typeof n[t]?t:t+'="'+q(n[t],r)+'"';return e?e+" "+a:a}),""),i=n.innerHTML||n.cssText||"",o=-1===M.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+a+(o?"/>":">"+i+"")}),"")}(e,t,r)}}}},ce=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,u=e.scriptTags,c=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:ue(m.BASE,t,n),bodyAttributes:ue(h,r,n),htmlAttributes:ue(d,a,n),link:ue(m.LINK,i,n),meta:ue(m.META,o,n),noscript:ue(m.NOSCRIPT,s,n),script:ue(m.SCRIPT,u,n),style:ue(m.STYLE,c,n),title:ue(m.TITLE,{title:f,titleAttributes:p},n)}},le=function(e){var t,r;return r=t=function(t){function r(){return L(this,r),U(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!u()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case m.SCRIPT:case m.NOSCRIPT:return{innerHTML:t};case m.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return B({},n,((t={})[r.type]=[].concat(n[r.type]||[],[B({},a,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(n.type){case m.TITLE:return B({},a,((t={})[n.type]=o,t.titleAttributes=B({},i),t));case m.BODY:return B({},a,{bodyAttributes:B({},i)});case m.HTML:return B({},a,{htmlAttributes:B({},i)})}return B({},a,((r={})[n.type]=B({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=B({},t);return Object.keys(e).forEach((function(t){var n;r=B({},r,((n={})[t]=e[t],n))})),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return l.a.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[I[r]||r]=e[r],t}),t)}(z(a,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,n=z(t,["children"]),a=B({},n);return r&&(a=this.mapChildrenToProps(r,a)),l.a.createElement(e,a)},R(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(l.a.Component),t.propTypes={base:a.a.object,bodyAttributes:a.a.object,children:a.a.oneOfType([a.a.arrayOf(a.a.node),a.a.node]),defaultTitle:a.a.string,defer:a.a.bool,encodeSpecialCharacters:a.a.bool,htmlAttributes:a.a.object,link:a.a.arrayOf(a.a.object),meta:a.a.arrayOf(a.a.object),noscript:a.a.arrayOf(a.a.object),onChangeClientState:a.a.func,script:a.a.arrayOf(a.a.object),style:a.a.arrayOf(a.a.object),title:a.a.string,titleAttributes:a.a.object,titleTemplate:a.a.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=ce({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}(o()((function(e){return{baseTag:X([g,_],e),bodyAttributes:V(h,e),defer:G(e,D),encode:G(e,O),htmlAttributes:V(d,e),linkTags:J(m.LINK,[T,g],e),metaTags:J(m.META,[E,y,x,S,w],e),noscriptTags:J(m.NOSCRIPT,[k],e),onChangeClientState:W(e),scriptTags:J(m.SCRIPT,[C,k],e),styleTags:J(m.STYLE,[b],e),title:H(e),titleAttributes:V(v,e)}}),(function(e){ee&&Q(ee),e.defer?ee=Y((function(){te(e,(function(){ee=null}))})):(te(e),ee=null)}),ce)((function(){return null})));le.renderStatic=le.rewind}).call(this,r(59))},function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),a="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;function i(e){var t=n.useRef(e);return a((function(){t.current=e})),n.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";(function(e){var n=r(38),a=r(0),i=r.n(a),o=(r(209),r(210)),s=r(211),u=r(116),c=r(46),l=r.n(c);function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Additional arguments: "+r.join(", "):""))}var S=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(g))return n}}(r),i=void 0!==a?a.nextSibling:null;n.setAttribute(g,"active"),n.setAttribute("data-styled-version","5.1.1");var o=w();return o&&n.setAttribute("nonce",o),r.insertBefore(n,i),n},T=function(){function e(e){var t=this.element=S(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,a=n;e>=a;)(a<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),a=n+r,i=n;i=O&&(O=t+1),P.set(e,t),D.set(t,e)},M="style["+g+'][data-styled-version="5.1.1"]',j=new RegExp("^"+g+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,a=r.split(","),i=0,o=a.length;i0&&(c+=e+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},H=function(e){return q(5381,e)};var W=/^\s*\/\/.*$/gm;function V(e){var t,r,n,a=void 0===e?v:e,i=a.options,s=void 0===i?v:i,u=a.plugins,c=void 0===u?d:u,l=new o.a(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(r){}}return function(r,n,a,i,o,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,a){return n>0&&-1!==a.slice(0,n).indexOf(r)&&a.slice(n-r.length,n)!==r?"."+t:e};function m(e,a,i,o){void 0===o&&(o="&");var s=e.replace(W,""),u=a&&i?i+" "+a+" { "+s+" }":s;return t=o,r=a,n=new RegExp("\\"+r+"\\b","g"),l(i||!a?"":a,u)}return l.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||E(15),q(e,t.name)}),5381).toString():"",m}var X=i.a.createContext(),J=(X.Consumer,i.a.createContext()),G=(J.Consumer,new U),K=V();function $(){return Object(a.useContext)(X)||G}function Y(){return Object(a.useContext)(J)||K}var Q=function(){function e(e,t){var r=this;this.inject=function(e){e.hasNameForId(r.id,r.name)||e.insertRules(r.id,r.name,K.apply(void 0,r.stringifyArgs))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),Z=/([A-Z])/g,ee=/^ms-/;function te(e){return e.replace(Z,"-$1").toLowerCase().replace(ee,"-ms-")}var re=function(e){return void 0===e||null===e||!1===e||""===e},ne=function e(t,r){var n=[];return Object.keys(t).forEach((function(r){if(!re(t[r])){if(h(t[r]))return n.push.apply(n,e(t[r],r)),n;if(m(t[r]))return n.push(te(r)+":",t[r],";"),n;n.push(te(r)+": "+(a=r,null==(i=t[r])||"boolean"===typeof i||""===i?"":"number"!==typeof i||0===i||a in s.a?String(i).trim():i+"px")+";")}var a,i;return n})),r?[r+" {"].concat(n,["}"]):n};function ae(e,t,r){if(Array.isArray(e)){for(var n,a=[],i=0,o=e.length;i1?t-1:0),n=1;n1?t-1:0),n=1;n25?39:97))};function pe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=fe(t%52)+r;return(fe(t%52)+r).replace(le,"$1-$2")}function he(e){for(var t=0;t>>0);if(!t.hasNameForId(n,i)){var o=r(a,"."+i,void 0,n);t.insertRules(n,i,o)}return this.staticRulesId=i,i}for(var s=this.rules.length,u=q(this.baseHash,r.hash),c="",l=0;l>>0);if(!t.hasNameForId(n,d)){var v=r(c,"."+d,void 0,n);t.insertRules(n,d,v)}return d},e}(),ve=(new Set,function(e,t,r){return void 0===r&&(r=v),e.theme!==r.theme&&e.theme||t||r.theme}),me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ye=/(^-|-$)/g;function be(e){return e.replace(me,"-").replace(ye,"")}function ge(e){return"string"===typeof e&&!0}var xe=function(e){return pe(H(e)>>>0)};var ke=i.a.createContext();ke.Consumer;var we={};function Ee(e,t,r){var n=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,p=e.target;Object(a.useDebugValue)(l);var h=function(e,t,r){void 0===e&&(e=v);var n=f({},t,{theme:e}),a={};return r.forEach((function(e){var t,r,i,o=e;for(t in m(o)&&(o=o(n)),o)n[t]=a[t]="className"===t?(r=a[t],i=o[t],r&&i?r+" "+i:r||i):o[t]})),[n,a]}(ve(t,Object(a.useContext)(ke),o)||v,t,n),d=h[0],y=h[1],b=function(e,t,r,n){var i=$(),o=Y(),s=e.isStatic&&!t?e.generateAndInjectStyles(v,i,o):e.generateAndInjectStyles(r,i,o);return Object(a.useDebugValue)(s),s}(i,n.length>0,d),g=r,x=y.$as||t.$as||y.as||t.as||p,k=ge(x),w=y!==t?f({},t,{},y):t,E=c||k&&u.a,S={};for(var T in w)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?S.as=w[T]:E&&!E(T,u.a)||(S[T]=w[T]));return t.style&&y.style!==t.style&&(S.style=f({},t.style,{},y.style)),S.className=Array.prototype.concat(s,l,b!==l?b:null,t.className,y.className).filter(Boolean).join(" "),S.ref=g,Object(a.createElement)(x,S)}function Se(e,t,r){var n=b(e),a=!ge(e),o=t.displayName,s=void 0===o?function(e){return ge(e)?"styled."+e:"Styled("+y(e)+")"}(e):o,u=t.componentId,c=void 0===u?function(e,t){var r="string"!==typeof e?"sc":be(e);we[r]=(we[r]||0)+1;var n=r+"-"+xe(r+we[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,p=t.attrs,h=void 0===p?d:p,v=t.displayName&&t.componentId?be(t.displayName)+"-"+t.componentId:t.componentId||c,m=n&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,g=t.shouldForwardProp;n&&e.shouldForwardProp&&(g=g?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var x,k=new de(n?e.componentStyle.rules.concat(r):r,v),w=function(e,t){return Ee(x,e,t)};return w.displayName=s,(x=i.a.forwardRef(w)).attrs=m,x.componentStyle=k,x.displayName=s,x.shouldForwardProp=g,x.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):d,x.styledComponentId=v,x.target=n?e.target:e,x.withComponent=function(e){var n=t.componentId,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(t,["componentId"]),i=n&&n+"-"+(ge(e)?e:be(y(e)));return Se(e,f({},a,{attrs:m,componentId:i}),r)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?ce({},e.defaultProps,t):t}}),x.toString=function(){return"."+x.styledComponentId},a&&l()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Te=function(e){return function e(t,r,a){if(void 0===a&&(a=v),!Object(n.isValidElementType)(r))return E(1,String(r));var i=function(){return t(r,a,ie.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,f({},a,{},n))},i.attrs=function(n){return e(t,r,f({},a,{attrs:Array.prototype.concat(a.attrs,n).filter(Boolean)}))},i}(Se,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Te[e]=Te(e)}));t.a=Te}).call(this,r(75))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";t.a=function(e,t){}},function(e,t,r){"use strict";var n=r(38),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(d){var a=h(r);a&&a!==d&&e(t,a,n)}var o=l(r);f&&(o=o.concat(f(r)));for(var s=u(t),v=u(r),m=0;m0?n:e)-c/100).concat(i,")")},between:p,only:function(e){return p(e,e)},width:function(e){return r[e]}},l)}function c(e,t,r){var a;return Object(o.a)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},r,Object(n.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},r[e.up("sm")])))},toolbar:(a={minHeight:56},Object(n.a)(a,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(n.a)(a,e.up("sm"),{minHeight:64}),a)},r)}var l=r(223),f={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},d={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},v={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=r(26),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:p[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:p[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,r,n){var a=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Object(g.d)(e.main,a):"dark"===t&&(e.dark=Object(g.a)(e.main,i)))}function E(e){var t=e.primary,r=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,n=e.secondary,s=void 0===n?{light:d.A200,main:d.A400,dark:d.A700}:n,u=e.error,c=void 0===u?{light:v[300],main:v[500],dark:v[700]}:u,E=e.warning,S=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,T=e.info,C=void 0===T?{light:y[300],main:y[500],dark:y[700]}:T,_=e.success,A=void 0===_?{light:b[300],main:b[500],dark:b[700]}:_,P=e.type,D=void 0===P?"light":P,O=e.contrastThreshold,F=void 0===O?3:O,N=e.tonalOffset,I=void 0===N?.2:N,M=Object(a.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function j(e){return Object(g.c)(e,k.text.primary)>=F?k.text.primary:x.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return w(e,"light",r,I),w(e,"dark",n,I),e.contrastText||(e.contrastText=j(e.main)),e},R={dark:k,light:x};return Object(i.a)(Object(o.a)({common:f,type:D,primary:L(r),secondary:L(s,"A400","A200","A700"),error:L(c),warning:L(S),info:L(C),success:L(A),grey:p,contrastThreshold:F,getContrastText:j,augmentColor:L,tonalOffset:I},R[D]),M)}function S(e){return Math.round(1e5*e)/1e5}var T={textTransform:"uppercase"};function C(e,t){var r="function"===typeof t?t(e):t,n=r.fontFamily,s=void 0===n?'"Roboto", "Helvetica", "Arial", sans-serif':n,u=r.fontSize,c=void 0===u?14:u,l=r.fontWeightLight,f=void 0===l?300:l,p=r.fontWeightRegular,h=void 0===p?400:p,d=r.fontWeightMedium,v=void 0===d?500:d,m=r.fontWeightBold,y=void 0===m?700:m,b=r.htmlFontSize,g=void 0===b?16:b,x=r.allVariants,k=r.pxToRem,w=Object(a.a)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var E=c/14,C=k||function(e){return"".concat(e/g*E,"rem")},_=function(e,t,r,n,a){return Object(o.a)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:r},'"Roboto", "Helvetica", "Arial", sans-serif'===s?{letterSpacing:"".concat(S(n/t),"em")}:{},a,x)},A={h1:_(f,96,1.167,-1.5),h2:_(f,60,1.2,-.5),h3:_(h,48,1.167,0),h4:_(h,34,1.235,.25),h5:_(h,24,1.334,0),h6:_(v,20,1.6,.15),subtitle1:_(h,16,1.75,.15),subtitle2:_(v,14,1.57,.1),body1:_(h,16,1.5,.15),body2:_(h,14,1.43,.15),button:_(v,14,1.75,.4,T),caption:_(h,12,1.66,.4),overline:_(h,12,2.66,1,T)};return Object(i.a)(Object(o.a)({htmlFontSize:g,pxToRem:C,round:S,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:v,fontWeightBold:y},A),w,{clone:!1})}function _(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var A=["none",_(0,2,1,-1,0,1,1,0,0,1,3,0),_(0,3,1,-2,0,2,2,0,0,1,5,0),_(0,3,3,-2,0,3,4,0,0,1,8,0),_(0,2,4,-1,0,4,5,0,0,1,10,0),_(0,3,5,-1,0,5,8,0,0,1,14,0),_(0,3,5,-1,0,6,10,0,0,1,18,0),_(0,4,5,-2,0,7,10,1,0,2,16,1),_(0,5,5,-3,0,8,10,1,0,3,14,2),_(0,5,6,-3,0,9,12,1,0,3,16,2),_(0,6,6,-3,0,10,14,1,0,4,18,3),_(0,6,7,-4,0,11,15,1,0,4,20,3),_(0,7,8,-4,0,12,17,2,0,5,22,4),_(0,7,8,-4,0,13,19,2,0,5,24,4),_(0,7,9,-4,0,14,21,2,0,5,26,4),_(0,8,9,-5,0,15,22,2,0,6,28,5),_(0,8,10,-5,0,16,24,2,0,6,30,5),_(0,8,11,-5,0,17,26,2,0,6,32,5),_(0,9,11,-5,0,18,28,2,0,7,34,6),_(0,9,12,-6,0,19,29,2,0,7,36,6),_(0,10,13,-6,0,20,31,3,0,8,38,7),_(0,10,13,-6,0,21,33,3,0,8,40,7),_(0,10,14,-6,0,22,35,3,0,8,42,7),_(0,11,14,-7,0,23,36,3,0,9,44,8),_(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2){if(!B[e])return[e];e=B[e]}var t=F(e.split(""),2),r=t[0],n=t[1],a=L[r],i=R[n]||"";return Array.isArray(i)?i.map((function(e){return a+e})):[a+i]})),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function q(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function H(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"===typeof t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function W(e){var t=q(e.theme);return Object.keys(e).map((function(r){if(-1===U.indexOf(r))return null;var n=H(z(r),t),a=e[r];return function(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||j;return t.reduce((function(e,a,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===N(t)){var a=e.theme.breakpoints||j;return Object.keys(t).reduce((function(e,n){return e[a.up(n)]=r(t[n]),e}),{})}return r(t)}(e,a,n)})).reduce(I,{})}W.propTypes={},W.filterProps=U;function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=q({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,n=e.mixins,o=void 0===n?{}:n,s=e.palette,l=void 0===s?{}:s,f=e.spacing,p=e.typography,h=void 0===p?{}:p,d=Object(a.a)(e,["breakpoints","mixins","palette","spacing","typography"]),v=E(l),m=u(r),y=V(f),b=Object(i.a)({breakpoints:m,direction:"ltr",mixins:c(m,y,o),overrides:{},palette:v,props:{},shadows:A,typography:C(v,h),spacing:y,shape:P,transitions:X.a,zIndex:J.a},d),g=arguments.length,x=new Array(g>1?g-1:0),k=1;k=0;l--)"."===(o=u[l])?u.splice(l,1):".."===o?c++:c>0&&(""===o?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return""===(r=u.join("/"))&&(r=s?"/":"."),n?(n.path=r,i(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=a(t),s=a(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),i(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var u="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,i(s)):u}t.urlParse=a,t.urlGenerate=i,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(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)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function c(e){return e}function l(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 f(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?c:function(e){return l(e)?"$"+e:e},t.fromSetString=u?c:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=f(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:f(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=f(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=f(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:f(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=a(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var u=n.path.lastIndexOf("/");u>=0&&(n.path=n.path.substring(0,u+1))}t=s(i(n),t)}return o(t)}},function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(a){return!1}}()?Object.assign:function(e,t){for(var r,s,u=o(e),c=1;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?1:0):0};t.lazySlidesOnLeft=p;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var d=function(e){return e&&e.offsetWidth||0};t.getWidth=d;var v=function(e){return e&&e.offsetHeight||0};t.getHeight=v;var m=function(e){var t,r,n,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,r=e.startY-e.curY,n=Math.atan2(r,t),(a=Math.round(180*n/Math.PI))<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":!0===i?a>=35&&a<=135?"up":"down":"vertical"};t.getSwipeDirection=m;var y=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=y;t.extractObject=function(e,t){var r={};return t.forEach((function(t){return r[t]=e[t]})),r};t.initializedState=function(e){var t,r=n.default.Children.count(e.children),i=Math.ceil(d(a.default.findDOMNode(e.listRef))),o=Math.ceil(d(a.default.findDOMNode(e.trackRef)));if(e.vertical)t=i;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=i/100),t=Math.ceil((i-s)/e.slidesToShow)}var u=a.default.findDOMNode(e.listRef)&&v(a.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),l=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=r-1-e.initialSlide);var p=e.lazyLoadedList||[],h=c({currentSlide:f,lazyLoadedList:p});p.concat(h);var m={slideCount:r,slideWidth:t,listWidth:i,trackWidth:o,currentSlide:f,slideHeight:u,listHeight:l,lazyLoadedList:p};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m};t.slideHandler=function(e){var t=e.waitForAnimate,r=e.animating,n=e.fade,a=e.infinite,i=e.index,o=e.slideCount,u=e.lazyLoadedList,l=e.lazyLoad,f=e.currentSlide,p=e.centerMode,h=e.slidesToScroll,d=e.slidesToShow,v=e.useCSS;if(t&&r)return{};var m,b,g,x=i,k={},T={};if(n){if(!a&&(i<0||i>=o))return{};i<0?x=i+o:i>=o&&(x=i-o),l&&u.indexOf(x)<0&&u.push(x),k={animating:!0,currentSlide:x,lazyLoadedList:u},T={animating:!1}}else m=x,x<0?(m=x+o,a?o%h!==0&&(m=o-o%h):m=0):!y(e)&&x>f?x=m=f:p&&x>=o?(x=a?o:o-1,m=a?0:o-1):x>=o&&(m=x-o,a?o%h!==0&&(m=0):m=o-d),b=S(s({},e,{slideIndex:x})),g=S(s({},e,{slideIndex:m})),a||(b===g&&(x=m),b=g),l&&u.concat(c(s({},e,{currentSlide:x}))),v?(k={animating:!0,currentSlide:m,trackStyle:E(s({},e,{left:b})),lazyLoadedList:u},T={animating:!1,currentSlide:m,trackStyle:w(s({},e,{left:g})),swipeLeft:null}):k={currentSlide:m,trackStyle:w(s({},e,{left:g})),lazyLoadedList:u};return{state:k,nextState:T}};t.changeSlide=function(e,t){var r,n,a,i,o=e.slidesToScroll,u=e.slidesToShow,c=e.slideCount,l=e.currentSlide,f=e.lazyLoad,p=e.infinite;if(r=c%o!==0?0:(c-l)%o,"previous"===t.message)i=l-(a=0===r?o:u-r),f&&!p&&(i=-1===(n=l-a)?c-1:n);else if("next"===t.message)i=l+(a=0===r?o:r),f&&!p&&(i=(l+o)%c+r);else if("dots"===t.message){if((i=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((i=t.index)===t.currentSlide)return null;if(p){var h=A(s({},e,{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=c:i10)return{scrolling:!0};o&&(x.swipeLength=P);var D=(u?-1:1)*(x.curX>x.startX?1:-1);o&&(D=x.curY>x.startY?1:-1);var O=Math.ceil(v/b),F=m(t.touchObject,o),N=x.swipeLength;return g||(0===c&&"right"===F||c+1>=O&&"left"===F||!y(t)&&"left"===F)&&(N=x.swipeLength*l,!1===f&&p&&(p(F),_.edgeDragged=!0)),!h&&k&&(k(F),_.swiped=!0),C=a?A+N*(E/T)*D:u?A-N*D:A+N*D,o&&(C=A+N*D),_=s({},_,{touchObject:x,swipeLeft:C,trackStyle:w(s({},t,{left:C}))}),Math.abs(x.curX-x.startX)<.8*Math.abs(x.curY-x.startY)?_:(x.swipeLength>10&&(_.swiping=!0,e.preventDefault()),_)}};t.swipeEnd=function(e,t){var r=t.dragging,n=t.swipe,a=t.touchObject,i=t.listWidth,o=t.touchThreshold,u=t.verticalSwiping,c=t.listHeight,l=t.currentSlide,f=t.swipeToSlide,p=t.scrolling,h=t.onSwipe;if(!r)return n&&e.preventDefault(),{};var d=u?c/o:i/o,v=m(a,u),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return y;if(!a.swipeLength)return y;if(a.swipeLength>d){var b,k;switch(e.preventDefault(),h&&h(v),v){case"left":case"up":k=l+x(t),b=f?g(t,k):k,y.currentDirection=0;break;case"right":case"down":k=l-x(t),b=f?g(t,k):k,y.currentDirection=1;break;default:b=l}y.triggerSlideHandler=b}else{var w=S(t);y.trackStyle=E(s({},t,{left:w}))}return y};var b=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,a=[];rr[r.length-1])t=r[r.length-1];else for(var a in r){if(t-1*e.swipeLeft)return r=n,!1}else if(n.offsetLeft-t+d(n)/2>-1*e.swipeLeft)return r=n,!1;return!0})),!r)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(r.dataset.index-i)||1}return e.slidesToScroll};t.getSlideCount=x;var k=function(e,t){return t.reduce((function(t,r){return t&&e.hasOwnProperty(r)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=k;var w=function(e){var t,r;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n=e.slideCount+2*e.slidesToShow;e.vertical?r=n*e.slideHeight:t=_(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};e.useTransform?a=s({},a,{WebkitTransform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",msTransform:e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)"}):e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),t&&(a.width=t),r&&(a.height=r),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a};t.getTrackCSS=w;var E=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=w(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=E;var S=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,r,n=e.slideIndex,i=e.trackRef,o=e.infinite,s=e.centerMode,u=e.slideCount,c=e.slidesToShow,l=e.slidesToScroll,f=e.slideWidth,p=e.listWidth,h=e.variableWidth,d=e.slideHeight,v=e.fade,m=e.vertical;if(v||1===e.slideCount)return 0;var y=0;if(o?(y=-T(e),u%l!==0&&n+l>u&&(y=-(n>u?c-(n-u):u%l)),s&&(y+=parseInt(c/2))):(u%l!==0&&n+l>u&&(y=c-u%l),s&&(y=parseInt(c/2))),t=m?n*d*-1+y*d:n*f*-1+y*f,!0===h){var b,g=a.default.findDOMNode(i);if(b=n+T(e),t=(r=g&&g.childNodes[b])?-1*r.offsetLeft:0,!0===s){b=o?n+T(e):n,r=g&&g.children[b],t=0;for(var x=0;xe.currentSlide?e.targetSlide>e.currentSlide+P(e)?"left":"right":e.targetSlide0&&(i+=1),n&&t%2===0&&(i+=1),i}return n?0:t-1};t.slidesOnRight=P;var D=function(e){var t=e.slidesToShow,r=e.centerMode,n=e.rtl,a=e.centerPadding;if(r){var i=(t-1)/2+1;return parseInt(a)>0&&(i+=1),n||t%2!==0||(i+=1),i}return n?t-1:0};t.slidesOnLeft=D;t.canUseDOM=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}},function(e,t){var r,n,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var r=1;r-1}},{key:"length",get:function(){return this.__paths.length}}]),e}();function d(e){var t=[];if(e.length>0&&p.check(e[0].node)){var r=l[e[0].node.type];t=1===e.length||e.every((function(e){return r.check(e.node)}))?[r.toString()].concat(c.getSupertypeNames(r.toString())):o(e.map((function(e){return c.getSupertypeNames(e.node.type)})))}return t}function v(e){return(e=(e=Array.isArray(e)?e:[e]).map((function(e){return e.toString()}))).length>1?u([e].concat(o(e.map(m)))):e.concat(m(e[0]))}function m(e){try{return c.getSupertypeNames(e)}catch(t){if(""===t.message)throw new Error('"'+e+'" is not a known AST node type. Maybe a typo?');throw t}}function y(e,t,r){return i.ok(e.every((function(e){return e instanceof f})),"Every element in the array should be a NodePath"),new h(e,t,r)}var b=h.prototype;function g(e){if(b.hasOwnProperty(e))throw new Error('Internal Error: "'.concat(e,'" method is already installed'));var t={};function r(){for(var r=Object.keys(t),n=0;n0),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new u.default(this,{start:this.firstPos(),end:this.lastPos()}))}return e.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},e.prototype.getSourceMap=function(e,t){if(!e)return null;var r=this;function n(r){return(r=r||{}).file=e,t&&(r.sourceRoot=t),r}if(r.cachedSourceMap)return n(r.cachedSourceMap.toJSON());var o=new i.default.SourceMapGenerator(n()),u={};return r.mappings.forEach((function(e){for(var t=e.sourceLines.skipSpaces(e.sourceLoc.start)||e.sourceLines.lastPos(),n=r.skipSpaces(e.targetLoc.start)||r.lastPos();s.comparePos(t,e.sourceLoc.end)<0&&s.comparePos(n,e.targetLoc.end)<0;){var i=e.sourceLines.charAt(t),c=r.charAt(n);a.default.strictEqual(i,c);var l=e.sourceLines.name;if(o.addMapping({source:l,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column}}),!f.call(u,l)){var p=e.sourceLines.toString();o.setSourceContent(l,p),u[l]=p}r.nextPos(n,!0),e.sourceLines.nextPos(t,!0)}})),r.cachedSourceMap=o,o.toJSON()},e.prototype.bootstrapCharAt=function(e){a.default.strictEqual(typeof e,"object"),a.default.strictEqual(typeof e.line,"number"),a.default.strictEqual(typeof e.column,"number");var t=e.line,r=e.column,n=this.toString().split(d),i=n[t-1];return"undefined"===typeof i?"":r===i.length&&t=i.length?"":i.charAt(r)},e.prototype.charAt=function(e){a.default.strictEqual(typeof e,"object"),a.default.strictEqual(typeof e.line,"number"),a.default.strictEqual(typeof e.column,"number");var t=e.line,r=e.column,n=this.infos[t-1],i=r;if("undefined"===typeof n||i<0)return"";var o=this.getIndentAt(t);return i=n.sliceEnd?"":n.line.charAt(i)},e.prototype.stripMargin=function(t,r){if(0===t)return this;if(a.default.ok(t>0,"negative margin: "+t),r&&1===this.length)return this;var i=new e(this.infos.map((function(e,a){return e.line&&(a>0||!r)&&(e=n.__assign(n.__assign({},e),{indent:Math.max(0,e.indent-t)})),e})));if(this.mappings.length>0){var o=i.mappings;a.default.strictEqual(o.length,0),this.mappings.forEach((function(e){o.push(e.indent(t,r,!0))}))}return i},e.prototype.indent=function(t){if(0===t)return this;var r=new e(this.infos.map((function(e){return e.line&&!e.locked&&(e=n.__assign(n.__assign({},e),{indent:e.indent+t})),e})));if(this.mappings.length>0){var i=r.mappings;a.default.strictEqual(i.length,0),this.mappings.forEach((function(e){i.push(e.indent(t))}))}return r},e.prototype.indentTail=function(t){if(0===t)return this;if(this.length<2)return this;var r=new e(this.infos.map((function(e,r){return r>0&&e.line&&!e.locked&&(e=n.__assign(n.__assign({},e),{indent:e.indent+t})),e})));if(this.mappings.length>0){var i=r.mappings;a.default.strictEqual(i.length,0),this.mappings.forEach((function(e){i.push(e.indent(t,!0))}))}return r},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map((function(e,t){return n.__assign(n.__assign({},e),{locked:t>0})})))},e.prototype.getIndentAt=function(e){return a.default.ok(e>=1,"no line "+e+" (line numbers start from 1)"),Math.max(this.infos[e-1].indent,0)},e.prototype.guessTabWidth=function(){if("number"===typeof this.cachedTabWidth)return this.cachedTabWidth;for(var e=[],t=0,r=1,n=this.length;r<=n;++r){var a=this.infos[r-1];if(!m(a.line.slice(a.sliceStart,a.sliceEnd))){var i=Math.abs(a.indent-t);e[i]=1+~~e[i],t=a.indent}}for(var o=-1,s=2,u=1;uo&&(o=e[u],s=u);return this.cachedTabWidth=s},e.prototype.startsWithComment=function(){if(0===this.infos.length)return!1;var e=this.infos[0],t=e.sliceStart,r=e.sliceEnd,n=e.line.slice(t,r).trim();return 0===n.length||"//"===n.slice(0,2)||"/*"===n.slice(0,2)},e.prototype.isOnlyWhitespace=function(){return m(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],r=Math.max(t.indent,0),n=e.column-r;if(n<=0)return!0;var a=t.sliceStart,i=Math.min(a+n,t.sliceEnd);return m(t.line.slice(a,i))},e.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},e.prototype.nextPos=function(e,t){void 0===t&&(t=!1);var r=Math.max(e.line,0);return Math.max(e.column,0)0&&(r.push(r.pop().slice(0,t.column)),r[0]=r[0].slice(e.column)),v(r.join("\n"))},e.prototype.slice=function(t,r){if(!r){if(!t)return this;r=this.lastPos()}if(!t)throw new Error("cannot slice with end but not start");var n=this.infos.slice(t.line-1,r.line);t.line===r.line?n[0]=y(n[0],t.column,r.column):(a.default.ok(t.line0){var o=i.mappings;a.default.strictEqual(o.length,0),this.mappings.forEach((function(e){var n=e.slice(this,t,r);n&&o.push(n)}),this)}return i},e.prototype.bootstrapSliceString=function(e,t,r){return this.slice(e,t).toString(r)},e.prototype.sliceString=function(e,t,r){void 0===e&&(e=this.firstPos()),void 0===t&&(t=this.lastPos());for(var n=o.normalize(r),a=n.tabWidth,i=n.useTabs,s=n.reuseWhitespace,u=n.lineTerminator,c=[],l=e.line;l<=t.line;++l){var f=this.infos[l-1];l===e.line?f=l===t.line?y(f,e.column,t.column):y(f,e.column):l===t.line&&(f=y(f,0,t.column));var h=Math.max(f.indent,0),d=f.line.slice(0,f.sliceStart);if(s&&m(d)&&p(d,a)===h)c.push(f.line.slice(0,f.sliceEnd));else{var v=0,b=h;i&&(b-=(v=Math.floor(h/a))*a);var g="";v>0&&(g+=new Array(v+1).join("\t")),b>0&&(g+=new Array(b+1).join(" ")),g+=f.line.slice(f.sliceStart,f.sliceEnd),c.push(g)}}return c.join(u)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(t){var r,a=this,i=[],o=[];function s(e){if(null!==e){if(r){var t=e.infos[0],a=new Array(t.indent+1).join(" "),s=i.length,u=Math.max(r.indent,0)+r.sliceEnd-r.sliceStart;r.line=r.line.slice(0,r.sliceEnd)+a+t.line.slice(t.sliceStart,t.sliceEnd),r.locked=r.locked||t.locked,r.sliceEnd=r.line.length,e.mappings.length>0&&e.mappings.forEach((function(e){o.push(e.add(s,u))}))}else e.mappings.length>0&&o.push.apply(o,e.mappings);e.infos.forEach((function(e,t){(!r||t>0)&&(r=n.__assign({},e),i.push(r))}))}}if(t.map((function(e){var t=v(e);return t.isEmpty()?null:t})).forEach((function(e,t){a.isEmpty()?s(e):function(e,t){t>0&&s(a),s(e)}(e,t)})),i.length<1)return b;var u=new e(i);return u.mappings=o,u},e.prototype.concat=function(){for(var e=[],t=0;t0);var o=Math.ceil(r/t)*t;o===r?r+=t:r=o;break;case 11:case 12:case 13:case 65279:break;case 32:default:r+=1}return r}t.countSpaces=p;var h=/^\s*/,d=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function v(e,t){if(e instanceof c)return e;e+="";var r=t&&t.tabWidth,n=e.indexOf("\t")<0,i=!t&&n&&e.length<=10;if(a.default.ok(r||n,"No tab width specified but encountered tabs in string\n"+e),i&&f.call(l,e))return l[e];var s=new c(e.split(d).map((function(e){var t=h.exec(e)[0];return{line:e,indent:p(t,r),locked:!1,sliceStart:t.length,sliceEnd:e.length}})),o.normalize(t).sourceFileName);return i&&(l[e]=s),s}function m(e){return!/\S/.test(e)}function y(e,t,r){var n=e.sliceStart,i=e.sliceEnd,o=Math.max(e.indent,0),s=o+i-n;return"undefined"===typeof r&&(r=s),t=Math.max(t,0),r=Math.min(r,s),(r=Math.max(r,t))=0),a.default.ok(n<=i),a.default.strictEqual(s,o+i-n),e.indent===o&&e.sliceStart===n&&e.sliceEnd===i?e:{line:e.line,indent:o,locked:!1,sliceStart:n,sliceEnd:i}}t.fromString=v,t.concat=function(e){return b.join(e)};var b=v("")},function(e,t,r){"use strict";var n=r(146),a=r(371),i=r(111),o=r(375),s=r(377),u=r(382),c=r(384),l=r(145),f=r(144);Object.defineProperty(t,"__esModule",{value:!0});var p=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.updateContext=void 0,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=null!=r.binop?r.binop:null,this.updateContext=null},h=new Map;function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var r=new p(e,t);return h.set(e,r),r}function v(e,t){return new p(e,{beforeExpr:!0,binop:t})}var m={num:new p("num",{startsExpr:!0}),bigint:new p("bigint",{startsExpr:!0}),decimal:new p("decimal",{startsExpr:!0}),regexp:new p("regexp",{startsExpr:!0}),string:new p("string",{startsExpr:!0}),name:new p("name",{startsExpr:!0}),privateName:new p("#name",{startsExpr:!0}),eof:new p("eof"),bracketL:new p("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:new p("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:new p("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:new p("]"),bracketBarR:new p("|]"),braceL:new p("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:new p("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:new p("#{",{beforeExpr:!0,startsExpr:!0}),braceR:new p("}",{beforeExpr:!0}),braceBarR:new p("|}"),parenL:new p("(",{beforeExpr:!0,startsExpr:!0}),parenR:new p(")"),comma:new p(",",{beforeExpr:!0}),semi:new p(";",{beforeExpr:!0}),colon:new p(":",{beforeExpr:!0}),doubleColon:new p("::",{beforeExpr:!0}),dot:new p("."),question:new p("?",{beforeExpr:!0}),questionDot:new p("?."),arrow:new p("=>",{beforeExpr:!0}),template:new p("template"),ellipsis:new p("...",{beforeExpr:!0}),backQuote:new p("`",{startsExpr:!0}),dollarBraceL:new p("${",{beforeExpr:!0,startsExpr:!0}),at:new p("@"),hash:new p("#",{startsExpr:!0}),interpreterDirective:new p("#!..."),eq:new p("=",{beforeExpr:!0,isAssign:!0}),assign:new p("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:new p("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:new p("_=",{beforeExpr:!0,isAssign:!0}),incDec:new p("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new p("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:new p("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),plusMin:new p("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:new p("%",{binop:10,startsExpr:!0}),star:new p("*",{binop:10}),slash:v("/",10),exponent:new p("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_break:d("break"),_case:d("case",{beforeExpr:!0}),_catch:d("catch"),_continue:d("continue"),_debugger:d("debugger"),_default:d("default",{beforeExpr:!0}),_do:d("do",{isLoop:!0,beforeExpr:!0}),_else:d("else",{beforeExpr:!0}),_finally:d("finally"),_for:d("for",{isLoop:!0}),_function:d("function",{startsExpr:!0}),_if:d("if"),_return:d("return",{beforeExpr:!0}),_switch:d("switch"),_throw:d("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:d("try"),_var:d("var"),_const:d("const"),_while:d("while",{isLoop:!0}),_with:d("with"),_new:d("new",{beforeExpr:!0,startsExpr:!0}),_this:d("this",{startsExpr:!0}),_super:d("super",{startsExpr:!0}),_class:d("class",{startsExpr:!0}),_extends:d("extends",{beforeExpr:!0}),_export:d("export"),_import:d("import",{startsExpr:!0}),_null:d("null",{startsExpr:!0}),_true:d("true",{startsExpr:!0}),_false:d("false",{startsExpr:!0}),_in:d("in",{beforeExpr:!0,binop:7}),_instanceof:d("instanceof",{beforeExpr:!0,binop:7}),_typeof:d("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:d("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:d("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},y=/\r\n?|[\n\u2028\u2029]/,b=new RegExp(y.source,"g");function g(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),w=new RegExp("(?=("+k.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function E(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var S=function e(t,r){f(this,e),this.line=void 0,this.column=void 0,this.line=t,this.column=r},T=function e(t,r){f(this,e),this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r};function C(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,c(t))}function _(e,t){if(void 0===e.innerComments)e.innerComments=t;else if(void 0!==t){var r;(r=e.innerComments).unshift.apply(r,c(t))}}function A(e,t,r){for(var n=null,a=t.length;null===n&&a>0;)n=t[--a];null===n||n.start>r.start?_(e,r.comments):C(n,r.comments)}var P=function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"addComment",value:function(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}},{key:"processComment",value:function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var n=r-1,a=t[n];a.start===e.end&&(a.leadingNode=e,n--);for(var i=e.start;n>=0;n--){var o=t[n],s=o.end;if(!(s>i)){s===i&&(o.trailingNode=e);break}o.containingNode=e,this.finalizeComment(o),t.splice(n,1)}}}},{key:"finalizeComment",value:function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&C(e.leadingNode,t),null!==e.trailingNode&&(e.trailingNode.leadingComments=t);else{var r=e.containingNode,n=e.start;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":A(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":A(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":A(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":A(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":A(r,r.specifiers,e);break;default:_(r,t)}else _(r,t)}}},{key:"finalizeRemainingComments",value:function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}},{key:"resetPreviousNodeTrailingComments",value:function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}}}]),r}(function(){function e(){f(this,e),this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}return l(e,[{key:"hasPlugin",value:function(e){return this.plugins.has(e)}},{key:"getPluginOption",value:function(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}]),e}()),D=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),O=N({AccessorIsGenerator:"A %0ter cannot be a generator.",ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 is not defined.",InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' is not defined.",MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PipeBodyIsTighter:"Unexpected %0 after pipeline body; any %0 expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:'Invalid topic token %0. In order to use %0 as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "%0" }.',PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:"Unexpected keyword '%0'.",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1.",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},D.SyntaxError),F=N({ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'"},D.SourceTypeModuleError);function N(e,t){var r={};return Object.keys(e).forEach((function(n){r[n]=Object.freeze({code:t,reasonCode:n,template:e[n]})})),Object.freeze(r)}var I=function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"getLocationForPosition",value:function(e){return e===this.state.start?this.state.startLoc:e===this.state.lastTokStart?this.state.lastTokStartLoc:e===this.state.end?this.state.endLoc:e===this.state.lastTokEnd?this.state.lastTokEndLoc:function(e,t){var r,n=1,a=0;for(b.lastIndex=0;(r=b.exec(e))&&r.index2?i-2:0),s=2;s2?a-2:0),o=2;o=0;l--){var f=c[l];if(f.pos===e)return Object.assign(f,{message:u});if(f.pos3?n-3:0),i=3;ie)return!1;if((r+=t[n+1])>=e)return!0}return!1}function W(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&B.test(String.fromCharCode(e)):H(e,U)))}function V(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&z.test(String.fromCharCode(e)):H(e,U)||H(e,q))))}var X=["implements","interface","let","package","private","protected","public","static","yield"],J=["eval","arguments"],G=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),K=new Set(X),$=new Set(J);function Y(e,t){return t&&"await"===e||"enum"===e}function Q(e,t){return Y(e,t)||K.has(e)}function Z(e){return $.has(e)}function ee(e,t){return Q(e,t)||Z(e)}function te(e){return G.has(e)}var re=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);var ne=function e(t){f(this,e),this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t},ae=function(){function e(t,r){f(this,e),this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=t,this.inModule=r}return l(e,[{key:"createScope",value:function(e){return new ne(e)}},{key:"enter",value:function(e){this.scopeStack.push(this.createScope(e))}},{key:"exit",value:function(){this.scopeStack.pop()}},{key:"treatFunctionsAsVarInScope",value:function(e){return!!(2&e.flags||!this.inModule&&1&e.flags)}},{key:"declareName",value:function(e,t,r){var n=this.currentScope();if(8&t||16&t)this.checkRedeclarationInScope(n,e,t,r),16&t?n.functions.add(e):n.lexical.add(e),8&t&&this.maybeExportDefined(n,e);else if(4&t)for(var a=this.scopeStack.length-1;a>=0&&(n=this.scopeStack[a],this.checkRedeclarationInScope(n,e,t,r),n.var.add(e),this.maybeExportDefined(n,e),!(259&n.flags));--a);this.inModule&&1&n.flags&&this.undefinedExports.delete(e)}},{key:"maybeExportDefined",value:function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)}},{key:"checkRedeclarationInScope",value:function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,O.VarRedeclaration,t)}},{key:"isRedeclaredInScope",value:function(e,t,r){return!!(1&r)&&(8&r?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):16&r?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(8&e.flags&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t))}},{key:"checkLocalExport",value:function(e){var t=e.name,r=this.scopeStack[0];r.lexical.has(t)||r.var.has(t)||r.functions.has(t)||this.undefinedExports.set(t,e.start)}},{key:"currentScope",value:function(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(259&t)return t}}},{key:"currentThisScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(323&t&&!(4&t))return t}}},{key:"inFunction",get:function(){return(2&this.currentVarScopeFlags())>0}},{key:"allowSuper",get:function(){return(16&this.currentThisScopeFlags())>0}},{key:"allowDirectSuper",get:function(){return(32&this.currentThisScopeFlags())>0}},{key:"inClass",get:function(){return(64&this.currentThisScopeFlags())>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(64&e)>0&&0===(2&e)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(128&t)return!0;if(323&t)return!1}}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScopeFlags())>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}]),e}(),ie=function(e){u(r,e);var t=s(r);function r(){var e;f(this,r);for(var n=arguments.length,a=new Array(n),i=0;i=48&&e<=57},ce=new Set([103,109,115,105,121,117,100]),le={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},fe={bin:[48,49]};fe.oct=[].concat(c(fe.bin),[50,51,52,53,54,55]),fe.dec=[].concat(c(fe.oct),[56,57]),fe.hex=[].concat(c(fe.dec),[65,66,67,68,69,70,97,98,99,100,101,102]);var pe=function e(t){f(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new T(t.startLoc,t.endLoc)},he=function(e){u(r,e);var t=s(r);function r(e,n){var a;return f(this,r),(a=t.call(this)).isLookahead=void 0,a.tokens=[],a.state=new se,a.state.init(e),a.input=n,a.length=n.length,a.isLookahead=!1,a}return l(r,[{key:"pushToken",value:function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}},{key:"next",value:function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new pe(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()}},{key:"eat",value:function(e){return!!this.match(e)&&(this.next(),!0)}},{key:"match",value:function(e){return this.state.type===e}},{key:"createLookaheadState",value:function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,lastTokEnd:e.end,context:[this.curContext()],inType:e.inType}}},{key:"lookahead",value:function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t}},{key:"nextTokenStart",value:function(){return this.nextTokenStartSince(this.state.pos)}},{key:"nextTokenStartSince",value:function(e){return x.lastIndex=e,x.test(this.input)?x.lastIndex:e}},{key:"lookaheadCharCode",value:function(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"codePointAtPos",value:function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(m.eof):e===j.template?this.readTmplToken():this.getTokenFromCode(this.codePointAtPos(this.state.pos))}},{key:"skipBlockComment",value:function(){var e;this.isLookahead||(e=this.state.curPosition());var t=this.state.pos,r=this.input.indexOf("*/",t+2);if(-1===r)throw this.raise(t,O.UnterminatedComment);for(this.state.pos=r+2,b.lastIndex=t+2;b.test(this.input)&&b.lastIndex<=r;)++this.state.curLine,this.state.lineStart=b.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(t+2,r),start:t,end:r+2,loc:new T(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}}},{key:"skipLineComment",value:function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var u=this.skipLineComment(3);void 0!==u&&(this.addComment(u),this.options.attachComment&&t.push(u))}}}if(t.length>0){var c={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}},{key:"finishToken",value:function(e,t){this.state.end=this.state.pos;var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||(this.state.endLoc=this.state.curPosition(),this.updateContext(r))}},{key:"readToken_numberSign",value:function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,O.UnexpectedDigitAfterHash);if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===t?O.RecordExpressionHashIncorrectStartSyntaxType:O.TupleExpressionHashIncorrectStartSyntaxType);this.state.pos+=2,123===t?this.finishToken(m.braceHashL):this.finishToken(m.bracketHashL)}else W(t)?(++this.state.pos,this.finishToken(m.privateName,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(m.privateName,this.readWord1())):this.finishOp(m.hash,1)}}},{key:"readToken_dot",value:function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(m.ellipsis)):(++this.state.pos,this.finishToken(m.dot))}},{key:"readToken_slash",value:function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(m.slashAssign,2):this.finishOp(m.slash,1)}},{key:"readToken_interpreter",value:function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!g(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(m.question)):(this.state.pos+=2,this.finishToken(m.questionDot))}},{key:"getTokenFromCode",value:function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(m.parenL);case 41:return++this.state.pos,void this.finishToken(m.parenR);case 59:return++this.state.pos,void this.finishToken(m.semi);case 44:return++this.state.pos,void this.finishToken(m.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,O.TupleExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(m.bracketBarL)}else++this.state.pos,this.finishToken(m.bracketL);return;case 93:return++this.state.pos,void this.finishToken(m.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,O.RecordExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(m.braceBarL)}else++this.state.pos,this.finishToken(m.braceL);return;case 125:return++this.state.pos,void this.finishToken(m.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(m.doubleColon,2):(++this.state.pos,this.finishToken(m.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(m.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(m.tilde,1);case 64:return++this.state.pos,void this.finishToken(m.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(W(e))return void this.readWord(e)}throw this.raise(this.state.pos,O.InvalidOrUnexpectedToken,String.fromCodePoint(e))}},{key:"finishOp",value:function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}},{key:"readRegexp",value:function(){for(var e,t,r=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(r,O.UnterminatedRegExp);var a=this.input.charCodeAt(n);if(g(a))throw this.raise(r,O.UnterminatedRegExp);if(e)e=!1;else{if(91===a)t=!0;else if(93===a&&t)t=!1;else if(47===a&&!t)break;e=92===a}}var i=this.input.slice(r,n);++n;for(var o="";n3&&void 0!==arguments[3])||arguments[3],a=this.state.pos,i=16===e?le.hex:le.decBinOct,o=16===e?fe.hex:10===e?fe.dec:8===e?fe.oct:fe.bin,s=!1,u=0,c=0,l=null==t?1/0:t;c=97?f-97+10:f>=65?f-65+10:ue(f)?f-48:1/0)>=e)if(this.options.errorRecovery&&p<=9)p=0,this.raise(this.state.start+c+2,O.InvalidDigit,e);else{if(!r)break;p=0,s=!0}++this.state.pos,u=u*e+p}else{var h=this.input.charCodeAt(this.state.pos-1),d=this.input.charCodeAt(this.state.pos+1);(-1===o.indexOf(d)||i.indexOf(h)>-1||i.indexOf(d)>-1||Number.isNaN(d))&&this.raise(this.state.pos,O.UnexpectedNumericSeparator),n||this.raise(this.state.pos,O.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===a||null!=t&&this.state.pos-a!==t||s?null:u}},{key:"readRadixNumber",value:function(e){var t=this.state.pos,r=!1;this.state.pos+=2;var n=this.readInt(e);null==n&&this.raise(this.state.start+2,O.InvalidDigit,e);var a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,r=!0;else if(109===a)throw this.raise(t,O.InvalidDecimal);if(W(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,O.NumberIdentifier);if(r){var i=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(m.bigint,i)}else this.finishToken(m.num,n)}},{key:"readNumber",value:function(e){var t=this.state.pos,r=!1,n=!1,a=!1,i=!1,o=!1;e||null!==this.readInt(10)||this.raise(t,O.InvalidNumber);var s=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(s){var u=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(t,O.StrictOctalLiteral),!this.state.strict){var c=u.indexOf("_");c>0&&this.raise(c+t,O.ZeroDigitNumericSeparator)}o=s&&!/[89]/.test(u)}var l=this.input.charCodeAt(this.state.pos);if(46!==l||o||(++this.state.pos,this.readInt(10),r=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||o||(43!==(l=this.input.charCodeAt(++this.state.pos))&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(t,O.InvalidOrMissingExponent),r=!0,i=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((r||s)&&this.raise(t,O.InvalidBigIntLiteral),++this.state.pos,n=!0),109===l&&(this.expectPlugin("decimal",this.state.pos),(i||s)&&this.raise(t,O.InvalidDecimal),++this.state.pos,a=!0),W(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,O.NumberIdentifier);var f=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(m.bigint,f);else if(a)this.finishToken(m.decimal,f);else{var p=o?parseInt(f,8):parseFloat(f);this.finishToken(m.num,p)}}},{key:"readCodePoint",value:function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var r=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,null!==t&&t>1114111){if(!e)return null;this.raise(r,O.InvalidCodePoint)}}else t=this.readHexChar(4,!1,e);return t}},{key:"readString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,O.UnterminatedString);var n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(92===n)t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===n||8233===n)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(g(n))throw this.raise(this.state.start,O.UnterminatedString);++this.state.pos}}t+=this.input.slice(r,this.state.pos++),this.finishToken(m.string,t)}},{key:"readTmplToken",value:function(){for(var e="",t=this.state.pos,r=!1;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,O.UnterminatedTemplate);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(m.template)?36===n?(this.state.pos+=2,void this.finishToken(m.dollarBraceL)):(++this.state.pos,void this.finishToken(m.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(m.template,r?null:e));if(92===n){e+=this.input.slice(t,this.state.pos);var a=this.readEscapedChar(!0);null===a?r=!0:e+=a,t=this.state.pos}else if(g(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}}},{key:"recordStrictModeErrors",value:function(e,t){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,t):this.state.strictErrors.set(e,t)}},{key:"readEscapedChar",value: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,!1,t);return null===n?null:String.fromCharCode(n);case 117:var a=this.readCodePoint(t);return null===a?null:String.fromCodePoint(a);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:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.recordStrictModeErrors(this.state.pos-1,O.StrictNumericEscape);default:if(r>=48&&r<=55){var i=this.state.pos-1,o=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(o,8);s>255&&(o=o.slice(0,-1),s=parseInt(o,8)),this.state.pos+=o.length-1;var u=this.input.charCodeAt(this.state.pos);if("0"!==o||56===u||57===u){if(e)return null;this.recordStrictModeErrors(i,O.StrictNumericEscape)}return String.fromCharCode(s)}return String.fromCharCode(r)}}},{key:"readHexChar",value:function(e,t,r){var n=this.state.pos,a=this.readInt(16,e,t,!1);return null===a&&(r?this.raise(n,O.InvalidEscapeSequence):this.state.pos=n-1),a}},{key:"readWord1",value:function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos0&&void 0!==arguments[0]?arguments[0]:0;f(this,e),this.type=void 0,this.type=t}return l(e,[{key:"canBeArrowParameterDeclaration",value:function(){return 2===this.type||1===this.type}},{key:"isCertainlyParameterDeclaration",value:function(){return 3===this.type}}]),e}(),ye=function(e){u(r,e);var t=s(r);function r(e){var n;return f(this,r),(n=t.call(this,e)).errors=new Map,n}return l(r,[{key:"recordDeclarationError",value:function(e,t){this.errors.set(e,t)}},{key:"clearDeclarationError",value:function(e){this.errors.delete(e)}},{key:"iterateErrors",value:function(e){this.errors.forEach(e)}}]),r}(me),be=function(){function e(t){f(this,e),this.stack=[new me],this.raise=t}return l(e,[{key:"enter",value:function(e){this.stack.push(e)}},{key:"exit",value:function(){this.stack.pop()}},{key:"recordParameterInitializerError",value:function(e,t){for(var r=this.stack,n=r.length-1,a=r[n];!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,t),a=r[--n]}this.raise(e,t)}},{key:"recordParenthesizedIdentifierError",value:function(e,t){var r=this.stack,n=r[r.length-1];if(n.isCertainlyParameterDeclaration())this.raise(e,t);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,t)}}},{key:"recordAsyncArrowParametersError",value:function(e,t){for(var r=this.stack,n=r.length-1,a=r[n];a.canBeArrowParameterDeclaration();)2===a.type&&a.recordDeclarationError(e,t),a=r[--n]}},{key:"validateAsPattern",value:function(){var e=this,t=this.stack,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors((function(r,n){e.raise(n,r);for(var a=t.length-2,i=t[a];i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n),i=t[--a]}))}}]),e}();function ge(){return new me}var xe=function(){function e(){f(this,e),this.stacks=[]}return l(e,[{key:"enter",value:function(e){this.stacks.push(e)}},{key:"exit",value:function(){this.stacks.pop()}},{key:"currentFlags",value:function(){return this.stacks[this.stacks.length-1]}},{key:"hasAwait",get:function(){return(2&this.currentFlags())>0}},{key:"hasYield",get:function(){return(1&this.currentFlags())>0}},{key:"hasReturn",get:function(){return(4&this.currentFlags())>0}},{key:"hasIn",get:function(){return(8&this.currentFlags())>0}}]),e}();function ke(e,t){return(e?2:0)|(t?1:0)}var we=function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"addExtra",value:function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)}},{key:"isRelational",value:function(e){return this.match(m.relational)&&this.state.value===e}},{key:"expectRelational",value:function(e){this.isRelational(e)?this.next():this.unexpected(null,m.relational)}},{key:"isContextual",value:function(e){return this.match(m.name)&&this.state.value===e&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var n=this.input.charCodeAt(r);return!(V(n)||55296===(64512&n))}return!1}},{key:"isLookaheadContextual",value:function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}},{key:"eatContextual",value:function(e){return this.isContextual(e)&&this.eat(m.name)}},{key:"expectContextual",value:function(e,t){this.eatContextual(e)||this.unexpected(null,t)}},{key:"canInsertSemicolon",value:function(){return this.match(m.eof)||this.match(m.braceR)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function(){return y.test(this.input.slice(this.state.lastTokEnd,this.state.start))}},{key:"hasFollowingLineBreak",value:function(){return w.lastIndex=this.state.end,w.test(this.input)}},{key:"isLineTerminator",value:function(){return this.eat(m.semi)||this.canInsertSemicolon()}},{key:"semicolon",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(e?this.isLineTerminator():this.eat(m.semi))||this.raise(this.state.lastTokEnd,O.MissingSemicolon)}},{key:"expect",value:function(e,t){this.eat(e)||this.unexpected(t,e)}},{key:"assertNoSpace",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected space.";this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:D.SyntaxError,reasonCode:"UnexpectedSpace",template:e})}},{key:"unexpected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{code:D.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"};throw t instanceof p&&(t={code:D.SyntaxError,reasonCode:"UnexpectedToken",template:'Unexpected token, expected "'.concat(t.label,'"')}),this.raise(null!=e?e:this.state.start,t)}},{key:"expectPlugin",value:function(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:[e]},"This experimental syntax requires enabling the parser plugin: '".concat(e,"'"));return!0}},{key:"expectOnePlugin",value:function(e,t){var r=this;if(!e.some((function(e){return r.hasPlugin(e)})))throw this.raiseWithData(null!=t?t:this.state.start,{missingPlugin:e},"This experimental syntax requires enabling one of the following parser plugin(s): '".concat(e.join(", "),"'"))}},{key:"tryParse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{var n=e((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){var a=this.state;return this.state=t,this.state.tokensLength=a.tokensLength,{node:n,error:a.errors[t.errors.length],thrown:!1,aborted:!1,failState:a}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(o){var i=this.state;if(this.state=t,o instanceof SyntaxError)return{node:null,error:o,thrown:!0,aborted:!1,failState:i};if(o===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw o}}},{key:"checkExpressionErrors",value:function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto,a=e.optionalParameters;if(!t)return r>=0||n>=0||a>=0;r>=0&&this.unexpected(r),n>=0&&this.raise(n,O.DuplicateProto),a>=0&&this.unexpected(a)}},{key:"isLiteralPropertyName",value:function(){return this.match(m.name)||!!this.state.type.keyword||this.match(m.string)||this.match(m.num)||this.match(m.bigint)||this.match(m.decimal)}},{key:"isPrivateName",value:function(e){return"PrivateName"===e.type}},{key:"getPrivateNameSV",value:function(e){return e.id.name}},{key:"hasPropertyAsPrivateName",value:function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}},{key:"isOptionalChain",value:function(e){return"OptionalMemberExpression"===e.type||"OptionalCallExpression"===e.type}},{key:"isObjectProperty",value:function(e){return"ObjectProperty"===e.type}},{key:"isObjectMethod",value:function(e){return"ObjectMethod"===e.type}},{key:"initializeScopes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,r=this.state.labels;this.state.labels=[];var n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var a=this.inModule;this.inModule=t;var i=this.scope,o=this.getScopeHandler();this.scope=new o(this.raise.bind(this),this.inModule);var s=this.prodParam;this.prodParam=new xe;var u=this.classScope;this.classScope=new ve(this.raise.bind(this));var c=this.expressionScope;return this.expressionScope=new be(this.raise.bind(this)),function(){e.state.labels=r,e.exportedIdentifiers=n,e.inModule=a,e.scope=i,e.prodParam=s,e.classScope=u,e.expressionScope=c}}},{key:"enterInitialScopes",value:function(){var e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}}]),r}(he),Ee=function e(){f(this,e),this.shorthandAssign=-1,this.doubleProto=-1,this.optionalParameters=-1},Se=function e(t,r,n){f(this,e),this.type="",this.start=r,this.end=0,this.loc=new T(n),null!=t&&t.options.ranges&&(this.range=[r,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)},Te=Se.prototype;function Ce(e){var t=e.type,r=e.start,n=e.end,a=e.loc,i=e.range,o=e.extra,s=e.name,u=Object.create(Te);return u.type=t,u.start=r,u.end=n,u.loc=a,u.range=i,u.extra=o,u.name=s,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}function _e(e){var t=e.type,r=e.start,n=e.end,a=e.loc,i=e.range,o=e.extra;if("Placeholder"===t)return function(e){return Ce(e)}(e);var s=Object.create(Te);return s.type="StringLiteral",s.start=r,s.end=n,s.loc=a,s.range=i,s.extra=o,s.value=e.value,s}Te.__clone=function(){for(var e=new Se,t=Object.keys(this),r=0,n=t.length;r1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEnd,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.state.lastTokEndLoc;e.end=t,e.loc.end=r,this.options.ranges&&(e.range[1]=t)}},{key:"resetStartLocationFromNode",value:function(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}]),r}(we),Pe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),De=N({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:"Cannot overwrite reserved type %0.",DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:"Unexpected reserved type %0.",UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},D.SyntaxError);function Oe(e){return"type"===e.importKind||"typeof"===e.importKind}function Fe(e){return(e.type===m.name||!!e.type.keyword)&&"from"!==e.value}var Ne={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var Ie=/\*?\s*@((?:no)?flow)\b/,Me={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},je=/^[\da-fA-F]+$/,Le=/^\d+$/,Re=N({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"},D.SyntaxError);function Be(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function ze(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return ze(e.object)+"."+ze(e.property);throw new Error("Node had unexpected type: "+e.type)}j.j_oTag=new M("...",!0),m.jsxName=new p("jsxName"),m.jsxText=new p("jsxText",{beforeExpr:!0}),m.jsxTagStart=new p("jsxTagStart",{startsExpr:!0}),m.jsxTagEnd=new p("jsxTagEnd"),m.jsxTagStart.updateContext=function(e){e.push(j.j_expr,j.j_oTag)};var Ue=function(e){u(r,e);var t=s(r);function r(){var e;f(this,r);for(var n=arguments.length,a=new Array(n),i=0;i1?a-1:0),u=1;u2&&void 0!==arguments[2]&&arguments[2];o(i(r.prototype),"parseFunctionBody",this).call(this,e,t,n),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function(e,t,n,a,s,u){var c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=this.startNode();return l.kind=e.kind,(l=o(i(r.prototype),"parseMethod",this).call(this,l,t,n,a,s,u,c)).type="FunctionExpression",delete l.kind,e.value=l,"ClassPrivateMethod"===u&&(e.computed=!1),u="MethodDefinition",this.finishNode(e,u)}},{key:"parseClassProperty",value:function(){for(var e,t=arguments.length,n=new Array(t),a=0;a1&&void 0!==arguments[1]&&arguments[1];return null!=e&&this.isObjectProperty(e)?(this.toAssignable(e.value,t),e):o(i(r.prototype),"toAssignable",this).call(this,e,t)}},{key:"toAssignableObjectExpressionProp",value:function(e){if("get"===e.kind||"set"===e.kind)this.raise(e.key.start,O.PatternHasAccessor);else if(e.method)this.raise(e.key.start,O.PatternHasMethod);else{for(var t,n=arguments.length,a=new Array(n>1?n-1:0),s=1;s=this.length)throw this.raise(this.state.start,Re.UnterminatedJsxContent);var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(m.jsxTagStart)):o(i(r.prototype),"getTokenFromCode",this).call(this,n):(e+=this.input.slice(t,this.state.pos),this.finishToken(m.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:default:g(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}},{key:"jsxReadString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,O.UnterminatedString);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):g(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(m.string,t)}},{key:"jsxReadEntity",value:function(){for(var e,t="",r=0,n=this.input[this.state.pos],a=++this.state.pos;this.state.post+1&&this.raise(t,De.UnexpectedSpaceBetweenModuloChecks),this.eat(m.parenL)?(e.value=this.parseExpression(),this.expect(m.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function(){var e=this.state.inType;this.state.inType=!0,this.expect(m.colon);var t=null,r=null;return this.match(m.modulo)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(m.modulo)&&(r=this.flowParsePredicate())),[t,r]}},{key:"flowParseDeclareClass",value:function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value: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(m.parenL);var i=this.flowParseFunctionTypeParams();r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(m.parenR);var o=this.flowParseTypeAndPredicateInitialiser(),s=a(o,2);return r.returnType=s[0],e.predicate=s[1],n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.start),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function(e,t){if(this.match(m._class))return this.flowParseDeclareClass(e);if(this.match(m._function))return this.flowParseDeclareFunction(e);if(this.match(m._var))return this.flowParseDeclareVariable(e);if(this.eatContextual("module"))return this.match(m.dot)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,De.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(m._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}},{key:"flowParseDeclareVariable",value:function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function(e){var t=this;this.scope.enter(0),this.match(m.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var r=e.body=this.startNode(),n=r.body=[];for(this.expect(m.braceL);!this.match(m.braceR);){var a=this.startNode();this.match(m._import)?(this.next(),this.isContextual("type")||this.match(m._typeof)||this.raise(this.state.lastTokStart,De.InvalidNonTypeImportInDeclareModule),this.parseImport(a)):(this.expectContextual("declare",De.UnsupportedStatementInDeclareModule),a=this.flowParseDeclare(a,!0)),n.push(a)}this.scope.exit(),this.expect(m.braceR),this.finishNode(r,"BlockStatement");var i=null,o=!1;return n.forEach((function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(o&&t.raise(e.start,De.DuplicateDeclareModuleExports),"ES"===i&&t.raise(e.start,De.AmbiguousDeclareModuleKind),i="CommonJS",o=!0):("CommonJS"===i&&t.raise(e.start,De.AmbiguousDeclareModuleKind),i="ES")})),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function(e,t){if(this.expect(m._export),this.eat(m._default))return this.match(m._function)||this.match(m._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(m._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){var r=this.state.value,n=Ne[r];throw this.raise(this.state.start,De.UnsupportedDeclareExportKind,r,n)}if(this.match(m._var)||this.match(m._function)||this.match(m._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(m.star)||this.match(m.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function(e){return this.next(),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}},{key:"flowParseDeclareOpaqueType",value:function(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}},{key:"flowParseDeclareInterface",value:function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(m._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(m.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(m.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(m.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function(e){"_"===e&&this.raise(this.state.start,De.UnexpectedReservedUnderscore)}},{key:"checkReservedType",value:function(e,t,r){Pe.has(e)&&this.raise(t,r?De.AssignReservedType:De.UnexpectedReservedType,e)}},{key:"flowParseRestrictedIdentifier",value:function(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(m.eq),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,9,e.id.start),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(m.colon)&&(e.supertype=this.flowParseTypeInitialiser(m.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(m.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.start,r=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return r.name=a.name,r.variance=n,r.bound=a.typeAnnotation,this.match(m.eq)?(this.eat(m.eq),r.default=this.flowParseType()):e&&this.raise(t,De.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.isRelational("<")||this.match(m.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var n=this.flowParseTypeParameter(r);t.params.push(n),n.default&&(r=!0),this.isRelational(">")||this.expect(m.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(m.comma);return this.state.noAnonFunctionType=r,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(m.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(m._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(m.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function(){return this.match(m.num)||this.match(m.string)?this.parseExprAtom():this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function(e,t,r){return e.static=t,this.lookahead().type===m.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(m.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(m.bracketR),this.expect(m.bracketR),this.isRelational("<")||this.match(m.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(m.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(m.parenL),this.match(m._this)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(m.parenR)||this.expect(m.comma));!this.match(m.parenR)&&!this.match(m.ellipsis);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(m.parenR)||this.expect(m.comma);return this.eat(m.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(m.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function(e){var t=e.allowStatic,r=e.allowExact,n=e.allowSpread,a=e.allowProto,i=e.allowInexact,o=this.state.inType;this.state.inType=!0;var s,u,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var l=!1;for(r&&this.match(m.braceBarL)?(this.expect(m.braceBarL),s=m.braceBarR,u=!0):(this.expect(m.braceL),s=m.braceR,u=!1),c.exact=u;!this.match(s);){var f=!1,p=null,h=null,d=this.startNode();if(a&&this.isContextual("proto")){var v=this.lookahead();v.type!==m.colon&&v.type!==m.question&&(this.next(),p=this.state.start,t=!1)}if(t&&this.isContextual("static")){var y=this.lookahead();y.type!==m.colon&&y.type!==m.question&&(this.next(),f=!0)}var b=this.flowParseVariance();if(this.eat(m.bracketL))null!=p&&this.unexpected(p),this.eat(m.bracketL)?(b&&this.unexpected(b.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(d,f))):c.indexers.push(this.flowParseObjectTypeIndexer(d,f,b));else if(this.match(m.parenL)||this.isRelational("<"))null!=p&&this.unexpected(p),b&&this.unexpected(b.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(d,f));else{var g="init";if(this.isContextual("get")||this.isContextual("set")){var x=this.lookahead();x.type!==m.name&&x.type!==m.string&&x.type!==m.num||(g=this.state.value,this.next())}var k=this.flowParseObjectTypeProperty(d,f,p,b,g,n,null!=i?i:!u);null===k?(l=!0,h=this.state.lastTokStart):c.properties.push(k)}this.flowObjectTypeSemicolon(),!h||this.match(m.braceR)||this.match(m.braceBarR)||this.raise(h,De.UnexpectedExplicitInexactInObject)}this.expect(s),n&&(c.inexact=l);var w=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=o,w}},{key:"flowParseObjectTypeProperty",value:function(e,t,r,n,a,i,o){if(this.eat(m.ellipsis))return this.match(m.comma)||this.match(m.semi)||this.match(m.braceR)||this.match(m.braceBarR)?(i?o||this.raise(this.state.lastTokStart,De.InexactInsideExact):this.raise(this.state.lastTokStart,De.InexactInsideNonObject),n&&this.raise(n.start,De.InexactVariance),null):(i||this.raise(this.state.lastTokStart,De.UnexpectedSpreadType),null!=r&&this.unexpected(r),n&&this.raise(n.start,De.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=a;var s=!1;return this.isRelational("<")||this.match(m.parenL)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==a&&"set"!==a||this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(e.value.this.start,De.ThisParamBannedInConstructor)):("init"!==a&&this.unexpected(),e.method=!1,this.eat(m.question)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function(e){var t="get"===e.kind?0:1,r=e.start,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.value.this.start,"get"===e.kind?De.GetterMayNotHaveThisParam:De.SetterMayNotHaveThisParam),n!==t&&("get"===e.kind?this.raise(r,O.BadGetterArity):this.raise(r,O.BadSetterArity)),"set"===e.kind&&e.value.rest&&this.raise(r,O.BadSetterRestParameter)}},{key:"flowObjectTypeSemicolon",value:function(){this.eat(m.semi)||this.eat(m.comma)||this.match(m.braceR)||this.match(m.braceBarR)||this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function(e,t,r){e=e||this.state.start,t=t||this.state.startLoc;for(var n=r||this.flowParseRestrictedIdentifier(!0);this.eat(m.dot);){var a=this.startNodeAt(e,t);a.qualification=n,a.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(a,"QualifiedTypeIdentifier")}return n}},{key:"flowParseGenericType",value: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")}},{key:"flowParseTypeofType",value:function(){var e=this.startNode();return this.expect(m._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function(){var e=this.startNode();for(e.types=[],this.expect(m.bracketL);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(m._this)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(m.parenR)||this.expect(m.comma));!this.match(m.parenR)&&!this.match(m.ellipsis);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(m.parenR)||this.expect(m.comma);return this.eat(m.ellipsis)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}},{key:"flowIdentToTypeAnnotation",value:function(e,t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");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");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,t,n)}}},{key:"flowParsePrimaryType",value:function(){var e,t,n=this.state.start,a=this.state.startLoc,s=this.startNode(),u=!1,c=this.state.noAnonFunctionType;switch(this.state.type){case m.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(n,a,s,this.parseIdentifier());case m.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case m.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case m.bracketL:return this.state.noAnonFunctionType=!1,t=this.flowParseTupleType(),this.state.noAnonFunctionType=c,t;case m.relational:if("<"===this.state.value)return s.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(m.parenL),e=this.flowParseFunctionTypeParams(),s.params=e.params,s.rest=e.rest,s.this=e._this,this.expect(m.parenR),this.expect(m.arrow),s.returnType=this.flowParseType(),this.finishNode(s,"FunctionTypeAnnotation");break;case m.parenL:if(this.next(),!this.match(m.parenR)&&!this.match(m.ellipsis))if(this.match(m.name)||this.match(m._this)){var l=this.lookahead().type;u=l!==m.question&&l!==m.colon}else u=!0;if(u){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=c,this.state.noAnonFunctionType||!(this.match(m.comma)||this.match(m.parenR)&&this.lookahead().type===m.arrow))return this.expect(m.parenR),t;this.eat(m.comma)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),s.params=e.params,s.rest=e.rest,s.this=e._this,this.expect(m.parenR),this.expect(m.arrow),s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation");case m.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case m._true:case m._false:return s.value=this.match(m._true),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case m.plusMin:if("-"===this.state.value){if(this.next(),this.match(m.num))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(m.bigint))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(this.state.start,De.UnexpectedSubtractionOperand)}throw this.unexpected();case m.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case m.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case m._void:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case m._null:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case m._this:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case m.star:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){var f=this.state.type.label;return this.next(),o(i(r.prototype),"createIdentifier",this).call(this,s,f)}}throw this.unexpected()}},{key:"flowParsePostfixType",value:function(){for(var e=this.state.start,t=this.state.startLoc,r=this.flowParsePrimaryType(),n=!1;(this.match(m.bracketL)||this.match(m.questionDot))&&!this.canInsertSemicolon();){var a=this.startNodeAt(e,t),i=this.eat(m.questionDot);n=n||i,this.expect(m.bracketL),!i&&this.match(m.bracketR)?(a.elementType=r,this.next(),r=this.finishNode(a,"ArrayTypeAnnotation")):(a.objectType=r,a.indexType=this.flowParseType(),this.expect(m.bracketR),n?(a.optional=i,r=this.finishNode(a,"OptionalIndexedAccessType")):r=this.finishNode(a,"IndexedAccessType"))}return r}},{key:"flowParsePrefixType",value:function(){var e=this.startNode();return this.eat(m.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(m.arrow)){var t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function(){var e=this.startNode();this.eat(m.bitwiseAND);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(m.bitwiseAND);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function(){var e=this.startNode();this.eat(m.bitwiseOR);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(m.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t}},{key:"flowParseTypeOrImplicitInstantiation",value:function(){if(this.state.type===m.name&&"_"===this.state.value){var e=this.state.start,t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,t,r)}return this.flowParseType()}},{key:"flowParseTypeAnnotation",value:function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(m.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function(){var e=null;return this.match(m.plusMin)&&(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}},{key:"parseFunctionBody",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t?this.forwardNoArrowParamsConversionAt(e,(function(){return o(i(r.prototype),"parseFunctionBody",n).call(n,e,!0,a)})):o(i(r.prototype),"parseFunctionBody",this).call(this,e,!1,a)}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(m.colon)){var s=this.startNode(),u=this.flowParseTypeAndPredicateInitialiser(),c=a(u,2);s.typeAnnotation=c[0],e.predicate=c[1],e.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}o(i(r.prototype),"parseFunctionBodyAndFinish",this).call(this,e,t,n)}},{key:"parseStatement",value:function(e,t){if(this.state.strict&&this.match(m.name)&&"interface"===this.state.value){var n=this.lookahead();if(n.type===m.name||te(n.value)){var a=this.startNode();return this.next(),this.flowParseInterface(a)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}var u=o(i(r.prototype),"parseStatement",this).call(this,e,t);return void 0!==this.flowPragma||this.isValidDirective(u)||(this.flowPragma=null),u}},{key:"parseExpressionStatement",value:function(e,t){if("Identifier"===t.type)if("declare"===t.name){if(this.match(m._class)||this.match(m.name)||this.match(m._function)||this.match(m._var)||this.match(m._export))return this.flowParseDeclare(e)}else if(this.match(m.name)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return o(i(r.prototype),"parseExpressionStatement",this).call(this,e,t)}},{key:"shouldParseExportDeclaration",value:function(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||o(i(r.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"isExportDefaultSpecifier",value:function(){return(!this.match(m.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&o(i(r.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseExportDefaultExpression",value:function(){if(this.shouldParseEnums()&&this.isContextual("enum")){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return o(i(r.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseConditional",value:function(e,t,r,n){var i=this;if(!this.match(m.question))return e;if(this.state.maybeInArrowParameters){var o=this.lookaheadCharCode();if(44===o||61===o||58===o||41===o)return this.setOptionalParametersError(n),e}this.expect(m.question);var s=this.state.clone(),u=this.state.noArrowAt,l=this.startNodeAt(t,r),f=this.tryParseConditionalConsequent(),p=f.consequent,h=f.failed,d=this.getArrowLikeExpressions(p),v=a(d,2),y=v[0],b=v[1];if(h||b.length>0){var g=c(u);if(b.length>0){this.state=s,this.state.noArrowAt=g;for(var x=0;x1&&this.raise(s.start,De.AmbiguousConditionalArrow),h&&1===y.length){this.state=s,this.state.noArrowAt=g.concat(y[0].start);var S=this.tryParseConditionalConsequent();p=S.consequent,h=S.failed}}return this.getArrowLikeExpressions(p,!0),this.state.noArrowAt=u,this.expect(m.colon),l.test=e,l.consequent=p,l.alternate=this.forwardNoArrowParamsConversionAt(l,(function(){return i.parseMaybeAssign(void 0,void 0)})),this.finishNode(l,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(m.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}},{key:"getArrowLikeExpressions",value:function(e,t){for(var r=this,n=[e],a=[];0!==n.length;){var i=n.pop();"ArrowFunctionExpression"===i.type?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):a.push(i),n.push(i.body)):"ConditionalExpression"===i.type&&(n.push(i.consequent),n.push(i.alternate))}return t?(a.forEach((function(e){return r.finishArrowValidation(e)})),[a,[]]):function(e,t){for(var r=[],n=[],a=0;a1&&void 0!==arguments[1]&&arguments[1];return"TypeCastExpression"===e.type?o(i(r.prototype),"toAssignable",this).call(this,this.typeCastToParameter(e),t):o(i(r.prototype),"toAssignable",this).call(this,e,t)}},{key:"toAssignableList",value:function(e,t,n){for(var a=0;a1)&&t||this.raise(a.typeAnnotation.start,De.TypeCastInPattern)}return e}},{key:"parseArrayLike",value:function(e,t,n,a){var s=o(i(r.prototype),"parseArrayLike",this).call(this,e,t,n,a);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}},{key:"checkLVal",value:function(e){if("TypeCastExpression"!==e.type){for(var t,n=arguments.length,a=new Array(n>1?n-1:0),s=1;s0&&this.isThisParam(c[0])&&this.raise(t.start,De.ThisParamBannedInConstructor)}else if("MethodDefinition"===t.type&&s&&t.value.params){var l=t.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(t.start,De.ThisParamBannedInConstructor)}}},{key:"pushClassPrivateMethod",value:function(e,t,n,a){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),o(i(r.prototype),"pushClassPrivateMethod",this).call(this,e,t,n,a)}},{key:"parseClassSuper",value:function(e){if(o(i(r.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var t=e.implements=[];do{var n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,t.push(this.finishNode(n,"ClassImplements"))}while(this.eat(m.comma))}}},{key:"checkGetterSetterParams",value:function(e){o(i(r.prototype),"checkGetterSetterParams",this).call(this,e);var t=this.getObjectOrClassMethodParams(e);if(t.length>0){var n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(n.start,De.GetterMayNotHaveThisParam):this.isThisParam(n)&&this.raise(n.start,De.SetterMayNotHaveThisParam)}}},{key:"parsePropertyName",value:function(e,t){var n=this.flowParseVariance(),a=o(i(r.prototype),"parsePropertyName",this).call(this,e,t);return e.variance=n,a}},{key:"parseObjPropValue",value:function(e,t,n,a,s,u,c,l){var f;e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&!c&&(f=this.flowParseTypeParameterDeclaration(),this.match(m.parenL)||this.unexpected()),o(i(r.prototype),"parseObjPropValue",this).call(this,e,t,n,a,s,u,c,l),f&&((e.value||e).typeParameters=f)}},{key:"parseAssignableListItemTypes",value:function(e){return this.eat(m.question)&&("Identifier"!==e.type&&this.raise(e.start,De.OptionalBindingPattern),this.isThisParam(e)&&this.raise(e.start,De.ThisParamMayNotBeOptional),e.optional=!0),this.match(m.colon)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(e.start,De.ThisParamAnnotationRequired),this.match(m.eq)&&this.isThisParam(e)&&this.raise(e.start,De.ThisParamNoDefault),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function(e,t,n){var a=o(i(r.prototype),"parseMaybeDefault",this).call(this,e,t,n);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(e.params[a].start,De.ThisParamMustBeFirst);return o(i(r.prototype),"checkParams",this).apply(this,arguments)}}},{key:"parseParenAndDistinguishExpression",value:function(e){return o(i(r.prototype),"parseParenAndDistinguishExpression",this).call(this,e&&-1===this.state.noArrowAt.indexOf(this.state.start))}},{key:"parseSubscripts",value:function(e,t,n,a){var s=this;if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t)){this.next();var u=this.startNodeAt(t,n);u.callee=e,u.arguments=this.parseCallExpressionArguments(m.parenR,!1),e=this.finishNode(u,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.isRelational("<")){var c=this.state.clone(),l=this.tryParse((function(e){return s.parseAsyncArrowWithTypeParameters(t,n)||e()}),c);if(!l.error&&!l.aborted)return l.node;var f=this.tryParse((function(){return o(i(r.prototype),"parseSubscripts",s).call(s,e,t,n,a)}),c);if(f.node&&!f.error)return f.node;if(l.node)return this.state=l.failState,l.node;if(f.node)return this.state=f.failState,f.node;throw l.error||f.error}return o(i(r.prototype),"parseSubscripts",this).call(this,e,t,n,a)}},{key:"parseSubscript",value:function(e,t,n,a,s){var u=this;if(this.match(m.questionDot)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,a)return s.stop=!0,e;this.next();var c=this.startNodeAt(t,n);return c.callee=e,c.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(m.parenL),c.arguments=this.parseCallExpressionArguments(m.parenR,!1),c.optional=!0,this.finishCallExpression(c,!0)}if(!a&&this.shouldParseTypes()&&this.isRelational("<")){var l=this.startNodeAt(t,n);l.callee=e;var f=this.tryParse((function(){return l.typeArguments=u.flowParseTypeParameterInstantiationCallOrNew(),u.expect(m.parenL),l.arguments=u.parseCallExpressionArguments(m.parenR,!1),s.optionalChainMember&&(l.optional=!1),u.finishCallExpression(l,s.optionalChainMember)}));if(f.node)return f.error&&(this.state=f.failState),f.node}return o(i(r.prototype),"parseSubscript",this).call(this,e,t,n,a,s)}},{key:"parseNewArguments",value:function(e){var t=this,n=null;this.shouldParseTypes()&&this.isRelational("<")&&(n=this.tryParse((function(){return t.flowParseTypeParameterInstantiationCallOrNew()})).node),e.typeArguments=n,o(i(r.prototype),"parseNewArguments",this).call(this,e)}},{key:"parseAsyncArrowWithTypeParameters",value:function(e,t){var r=this.startNodeAt(e,t);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,void 0,!0)}},{key:"readToken_mult_modulo",value:function(e){var t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();o(i(r.prototype),"readToken_mult_modulo",this).call(this,e)}},{key:"readToken_pipe_amp",value:function(e){var t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?o(i(r.prototype),"readToken_pipe_amp",this).call(this,e):this.finishOp(m.braceBarR,2)}},{key:"parseTopLevel",value:function(e,t){var n=o(i(r.prototype),"parseTopLevel",this).call(this,e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,De.UnterminatedFlowComment),n}},{key:"skipBlockComment",value:function(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,De.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(!this.state.hasFlowComment)return o(i(r.prototype),"skipBlockComment",this).call(this);var e=this.input.indexOf("*-/",this.state.pos+=2);if(-1===e)throw this.raise(this.state.pos-2,O.UnterminatedComment);this.state.pos=e+3}},{key:"skipFlowComment",value:function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}},{key:"hasFlowCommentCompletion",value:function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,O.UnterminatedComment)}},{key:"flowEnumErrorBooleanMemberNotInitialized",value:function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,De.EnumBooleanMemberNotInitialized,n,r)}},{key:"flowEnumErrorInvalidMemberName",value:function(e,t){var r=t.enumName,n=t.memberName,a=n[0].toUpperCase()+n.slice(1);this.raise(e,De.EnumInvalidMemberName,n,a,r)}},{key:"flowEnumErrorDuplicateMemberName",value:function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,De.EnumDuplicateMemberName,n,r)}},{key:"flowEnumErrorInconsistentMemberValues",value:function(e,t){var r=t.enumName;this.raise(e,De.EnumInconsistentMemberValues,r)}},{key:"flowEnumErrorInvalidExplicitType",value:function(e,t){var r=t.enumName,n=t.suppliedType;return this.raise(e,null===n?De.EnumInvalidExplicitTypeUnknownSupplied:De.EnumInvalidExplicitType,r,n)}},{key:"flowEnumErrorInvalidMemberInitializer",value:function(e,t){var r=t.enumName,n=t.explicitType,a=t.memberName,i=null;switch(n){case"boolean":case"number":case"string":i=De.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":i=De.EnumInvalidMemberInitializerSymbolType;break;default:i=De.EnumInvalidMemberInitializerUnknownType}return this.raise(e,i,r,a,n)}},{key:"flowEnumErrorNumberMemberNotInitialized",value:function(e,t){var r=t.enumName,n=t.memberName;this.raise(e,De.EnumNumberMemberNotInitialized,r,n)}},{key:"flowEnumErrorStringMemberInconsistentlyInitailized",value:function(e,t){var r=t.enumName;this.raise(e,De.EnumStringMemberInconsistentlyInitailized,r)}},{key:"flowEnumMemberInit",value:function(){var e=this,t=this.state.start,r=function(){return e.match(m.comma)||e.match(m.braceR)};switch(this.state.type){case m.num:var n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",pos:n.start,value:n}:{type:"invalid",pos:t};case m.string:var a=this.parseStringLiteral(this.state.value);return r()?{type:"string",pos:a.start,value:a}:{type:"invalid",pos:t};case m._true:case m._false:var i=this.parseBooleanLiteral(this.match(m._true));return r()?{type:"boolean",pos:i.start,value:i}:{type:"invalid",pos:t};default:return{type:"invalid",pos:t}}}},{key:"flowEnumMemberRaw",value:function(){var e=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(m.eq)?this.flowEnumMemberInit():{type:"none",pos:e}}}},{key:"flowEnumCheckExplicitTypeMismatch",value:function(e,t,r){var n=t.explicitType;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}},{key:"flowEnumMembers",value:function(e){for(var t=e.enumName,r=e.explicitType,n=new Set,a={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;!this.match(m.braceR);){if(this.eat(m.ellipsis)){i=!0;break}var o=this.startNode(),s=this.flowEnumMemberRaw(),u=s.id,c=s.init,l=u.name;if(""!==l){/^[a-z]/.test(l)&&this.flowEnumErrorInvalidMemberName(u.start,{enumName:t,memberName:l}),n.has(l)&&this.flowEnumErrorDuplicateMemberName(u.start,{enumName:t,memberName:l}),n.add(l);var f={enumName:t,explicitType:r,memberName:l};switch(o.id=u,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.pos,f,"boolean"),o.init=c.value,a.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.pos,f,"number"),o.init=c.value,a.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.pos,f,"string"),o.init=c.value,a.stringMembers.push(this.finishNode(o,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.pos,f);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.pos,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.pos,f);break;default:a.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(m.braceR)||this.expect(m.comma)}}return{members:a,hasUnknownMembers:i}}},{key:"flowEnumStringMembers",value:function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){var i,o=n(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;this.flowEnumErrorStringMemberInconsistentlyInitailized(s.start,{enumName:a})}}catch(f){o.e(f)}finally{o.f()}return t}var u,c=n(t);try{for(c.s();!(u=c.n()).done;){var l=u.value;this.flowEnumErrorStringMemberInconsistentlyInitailized(l.start,{enumName:a})}}catch(f){c.e(f)}finally{c.f()}return e}},{key:"flowEnumParseExplicitType",value:function(e){var t=e.enumName;if(this.eatContextual("of")){if(!this.match(m.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:null});var r=this.state.value;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:r}),r}return null}},{key:"flowEnumBody",value:function(e,t){var r=this,a=t.enumName,i=t.nameLoc,o=this.flowEnumParseExplicitType({enumName:a});this.expect(m.braceL);var s=this.flowEnumMembers({enumName:a,explicitType:o}),u=s.members,c=s.hasUnknownMembers;switch(e.hasUnknownMembers=c,o){case"boolean":return e.explicitType=!0,e.members=u.booleanMembers,this.expect(m.braceR),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=u.numberMembers,this.expect(m.braceR),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:a}),this.expect(m.braceR),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=u.defaultedMembers,this.expect(m.braceR),this.finishNode(e,"EnumSymbolBody");default:var l=function(){return e.members=[],r.expect(m.braceR),r.finishNode(e,"EnumStringBody")};e.explicitType=!1;var f=u.booleanMembers.length,p=u.numberMembers.length,h=u.stringMembers.length,d=u.defaultedMembers.length;if(f||p||h||d){if(f||p){if(!p&&!h&&f>=d){var v,y=n(u.defaultedMembers);try{for(y.s();!(v=y.n()).done;){var b=v.value;this.flowEnumErrorBooleanMemberNotInitialized(b.start,{enumName:a,memberName:b.id.name})}}catch(w){y.e(w)}finally{y.f()}return e.members=u.booleanMembers,this.expect(m.braceR),this.finishNode(e,"EnumBooleanBody")}if(!f&&!h&&p>=d){var g,x=n(u.defaultedMembers);try{for(x.s();!(g=x.n()).done;){var k=g.value;this.flowEnumErrorNumberMemberNotInitialized(k.start,{enumName:a,memberName:k.id.name})}}catch(w){x.e(w)}finally{x.f()}return e.members=u.numberMembers,this.expect(m.braceR),this.finishNode(e,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(i,{enumName:a}),l()}return e.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:a}),this.expect(m.braceR),this.finishNode(e,"EnumStringBody")}return l()}}},{key:"flowParseEnumDeclaration",value:function(e){var t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}},{key:"isLookaheadToken_lt",value:function(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}},{key:"maybeUnwrapTypeCastExpression",value:function(e){return"TypeCastExpression"===e.type?e.expression:e}}]),r}(e)},typescript:function(e){return function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"getScopeHandler",value:function(){return qe}},{key:"tsIsIdentifier",value:function(){return this.match(m.name)}},{key:"tsTokenCanFollowModifier",value:function(){return(this.match(m.bracketL)||this.match(m.braceL)||this.match(m.star)||this.match(m.ellipsis)||this.match(m.privateName)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}},{key:"tsNextTokenCanFollowModifier",value:function(){return this.next(),this.tsTokenCanFollowModifier()}},{key:"tsParseModifier",value:function(e){if(this.match(m.name)){var t=this.state.value;return-1!==e.indexOf(t)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?t:void 0}}},{key:"tsParseModifiers",value:function(e,t,r,n){for(var a=this,i=function(t,r,n,i){r===n&&e[i]&&a.raise(t,Ve.InvalidModifiersOrder,n,i)},o=function(t,r,n,i){(e[n]&&r===i||e[i]&&r===n)&&a.raise(t,Ve.IncompatibleModifiers,n,i)};;){var s=this.state.start,u=this.tsParseModifier(t.concat(null!=r?r:[]));if(!u)break;Xe(u)?e.accessibility?this.raise(s,Ve.DuplicateAccessibilityModifier):(i(s,u,u,"override"),i(s,u,u,"static"),i(s,u,u,"readonly"),e.accessibility=u):(Object.hasOwnProperty.call(e,u)?this.raise(s,Ve.DuplicateModifier,u):(i(s,u,"static","readonly"),i(s,u,"static","override"),i(s,u,"override","readonly"),i(s,u,"abstract","override"),o(s,u,"declare","override"),o(s,u,"static","abstract")),e[u]=!0),null!=r&&r.includes(u)&&this.raise(s,n,u)}}},{key:"tsIsListTerminator",value:function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(m.braceR);case"HeritageClauseElement":return this.match(m.braceL);case"TupleElementTypes":return this.match(m.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}},{key:"tsParseList",value:function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r}},{key:"tsParseDelimitedList",value:function(e,t){return He(this.tsParseDelimitedListWorker(e,t,!0))}},{key:"tsParseDelimitedListWorker",value:function(e,t,r){for(var n=[];!this.tsIsListTerminator(e);){var a=t();if(null==a)return;if(n.push(a),!this.eat(m.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(m.comma))}}return n}},{key:"tsParseBracketedList",value:function(e,t,r,n){n||(r?this.expect(m.bracketL):this.expectRelational("<"));var a=this.tsParseDelimitedList(e,t);return r?this.expect(m.bracketR):this.expectRelational(">"),a}},{key:"tsParseImportType",value:function(){var e=this.startNode();return this.expect(m._import),this.expect(m.parenL),this.match(m.string)||this.raise(this.state.start,Ve.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(m.parenR),this.eat(m.dot)&&(e.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function(e){for(var t=this.parseIdentifier();this.eat(m.dot);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}},{key:"tsParseTypeReference",value:function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function(){var e=this.startNode();return this.expect(m._typeof),this.match(m._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(m._extends),e.default=this.tsEatThenParseType(m.eq),this.finishNode(e,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function(){if(this.isRelational("<"))return this.tsParseTypeParameters()}},{key:"tsParseTypeParameters",value:function(){var e=this.startNode();return this.isRelational("<")||this.match(m.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===e.params.length&&this.raise(e.start,Ve.EmptyTypeParameters),this.finishNode(e,"TSTypeParameterDeclaration")}},{key:"tsTryNextParseConstantContext",value:function(){return this.lookahead().type===m._const?(this.next(),this.tsParseTypeReference()):null}},{key:"tsFillSignature",value:function(e,t){var r=e===m.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(m.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function(){var e=this;return this.parseBindingList(m.parenR,41).map((function(t){return"Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&e.raise(t.start,Ve.UnsupportedSignatureParameterKind,t.type),t}))}},{key:"tsParseTypeMemberSemicolon",value:function(){this.eat(m.comma)||this.isLineTerminator()||this.expect(m.semi)}},{key:"tsParseSignatureMember",value:function(e,t){return this.tsFillSignature(m.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function(){return this.next(),this.eat(m.name)&&this.match(m.colon)}},{key:"tsTryParseIndexSignature",value:function(e){if(this.match(m.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(m.bracketL);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(m.bracketR),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function(e,t){this.eat(m.question)&&(e.optional=!0);var r=e;if(this.match(m.parenL)||this.isRelational("<")){t&&this.raise(e.start,Ve.ReadonlyForMethodSignature);var n=r;if(n.kind&&this.isRelational("<")&&this.raise(this.state.pos,Ve.AccesorCannotHaveTypeParameters),this.tsFillSignature(m.colon,n),this.tsParseTypeMemberSemicolon(),"get"===n.kind)n.parameters.length>0&&(this.raise(this.state.pos,O.BadGetterArity),this.isThisParam(n.parameters[0])&&this.raise(this.state.pos,Ve.AccesorCannotDeclareThisParameter));else if("set"===n.kind){if(1!==n.parameters.length)this.raise(this.state.pos,O.BadSetterArity);else{var a=n.parameters[0];this.isThisParam(a)&&this.raise(this.state.pos,Ve.AccesorCannotDeclareThisParameter),"Identifier"===a.type&&a.optional&&this.raise(this.state.pos,Ve.SetAccesorCannotHaveOptionalParameter),"RestElement"===a.type&&this.raise(this.state.pos,Ve.SetAccesorCannotHaveRestParameter)}n.typeAnnotation&&this.raise(n.typeAnnotation.start,Ve.SetAccesorCannotHaveReturnType)}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}var i=r;t&&(i.readonly=!0);var o=this.tsTryParseTypeAnnotation();return o&&(i.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}},{key:"tsParseTypeMember",value:function(){var e=this.startNode();if(this.match(m.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(m._new)){var t=this.startNode();return this.next(),this.match(m.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],Ve.InvalidModifierOnTypeMember);var r=this.tsTryParseIndexSignature(e);return r||(this.parsePropertyName(e,!1),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e,!1)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}},{key:"tsParseTypeLiteral",value:function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function(){this.expect(m.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(m.braceR),e}},{key:"tsIsStartOfMappedType",value:function(){return this.next(),this.eat(m.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(m.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(m._in))))}},{key:"tsParseMappedTypeParameter",value:function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(m._in),this.finishNode(e,"TSTypeParameter")}},{key:"tsParseMappedType",value:function(){var e=this.startNode();return this.expect(m.braceL),this.match(m.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(m.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(m.bracketR),this.match(m.plusMin)?(e.optional=this.state.value,this.next(),this.expect(m.question)):this.eat(m.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(m.braceR),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1,n=null;return t.elementTypes.forEach((function(t){var a,i=t.type;!r||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&t.optional||e.raise(t.start,Ve.OptionalTypeBeforeRequired),r=r||"TSNamedTupleMember"===i&&t.optional||"TSOptionalType"===i,"TSRestType"===i&&(i=(t=t.typeAnnotation).type);var o="TSNamedTupleMember"===i;(n=null!=(a=n)?a:o)!==o&&e.raise(t.start,Ve.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")}},{key:"tsParseTupleElementType",value:function(){var e=this.state,t=e.start,r=e.startLoc,n=this.eat(m.ellipsis),a=this.tsParseType(),i=this.eat(m.question);if(this.eat(m.colon)){var o=this.startNodeAtNode(a);o.optional=i,"TSTypeReference"!==a.type||a.typeParameters||"Identifier"!==a.typeName.type?(this.raise(a.start,Ve.InvalidTupleMemberLabel),o.label=a):o.label=a.typeName,o.elementType=this.tsParseType(),a=this.finishNode(o,"TSNamedTupleMember")}else if(i){var s=this.startNodeAtNode(a);s.typeAnnotation=a,a=this.finishNode(s,"TSOptionalType")}if(n){var u=this.startNodeAt(t,r);u.typeAnnotation=a,a=this.finishNode(u,"TSRestType")}return a}},{key:"tsParseParenthesizedType",value:function(){var e=this.startNode();return this.expect(m.parenL),e.typeAnnotation=this.tsParseType(),this.expect(m.parenR),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function(e,t){var r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsFillSignature(m.arrow,r),this.finishNode(r,e)}},{key:"tsParseLiteralTypeNode",value:function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case m.num:case m.bigint:case m.string:case m._true:case m._false:return e.parseExprAtom();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function(){var e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}},{key:"parseTemplateSubstitution",value:function(){return this.state.inType?this.tsParseType():o(i(r.prototype),"parseTemplateSubstitution",this).call(this)}},{key:"tsParseThisTypeOrThisTypePredicate",value:function(){var e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}},{key:"tsParseNonArrayType",value:function(){switch(this.state.type){case m.name:case m._void:case m._null:var e=this.match(m._void)?"TSVoidKeyword":this.match(m._null)?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case m.string:case m.num:case m.bigint:case m._true:case m._false:return this.tsParseLiteralTypeNode();case m.plusMin:if("-"===this.state.value){var r=this.startNode(),n=this.lookahead();if(n.type!==m.num&&n.type!==m.bigint)throw this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case m._this:return this.tsParseThisTypeOrThisTypePredicate();case m._typeof:return this.tsParseTypeQuery();case m._import:return this.tsParseImportType();case m.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case m.bracketL:return this.tsParseTupleType();case m.parenL:return this.tsParseParenthesizedType();case m.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(m.bracketL);)if(this.match(m.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(m.bracketR),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(m.bracketR),e=this.finishNode(r,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,Ve.UnexpectedReadonly)}}},{key:"tsParseInferType",value:function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.tsParseTypeParameterName(),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}},{key:"tsParseTypeOperatorOrHigher",value:function(){var e=this,t=["keyof","unique","readonly"].find((function(t){return e.isContextual(t)}));return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}},{key:"tsParseUnionOrIntersectionType",value:function(e,t,r){var n=this.startNode(),a=this.eat(r),i=[];do{i.push(t())}while(this.eat(r));return 1!==i.length||a?(n.types=i,this.finishNode(n,e)):i[0]}},{key:"tsParseIntersectionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),m.bitwiseAND)}},{key:"tsParseUnionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),m.bitwiseOR)}},{key:"tsIsStartOfFunctionType",value:function(){return!!this.isRelational("<")||this.match(m.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function(){if(this.match(m.name)||this.match(m._this))return this.next(),!0;if(this.match(m.braceL)){var e=1;for(this.next();e>0;)this.match(m.braceL)?++e:this.match(m.braceR)&&--e,this.next();return!0}if(this.match(m.bracketL)){var t=1;for(this.next();t>0;)this.match(m.bracketL)?++t:this.match(m.bracketR)&&--t,this.next();return!0}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function(){if(this.next(),this.match(m.parenR)||this.match(m.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(m.colon)||this.match(m.comma)||this.match(m.question)||this.match(m.eq))return!0;if(this.match(m.parenR)&&(this.next(),this.match(m.arrow)))return!0}return!1}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var n=t.startNode(),a=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(a&&t.match(m._this)){var i=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===i.type?(n.parameterName=i,n.asserts=!0,n.typeAnnotation=null,i=t.finishNode(n,"TSTypePredicate")):(t.resetStartLocationFromNode(i,n),i.asserts=!0),r.typeAnnotation=i,t.finishNode(r,"TSTypeAnnotation")}var o=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!o)return a?(n.parameterName=t.parseIdentifier(),n.asserts=a,n.typeAnnotation=null,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var s=t.tsParseTypeAnnotation(!1);return n.parameterName=o,n.typeAnnotation=s,n.asserts=a,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function(){return this.match(m.colon)?this.tsParseTypeOrTypePredicateAnnotation(m.colon):void 0}},{key:"tsTryParseTypeAnnotation",value:function(){return this.match(m.colon)?this.tsParseTypeAnnotation():void 0}},{key:"tsTryParseType",value:function(){return this.tsEatThenParseType(m.colon)}},{key:"tsParseTypePredicatePrefix",value:function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function(){if(!this.match(m.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;var e=this.state.containsEsc;return this.next(),!(!this.match(m.name)&&!this.match(m._this))&&(e&&this.raise(this.state.lastTokStart,O.InvalidEscapedReservedWord,"asserts"),!0)}},{key:"tsParseTypeAnnotation",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((function(){t&&e.expect(m.colon),r.typeAnnotation=e.tsParseType()})),this.finishNode(r,"TSTypeAnnotation")}},{key:"tsParseType",value:function(){We(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(m._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(m.question),t.trueType=this.tsParseType(),this.expect(m.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}},{key:"isAbstractConstructorSignature",value:function(){return this.isContextual("abstract")&&this.lookahead().type===m._new}},{key:"tsParseNonConditionalType",value:function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(m._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function(){var e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expectRelational(">"),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function(e){var t=this.state.start,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(t,Ve.EmptyHeritageClauseType,e),r}},{key:"tsParseExpressionWithTypeArguments",value:function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}},{key:"tsParseInterfaceDeclaration",value:function(e){this.match(m.name)?(e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",130)):(e.id=null,this.raise(this.state.start,Ve.MissingInterfaceName)),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(m._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function(e){var t=this;return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",2),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType((function(){if(t.expect(m.eq),t.isContextual("intrinsic")&&t.lookahead().type!==m.dot){var e=t.startNode();return t.next(),t.finishNode(e,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}},{key:"tsInType",value:function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}},{key:"tsEatThenParseType",value:function(e){return this.match(e)?this.tsNextThenParseType():void 0}},{key:"tsExpectThenParseType",value:function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))}},{key:"tsNextThenParseType",value:function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))}},{key:"tsDoThenParseType",value:function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))}},{key:"tsParseEnumMember",value:function(){var e=this.startNode();return e.id=this.match(m.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(m.eq)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?779:267),this.expect(m.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(m.braceR),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function(){var e=this.startNode();return this.scope.enter(0),this.expect(m.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,m.braceR),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",1024),this.eat(m.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(m.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(m.braceL)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",9),this.expect(m.eq);var r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,Ve.ImportAliasHasImportType),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function(){return this.isContextual("require")&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(m.parenL),!this.match(m.string))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(m.parenR),this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function(e){var t=this.state.clone(),r=e();return this.state=t,r}},{key:"tsTryParseAndCatch",value:function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}},{key:"tsTryParse",value:function(e){var t=this.state.clone(),r=e();return void 0!==r&&!1!==r?r:void(this.state=t)}},{key:"tsTryParseDeclare",value:function(e){var t=this;if(!this.isLineTerminator()){var r,n=this.state.type;return this.isContextual("let")&&(n=m._var,r="let"),this.tsInAmbientContext((function(){switch(n){case m._function:return e.declare=!0,t.parseFunctionStatement(e,!1,!0);case m._class:return e.declare=!0,t.parseClass(e,!0,!1);case m._const:if(t.match(m._const)&&t.isLookaheadContextual("enum"))return t.expect(m._const),t.expectContextual("enum"),t.tsParseEnumDeclaration(e,!0);case m._var:return r=r||t.state.value,t.parseVarStatement(e,r);case m.name:var a=t.state.value;return"global"===a?t.tsParseAmbientExternalModuleDeclaration(e):t.tsParseDeclaration(e,a,!0)}}))}}},{key:"tsTryParseExportDeclaration",value:function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}},{key:"tsParseExpressionStatement",value:function(e,t){switch(t.name){case"declare":var r=this.tsTryParseDeclare(e);if(r)return r.declare=!0,r;break;case"global":if(this.match(m.braceL)){this.scope.enter(256),this.prodParam.enter(0);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}},{key:"tsParseDeclaration",value:function(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(m._class)||this.match(m.name)))return this.tsParseAbstractDeclaration(e);break;case"enum":if(r||this.match(m.name))return r&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminator(r)&&this.match(m.name))return this.tsParseInterfaceDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(m.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(this.match(m.name))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&this.match(m.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&this.match(m.name))return this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminator",value:function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function(e,t){var n=this;if(this.isRelational("<")){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var s=this.tsTryParseAndCatch((function(){var a=n.startNodeAt(e,t);return a.typeParameters=n.tsParseTypeParameters(),o(i(r.prototype),"parseFunctionParams",n).call(n,a),a.returnType=n.tsTryParseTypeOrTypePredicateAnnotation(),n.expect(m.arrow),a}));if(this.state.maybeInArrowParameters=a,s)return this.parseArrowExpression(s,null,!0)}}},{key:"tsParseTypeArguments",value:function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length&&this.raise(t.start,Ve.EmptyTypeArguments),this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function(){if(this.match(m.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}},{key:"isExportDefaultSpecifier",value:function(){return!this.tsIsDeclarationStart()&&o(i(r.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseAssignableListItem",value:function(e,t){var r,n=this.state.start,a=this.state.startLoc,i=!1,o=!1;if(void 0!==e){var s={};this.tsParseModifiers(s,["public","private","protected","override","readonly"]),r=s.accessibility,o=s.override,i=s.readonly,!1===e&&(r||i||o)&&this.raise(n,Ve.UnexpectedParameterModifier)}var u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u);var c=this.parseMaybeDefault(u.start,u.loc.start,u);if(r||i||o){var l=this.startNodeAt(n,a);return t.length&&(l.decorators=t),r&&(l.accessibility=r),i&&(l.readonly=i),o&&(l.override=o),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(l.start,Ve.UnsupportedParameterPropertyKind),l.parameter=c,this.finishNode(l,"TSParameterProperty")}return t.length&&(u.decorators=t),c}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(m.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(m.colon));var a="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t?"TSDeclareMethod":void 0;a&&!this.match(m.braceL)&&this.isLineTerminator()?this.finishNode(e,a):"TSDeclareFunction"===a&&this.state.isAmbientContext&&(this.raise(e.start,Ve.DeclareFunctionHasImplementation),e.declare)?o(i(r.prototype),"parseFunctionBodyAndFinish",this).call(this,e,a,n):o(i(r.prototype),"parseFunctionBodyAndFinish",this).call(this,e,t,n)}},{key:"registerFunctionStatementId",value:function(e){!e.body&&e.id?this.checkLVal(e.id,"function name",1024):o(i(r.prototype),"registerFunctionStatementId",this).apply(this,arguments)}},{key:"tsCheckForInvalidTypeCasts",value:function(e){var t=this;e.forEach((function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,Ve.UnexpectedTypeAnnotation)}))}},{key:"toReferencedList",value:function(e,t){return this.tsCheckForInvalidTypeCasts(e),e}},{key:"parseArrayLike",value:function(){for(var e,t=arguments.length,n=new Array(t),a=0;aa&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(t,n);s.expression=e;var u=this.tsTryNextParseConstantContext();return s.typeAnnotation=u||this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,n,a)}return o(i(r.prototype),"parseExprOp",this).call(this,e,t,n,a)}},{key:"checkReservedWord",value:function(e,t,r,n){}},{key:"checkDuplicateExports",value:function(){}},{key:"parseImport",value:function(e){if(e.importKind="value",this.match(m.name)||this.match(m.star)||this.match(m.braceL)){var t=this.lookahead();if(!this.isContextual("type")||t.type===m.comma||t.type===m.name&&"from"===t.value||t.type===m.eq||(e.importKind="type",this.next(),t=this.lookahead()),this.match(m.name)&&t.type===m.eq)return this.tsParseImportEqualsDeclaration(e)}var n=o(i(r.prototype),"parseImport",this).call(this,e);return"type"===n.importKind&&n.specifiers.length>1&&"ImportDefaultSpecifier"===n.specifiers[0].type&&this.raise(n.start,Ve.TypeImportCannotSpecifyDefaultAndNamed),n}},{key:"parseExport",value:function(e){if(this.match(m._import))return this.next(),this.isContextual("type")&&61!==this.lookaheadCharCode()?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(m.eq)){var t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}if(this.eatContextual("as")){var n=e;return this.expectContextual("namespace"),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===m.braceL?(this.next(),e.exportKind="type"):e.exportKind="value",o(i(r.prototype),"parseExport",this).call(this,e)}},{key:"isAbstractClass",value:function(){return this.isContextual("abstract")&&this.lookahead().type===m._class}},{key:"parseExportDefaultExpression",value:function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0),e}if("interface"===this.state.value){var t=this.startNode();this.next();var n=this.tsParseInterfaceDeclaration(t);if(n)return n}return o(i(r.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseStatementContent",value:function(e,t){if(this.state.type===m._const){var n=this.lookahead();if(n.type===m.name&&"enum"===n.value){var a=this.startNode();return this.expect(m._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(a,!0)}}return o(i(r.prototype),"parseStatementContent",this).call(this,e,t)}},{key:"parseAccessModifier",value:function(){return this.tsParseModifier(["public","protected","private"])}},{key:"tsHasSomeModifiers",value:function(e,t){return t.some((function(t){return Xe(t)?e.accessibility===t:!!e[t]}))}},{key:"parseClassMember",value:function(e,t,r){var n=this,a=["declare","private","public","protected","override","abstract","readonly"];this.tsParseModifiers(t,a.concat(["static"]));var i=function(){var i=!!t.static;i&&n.eat(m.braceL)?(n.tsHasSomeModifiers(t,a)&&n.raise(n.state.pos,Ve.StaticBlockCannotHaveModifier),n.parseClassStaticBlock(e,t)):n.parseClassMemberWithIsStatic(e,t,r,i)};t.declare?this.tsInAmbientContext(i):i()}},{key:"parseClassMemberWithIsStatic",value:function(e,t,n,a){var s=this.tsTryParseIndexSignature(t);if(s)return e.body.push(s),t.abstract&&this.raise(t.start,Ve.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,Ve.IndexSignatureHasAccessibility,t.accessibility),t.declare&&this.raise(t.start,Ve.IndexSignatureHasDeclare),void(t.override&&this.raise(t.start,Ve.IndexSignatureHasOverride));!this.state.inAbstractClass&&t.abstract&&this.raise(t.start,Ve.NonAbstractClassHasAbstractMethod),t.override&&(n.hadSuperClass||this.raise(t.start,Ve.OverrideNotInSubClass)),o(i(r.prototype),"parseClassMemberWithIsStatic",this).call(this,e,t,n,a)}},{key:"parsePostMemberNameModifiers",value:function(e){this.eat(m.question)&&(e.optional=!0),e.readonly&&this.match(m.parenL)&&this.raise(e.start,Ve.ClassMethodHasReadonly),e.declare&&this.match(m.parenL)&&this.raise(e.start,Ve.ClassMethodHasDeclare)}},{key:"parseExpressionStatement",value:function(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||o(i(r.prototype),"parseExpressionStatement",this).call(this,e,t)}},{key:"shouldParseExportDeclaration",value:function(){return!!this.tsIsDeclarationStart()||o(i(r.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"parseConditional",value:function(e,t,n,a){var s=this;if(!this.state.maybeInArrowParameters||!this.match(m.question))return o(i(r.prototype),"parseConditional",this).call(this,e,t,n,a);var u=this.tryParse((function(){return o(i(r.prototype),"parseConditional",s).call(s,e,t,n)}));return u.node?(u.error&&(this.state=u.failState),u.node):(u.error&&o(i(r.prototype),"setOptionalParametersError",this).call(this,a,u.error),e)}},{key:"parseParenItem",value:function(e,t,n){if(e=o(i(r.prototype),"parseParenItem",this).call(this,e,t,n),this.eat(m.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(m.colon)){var a=this.startNodeAt(t,n);return a.expression=e,a.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(a,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function(e){var t,n=this.state.start,a=this.state.startLoc,s=this.eatContextual("declare");if(s&&(this.isContextual("declare")||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,Ve.ExpectedAmbientAfterExportDeclare);return this.match(m.name)&&(t=this.tsTryParseExportDeclaration()),t||(t=o(i(r.prototype),"parseExportDeclaration",this).call(this,e)),t&&("TSInterfaceDeclaration"===t.type||"TSTypeAliasDeclaration"===t.type||s)&&(e.exportKind="type"),t&&s&&(this.resetStartLocation(t,n,a),t.declare=!0),t}},{key:"parseClassId",value:function(e,t,n){if(t&&!n||!this.isContextual("implements")){o(i(r.prototype),"parseClassId",this).call(this,e,t,n,e.declare?1024:139);var a=this.tsTryParseTypeParameters();a&&(e.typeParameters=a)}}},{key:"parseClassPropertyAnnotation",value:function(e){!e.optional&&this.eat(m.bang)&&(e.definite=!0);var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}},{key:"parseClassProperty",value:function(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&this.match(m.eq)&&this.raise(this.state.start,Ve.DeclareClassFieldHasInitializer),e.abstract&&this.match(m.eq)){var t=e.key;this.raise(this.state.start,Ve.AbstractPropertyHasInitializer,"Identifier"!==t.type||e.computed?"[".concat(this.input.slice(t.start,t.end),"]"):t.name)}return o(i(r.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return e.abstract&&this.raise(e.start,Ve.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,Ve.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),o(i(r.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"pushClassMethod",value:function(e,t,n,a,s,u){var c=this.tsTryParseTypeParameters();c&&s&&this.raise(c.start,Ve.ConstructorHasTypeParameters),!t.declare||"get"!==t.kind&&"set"!==t.kind||this.raise(t.start,Ve.DeclareAccessor,t.kind),c&&(t.typeParameters=c),o(i(r.prototype),"pushClassMethod",this).call(this,e,t,n,a,s,u)}},{key:"pushClassPrivateMethod",value:function(e,t,n,a){var s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s),o(i(r.prototype),"pushClassPrivateMethod",this).call(this,e,t,n,a)}},{key:"parseClassSuper",value:function(e){o(i(r.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.isRelational("<")&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function(e){var t,n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n);for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"TSTypeCastExpression":return o(i(r.prototype),"toAssignable",this).call(this,this.typeCastToParameter(e),t);case"TSParameterProperty":return o(i(r.prototype),"toAssignable",this).call(this,e,t);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t),e;default:return o(i(r.prototype),"toAssignable",this).call(this,e,t)}}},{key:"toAssignableParenthesizedExpression",value:function(e,t){switch(e.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return e.expression=this.toAssignable(e.expression,t),e;default:return o(i(r.prototype),"toAssignable",this).call(this,e,t)}}},{key:"checkLVal",value:function(e,t){for(var n,a,s=arguments.length,u=new Array(s>2?s-2:0),c=2;c1?a-1:0),u=1;u0)||o(i(r.prototype),"maybeParseExportDefaultSpecifier",this).apply(this,arguments)}},{key:"checkExport",value:function(e){var t=e.specifiers;null!=t&&t.length&&(e.specifiers=t.filter((function(e){return"Placeholder"===e.exported.type}))),o(i(r.prototype),"checkExport",this).call(this,e),e.specifiers=t}},{key:"parseImport",value:function(e){var t=this.parsePlaceholder("Identifier");if(!t)return o(i(r.prototype),"parseImport",this).apply(this,arguments);if(e.specifiers=[],!this.isContextual("from")&&!this.match(m.comma))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var n=this.startNodeAtNode(t);if(n.local=t,this.finishNode(n,"ImportDefaultSpecifier"),e.specifiers.push(n),this.eat(m.comma)){var a=this.maybeParseStarImportSpecifier(e);a||this.parseNamedImportSpecifiers(e)}return this.expectContextual("from"),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.parsePlaceholder("StringLiteral")||o(i(r.prototype),"parseImportSource",this).apply(this,arguments)}}]),r}(e)}},et=Object.keys(Ze),tt={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};var rt=function e(t){return"ParenthesizedExpression"===t.type?e(t.expression):t},nt=function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"checkProto",value:function(e,t,r,n){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var a=e.key;if("__proto__"===("Identifier"===a.type?a.name:a.value)){if(t)return void this.raise(a.start,O.RecordNoProto);r.used&&(n?-1===n.doubleProto&&(n.doubleProto=a.start):this.raise(a.start,O.DuplicateProto)),r.used=!0}}}},{key:"shouldExitDescending",value:function(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}},{key:"getExpression",value:function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(m.eof)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}},{key:"parseExpression",value:function(e,t){var r=this;return e?this.disallowInAnd((function(){return r.parseExpressionBase(t)})):this.allowInAnd((function(){return r.parseExpressionBase(t)}))}},{key:"parseExpressionBase",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(m.comma)){var a=this.startNodeAt(t,r);for(a.expressions=[n];this.eat(m.comma);)a.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return n}},{key:"parseMaybeAssignDisallowIn",value:function(e,t){var r=this;return this.disallowInAnd((function(){return r.parseMaybeAssign(e,t)}))}},{key:"parseMaybeAssignAllowIn",value:function(e,t){var r=this;return this.allowInAnd((function(){return r.parseMaybeAssign(e,t)}))}},{key:"setOptionalParametersError",value:function(e,t){var r;e.optionalParameters=null!=(r=null==t?void 0:t.pos)?r:this.state.start}},{key:"parseMaybeAssign",value:function(e,t){var r,n=this.state.start,a=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){var i=this.parseYield();return t&&(i=t.call(this,i,n,a)),i}e?r=!1:(e=new Ee,r=!0),(this.match(m.parenL)||this.match(m.name))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n,a)),this.state.type.isAssign){var s=this.startNodeAt(n,a),u=this.state.value;if(s.operator=u,"BinaryExpression"===o.type&&"|>"===o.operator&&"hack"===this.getPluginOption("pipelineOperator","proposal"))throw this.raise(this.state.start,O.PipeBodyIsTighter,u);return this.match(m.eq)?(s.left=this.toAssignable(o,!0),e.doubleProto=-1):s.left=o,e.shorthandAssign>=s.left.start&&(e.shorthandAssign=-1),this.checkLVal(o,"assignment expression"),this.next(),s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),o}},{key:"parseMaybeConditional",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,n)?a:this.parseConditional(a,t,r,e)}},{key:"parseConditional",value:function(e,t,r,n){if(this.eat(m.question)){var a=this.startNodeAt(t,r);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(m.colon),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e}},{key:"parseExprOps",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseMaybeUnary(e);return this.shouldExitDescending(a,n)?a:this.parseExprOp(a,t,r,-1)}},{key:"parseExprOp",value:function(e,t,r,n){var a=this.state.type.binop;if(null!=a&&(this.prodParam.hasIn||!this.match(m._in))&&a>n){var i=this.state.type;if(i===m.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var o=this.startNodeAt(t,r);o.left=e,o.operator=this.state.value;var s=i===m.logicalOR||i===m.logicalAND,u=i===m.nullishCoalescing;if(u&&(a=m.logicalAND.binop),this.next(),i===m.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(m.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,O.UnexpectedAwaitAfterPipelineBody);o.right=this.parseExprOpRightExpr(i,a),this.finishNode(o,s||u?"LogicalExpression":"BinaryExpression");var c=this.state.type;if(u&&(c===m.logicalOR||c===m.logicalAND)||s&&c===m.nullishCoalescing)throw this.raise(this.state.start,O.MixingCoalesceWithLogical);return this.parseExprOp(o,t,r,n)}return e}},{key:"parseExprOpRightExpr",value:function(e,t){var r=this,n=this.state.start,a=this.state.startLoc;switch(e){case m.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){var a=r.parseHackPipeBody(e,t);return r.checkHackPipeBodyEarlyErrors(n),a}));case"smart":return this.withTopicBindingContext((function(){var i=r.parseHackPipeBody(e,t);return r.parseSmartPipelineBodyInStyle(i,n,a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}default:return this.parseExprOpBaseRightExpr(e,t)}}},{key:"parseExprOpBaseRightExpr",value:function(e,t){var r=this.state.start,n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,n,e.rightAssociative?t-1:t)}},{key:"parseHackPipeBody",value:function(e,t){if(this.prodParam.hasYield&&this.isContextual("yield"))throw this.raise(this.state.start,O.PipeBodyIsTighter,this.state.value);return this.parseExprOpBaseRightExpr(e,t)}},{key:"checkExponentialAfterUnary",value:function(e){this.match(m.exponent)&&this.raise(e.argument.start,O.UnexpectedTokenUnaryExponentiation)}},{key:"parseMaybeUnary",value:function(e,t){var r=this.state.start,n=this.state.startLoc,a=this.isContextual("await");if(a&&this.isAwaitAllowed()){this.next();var i=this.parseAwait(r,n);return t||this.checkExponentialAfterUnary(i),i}var o=this.match(m.incDec),s=this.startNode();if(this.state.type.prefix){s.operator=this.state.value,s.prefix=!0,this.match(m._throw)&&this.expectPlugin("throwExpressions");var u=this.match(m._delete);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&u){var c=s.argument;"Identifier"===c.type?this.raise(s.start,O.StrictDelete):this.hasPropertyAsPrivateName(c)&&this.raise(s.start,O.DeletePrivateField)}if(!o)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var l=this.parseUpdate(s,o,e);if(a&&((this.hasPlugin("v8intrinsic")?this.state.type.startsExpr:this.state.type.startsExpr&&!this.match(m.modulo))&&!this.isAmbiguousAwait()))return this.raiseOverwrite(r,O.AwaitNotInAsyncContext),this.parseAwait(r,n);return l}},{key:"parseUpdate",value:function(e,t,r){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");var n=this.state.start,a=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(n,a);o.operator=this.state.value,o.prefix=!1,o.argument=i,this.checkLVal(i,"postfix operation"),this.next(),i=this.finishNode(o,"UpdateExpression")}return i}},{key:"parseExprSubscripts",value:function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,n)?a:this.parseSubscripts(a,t,r)}},{key:"parseSubscripts",value:function(e,t,r,n){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n,a),a.maybeAsyncArrow=!1}while(!a.stop);return e}},{key:"parseSubscript",value:function(e,t,r,n,a){if(!n&&this.eat(m.doubleColon))return this.parseBind(e,t,r,n,a);if(this.match(m.backQuote))return this.parseTaggedTemplateExpression(e,t,r,a);var i=!1;if(this.match(m.questionDot)){if(n&&40===this.lookaheadCharCode())return a.stop=!0,e;a.optionalChainMember=i=!0,this.next()}return!n&&this.match(m.parenL)?this.parseCoverCallAndAsyncArrowHead(e,t,r,a,i):i||this.match(m.bracketL)||this.eat(m.dot)?this.parseMember(e,t,r,a,i):(a.stop=!0,e)}},{key:"parseMember",value:function(e,t,r,n,a){var i=this.startNodeAt(t,r),o=this.eat(m.bracketL);i.object=e,i.computed=o;var s=!o&&this.match(m.privateName)&&this.state.value,u=o?this.parseExpression():s?this.parsePrivateName():this.parseIdentifier(!0);return!1!==s&&("Super"===i.object.type&&this.raise(t,O.SuperPrivateField),this.classScope.usePrivateName(s,u.start)),i.property=u,o&&this.expect(m.bracketR),n.optionalChainMember?(i.optional=a,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}},{key:"parseBind",value:function(e,t,r,n,a){var i=this.startNodeAt(t,r);return i.object=e,i.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r,n)}},{key:"parseCoverCallAndAsyncArrowHead",value:function(e,t,r,n,a){var i=this.state.maybeInArrowParameters,o=null;this.state.maybeInArrowParameters=!0,this.next();var s=this.startNodeAt(t,r);return s.callee=e,n.maybeAsyncArrow&&(this.expressionScope.enter(new ye(2)),o=new Ee),n.optionalChainMember&&(s.optional=a),s.arguments=a?this.parseCallExpressionArguments(m.parenR):this.parseCallExpressionArguments(m.parenR,"Import"===e.type,"Super"!==e.type,s,o),this.finishCallExpression(s,n.optionalChainMember),n.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!a?(n.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),s=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),s)):(n.maybeAsyncArrow&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(s)),this.state.maybeInArrowParameters=i,s}},{key:"toReferencedArguments",value:function(e,t){this.toReferencedListDeep(e.arguments,t)}},{key:"parseTaggedTemplateExpression",value:function(e,t,r,n){var a=this.startNodeAt(t,r);return a.tag=e,a.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(t,O.OptionalChainingNoTemplate),this.finishNode(a,"TaggedTemplateExpression")}},{key:"atPossibleAsyncArrow",value:function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}},{key:"finishCallExpression",value:function(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===e.arguments.length||e.arguments.length>2)this.raise(e.start,O.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else{var r,a=n(e.arguments);try{for(a.s();!(r=a.n()).done;){var i=r.value;"SpreadElement"===i.type&&this.raise(i.start,O.ImportCallSpreadArgument)}}catch(o){a.e(o)}finally{a.f()}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function(e,t,r,n,a){var i=[],o=!0,s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(m.comma),this.match(e)){!t||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,O.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}i.push(this.parseExprListItem(!1,a,r))}return this.state.inFSharpPipelineDirectBody=s,i}},{key:"shouldParseAsyncArrow",value:function(){return this.match(m.arrow)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(m.arrow),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingComma),_(e,t.innerComments),_(e,t.callee.trailingComments),e}},{key:"parseNoCallExpr",value:function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}},{key:"parseExprAtom",value:function(e){var t;switch(this.state.type){case m._super:return this.parseSuper();case m._import:return t=this.startNode(),this.next(),this.match(m.dot)?this.parseImportMetaProperty(t):(this.match(m.parenL)||this.raise(this.state.lastTokStart,O.UnsupportedImport),this.finishNode(t,"Import"));case m._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case m.name:if(this.isContextual("module")&&123===this.lookaheadCharCode()&&!this.hasFollowingLineBreak())return this.parseModuleExpression();var r=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,a=this.parseIdentifier();if(!n&&"async"===a.name&&!this.canInsertSemicolon()){if(this.match(m._function))return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseFunction(this.startNodeAtNode(a),void 0,!0);if(this.match(m.name))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a)):a;if(this.match(m._do))return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}return r&&this.match(m.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1)):a;case m._do:return this.parseDo(this.startNode(),!1);case m.slash:case m.slashAssign:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case m.num:return this.parseNumericLiteral(this.state.value);case m.bigint:return this.parseBigIntLiteral(this.state.value);case m.decimal:return this.parseDecimalLiteral(this.state.value);case m.string:return this.parseStringLiteral(this.state.value);case m._null:return this.parseNullLiteral();case m._true:return this.parseBooleanLiteral(!0);case m._false:return this.parseBooleanLiteral(!1);case m.parenL:var i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i);case m.bracketBarL:case m.bracketHashL:return this.parseArrayLike(this.state.type===m.bracketBarL?m.bracketBarR:m.bracketR,!1,!0,e);case m.bracketL:return this.parseArrayLike(m.bracketR,!0,!1,e);case m.braceBarL:case m.braceHashL:return this.parseObjectLike(this.state.type===m.braceBarL?m.braceBarR:m.braceR,!1,!0,e);case m.braceL:return this.parseObjectLike(m.braceR,!1,!1,e);case m._function:return this.parseFunctionOrFunctionSent();case m.at:this.parseDecorators();case m._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case m._new:return this.parseNewOrNewTarget();case m.backQuote:return this.parseTemplate(!1);case m.doubleColon:t=this.startNode(),this.next(),t.object=null;var o=t.callee=this.parseNoCallExpr();if("MemberExpression"===o.type)return this.finishNode(t,"BindExpression");throw this.raise(o.start,O.UnsupportedBind);case m.privateName:var s=this.state,u=s.value,c=s.start;return t=this.parsePrivateName(),this.match(m._in)?this.classScope.usePrivateName(u,c):this.raise(c,O.PrivateInExpectedIn,u),t;case m.moduloAssign:if("hack"!==this.getPluginOption("pipelineOperator","proposal")||"%"!==this.getPluginOption("pipelineOperator","topicToken"))throw this.unexpected();this.state.value="%",this.state.type=m.modulo,this.state.pos--,this.state.end--,this.state.endLoc.column--;case m.modulo:case m.hash:var l=this.getPluginOption("pipelineOperator","proposal");if(l){t=this.startNode();var f=this.state.start,p=this.state.type;return this.next(),this.finishTopicReference(t,f,l,p)}case m.relational:if("<"===this.state.value){var h=this.input.codePointAt(this.nextTokenStart());(W(h)||62===h)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}},{key:"finishTopicReference",value:function(e,t,r,n){var a;if(this.testTopicReferenceConfiguration(r,t,n))return a="smart"===r?"PipelinePrimaryTopicReference":"TopicReference",this.topicReferenceIsAllowedInCurrentContext()||("smart"===r?this.raise(t,O.PrimaryTopicNotAllowed):this.raise(t,O.PipeTopicUnbound)),this.registerTopicReference(),this.finishNode(e,a);throw this.raise(t,O.PipeTopicUnconfiguredToken,n.label)}},{key:"testTopicReferenceConfiguration",value:function(e,t,r){switch(e){case"hack":var n=this.getPluginOption("pipelineOperator","topicToken");return r.label===n;case"smart":return r===m.hash;default:throw this.raise(t,O.PipeTopicRequiresHackPipes)}}},{key:"parseAsyncArrowUnaryFunction",value:function(e){this.prodParam.enter(ke(!0,this.prodParam.hasYield));var t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,O.LineTerminatorBeforeArrow),this.expect(m.arrow),this.parseArrowExpression(e,t,!0),e}},{key:"parseDo",value:function(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();var r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}},{key:"parseSuper",value:function(){var e=this.startNode();return this.next(),!this.match(m.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(e.start,O.UnexpectedSuper):this.raise(e.start,O.SuperNotAllowed),this.match(m.parenL)||this.match(m.bracketL)||this.match(m.dot)||this.raise(e.start,O.UnsupportedSuper),this.finishNode(e,"Super")}},{key:"parseMaybePrivateName",value:function(e){return this.match(m.privateName)?(e||this.raise(this.state.start+1,O.UnexpectedPrivateField),this.parsePrivateName()):this.parseIdentifier(!0)}},{key:"parsePrivateName",value:function(){var e=this.startNode(),t=this.startNodeAt(this.state.start+1,new S(this.state.curLine,this.state.start+1-this.state.lineStart)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}},{key:"parseFunctionOrFunctionSent",value:function(){var e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(m.dot)){var t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}},{key:"parseMetaProperty",value:function(e,t,r){e.meta=t,"function"===t.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(e.property.start,O.UnsupportedMetaProperty,t.name,r),this.finishNode(e,"MetaProperty")}},{key:"parseImportMetaProperty",value:function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raise(t.start,F.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}},{key:"parseLiteralAtNode",value:function(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}},{key:"parseLiteral",value:function(e,t){var r=this.startNode();return this.parseLiteralAtNode(e,t,r)}},{key:"parseStringLiteral",value:function(e){return this.parseLiteral(e,"StringLiteral")}},{key:"parseNumericLiteral",value:function(e){return this.parseLiteral(e,"NumericLiteral")}},{key:"parseBigIntLiteral",value:function(e){return this.parseLiteral(e,"BigIntLiteral")}},{key:"parseDecimalLiteral",value:function(e){return this.parseLiteral(e,"DecimalLiteral")}},{key:"parseRegExpLiteral",value:function(e){var t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}},{key:"parseBooleanLiteral",value:function(e){var t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}},{key:"parseNullLiteral",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}},{key:"parseParenAndDistinguishExpression",value:function(e){var t,r=this.state.start,n=this.state.startLoc;this.next(),this.expressionScope.enter(new ye(1));var a=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var o,s,u=this.state.start,c=this.state.startLoc,l=[],f=new Ee,p=!0;!this.match(m.parenR);){if(p)p=!1;else if(this.expect(m.comma,-1===f.optionalParameters?null:f.optionalParameters),this.match(m.parenR)){s=this.state.start;break}if(this.match(m.ellipsis)){var h=this.state.start,d=this.state.startLoc;o=this.state.start,l.push(this.parseParenItem(this.parseRestBinding(),h,d)),this.checkCommaAfterRest(41);break}l.push(this.parseMaybeAssignAllowIn(f,this.parseParenItem))}var v=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(m.parenR),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=i;var b=this.startNodeAt(r,n);if(e&&this.shouldParseArrow(l)&&(b=this.parseArrow(b)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(b,l,!1),b;if(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStart),s&&this.unexpected(s),o&&this.unexpected(o),this.checkExpressionErrors(f,!0),this.toReferencedListDeep(l,!0),l.length>1?((t=this.startNodeAt(u,c)).expressions=l,this.finishNode(t,"SequenceExpression"),t.end=v,t.loc.end=y):t=l[0],!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",r),t;var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression"),g}},{key:"shouldParseArrow",value:function(e){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function(e){if(this.eat(m.arrow))return e}},{key:"parseParenItem",value:function(e,t,r){return e}},{key:"parseNewOrNewTarget",value:function(){var e=this.startNode();if(this.next(),this.match(m.dot)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(r.start,O.UnexpectedNewTarget),r}return this.parseNew(e)}},{key:"parseNew",value:function(e){return e.callee=this.parseNoCallExpr(),"Import"===e.callee.type?this.raise(e.callee.start,O.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,O.OptionalChainingNoNew):this.eat(m.questionDot)&&this.raise(this.state.start,O.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}},{key:"parseNewArguments",value:function(e){if(this.eat(m.parenL)){var t=this.parseExprList(m.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}},{key:"parseTemplateElement",value:function(e){var t=this.startNode();return null===this.state.value&&(e||this.raise(this.state.start+1,O.InvalidEscapeSequenceTemplate)),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(m.backQuote),this.finishNode(t,"TemplateElement")}},{key:"parseTemplate",value:function(e){var t=this.startNode();this.next(),t.expressions=[];var r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)this.expect(m.dollarBraceL),t.expressions.push(this.parseTemplateSubstitution()),this.expect(m.braceR),t.quasis.push(r=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}},{key:"parseTemplateSubstitution",value:function(){return this.parseExpression()}},{key:"parseObjectLike",value:function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var i=Object.create(null),o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(m.comma),this.match(e)){this.addExtra(s,"trailingComma",this.state.lastTokStart);break}var u=this.parsePropertyDefinition(t,n);t||this.checkProto(u,r,i,n),r&&!this.isObjectProperty(u)&&"SpreadElement"!==u.type&&this.raise(u.start,O.InvalidRecordProperty),u.shorthand&&this.addExtra(u,"shorthand",!0),s.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=a;var c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(s,c)}},{key:"maybeAsyncOrAccessorProp",value:function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(m.bracketL)||this.match(m.star))}},{key:"parsePropertyDefinition",value:function(e,t){var r=[];if(this.match(m.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,O.UnsupportedPropertyDecorator);this.match(m.at);)r.push(this.parseDecorator());var n,a,i=this.startNode(),o=!1,s=!1,u=!1;if(this.match(m.ellipsis))return r.length&&this.unexpected(),e?(this.next(),i.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(i,"RestElement")):this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,(e||t)&&(n=this.state.start,a=this.state.startLoc),e||(o=this.eat(m.star));var c=this.state.containsEsc,l=this.parsePropertyName(i,!1);if(!e&&!o&&!c&&this.maybeAsyncOrAccessorProp(i)){var f=l.name;"async"!==f||this.hasPrecedingLineBreak()||(s=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(m.star),this.parsePropertyName(i,!1)),"get"!==f&&"set"!==f||(u=!0,this.resetPreviousNodeTrailingComments(l),i.kind=f,this.match(m.star)&&(o=!0,this.raise(this.state.pos,O.AccessorIsGenerator,f),this.next()),this.parsePropertyName(i,!1))}return this.parseObjPropValue(i,n,a,o,s,e,u,t),i}},{key:"getGetterSetterExpectedParamCount",value:function(e){return"get"===e.kind?0:1}},{key:"getObjectOrClassMethodParams",value:function(e){return e.params}},{key:"checkGetterSetterParams",value:function(e){var t,r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e),a=e.start;n.length!==r&&("get"===e.kind?this.raise(a,O.BadGetterArity):this.raise(a,O.BadSetterArity)),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(a,O.BadSetterRestParameter)}},{key:"parseObjectMethod",value:function(e,t,r,n,a){return a?(this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):r||t||this.match(m.parenL)?(n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")):void 0}},{key:"parseObjectProperty",value:function(e,t,r,n,a){return e.shorthand=!1,this.eat(m.colon)?(e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!1),n?e.value=this.parseMaybeDefault(t,r,Ce(e.key)):this.match(m.eq)&&a?(-1===a.shorthandAssign&&(a.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,r,Ce(e.key))):e.value=Ce(e.key),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))}},{key:"parseObjPropValue",value:function(e,t,r,n,a,i,o,s){var u=this.parseObjectMethod(e,n,a,i,o)||this.parseObjectProperty(e,t,r,i,s);return u||this.unexpected(),u}},{key:"parsePropertyName",value:function(e,t){if(this.eat(m.bracketL))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(m.bracketR);else{var r=this.state.inPropertyName;this.state.inPropertyName=!0;var n=this.state.type;e.key=n===m.num||n===m.string||n===m.bigint||n===m.decimal?this.parseExprAtom():this.parseMaybePrivateName(t),n!==m.privateName&&(e.computed=!1),this.state.inPropertyName=r}return e.key}},{key:"initFunction",value:function(e,t){e.id=null,e.generator=!1,e.async=!!t}},{key:"parseMethod",value:function(e,t,r,n,a,i){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=!!t;var s=n;return this.scope.enter(18|(o?64:0)|(a?32:0)),this.prodParam.enter(ke(r,e.generator)),this.parseFunctionParams(e,s),this.parseFunctionBodyAndFinish(e,i,!0),this.prodParam.exit(),this.scope.exit(),e}},{key:"parseArrayLike",value:function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!r,n,i),this.state.inFSharpPipelineDirectBody=a,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}},{key:"parseArrowExpression",value:function(e,t,r,n){this.scope.enter(6);var a=ke(r,!1);!this.match(m.bracketL)&&this.prodParam.hasIn&&(a|=8),this.prodParam.enter(a),this.initFunction(e,r);var i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(e,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function(e,t,r){e.params=this.toAssignableList(t,r,!1)}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}},{key:"parseFunctionBody",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t&&!this.match(m.braceL);if(this.expressionScope.enter(ge()),a)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var i=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(function(a){var o=!r.isSimpleParamList(e.params);if(a&&o){var s="method"!==e.kind&&"constructor"!==e.kind||!e.key?e.start:e.key.end;r.raise(s,O.IllegalLanguageModeDirective)}var u=!i&&r.state.strict;r.checkParams(e,!r.state.strict&&!t&&!n&&!o,t,u),r.state.strict&&e.id&&r.checkLVal(e.id,"function name",65,void 0,void 0,u)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=o}}},{key:"isSimpleParamList",value:function(e){for(var t=0,r=e.length;t3&&void 0!==arguments[3])||arguments[3],o=new Set,s=n(e.params);try{for(s.s();!(a=s.n()).done;){var u=a.value;this.checkLVal(u,"function parameter list",5,t?null:o,void 0,i)}}catch(c){s.e(c)}finally{s.f()}}},{key:"parseExprList",value:function(e,t,r,n){for(var a=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(m.comma),this.match(e)){n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}a.push(this.parseExprListItem(t,r))}return a}},{key:"parseExprListItem",value:function(e,t,r){var n;if(this.match(m.comma))e||this.raise(this.state.pos,O.UnexpectedToken,","),n=null;else if(this.match(m.ellipsis)){var a=this.state.start,i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),a,i)}else if(this.match(m.question)){this.expectPlugin("partialApplication"),r||this.raise(this.state.start,O.UnexpectedArgumentPlaceholder);var o=this.startNode();this.next(),n=this.finishNode(o,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}},{key:"parseIdentifier",value:function(e){var t=this.startNode(),r=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,r)}},{key:"createIdentifier",value:function(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}},{key:"parseIdentifierName",value:function(e,t){var r,n=this.state,a=n.start,i=n.type;if(i===m.name)r=this.state.value;else{if(!i.keyword)throw this.unexpected();r=i.keyword}return t?this.state.type=m.name:this.checkReservedWord(r,a,!!i.keyword,!1),this.next(),r}},{key:"checkReservedWord",value:function(e,t,r,n){if(!(e.length>10)&&function(e){return re.has(e)}(e)){if("yield"===e){if(this.prodParam.hasYield)return void this.raise(t,O.YieldBindingIdentifier)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(t,O.AwaitBindingIdentifier);if(this.scope.inStaticBlock)return void this.raise(t,O.AwaitBindingIdentifierInStaticBlock);this.expressionScope.recordAsyncArrowParametersError(t,O.AwaitBindingIdentifier)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(t,O.ArgumentsInClass);if(r&&te(e))this.raise(t,O.UnexpectedKeyword,e);else(this.state.strict?n?ee:Q:Y)(e,this.inModule)&&this.raise(t,O.UnexpectedReservedWord,e)}}},{key:"isAwaitAllowed",value:function(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}},{key:"parseAwait",value:function(e,t){var r=this.startNodeAt(e,t);return this.expressionScope.recordParameterInitializerError(r.start,O.AwaitExpressionFormalParameter),this.eat(m.star)&&this.raise(r.start,O.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}},{key:"isAmbiguousAwait",value:function(){return this.hasPrecedingLineBreak()||this.match(m.plusMin)||this.match(m.parenL)||this.match(m.bracketL)||this.match(m.backQuote)||this.match(m.regexp)||this.match(m.slash)||this.hasPlugin("v8intrinsic")&&this.match(m.modulo)}},{key:"parseYield",value:function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(e.start,O.YieldInParameter),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(m.star),this.state.type){case m.semi:case m.eof:case m.braceR:case m.parenR:case m.bracketR:case m.braceBarR:case m.colon:case m.comma:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}},{key:"checkPipelineAtInfixOperator",value:function(e,t){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===e.type&&this.raise(t,O.PipelineHeadSequenceExpression)}},{key:"checkHackPipeBodyEarlyErrors",value:function(e){if(this.match(m.arrow))throw this.raise(this.state.start,O.PipeBodyIsTighter,m.arrow.label);this.topicReferenceWasUsedInCurrentContext()||this.raise(e,O.PipeTopicUnused)}},{key:"parseSmartPipelineBodyInStyle",value:function(e,t,r){var n=this.startNodeAt(t,r);return this.isSimpleReference(e)?(n.callee=e,this.finishNode(n,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression"))}},{key:"isSimpleReference",value:function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}},{key:"checkSmartPipeTopicBodyEarlyErrors",value:function(e){if(this.match(m.arrow))throw this.raise(this.state.start,O.PipelineBodyNoArrow);this.topicReferenceWasUsedInCurrentContext()||this.raise(e,O.PipelineTopicUnused)}},{key:"withTopicBindingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSmartMixTopicForbiddingContext",value:function(e){if("smart"!==this.getPluginOption("pipelineOperator","proposal"))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSoloAwaitPermittingContext",value:function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}},{key:"allowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"disallowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"registerTopicReference",value:function(){this.state.topicContext.maxTopicIndex=0}},{key:"topicReferenceIsAllowedInCurrentContext",value:function(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentContext",value:function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function(e){var t=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnary(),t,r,e);return this.state.inFSharpPipelineDirectBody=n,a}},{key:"parseModuleExpression",value:function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.eat(m.braceL);var t=this.initializeScopes(!0);this.enterInitialScopes();var r=this.startNode();try{e.body=this.parseProgram(r,m.braceR,"module")}finally{t()}return this.eat(m.braceR),this.finishNode(e,"ModuleExpression")}}]),r}(function(e){u(r,e);var t=s(r);function r(){return f(this,r),t.apply(this,arguments)}return l(r,[{key:"toAssignable",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=void 0;switch(("ParenthesizedExpression"===e.type||null!=(t=e.extra)&&t.parenthesized)&&(a=rt(e),n?"Identifier"===a.type?this.expressionScope.recordParenthesizedIdentifierError(e.start,O.InvalidParenthesizedAssignment):"MemberExpression"!==a.type&&this.raise(e.start,O.InvalidParenthesizedAssignment):this.raise(e.start,O.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var i=0,o=e.properties.length,s=o-1;i2&&void 0!==arguments[2]?arguments[2]:64,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];switch(e.type){case"Identifier":var s=e.name;this.state.strict&&(o?ee(s,this.inModule):Z(s))&&this.raise(e.start,64===r?O.StrictEvalArguments:O.StrictEvalArgumentsBinding,s),a&&(a.has(s)?this.raise(e.start,O.ParamDupe):a.add(s)),i&&"let"===s&&this.raise(e.start,O.LetInLexicalBinding),64&r||this.scope.declareName(s,r,e.start);break;case"MemberExpression":64!==r&&this.raise(e.start,O.InvalidPropertyBindingPattern);break;case"ObjectPattern":var u,c=n(e.properties);try{for(c.s();!(u=c.n()).done;){var l=u.value;if(this.isObjectProperty(l))l=l.value;else if(this.isObjectMethod(l))continue;this.checkLVal(l,"object destructuring pattern",r,a,i)}}catch(d){c.e(d)}finally{c.f()}break;case"ArrayPattern":var f,p=n(e.elements);try{for(p.s();!(f=p.n()).done;){var h=f.value;h&&this.checkLVal(h,"array destructuring pattern",r,a,i)}}catch(d){p.e(d)}finally{p.f()}break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",r,a);break;case"RestElement":this.checkLVal(e.argument,"rest element",r,a);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",r,a);break;default:this.raise(e.start,64===r?O.InvalidLhs:O.InvalidLhsBinding,t)}}},{key:"checkToRestConversion",value:function(e){"Identifier"!==e.argument.type&&"MemberExpression"!==e.argument.type&&this.raise(e.argument.start,O.InvalidRestAssignmentPattern)}},{key:"checkCommaAfterRest",value:function(e){this.match(m.comma)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}},{key:"raiseRestNotLast",value:function(e){throw this.raise(e,O.ElementAfterRest)}},{key:"raiseTrailingCommaAfterRest",value:function(e){this.raise(e,O.RestTrailingComma)}}]),r}(Ae)),at={kind:"loop"},it={kind:"switch"},ot=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,st=new RegExp("in(?:stanceof)?","y");var ut=function(e){u(r,e);var t=s(r);function r(e,i){var o;return f(this,r),e=function(e){for(var t={},r=0,n=Object.keys(tt);r1&&void 0!==arguments[1]?arguments[1]:m.eof,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(var n=0,i=Array.from(this.scope.undefinedExports);n-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isContextual("let"),n=r&&this.isLetKeyword();if(this.match(m._var)||this.match(m._const)||n){var a=this.startNode(),i=n?"let":this.state.value;return this.next(),this.parseVar(a,!0,i),this.finishNode(a,"VariableDeclaration"),(this.match(m._in)||this.isContextual("of"))&&1===a.declarations.length?this.parseForIn(e,a,t):(t>-1&&this.unexpected(t),this.parseFor(e,a))}var o=this.match(m.name)&&!this.state.containsEsc,s=new Ee,u=this.parseExpression(!0,s),c=this.isContextual("of");if(c&&(r?this.raise(u.start,O.ForOfLet):-1===t&&o&&"Identifier"===u.type&&"async"===u.name&&this.raise(u.start,O.ForOfAsync)),c||this.match(m._in)){this.toAssignable(u,!0);var l=c?"for-of statement":"for-in statement";return this.checkLVal(u,l),this.parseForIn(e,u,t)}return this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,u)}},{key:"parseFunctionStatement",value:function(e,t,r){return this.next(),this.parseFunction(e,1|(r?0:2),t)}},{key:"parseIfStatement",value:function(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}},{key:"parseReturnStatement",value:function(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,O.IllegalReturn),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}},{key:"parseSwitchStatement",value:function(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,n=e.cases=[];for(this.expect(m.braceL),this.state.labels.push(it),this.scope.enter(0);!this.match(m.braceR);)if(this.match(m._case)||this.match(m._default)){var a=this.match(m._case);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,O.MultipleDefaultsInSwitch),r=!0,t.test=null),this.expect(m.colon)}else t?t.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}},{key:"parseThrowStatement",value:function(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,O.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}},{key:"parseCatchClauseParam",value:function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.scope.enter(t?8:0),this.checkLVal(e,"catch clause",9),e}},{key:"parseTryStatement",value:function(e){var t=this;if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(m._catch)){var r=this.startNode();this.next(),this.match(m.parenL)?(this.expect(m.parenL),r.param=this.parseCatchClauseParam(),this.expect(m.parenR)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext((function(){return t.parseBlock(!1,!1)})),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(m._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,O.NoCatchOrFinally),this.finishNode(e,"TryStatement")}},{key:"parseVarStatement",value:function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}},{key:"parseWhileStatement",value:function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(at),e.body=this.withSmartMixTopicForbiddingContext((function(){return t.parseStatement("while")})),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}},{key:"parseWithStatement",value:function(e){var t=this;return this.state.strict&&this.raise(this.state.start,O.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((function(){return t.parseStatement("with")})),this.finishNode(e,"WithStatement")}},{key:"parseEmptyStatement",value:function(e){return this.next(),this.finishNode(e,"EmptyStatement")}},{key:"parseLabeledStatement",value:function(e,t,r,a){var i,o=n(this.state.labels);try{for(o.s();!(i=o.n()).done;){i.value.name===t&&this.raise(r.start,O.LabelRedeclaration,t)}}catch(l){o.e(l)}finally{o.f()}for(var s=this.state.type.isLoop?"loop":this.match(m._switch)?"switch":null,u=this.state.labels.length-1;u>=0;u--){var c=this.state.labels[u];if(c.statementStart!==e.start)break;c.statementStart=this.state.start,c.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.state.start}),e.body=this.parseStatement(a?-1===a.indexOf("label")?a+"label":a:"label"),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}},{key:"parseExpressionStatement",value:function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}},{key:"parseBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(m.braceL),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,m.braceR,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}},{key:"isValidDirective",value:function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}},{key:"parseBlockBody",value:function(e,t,r,n,a){var i=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?o:void 0,r,n,a)}},{key:"parseBlockOrModuleBlockBody",value:function(e,t,r,n,a){for(var i=this.state.strict,o=!1,s=!1;!this.match(n);){var u=this.parseStatement(null,r);if(t&&!s){if(this.isValidDirective(u)){var c=this.stmtToDirective(u);t.push(c),o||"use strict"!==c.value.value||(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(u)}a&&a.call(this,o),i||this.setStrict(!1),this.next()}},{key:"parseFor",value:function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(m.semi)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(m.parenR)?null:this.parseExpression(),this.expect(m.parenR),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}},{key:"parseForIn",value:function(e,t,r){var n=this,a=this.match(m._in);return this.next(),a?r>-1&&this.unexpected(r):e.await=r>-1,"VariableDeclaration"!==t.type||null==t.declarations[0].init||a&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type?"AssignmentPattern"===t.type&&this.raise(t.start,O.InvalidLhs,"for-loop"):this.raise(t.start,O.ForInOfLoopInitializer,a?"for-in":"for-of"),e.left=t,e.right=a?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(m.parenR),e.body=this.withSmartMixTopicForbiddingContext((function(){return n.parseStatement("for")})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,a?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function(e,t,r){var n=e.declarations=[],a=this.hasPlugin("typescript");for(e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(m.eq)?i.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(m._in)||this.isContextual("of")?"Identifier"===i.id.type||t&&(this.match(m._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,O.DeclarationMissingInitializer,"Complex binding patterns"):a||this.raise(this.state.lastTokEnd,O.DeclarationMissingInitializer,"Const declarations"),i.init=null),n.push(this.finishNode(i,"VariableDeclarator")),!this.eat(m.comma))break}return e}},{key:"parseVarId",value:function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration","var"===t?5:9,void 0,"var"!==t)}},{key:"parseFunction",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=1&r,i=2&r,o=!!a&&!(4&r);this.initFunction(e,n),this.match(m.star)&&i&&this.raise(this.state.start,O.GeneratorInSingleStatementContext),e.generator=this.eat(m.star),a&&(e.id=this.parseFunctionId(o));var s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(ke(n,e.generator)),a||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){t.parseFunctionBodyAndFinish(e,a?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),a&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}},{key:"parseFunctionId",value:function(e){return e||this.match(m.name)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function(e,t){this.expect(m.parenL),this.expressionScope.enter(new me(3)),e.params=this.parseBindingList(m.parenR,41,!1,t),this.expressionScope.exit()}},{key:"registerFunctionStatementId",value:function(e){e.id&&this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:9:17,e.id.start)}},{key:"parseClass",value:function(e,t,r){this.next(),this.takeDecorators(e);var n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function(){return this.match(m.eq)||this.match(m.semi)||this.match(m.braceR)}},{key:"isClassMethod",value:function(){return this.match(m.parenL)}},{key:"isNonstaticConstructor",value:function(e){return!e.computed&&!e.static&&("constructor"===e.key.name||"constructor"===e.key.value)}},{key:"parseClassBody",value:function(e,t){var r=this;this.classScope.enter();var n={hadConstructor:!1,hadSuperClass:e},a=[],i=this.startNode();if(i.body=[],this.expect(m.braceL),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(m.braceR);)if(r.eat(m.semi)){if(a.length>0)throw r.raise(r.state.lastTokEnd,O.DecoratorSemicolon)}else if(r.match(m.at))a.push(r.parseDecorator());else{var e=r.startNode();a.length&&(e.decorators=a,r.resetStartLocationFromNode(e,a[0]),a=[]),r.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(e.start,O.DecoratorConstructor)}})),this.state.strict=t,this.next(),a.length)throw this.raise(this.state.start,O.TrailingDecorator);return this.classScope.exit(),this.finishNode(i,"ClassBody")}},{key:"parseClassMemberFromModifier",value:function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){var a=t;return a.computed=!1,a.key=r,a.static=!1,e.body.push(this.parseClassProperty(a)),!0}return this.resetPreviousNodeTrailingComments(r),!1}},{key:"parseClassMember",value:function(e,t,r){var n=this.isContextual("static");if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(m.braceL))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}},{key:"parseClassMemberWithIsStatic",value:function(e,t,r,n){var a=t,i=t,o=t,s=t,u=a,c=a;if(t.static=n,this.eat(m.star)){u.kind="method";var l=this.match(m.privateName);return this.parseClassElementName(u),l?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,O.ConstructorIsGenerator),void this.pushClassMethod(e,a,!0,!1,!1,!1))}var f=this.match(m.name)&&!this.state.containsEsc,p=this.match(m.privateName),h=this.parseClassElementName(t),d=this.state.start;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(u.kind="method",p)return void this.pushClassPrivateMethod(e,i,!1,!1);var v=this.isNonstaticConstructor(a),y=!1;v&&(a.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.start,O.DuplicateConstructor),v&&this.hasPlugin("typescript")&&t.override&&this.raise(h.start,O.OverrideOnConstructor),r.hadConstructor=!0,y=r.hadSuperClass),this.pushClassMethod(e,a,!1,!1,v,y)}else if(this.isClassProperty())p?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(f&&"async"===h.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);var b=this.eat(m.star);c.optional&&this.unexpected(d),u.kind="method";var g=this.match(m.privateName);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),g?this.pushClassPrivateMethod(e,i,b,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,O.ConstructorIsAsync),this.pushClassMethod(e,a,b,!0,!1,!1))}else if(!f||"get"!==h.name&&"set"!==h.name||this.match(m.star)&&this.isLineTerminator())this.isLineTerminator()?p?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected();else{this.resetPreviousNodeTrailingComments(h),u.kind=h.name;var x=this.match(m.privateName);this.parseClassElementName(a),x?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,O.ConstructorIsAccessor),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a)}}},{key:"parseClassElementName",value:function(e){var t=this.state,r=t.type,n=t.value,a=t.start;return r!==m.name&&r!==m.string||!e.static||"prototype"!==n||this.raise(a,O.StaticPrototype),r===m.privateName&&"constructor"===n&&this.raise(a,O.ConstructorClassPrivateField),this.parsePropertyName(e,!0)}},{key:"parseClassStaticBlock",value:function(e,t){var r;this.expectPlugin("classStaticBlock",t.start),this.scope.enter(208);var n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);var a=t.body=[];this.parseBlockOrModuleBlockBody(a,void 0,!1,m.braceR),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(t.start,O.DecoratorStaticBlock)}},{key:"pushClassProperty",value:function(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(t.key.start,O.ConstructorClassField),e.body.push(this.parseClassProperty(t))}},{key:"pushClassPrivateProperty",value:function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.start)}},{key:"pushClassMethod",value:function(e,t,r,n,a,i){e.body.push(this.parseMethod(t,r,n,a,i,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function(e,t,r,n){var a=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(a);var i="get"===a.kind?a.static?6:2:"set"===a.kind?a.static?5:1:0;this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),i,a.key.start)}},{key:"parsePostMemberNameModifiers",value:function(e){}},{key:"parseClassPrivateProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}},{key:"parseInitializer",value:function(e){this.scope.enter(80),this.expressionScope.enter(ge()),this.prodParam.enter(0),e.value=this.eat(m.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}},{key:"parseClassId",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:139;this.match(m.name)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",n)):r||!t?e.id=null:this.unexpected(null,O.MissingClassName)}},{key:"parseClassSuper",value:function(e){e.superClass=this.eat(m._extends)?this.parseExprSubscripts():null}},{key:"parseExport",value:function(e){var t=this.maybeParseExportDefaultSpecifier(e),r=!t||this.eat(m.comma),n=r&&this.eatExportStar(e),a=n&&this.maybeParseExportNamespaceSpecifier(e),i=r&&(!a||this.eat(m.comma)),o=t||n;if(n&&!a)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");var s,u=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!u||a&&i&&!u)throw this.unexpected(null,m.braceL);if(o||u?(s=!1,this.parseExportFrom(e,o)):s=this.maybeParseExportDeclaration(e),o||u||s)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(m._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,m.braceL)}},{key:"eatExportStar",value:function(e){return this.eat(m.star)}},{key:"maybeParseExportDefaultSpecifier",value:function(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){if(this.isContextual("as")){e.specifiers||(e.specifiers=[]);var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function(e){var t;return!!this.match(m.braceL)&&(e.specifiers||(e.specifiers=[]),(t=e.specifiers).push.apply(t,c(this.parseExportSpecifiers())),e.source=null,e.declaration=null,!0)}},{key:"maybeParseExportDeclaration",value:function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}},{key:"isAsyncFunction",value:function(){if(!this.isContextual("async"))return!1;var e=this.nextTokenStart();return!y.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}},{key:"parseExportDefaultExpression",value:function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.match(m._function)||t)return this.next(),t&&this.next(),this.parseFunction(e,5,t);if(this.match(m._class))return this.parseClass(e,!0,!0);if(this.match(m.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,O.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(m._const)||this.match(m._var)||this.isLet())throw this.raise(this.state.start,O.UnsupportedDefaultExport);var r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}},{key:"parseExportDeclaration",value:function(e){return this.parseStatement(null)}},{key:"isExportDefaultSpecifier",value:function(){if(this.match(m.name)){var e=this.state.value;if("async"===e&&!this.state.containsEsc||"let"===e)return!1;if(("type"===e||"interface"===e)&&!this.state.containsEsc){var t=this.lookahead();if(t.type===m.name&&"from"!==t.value||t.type===m.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(m._default))return!1;var r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||this.match(m.name)&&n)return!0;if(this.match(m._default)&&n){var a=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===a||39===a}return!1}},{key:"parseExportFrom",value:function(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource(),this.checkExport(e);var r=this.maybeParseImportAssertions();r&&(e.assertions=r)}else t?this.unexpected():e.source=null;this.semicolon()}},{key:"shouldParseExportDeclaration",value:function(){if(this.match(m.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,O.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function(e,t,r,a){if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i,o=e.declaration;"Identifier"!==o.type||"from"!==o.name||o.end-o.start!==4||null!=(i=o.extra)&&i.parenthesized||this.raise(o.start,O.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length){var s,u=n(e.specifiers);try{for(u.s();!(s=u.n()).done;){var c=s.value,l=c.exported,f="Identifier"===l.type?l.name:l.value;if(this.checkDuplicateExports(c,f),!a&&c.local){var p=c.local;"Identifier"!==p.type?this.raise(c.start,O.ExportBindingIsString,p.value,f):(this.checkReservedWord(p.name,p.start,!0,!1),this.scope.checkLocalExport(p))}}}catch(y){u.e(y)}finally{u.f()}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){var h=e.declaration.id;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(e,h.name)}else if("VariableDeclaration"===e.declaration.type){var d,v=n(e.declaration.declarations);try{for(v.s();!(d=v.n()).done;){var m=d.value;this.checkDeclaration(m.id)}}catch(y){v.e(y)}finally{v.f()}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,O.UnsupportedDecoratorExport)}},{key:"checkDeclaration",value:function(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type){var t,r=n(e.properties);try{for(r.s();!(t=r.n()).done;){var a=t.value;this.checkDeclaration(a)}}catch(u){r.e(u)}finally{r.f()}}else if("ArrayPattern"===e.type){var i,o=n(e.elements);try{for(o.s();!(i=o.n()).done;){var s=i.value;s&&this.checkDeclaration(s)}}catch(u){o.e(u)}finally{o.f()}}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}},{key:"checkDuplicateExports",value:function(e,t){this.exportedIdentifiers.has(t)&&this.raise(e.start,"default"===t?O.DuplicateDefaultExport:O.DuplicateExport,t),this.exportedIdentifiers.add(t)}},{key:"parseExportSpecifiers",value:function(){var e=[],t=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(t)t=!1;else if(this.expect(m.comma),this.eat(m.braceR))break;var r=this.startNode(),n=this.match(m.string),a=this.parseModuleExportName();r.local=a,this.eatContextual("as")?r.exported=this.parseModuleExportName():r.exported=n?_e(a):Ce(a),e.push(this.finishNode(r,"ExportSpecifier"))}return e}},{key:"parseModuleExportName",value:function(){if(this.match(m.string)){var e=this.parseStringLiteral(this.state.value),t=e.value.match(ot);return t&&this.raise(e.start,O.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}},{key:"parseImport",value:function(e){if(e.specifiers=[],!this.match(m.string)){var t=!this.maybeParseDefaultImportSpecifier(e)||this.eat(m.comma),r=t&&this.maybeParseStarImportSpecifier(e);t&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual("from")}e.source=this.parseImportSource();var n=this.maybeParseImportAssertions();if(n)e.assertions=n;else{var a=this.maybeParseModuleAttributes();a&&(e.attributes=a)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.match(m.string)||this.unexpected(),this.parseExprAtom()}},{key:"shouldParseDefaultImport",value:function(e){return this.match(m.name)}},{key:"parseImportSpecifierLocal",value:function(e,t,r,n){t.local=this.parseIdentifier(),this.checkLVal(t.local,n,9),e.specifiers.push(this.finishNode(t,r))}},{key:"parseAssertEntries",value:function(){var e=[],t=new Set;do{if(this.match(m.braceR))break;var r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(this.state.start,O.ModuleAttributesWithDuplicateKeys,n),t.add(n),this.match(m.string)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(m.colon),!this.match(m.string))throw this.unexpected(this.state.start,O.ModuleAttributeInvalidValue);r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(m.comma));return e}},{key:"maybeParseModuleAttributes",value:function(){if(!this.match(m._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,O.ModuleAttributeDifferentFromType,r.key.name),t.has(r.key.name)&&this.raise(r.key.start,O.ModuleAttributesWithDuplicateKeys,r.key.name),t.add(r.key.name),this.expect(m.colon),!this.match(m.string))throw this.unexpected(this.state.start,O.ModuleAttributeInvalidValue);r.value=this.parseStringLiteral(this.state.value),this.finishNode(r,"ImportAttribute"),e.push(r)}while(this.eat(m.comma));return e}},{key:"maybeParseImportAssertions",value:function(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(m.braceL);var e=this.parseAssertEntries();return this.eat(m.braceR),e}},{key:"maybeParseDefaultImportSpecifier",value:function(e){return!!this.shouldParseDefaultImport(e)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function(e){if(this.match(m.star)){var t=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function(e){var t=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(t)t=!1;else{if(this.eat(m.colon))throw this.raise(this.state.start,O.DestructureNamedImport);if(this.expect(m.comma),this.eat(m.braceR))break}this.parseImportSpecifier(e)}}},{key:"parseImportSpecifier",value:function(e){var t=this.startNode(),r=this.match(m.string);if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdentifier();else{var n=t.imported;if(r)throw this.raise(t.start,O.ImportBindingIsString,n.value);this.checkReservedWord(n.name,t.start,!0,!0),t.local=Ce(n)}this.checkLVal(t.local,"import specifier",9),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}},{key:"isThisParam",value:function(e){return"Identifier"===e.type&&"this"===e.name}}]),r}(nt));function ct(e,t){var r=ut;return null!=e&&e.plugins&&(!function(e){if(Ge(e,"decorators")){if(Ge(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=Ke(e,"decorators","decoratorsBeforeExport");if(null==t)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(Ge(e,"flow")&&Ge(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ge(e,"placeholders")&&Ge(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ge(e,"pipelineOperator")){var r=Ke(e,"pipelineOperator","proposal");if(!$e.includes(r)){var n=$e.map((function(e){return'"'.concat(e,'"')})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(n,"."))}var a=Ge(e,"recordAndTuple")&&"hash"===Ke(e,"recordAndTuple","syntaxType");if("hack"===r){if(Ge(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ge(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var i=Ke(e,"pipelineOperator","topicToken");if(!Ye.includes(i)){var o=Ye.map((function(e){return'"'.concat(e,'"')})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(o,"."))}if("#"===i&&a)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===r&&a)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ge(e,"moduleAttributes")){if(Ge(e,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==Ke(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ge(e,"recordAndTuple")&&!Qe.includes(Ke(e,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+Qe.map((function(e){return"'".concat(e,"'")})).join(", "));if(Ge(e,"asyncDoExpressions")&&!Ge(e,"doExpressions")){var s=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw s.missingPlugins="doExpressions",s}}(e.plugins),r=function(e){var t=et.filter((function(t){return Ge(e,t)})),r=t.join("/"),a=lt[r];if(!a){a=ut;var i,o=n(t);try{for(o.s();!(i=o.n()).done;){var s=i.value;a=Ze[s](a)}}catch(u){o.e(u)}finally{o.f()}lt[r]=a}return a}(e.plugins)),new r(e,t)}var lt={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return ct(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var n=ct(t,e),a=n.parse();if(n.sawUnambiguousESM)return a;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",ct(t,e).parse()}catch(i){}else a.program.sourceType="script";return a}catch(o){try{return t.sourceType="script",ct(t,e).parse()}catch(s){}throw o}},t.parseExpression=function(e,t){var r=ct(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=m},,function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((n=r(239))&&n.__esModule?n:{default:n}).default;t.default=a},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(8),a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}t.a={easing:a,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,s=void 0===r?i.standard:r,u=t.easing,c=void 0===u?a.easeInOut:u,l=t.delay,f=void 0===l?0:l;Object(n.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:o(s)," ").concat(c," ").concat("string"===typeof f?f:o(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,r){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n}return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var d="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=d;var v=!1;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;(0,u.useEffect)((function(){v||((0,l.insertCss)(e,{prepend:!0}),v=!0)}),[])}},,function(e,t,r){var n=r(147);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalOperators=t.AssignmentOperators=t.BinaryOperators=void 0,t.BinaryOperators=["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],t.AssignmentOperators=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],t.LogicalOperators=["||","&&"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),a=n.__importDefault(r(16)),i=n.__importDefault(r(30)),o=n.__importDefault(r(78));t.default=function(e){e.use(o.default);var t=e.use(a.default),r=t.Type,n=t.Type.def,s=r.or,u=e.use(i.default).defaults;n("AwaitExpression").build("argument","all").field("argument",s(n("Expression"),null)).field("all",Boolean,u.false),n("Decorator").bases("Node").build("expression").field("expression",n("Expression")),n("Property").field("decorators",s([n("Decorator")],null),u.null),n("MethodDefinition").field("decorators",s([n("Decorator")],null),u.null),n("PrivateName").bases("Expression","Pattern").build("id").field("id",n("Identifier")),n("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",n("PrivateName")).field("value",s(n("Expression"),null),u.null)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=void 0;var n={parser:r(355),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:r(362).EOL||"\n",wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},a=n.hasOwnProperty;t.normalize=function(e){var t=e||n;function r(e){return a.call(t,e)?t[e]:n[e]}return{tabWidth:+r("tabWidth"),useTabs:!!r("useTabs"),reuseWhitespace:!!r("reuseWhitespace"),lineTerminator:r("lineTerminator"),wrapColumn:Math.max(r("wrapColumn"),0),sourceFileName:r("sourceFileName"),sourceMapName:r("sourceMapName"),sourceRoot:r("sourceRoot"),inputSourceMap:r("inputSourceMap"),parser:r("esprima")||r("parser"),range:r("range"),tolerant:r("tolerant"),quote:r("quote"),trailingComma:r("trailingComma"),arrayBracketSpacing:r("arrayBracketSpacing"),objectCurlySpacing:r("objectCurlySpacing"),arrowParensAlways:r("arrowParensAlways"),flowObjectCommas:r("flowObjectCommas"),tokens:!!r("tokens")}}},function(e,t,r){"use strict";var n=r(77),a=r(166),i=r(110),o=r(61),s=o.types.namedTypes.Node,u=o.types.namedTypes,c={find:function(e,t){var r=[],i="visit"+e,s={};function u(e){t&&!a(e.value,t)||r.push(e),this.traverse(e)}return this.__paths.forEach((function(e,t){var r=this;s[i]=function(e){if(r.__paths[t]!==e)return u.call(this,e);this.traverse(e)},o.visit(e,s)}),this),n.fromPaths(r,this,e)},closestScope:function(){return this.map((function(e){return e.scope&&e.scope.path}))},closest:function(e,t){return this.map((function(r){for(var n=r.parent;n&&(!e.check(n.value)||t&&!a(n.value,t));)n=n.parent;return n||null}))},getVariableDeclarators:function(e){return this.map((function(t){var r=t.scope;if(r){var a=e.apply(t,arguments);if(a&&(r=r.lookup(a))){var i=r.getBindings()[a];if(i){var o=n.fromPaths(i).closest(u.VariableDeclarator);return 1===o.length?o.paths()[0]:void 0}}}}),u.VariableDeclarator)}};function l(e){return Array.isArray(e)?e:[e]}var f={replaceWith:function(e){return this.forEach((function(t,r){var n="function"===typeof e?e.call(t,t,r):e;t.replace.apply(t,l(n))}))},insertBefore:function(e){return this.forEach((function(t,r){var n="function"===typeof e?e.call(t,t,r):e;t.insertBefore.apply(t,l(n))}))},insertAfter:function(e){return this.forEach((function(t,r){var n="function"===typeof e?e.call(t,t,r):e;t.insertAfter.apply(t,l(n))}))},remove:function(){return this.forEach((function(e){return e.prune()}))}};t.register=i((function(){n.registerMethods(c,s),n.registerMethods(f,s),n.setDefaultCollectionType(s)}))},function(e,t){e.exports=function(e){var t,r=!1;return function(){if(r)return t;r=!0;for(var n=arguments.length,a=new Array(n),i=0;i=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){s.headers[e]=n.merge(i)})),e.exports=s}).call(this,r(75))},function(e,t,r){"use strict";var n=r(29),a=r(271),i=r(127),o=r(273),s=r(276),u=r(277),c=r(131);e.exports=function(e){return new Promise((function(t,l){var f=e.data,p=e.headers;n.isFormData(f)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+btoa(d+":"+v)}var m=o(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),i(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};a(t,l,n),h=null}},h.onabort=function(){h&&(l(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){l(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var y=r(278),b=(e.withCredentials||u(m))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&n.forEach(p,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(g){if("json"!==e.responseType)throw g}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),l(e),h=null)})),void 0===f&&(f=null),h.send(f)}))}},function(e,t,r){"use strict";var n=r(272);e.exports=function(e,t,r,a,i){var o=new Error(e);return n(o,t,r,a,i)}},function(e,t,r){"use strict";var n=r(29);e.exports=function(e,t){t=t||{};var r={},a=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(a,(function(e){"undefined"!==typeof t[e]&&(r[e]=t[e])})),n.forEach(i,(function(a){n.isObject(t[a])?r[a]=n.deepMerge(e[a],t[a]):"undefined"!==typeof t[a]?r[a]=t[a]:n.isObject(e[a])?r[a]=n.deepMerge(e[a]):"undefined"!==typeof e[a]&&(r[a]=e[a])})),n.forEach(o,(function(n){"undefined"!==typeof t[n]?r[n]=t[n]:"undefined"!==typeof e[n]&&(r[n]=e[n])}));var s=a.concat(i).concat(o),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return n.forEach(u,(function(n){"undefined"!==typeof t[n]?r[n]=t[n]:"undefined"!==typeof e[n]&&(r[n]=e[n])})),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},,function(e,t){function r(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,r){"use strict";var n=r(76),a=r(60);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(r(137)),o=a(r(102)),s=a(r(138)),u=n(r(0)),c=a(r(22)),l=a(r(139)),f=r(309),p=r(103);(0,f.setTwoToneColor)("#1890ff");var h=u.forwardRef((function(e,t){var r=e.className,n=e.icon,a=e.spin,f=e.rotate,h=e.tabIndex,d=e.onClick,v=e.twoToneColor,m=(0,s.default)(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),y=(0,c.default)("anticon",(0,o.default)({},"anticon-".concat(n.name),Boolean(n.name)),r),b=(0,c.default)({"anticon-spin":!!a||"loading"===n.name}),g=h;void 0===g&&d&&(g=-1);var x=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,k=(0,p.normalizeTwoToneColors)(v),w=(0,i.default)(k,2),E=w[0],S=w[1];return u.createElement("span",Object.assign({role:"img","aria-label":n.name},m,{ref:t,tabIndex:g,onClick:d,className:y}),u.createElement(l.default,{className:b,icon:n,primaryColor:E,secondaryColor:S,style:x}))}));h.displayName="AntdIcon",h.getTwoToneColor=f.getTwoToneColor,h.setTwoToneColor=f.setTwoToneColor;var d=h;t.default=d},function(e,t,r){var n=r(298),a=r(299),i=r(300),o=r(302);e.exports=function(e,t){return n(e)||a(e,t)||i(e,t)||o()}},function(e,t,r){var n=r(303);e.exports=function(e,t){if(null==e)return{};var r,a,i=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},function(e,t,r){"use strict";var n=r(60);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(138)),i=n(r(102)),o=r(103);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw i}}}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rl)return!0;if(u===l&&"right"===this.name){if(a.right!==i)throw new Error("Nodes must be equal");return!0}default:return!1}case"SequenceExpression":switch(a.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(a.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===a.type&&s.check(n.value)&&"object"===this.name&&a.object===n;case"AssignmentExpression":case"ConditionalExpression":switch(a.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&a.callee===n;case"ConditionalExpression":return"test"===this.name&&a.test===n;case"MemberExpression":return"object"===this.name&&a.object===n;default:return!1}default:if("NewExpression"===a.type&&"callee"===this.name&&a.callee===n)return v(n)}return!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())};var d={};function v(e){return!!r.CallExpression.check(e)||(u.check(e)?e.some(v):!!r.Node.check(e)&&t.someField(e,(function(e,t){return v(t)})))}return[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach((function(e,t){e.forEach((function(e){d[e]=t}))})),p.canBeFirstInStatement=function(){var e=this.node;return!r.FunctionExpression.check(e)&&!r.ObjectExpression.check(e)},p.firstInStatement=function(){return function(e){for(var t,n;e.parent;e=e.parent){if(t=e.node,n=e.parent.node,r.BlockStatement.check(n)&&"body"===e.parent.name&&0===e.name){if(n.body[0]!==t)throw new Error("Nodes must be equal");return!0}if(r.ExpressionStatement.check(n)&&"expression"===e.name){if(n.expression!==t)throw new Error("Nodes must be equal");return!0}if(r.SequenceExpression.check(n)&&"expressions"===e.parent.name&&0===e.name){if(n.expressions[0]!==t)throw new Error("Nodes must be equal")}else if(r.CallExpression.check(n)&&"callee"===e.name){if(n.callee!==t)throw new Error("Nodes must be equal")}else if(r.MemberExpression.check(n)&&"object"===e.name){if(n.object!==t)throw new Error("Nodes must be equal")}else if(r.ConditionalExpression.check(n)&&"test"===e.name){if(n.test!==t)throw new Error("Nodes must be equal")}else if(h(n)&&"left"===e.name){if(n.left!==t)throw new Error("Nodes must be equal")}else{if(!r.UnaryExpression.check(n)||n.prefix||"argument"!==e.name)return!1;if(n.argument!==t)throw new Error("Nodes must be equal")}}return!0}(this)},f},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11).__importDefault(r(16)),a=Object.prototype.hasOwnProperty;t.default=function(e){var t=e.use(n.default),r=t.builtInTypes.array,i=t.builtInTypes.number,o=function e(t,r,n){if(!(this instanceof e))throw new Error("Path constructor cannot be invoked without 'new'");if(r){if(!(r instanceof e))throw new Error("")}else r=null,n=null;this.value=t,this.parentPath=r,this.name=n,this.__childCache=null},s=o.prototype;function u(e){return e.__childCache||(e.__childCache=Object.create(null))}function c(e,t){var r=u(e),n=e.getValueProperty(t),i=r[t];return a.call(r,t)&&i.value===n||(i=r[t]=new e.constructor(n,e,t)),i}function l(){}function f(e,t,n,o){if(r.assert(e.value),0===t)return l;var s=e.value.length;if(s<1)return l;var c=arguments.length;2===c?(n=0,o=s):3===c?(n=Math.max(n,0),o=s):(n=Math.max(n,0),o=Math.min(o,s)),i.assert(n),i.assert(o);for(var f=Object.create(null),p=u(e),h=n;h=0&&(a[e.name=i]=e)}else n[e.name]=e.value,a[e.name]=e;if(n[e.name]!==e.value)throw new Error("");if(e.parentPath.get(e.name)!==e)throw new Error("");return e}return s.getValueProperty=function(e){return this.value[e]},s.get=function(){for(var e=[],t=0;t0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,i,o=0,s=1,u=0,c=0,l=0,f=0,p="",h=this._mappings.toArray(),d=0,v=h.length;d0){if(!a.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=n.encode(i-f),f=i,e+=n.encode(t.originalLine-1-c),c=t.originalLine-1,e+=n.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-l),l=r)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=a.relative(t,e));var r=a.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,r){var n=r(356);t.encode=function(e){var t,r="",a=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&a,(a>>>=5)>0&&(t|=32),r+=n.encode(t)}while(a>0);return r},t.decode=function(e,t,r){var a,i,o=e.length,s=0,u=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(32&i),s+=(i&=31)<>1;return 1===(1&e)?-t:t}(s),r.rest=t}},function(e,t,r){var n=r(68),a=Object.prototype.hasOwnProperty,i="undefined"!==typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,a=e.length;n=0)return t}else{var r=n.toSetString(e);if(a.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e=0;--a){var i=this.leading[a];t.end.offset>=i.start&&(r.unshift(i.comment),this.leading.splice(a,1),this.trailing.splice(a,1))}r.length&&(e.innerComments=r)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var n=this.trailing[r];n.start>=e.end.offset&&t.unshift(n.comment)}return this.trailing.length=0,t}var a=this.stack[this.stack.length-1];if(a&&a.node.trailingComments){var i=a.node.trailingComments[0];i&&i.range[0]>=e.end.offset&&(t=a.node.trailingComments,delete a.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,r=[];this.stack.length>0&&((i=this.stack[this.stack.length-1])&&i.start>=e.start.offset);)t=i.node,this.stack.pop();if(t){for(var n=(t.leadingComments?t.leadingComments.length:0)-1;n>=0;--n){var a=t.leadingComments[n];a.range[1]<=e.start.offset&&(r.unshift(a),t.leadingComments.splice(n,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,r}for(n=this.leading.length-1;n>=0;--n){var i;(i=this.leading[n]).start<=e.start.offset&&(r.unshift(i.comment),this.leading.splice(n,1))}return r},e.prototype.visitNode=function(e,t){if(!(e.type===n.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var r=this.findTrailingComments(t),a=this.findLeadingComments(t);a.length>0&&(e.leadingComments=a),r.length>0&&(e.trailingComments=r),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var r="L"===e.type[0]?"Line":"Block",n={type:r,value:e.value};if(e.range&&(n.range=e.range),e.loc&&(n.loc=e.loc),this.comments.push(n),this.attach){var a={comment:{type:r,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(a.comment.loc=e.loc),e.type=r,this.leading.push(a),this.trailing.push(a)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),i=r(5),o=r(6),s=r(7),u=r(8),c=r(13),l=r(14);function f(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=f(r.namespace)+":"+f(r.name);break;case o.JSXSyntax.JSXMemberExpression:var n=e;t=f(n.object)+"."+f(n.property)}return t}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var p=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return n(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",r=!0,n=!1,i=!1,o=!1;!this.scanner.eof()&&r&&!n;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(n=";"===s,t+=s,++this.scanner.index,!n)switch(t.length){case 2:i="#"===s;break;case 3:i&&(r=(o="x"===s)||a.Character.isDecimalDigit(s.charCodeAt(0)),i=i&&!o);break;default:r=(r=r&&!(i&&!a.Character.isDecimalDigit(s.charCodeAt(0))))&&!(o&&!a.Character.isHexDigit(s.charCodeAt(0)))}}if(r&&n&&t.length>2){var u=t.substr(1,t.length-2);i&&u.length>1?t=String.fromCharCode(parseInt(u.substr(1),10)):o&&u.length>2?t=String.fromCharCode(parseInt("0"+u.substr(1),16)):i||o||!l.XHTMLEntities[u]||(t=l.XHTMLEntities[u])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:s=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,r=this.scanner.source[this.scanner.index++],n="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==r;)n+="&"===u?this.scanXHTMLEntity(r):u;return{type:8,value:n,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),s=46===i&&46===o?"...":".";return t=this.scanner.index,this.scanner.index+=s.length,{type:7,value:s,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(a.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(a.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,t+=r,a.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var n={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(n)),n},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new i.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=t;this.expectJSX(":");var n=this.parseJSXIdentifier();t=this.finalize(e,new i.JSXNamespacedName(r,n))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var a=t;this.expectJSX(".");var o=this.parseJSXIdentifier();t=this.finalize(e,new i.JSXMemberExpression(a,o))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var a=this.parseJSXIdentifier();e=this.finalize(t,new i.JSXNamespacedName(n,a))}else e=r;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var r=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,r))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new i.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(e,new i.JSXAttribute(t,r))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new i.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),r=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new i.JSXOpeningElement(t,n,r))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new i.JSXClosingElement(t))}var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),a=this.matchJSX("/");return a&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new i.JSXOpeningElement(r,a,n))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new i.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new i.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),r=this.nextJSXText();if(r.start0))break;s=this.finalize(e.node,new i.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(s),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),r=[],n=null;if(!t.selfClosing){var a=this.parseComplexJSXElement({node:e,opening:t,closing:n,children:r});r=a.children,n=a.closing}return this.finalize(e,new i.JSXElement(t,r,n))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser);t.JSXParser=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&r.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&r.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),a=function(e){this.type=n.JSXSyntax.JSXClosingElement,this.name=e};t.JSXClosingElement=a;var i=function(e,t,r){this.type=n.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=r};t.JSXElement=i;var o=function(){this.type=n.JSXSyntax.JSXEmptyExpression};t.JSXEmptyExpression=o;var s=function(e){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXExpressionContainer=s;var u=function(e){this.type=n.JSXSyntax.JSXIdentifier,this.name=e};t.JSXIdentifier=u;var c=function(e,t){this.type=n.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXMemberExpression=c;var l=function(e,t){this.type=n.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXAttribute=l;var f=function(e,t){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXNamespacedName=f;var p=function(e,t,r){this.type=n.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=r};t.JSXOpeningElement=p;var h=function(e){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXSpreadAttribute=h;var d=function(e,t){this.type=n.JSXSyntax.JSXText,this.value=e,this.raw=t};t.JSXText=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),a=function(e){this.type=n.Syntax.ArrayExpression,this.elements=e};t.ArrayExpression=a;var i=function(e){this.type=n.Syntax.ArrayPattern,this.elements=e};t.ArrayPattern=i;var o=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!1};t.ArrowFunctionExpression=o;var s=function(e,t,r){this.type=n.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=r};t.AssignmentExpression=s;var u=function(e,t){this.type=n.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AssignmentPattern=u;var c=function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!0};t.AsyncArrowFunctionExpression=c;var l=function(e,t,r){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionDeclaration=l;var f=function(e,t,r){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=f;var p=function(e){this.type=n.Syntax.AwaitExpression,this.argument=e};t.AwaitExpression=p;var h=function(e,t,r){var a="||"===e||"&&"===e;this.type=a?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=r};t.BinaryExpression=h;var d=function(e){this.type=n.Syntax.BlockStatement,this.body=e};t.BlockStatement=d;var v=function(e){this.type=n.Syntax.BreakStatement,this.label=e};t.BreakStatement=v;var m=function(e,t){this.type=n.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CallExpression=m;var y=function(e,t){this.type=n.Syntax.CatchClause,this.param=e,this.body=t};t.CatchClause=y;var b=function(e){this.type=n.Syntax.ClassBody,this.body=e};t.ClassBody=b;var g=function(e,t,r){this.type=n.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=r};t.ClassDeclaration=g;var x=function(e,t,r){this.type=n.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=r};t.ClassExpression=x;var k=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ComputedMemberExpression=k;var w=function(e,t,r){this.type=n.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=r};t.ConditionalExpression=w;var E=function(e){this.type=n.Syntax.ContinueStatement,this.label=e};t.ContinueStatement=E;var S=function(){this.type=n.Syntax.DebuggerStatement};t.DebuggerStatement=S;var T=function(e,t){this.type=n.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.Directive=T;var C=function(e,t){this.type=n.Syntax.DoWhileStatement,this.body=e,this.test=t};t.DoWhileStatement=C;var _=function(){this.type=n.Syntax.EmptyStatement};t.EmptyStatement=_;var A=function(e){this.type=n.Syntax.ExportAllDeclaration,this.source=e};t.ExportAllDeclaration=A;var P=function(e){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportDefaultDeclaration=P;var D=function(e,t,r){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=r};t.ExportNamedDeclaration=D;var O=function(e,t){this.type=n.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExportSpecifier=O;var F=function(e){this.type=n.Syntax.ExpressionStatement,this.expression=e};t.ExpressionStatement=F;var N=function(e,t,r){this.type=n.Syntax.ForInStatement,this.left=e,this.right=t,this.body=r,this.each=!1};t.ForInStatement=N;var I=function(e,t,r){this.type=n.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=r};t.ForOfStatement=I;var M=function(e,t,r,a){this.type=n.Syntax.ForStatement,this.init=e,this.test=t,this.update=r,this.body=a};t.ForStatement=M;var j=function(e,t,r,a){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=a,this.expression=!1,this.async=!1};t.FunctionDeclaration=j;var L=function(e,t,r,a){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=a,this.expression=!1,this.async=!1};t.FunctionExpression=L;var R=function(e){this.type=n.Syntax.Identifier,this.name=e};t.Identifier=R;var B=function(e,t,r){this.type=n.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=r};t.IfStatement=B;var z=function(e,t){this.type=n.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDeclaration=z;var U=function(e){this.type=n.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportDefaultSpecifier=U;var q=function(e){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportNamespaceSpecifier=q;var H=function(e,t){this.type=n.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.ImportSpecifier=H;var W=function(e,t){this.type=n.Syntax.LabeledStatement,this.label=e,this.body=t};t.LabeledStatement=W;var V=function(e,t){this.type=n.Syntax.Literal,this.value=e,this.raw=t};t.Literal=V;var X=function(e,t){this.type=n.Syntax.MetaProperty,this.meta=e,this.property=t};t.MetaProperty=X;var J=function(e,t,r,a,i){this.type=n.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=r,this.kind=a,this.static=i};t.MethodDefinition=J;var G=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="module"};t.Module=G;var K=function(e,t){this.type=n.Syntax.NewExpression,this.callee=e,this.arguments=t};t.NewExpression=K;var $=function(e){this.type=n.Syntax.ObjectExpression,this.properties=e};t.ObjectExpression=$;var Y=function(e){this.type=n.Syntax.ObjectPattern,this.properties=e};t.ObjectPattern=Y;var Q=function(e,t,r,a,i,o){this.type=n.Syntax.Property,this.key=t,this.computed=r,this.value=a,this.kind=e,this.method=i,this.shorthand=o};t.Property=Q;var Z=function(e,t,r,a){this.type=n.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:r,flags:a}};t.RegexLiteral=Z;var ee=function(e){this.type=n.Syntax.RestElement,this.argument=e};t.RestElement=ee;var te=function(e){this.type=n.Syntax.ReturnStatement,this.argument=e};t.ReturnStatement=te;var re=function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="script"};t.Script=re;var ne=function(e){this.type=n.Syntax.SequenceExpression,this.expressions=e};t.SequenceExpression=ne;var ae=function(e){this.type=n.Syntax.SpreadElement,this.argument=e};t.SpreadElement=ae;var ie=function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.StaticMemberExpression=ie;var oe=function(){this.type=n.Syntax.Super};t.Super=oe;var se=function(e,t){this.type=n.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchCase=se;var ue=function(e,t){this.type=n.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.SwitchStatement=ue;var ce=function(e,t){this.type=n.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TaggedTemplateExpression=ce;var le=function(e,t){this.type=n.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateElement=le;var fe=function(e,t){this.type=n.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.TemplateLiteral=fe;var pe=function(){this.type=n.Syntax.ThisExpression};t.ThisExpression=pe;var he=function(e){this.type=n.Syntax.ThrowStatement,this.argument=e};t.ThrowStatement=he;var de=function(e,t,r){this.type=n.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=r};t.TryStatement=de;var ve=function(e,t){this.type=n.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UnaryExpression=ve;var me=function(e,t,r){this.type=n.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=r};t.UpdateExpression=me;var ye=function(e,t){this.type=n.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclaration=ye;var be=function(e,t){this.type=n.Syntax.VariableDeclarator,this.id=e,this.init=t};t.VariableDeclarator=be;var ge=function(e,t){this.type=n.Syntax.WhileStatement,this.test=e,this.body=t};t.WhileStatement=ge;var xe=function(e,t){this.type=n.Syntax.WithStatement,this.object=e,this.body=t};t.WithStatement=xe;var ke=function(e,t){this.type=n.Syntax.YieldExpression,this.argument=e,this.delegate=t};t.YieldExpression=ke},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),a=r(10),i=r(11),o=r(7),s=r(12),u=r(2),c=r(13),l=function(){function e(e,t,r){void 0===t&&(t={}),this.config={range:"boolean"===typeof t.range&&t.range,loc:"boolean"===typeof t.loc&&t.loc,source:null,tokens:"boolean"===typeof t.tokens&&t.tokens,comment:"boolean"===typeof t.comment&&t.comment,tolerant:"boolean"===typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=r,this.errorHandler=new a.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new s.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],r=1;r0&&this.delegate)for(var t=0;t>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=n,a},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=n||this.context.firstCoverInitializedNameError,a},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,r,n=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,i.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new o.Literal(t.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new o.Literal("true"===t.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new o.Literal(null,r));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),r=this.getTokenRaw(t),e=this.finalize(n,new o.RegexLiteral(t.regex,r,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(n,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(n,new o.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(r)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=r,n},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,r.params,n,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var n=this.parseFormalParameters(),a=this.parsePropertyMethod(n);return this.context.allowYield=t,this.context.await=r,this.finalize(e,new o.AsyncFunctionExpression(null,n.params,a))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,i.Messages.StrictOctalLiteral);var n=this.getTokenRaw(r);e=this.finalize(t,new o.Literal(r.value,n));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new o.Identifier(r.value));break;case 7:"["===r.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(r);break;default:e=this.throwUnexpectedToken(r)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===u.Syntax.Identifier&&e.name===t||e.type===u.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,r=this.createNode(),n=this.lookahead,a=null,s=null,u=!1,c=!1,l=!1,f=!1;if(3===n.type){var p=n.value;this.nextToken(),u=this.match("["),a=(f=!this.hasLineTerminator&&"async"===p&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","))?this.parseObjectPropertyKey():this.finalize(r,new o.Identifier(p))}else this.match("*")?this.nextToken():(u=this.match("["),a=this.parseObjectPropertyKey());var h=this.qualifiedPropertyName(this.lookahead);if(3===n.type&&!f&&"get"===n.value&&h)t="get",u=this.match("["),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod();else if(3===n.type&&!f&&"set"===n.value&&h)t="set",u=this.match("["),a=this.parseObjectPropertyKey(),s=this.parseSetterMethod();else if(7===n.type&&"*"===n.value&&h)t="init",u=this.match("["),a=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),c=!0;else if(a||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!f)!u&&this.isPropertyKey(a,"__proto__")&&(e.value&&this.tolerateError(i.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),s=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))s=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0;else if(3===n.type)if(p=this.finalize(r,new o.Identifier(n.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var d=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(r,new o.AssignmentPattern(p,d))}else l=!0,s=p;else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new o.Property(t,a,u,s,c,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],r={value:!1};!this.match("}");)t.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),r=t.value,a=t.cooked;return this.finalize(e,new o.TemplateElement({raw:r,cooked:a},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),r=t.value,n=t.cooked;return this.finalize(e,new o.TemplateElement({raw:r,cooked:n},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],r=[],n=this.parseTemplateHead();for(r.push(n);!n.tail;)t.push(this.parseExpression()),n=this.parseTemplateElement(),r.push(n);return this.finalize(e,new o.TemplateLiteral(r,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:e.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case u.Syntax.ArrayExpression:e.type=u.Syntax.ArrayPattern;for(var t=0;t")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[],async:!1};else{var t=this.lookahead,r=[];if(this.match("..."))e=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:"ArrowParameterPlaceHolder",params:[e],async:!1};else{var n=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var a=[];for(this.context.isAssignmentTarget=!1,a.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var i=0;i")||this.expect("=>"),this.context.isBindingElement=!1,i=0;i")&&(e.type===u.Syntax.Identifier&&"yield"===e.name&&(n=!0,e={type:"ArrowParameterPlaceHolder",params:[e],async:!1}),!n)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===u.Syntax.SequenceExpression)for(i=0;i")){for(var u=0;u0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var a=[e,this.lookahead],i=t,s=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[i,r.value,s],c=[n];!((n=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&n<=c[c.length-1];){s=u.pop();var l=u.pop();c.pop(),i=u.pop(),a.pop();var f=this.startNode(a[a.length-1]);u.push(this.finalize(f,new o.BinaryExpression(l,i,s)))}u.push(this.nextToken().value),c.push(n),a.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=u.length-1;t=u[p];for(var h=a.pop();p>1;){var d=a.pop(),v=h&&h.lineStart;f=this.startNode(d,v),l=u[p-1],t=this.finalize(f,new o.BinaryExpression(l,u[p-2],t)),p-=2,h=d}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var a=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,n,a)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case u.Syntax.Identifier:this.validateParam(e,t,t.name);break;case u.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case u.Syntax.ArrayPattern:for(var r=0;r")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=e.async,s=this.reinterpretAsCoverFormalsList(e);if(s){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var c=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var f=this.context.allowYield,p=this.context.await;this.context.allowYield=!0,this.context.await=a;var h=this.startNode(t);this.expect("=>");var d=void 0;if(this.match("{")){var v=this.context.allowIn;this.context.allowIn=!0,d=this.parseFunctionSourceElements(),this.context.allowIn=v}else d=this.isolateCoverGrammar(this.parseAssignmentExpression);var m=d.type!==u.Syntax.BlockStatement;this.context.strict&&s.firstRestricted&&this.throwUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),e=a?this.finalize(h,new o.AsyncArrowFunctionExpression(s.params,d,m)):this.finalize(h,new o.ArrowFunctionExpression(s.params,d,m)),this.context.strict=c,this.context.allowStrictDirective=l,this.context.allowYield=f,this.context.await=p}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(i.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===u.Syntax.Identifier){var y=e;this.scanner.isRestrictedWord(y.name)&&this.tolerateUnexpectedToken(r,i.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(y.name)&&this.tolerateUnexpectedToken(r,i.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var b=(r=this.nextToken()).value,g=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(b,e,g)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(r))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,i.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var r=this.createNode(),n=this.parsePattern([],e);this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(i.Messages.StrictVarName);var a=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),a=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(i.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&n.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),a=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new o.VariableDeclarator(n,a))},e.prototype.parseBindingList=function(e,t){for(var r=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(e,t));return r},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),r=this.nextToken().value;n.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var a=this.parseBindingList(r,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(a,r))},e.prototype.parseBindingRestElement=function(e,t){var r=this.createNode();this.expect("...");var n=this.parsePattern(e,t);return this.finalize(r,new o.RestElement(n))},e.prototype.parseArrayPattern=function(e,t){var r=this.createNode();this.expect("[");for(var n=[];!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else{if(this.match("...")){n.push(this.parseBindingRestElement(e,t));break}n.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new o.ArrayPattern(n))},e.prototype.parsePropertyPattern=function(e,t){var r,n,a=this.createNode(),i=!1,s=!1;if(3===this.lookahead.type){var u=this.lookahead;r=this.parseVariableIdentifier();var c=this.finalize(a,new o.Identifier(u.value));if(this.match("=")){e.push(u),s=!0,this.nextToken();var l=this.parseAssignmentExpression();n=this.finalize(this.startNode(u),new o.AssignmentPattern(c,l))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(e,t)):(e.push(u),s=!0,n=c)}else i=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(e,t);return this.finalize(a,new o.Property("init",r,i,n,!1,s))},e.prototype.parseObjectPattern=function(e,t){var r=this.createNode(),n=[];for(this.expect("{");!this.match("}");)n.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new o.ObjectPattern(n))},e.prototype.parsePattern=function(e,t){var r;return this.match("[")?r=this.parseArrayPattern(e,t):this.match("{")?r=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,i.Messages.LetInLexicalBinding),e.push(this.lookahead),r=this.parseVariableIdentifier(t)),r},e.prototype.parsePatternWithDefault=function(e,t){var r=this.lookahead,n=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var a=this.context.allowYield;this.context.allowYield=!0;var i=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=a,n=this.finalize(this.startNode(r),new o.AssignmentPattern(n,i))}return n},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,i.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,i.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==e)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(t,new o.Identifier(r.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),r=this.parsePattern([],"var");this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(i.Messages.StrictVarName);var n=null;return this.match("=")?(this.nextToken(),n=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type===u.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new o.VariableDeclarator(r,n))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},r=[];for(r.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(t));return r},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(i.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(t,new o.IfStatement(n,e,r))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(r,n))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var n=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=n}return this.finalize(t,new o.WhileStatement(r,e))},e.prototype.parseForStatement=function(){var e,t,r,n=null,a=null,s=null,c=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var f=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=f,1===p.length&&this.matchKeyword("in")){var h=p[0];h.init&&(h.id.type===u.Syntax.ArrayPattern||h.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(i.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new o.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseExpression(),n=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new o.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(n=this.finalize(n,new o.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var d=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(f=this.context.allowIn,this.context.allowIn=!1,p=this.parseBindingList(d,{inFor:!0}),this.context.allowIn=f,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(n=this.finalize(n,new o.VariableDeclaration(p,d)),this.nextToken(),e=n,t=this.parseExpression(),n=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new o.VariableDeclaration(p,d)),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(this.consumeSemicolon(),n=this.finalize(n,new o.VariableDeclaration(p,d)))):(n=this.finalize(n,new o.Identifier(d)),this.nextToken(),e=n,t=this.parseExpression(),n=null)}else{var v=this.lookahead;if(f=this.context.allowIn,this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=f,this.matchKeyword("in"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(i.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseAssignmentExpression(),n=null,c=!1;else{if(this.match(",")){for(var m=[n];this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(v),new o.SequenceExpression(m))}this.expect(";")}}if("undefined"===typeof e&&(this.match(";")||(a=this.parseExpression()),this.expect(";"),this.match(")")||(s=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return"undefined"===typeof e?this.finalize(l,new o.ForStatement(n,a,s,r)):c?this.finalize(l,new o.ForInStatement(e,t,r)):this.finalize(l,new o.ForOfStatement(e,t,r))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();t=r;var n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(i.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(i.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(i.Messages.UnknownLabel,r.name),t=r}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(i.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(i.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(i.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new o.WithStatement(r,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(t,new o.SwitchCase(e,r))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var n=[],a=!1;for(this.expect("{");!this.match("}");){var s=this.parseSwitchCase();null===s.test&&(a&&this.throwError(i.Messages.MultipleDefaultsInSwitch),a=!0),n.push(s)}return this.expect("}"),this.context.inSwitch=r,this.finalize(e,new o.SwitchStatement(t,n))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),r=this.parseExpression();if(r.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var n=r,a="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,a)&&this.throwError(i.Messages.Redeclaration,"Label",n.name),this.context.labelSet[a]=!0;var s=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),s=this.parseClassDeclaration();else if(this.matchKeyword("function")){var c=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(c,i.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(c,i.Messages.GeneratorInLegacyContext),s=l}else s=this.parseStatement();delete this.context.labelSet[a],e=new o.LabeledStatement(n,s)}else this.consumeSemicolon(),e=new o.ExpressionStatement(r);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(i.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],r=this.parsePattern(t),n={},a=0;a0&&this.tolerateError(i.Messages.BadGetterArity);var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,r.params,n,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();1!==r.params.length?this.tolerateError(i.Messages.BadSetterArity):r.params[0]instanceof o.RestElement&&this.tolerateError(i.Messages.BadSetterRestParameter);var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,r.params,n,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var n=this.parsePropertyMethod(r);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,r.params,n,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,r=!1;if(!this.hasLineTerminator){var n=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=n}return this.finalize(e,new o.YieldExpression(t,r))},e.prototype.parseClassElement=function(e){var t=this.lookahead,r=this.createNode(),n="",a=null,s=null,u=!1,c=!1,l=!1,f=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(a=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,u=this.match("["),this.match("*")?this.nextToken():a=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(f=!0,t=this.lookahead,a=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,i.Messages.ConstructorIsAsync))}var h=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&h?(n="get",u=this.match("["),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,s=this.parseGetterMethod()):"set"===t.value&&h&&(n="set",u=this.match("["),a=this.parseObjectPropertyKey(),s=this.parseSetterMethod()):7===t.type&&"*"===t.value&&h&&(n="init",u=this.match("["),a=this.parseObjectPropertyKey(),s=this.parseGeneratorMethod(),c=!0),!n&&a&&this.match("(")&&(n="init",s=f?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0),n||this.throwUnexpectedToken(this.lookahead),"init"===n&&(n="method"),u||(l&&this.isPropertyKey(a,"prototype")&&this.throwUnexpectedToken(t,i.Messages.StaticPrototype),!l&&this.isPropertyKey(a,"constructor")&&(("method"!==n||!c||s&&s.generator)&&this.throwUnexpectedToken(t,i.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,i.Messages.DuplicateConstructor):e.value=!0,n="constructor")),this.finalize(r,new o.MethodDefinition(a,u,s,n,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),a=null;this.matchKeyword("extends")&&(this.nextToken(),a=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=r,this.finalize(t,new o.ClassDeclaration(n,a,i))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(r,n,a))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(i.Messages.InvalidModuleSpecifier);var t=this.nextToken(),r=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,r))},e.prototype.parseImportSpecifier=function(){var e,t,r=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new o.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(i.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var n=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new o.ImportDeclaration(r,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),r=t;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,r))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(i.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(r))}else this.matchKeyword("class")?(r=this.parseClassDeclaration(!0),e=this.finalize(t,new o.ExportDefaultDeclaration(r))):this.matchContextualKeyword("async")?(r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new o.ExportDefaultDeclaration(r))):(this.matchContextualKeyword("from")&&this.throwError(i.Messages.UnexpectedToken,this.lookahead.value),r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new o.ExportDefaultDeclaration(r)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var n=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken();var a=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new o.ExportAllDeclaration(a))}else if(4===this.lookahead.type){switch(r=void 0,this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new o.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction())r=this.parseFunctionDeclaration(),e=this.finalize(t,new o.ExportNamedDeclaration(r,[],null));else{var s=[],u=null,c=!1;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),s.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):c?(n=this.lookahead.value?i.Messages.UnexpectedToken:i.Messages.MissingFromClause,this.throwError(n,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new o.ExportNamedDeclaration(null,s,u))}return e},e}();t.Parser=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var r=new Error(e);try{throw r}catch(n){Object.create&&Object.defineProperty&&(r=Object.create(n),Object.defineProperty(r,"column",{value:t}))}return r},e.prototype.createError=function(e,t,r,n){var a="Line "+t+": "+n,i=this.constructError(a,r);return i.index=e,i.lineNumber=t,i.description=n,i},e.prototype.throwError=function(e,t,r,n){throw this.createError(e,t,r,n)},e.prototype.tolerateError=function(e,t,r,n){var a=this.createError(e,t,r,n);if(!this.tolerant)throw a;this.recordError(a)},e}();t.ErrorHandler=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),a=r(4),i=r(11);function o(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function s(e){return"01234567".indexOf(e)}var u=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=i.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,r,n=[];for(this.trackComment&&(n=[],t=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var i=this.source.charCodeAt(this.index);if(++this.index,a.Character.isLineTerminator(i)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:r};n.push(o)}return 13===i&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n}}return this.trackComment&&(r.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:r},n.push(o)),n},e.prototype.skipMultiLineComment=function(){var e,t,r=[];for(this.trackComment&&(r=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(a.Character.isLineTerminator(n))13===n&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===n){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};r.push(i)}return r}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},i={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},r.push(i)),this.tolerateUnexpectedToken(),r},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(a.Character.isWhiteSpace(r))++this.index;else if(a.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(n)),t=!0}else{if(42!==r)break;this.index+=2,n=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(n))}else if(t&&45===r){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,n=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(n))}else{if(60!==r||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,n=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(n))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var r=this.source.charCodeAt(e+1);r>=56320&&r<=57343&&(t=1024*(t-55296)+r-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,r=0,n=0;n1114111||"}"!==e)&&this.throwUnexpectedToken(),a.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!a.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),r=a.Character.fromCodePoint(t);for(this.index+=r.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&a.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),r=e);!this.eof()&&(t=this.codePointAt(this.index),a.Character.isIdentifierPart(t));)r+=e=a.Character.fromCodePoint(t),this.index+=e.length,92===t&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&a.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),r+=e);return r},e.prototype.octalToDecimal=function(e){var t="0"!==e,r=s(e);return!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,r=8*r+s(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(r=8*r+s(this.source[this.index++]))),{code:r,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,r=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!==(e=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&t+r.length!==this.index){var n=this.index;this.index=t,this.tolerateUnexpectedToken(i.Messages.InvalidEscapedReservedWord),this.index=n}return{type:e,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,r="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(a.Character.isIdentifierStart(t)||a.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var r="",n=!1;for(a.Character.isOctalDigit(e.charCodeAt(0))?(n=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return n||0!==r.length||this.throwUnexpectedToken(),(a.Character.isIdentifierStart(this.source.charCodeAt(this.index))||a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,r){var a=parseInt(t||r,16);return a>1114111&&n.throwUnexpectedToken(i.Messages.InvalidRegExp),a<=65535?String.fromCharCode(a):"\uffff"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"\uffff"));try{RegExp(r)}catch(a){this.throwUnexpectedToken(i.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(o){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];n.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],r=!1,o=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],a.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t+=e;else if(a.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(i.Messages.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else{if("/"===e){o=!0;break}"["===e&&(r=!0)}return o||this.throwUnexpectedToken(i.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!a.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var r=this.index,n=this.scanHexEscape("u");if(null!==n)for(e+=n;r=55296&&e<57343&&a.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27e8",rang:"\u27e9"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),a=r(12),i=r(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var r=this.values[this.paren-1];t="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(n=this.values[this.curly-4])&&!this.beforeFunctionExpression(n);else if("function"===this.values[this.curly-4]){var n;t=!(n=this.values[this.curly-5])||!this.beforeFunctionExpression(n)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),s=function(){function e(e,t){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"===typeof t.tolerant&&t.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"===typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"===typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"===typeof t.loc&&t.loc,this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t=0;--a){var c=n[a];if(c&&c.loc&&l.comparePos(c.loc.end,t.loc.start)<=0)break}return n.splice(a+1,0,t),n}}else{var p=f.get(t);if(p)return p}var h;if(s.check(t))h=Object.keys(t);else{if(!u.check(t))return n;h=i.getFieldNames(t)}n||f.set(t,n=[]),a=0;for(var d=h.length;a>1,m=c[v];if(l.comparePos(m.loc.start,t.loc.start)<=0&&l.comparePos(t.loc.end,m.loc.end)<=0)return void p(t.enclosingNode=m,t,r);if(l.comparePos(m.loc.end,t.loc.start)<=0)n=m,h=v+1;else{if(!(l.comparePos(t.loc.end,m.loc.start)<=0))throw new Error("Comment location overlaps with node location");a=m,d=v}}n&&(t.precedingNode=n),a&&(t.followingNode=a)}function h(e,t){var r=e.length;if(0!==r){for(var n,i=e[0].precedingNode,o=e[0].followingNode,s=o.loc.start,u=r;u>0;--u){n=e[u-1],a.default.strictEqual(n.precedingNode,i),a.default.strictEqual(n.followingNode,o);var c=t.sliceString(n.loc.end,s);if(/\S/.test(c))break;s=n.loc.start}for(;u<=r&&(n=e[u])&&("Line"===n.type||"CommentLine"===n.type)&&n.loc.start.column>o.loc.start.column;)++u;e.forEach((function(e,t){t0){var c=n[u-1];a.default.strictEqual(c.precedingNode===e.precedingNode,c.followingNode===e.followingNode),c.followingNode!==e.followingNode&&h(n,r)}n.push(e)}else if(i)h(n,r),m(i,e);else if(s)h(n,r),v(s,e);else{if(!o)throw new Error("AST contains no nodes at all?");h(n,r),function(e,t){t.leading=!1,t.trailing=!1,d(e,t)}(o,e)}})),h(n,r),e.forEach((function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}))}},t.printComments=function(e,t){var r=e.getValue(),n=t(e),a=o.Node.check(r)&&i.getFieldValue(r,"comments");if(!a||0===a.length)return n;var s=[],u=[n];return e.each((function(e){var n=e.getValue(),a=i.getFieldValue(n,"leading"),l=i.getFieldValue(n,"trailing");a||l&&!o.Statement.check(r)&&"Block"!==n.type&&"CommentBlock"!==n.type?s.push(function(e,t){var r=e.getValue();o.Comment.assert(r);var n=r.loc,a=n&&n.lines,i=[t(e)];if(r.trailing)i.push("\n");else if(a instanceof c.Lines){var s=a.slice(n.end,a.skipSpaces(n.end)||a.lastPos());1===s.length?i.push(s):i.push(new Array(s.length).join("\n"))}else i.push("\n");return c.concat(i)}(e,t)):l&&u.push(function(e,t){var r=e.getValue(e);o.Comment.assert(r);var n=r.loc,a=n&&n.lines,i=[];if(a instanceof c.Lines){var s=a.skipSpaces(n.start,!0)||a.firstPos(),u=a.slice(s,n.start);1===u.length?i.push(u):i.push(new Array(u.length).join("\n"))}return i.push(t(e)),c.concat(i)}(e,t))}),"comments"),s.push.apply(s,u),c.concat(s)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),a=n.__importDefault(r(36)),i=n.__importStar(r(49)),o=n.__importStar(r(50)),s=i.namedTypes,u=i.builtInTypes.array,c=i.builtInTypes.number,l={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((function(e,t){e.forEach((function(e){l[e]=t}))}));var f=function e(t){a.default.ok(this instanceof e),this.stack=[t]},p=f.prototype;function h(e,t){for(var r=e.stack,n=r.length-1;n>=0;n-=2){var a=r[n];if(s.Node.check(a)&&--t<0)return a}return null}function d(e){return s.BinaryExpression.check(e)||s.LogicalExpression.check(e)}function v(e){return!!s.CallExpression.check(e)||(u.check(e)?e.some(v):!!s.Node.check(e)&&i.someField(e,(function(e,t){return v(t)})))}f.from=function(e){if(e instanceof f)return e.copy();if(e instanceof i.NodePath){for(var t=Object.create(f.prototype),r=[e.value],n=void 0;n=e.parentPath;e=n)r.push(e.name,n.value);return t.stack=r.reverse(),t}return new f(e)},p.copy=function(){var e=Object.create(f.prototype);return e.stack=this.stack.slice(0),e},p.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},p.getValue=function(){var e=this.stack;return e[e.length-1]},p.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0},p.getNode=function(e){return void 0===e&&(e=0),h(this,~~e)},p.getParentNode=function(e){return void 0===e&&(e=0),h(this,1+~~e)},p.getRootValue=function(){var e=this.stack;return e.length%2===0?e[1]:e[0]},p.call=function(e){for(var t=this.stack,r=t.length,n=t[r-1],a=arguments.length,i=1;i0){var n=r[t.start.token-1];if(n){var a=this.getRootValue().loc;if(o.comparePos(a.start,n.loc.start)<=0)return n}}return null},p.getNextToken=function(e){var t=(e=e||this.getNode())&&e.loc,r=t&&t.tokens;if(r&&t.end.tokenf)return!0;if(o===f&&"right"===n)return a.default.strictEqual(r.right,t),!0;break;default:return!1}break;case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==n;default:return!0}case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"NullableTypeAnnotation"===r.type;case"Literal":return"MemberExpression"===r.type&&c.check(t.value)&&"object"===n&&r.object===t;case"NumericLiteral":return"MemberExpression"===r.type&&"object"===n&&r.object===t;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(r.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return"callee"===n&&r.callee===t;case"ConditionalExpression":return"test"===n&&r.test===t;case"MemberExpression":return"object"===n&&r.object===t;default:return!1}case"ArrowFunctionExpression":return!(!s.CallExpression.check(r)||"callee"!==n||r.callee!==t)||(!(!s.MemberExpression.check(r)||"object"!==n||r.object!==t)||(!(!s.TSAsExpression||!s.TSAsExpression.check(r)||"expression"!==n||r.expression!==t)||d(r)));case"ObjectExpression":if("ArrowFunctionExpression"===r.type&&"body"===n&&r.body===t)return!0;break;case"TSAsExpression":if("ArrowFunctionExpression"===r.type&&"body"===n&&r.body===t&&"ObjectExpression"===t.expression.type)return!0;break;case"CallExpression":if("declaration"===n&&s.ExportDefaultDeclaration.check(r)&&s.FunctionExpression.check(t.callee))return!0}return"NewExpression"===r.type&&"callee"===n&&r.callee===t?v(t):!(!0===e||this.canBeFirstInStatement()||!this.firstInStatement())},p.canBeFirstInStatement=function(){var e=this.getNode();return!s.FunctionExpression.check(e)&&(!s.ObjectExpression.check(e)&&!s.ClassExpression.check(e))},p.firstInStatement=function(){for(var e,t,r,n,i=this.stack,o=i.length-1;o>=0;o-=2)if(s.Node.check(i[o])&&(r=e,n=t,e=i[o-1],t=i[o]),t&&n){if(s.BlockStatement.check(t)&&"body"===e&&0===r)return a.default.strictEqual(t.body[0],n),!0;if(s.ExpressionStatement.check(t)&&"expression"===r)return a.default.strictEqual(t.expression,n),!0;if(s.AssignmentExpression.check(t)&&"left"===r)return a.default.strictEqual(t.left,n),!0;if(s.ArrowFunctionExpression.check(t)&&"body"===r)return a.default.strictEqual(t.body,n),!0;if(s.SequenceExpression.check(t)&&"expressions"===e&&0===r)a.default.strictEqual(t.expressions[0],n);else if(s.CallExpression.check(t)&&"callee"===r)a.default.strictEqual(t.callee,n);else if(s.MemberExpression.check(t)&&"object"===r)a.default.strictEqual(t.object,n);else if(s.ConditionalExpression.check(t)&&"test"===r)a.default.strictEqual(t.test,n);else if(d(t)&&"left"===r)a.default.strictEqual(t.left,n);else{if(!s.UnaryExpression.check(t)||t.prefix||"argument"!==r)return!1;a.default.strictEqual(t.argument,n)}}return!0},t.default=f},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function a(e){return"object"===typeof e&&e}e.exports=function e(t,r){return"function"===typeof r?r(t):a(r)&&a(t)?Object.keys(r).every((function(a){return n(t,a)&&e(t[a],r[a])})):t===r}},function(e,t,r){"use strict";var n=r(77),a=r(109),i=r(110),o=r(61),s=o.types.astNodesAreEquivalent,u=o.types.builders,c=o.types.namedTypes,l=o.types.namedTypes.VariableDeclarator,f={findVariableDeclarators:function(e){var t=e?{id:{name:e}}:null;return this.find(l,t)}},p={requiresModule:function(e){e&&!Array.isArray(e)&&(e=[e]);var t=u.identifier("require");return function(r){var n=r.value;return!!(l.check(n)&&c.CallExpression.check(n.init)&&s(n.init.callee,t))&&(!e||e.some((function(e){return s(n.init.arguments[0],u.literal(e))})))}}},h={renameTo:function(e){return this.forEach((function(t){var r=t.value.id.name,a=t.scope,i=a.path;n.fromPaths([i]).find(c.Identifier,{name:r}).filter((function(e){var t=e.parent.node;return!(c.MemberExpression.check(t)&&t.property===e.node&&!t.computed)&&(!(c.Property.check(t)&&t.key===e.node&&!t.computed)&&(!(c.MethodDefinition.check(t)&&t.key===e.node&&!t.computed)&&(!(c.ClassProperty.check(t)&&t.key===e.node&&!t.computed)&&!(c.JSXAttribute.check(t)&&t.name===e.node&&!t.computed))))})).forEach((function(t){for(var n=t.scope;n&&n!==a;){if(n.declares(r))return;n=n.parent}if(n){var i=t.parent.node;c.Property.check(i)&&i.shorthand&&!i.method&&t.parent.get("shorthand").replace(!1),t.get("name").replace(e)}}))}))}};t.register=i((function(){a.register(),n.registerMethods(f),n.registerMethods(h,l)})),t.filters=p},function(e,t){},function(e,t,r){"use strict";e.exports={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:["asyncGenerators","bigInt","classPrivateMethods","classPrivateProperties","classProperties","decorators-legacy","doExpressions","dynamicImport","exportDefaultFrom","exportExtensions","exportNamespaceFrom","functionBind","functionSent","importMeta","nullishCoalescingOperator","numericSeparator","objectRestSpread","optionalCatchBinding","optionalChaining",["pipelineOperator",{proposal:"minimal"}],"throwExpressions","typescript"]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=void 0;try{e=r(413)}finally{return e}},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.pxToNum=function(e){return parseInt(e.slice(0,-2),10)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=n?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r(0)),a=r(426);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(e){return(o="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})(e)}function s(e,t){for(var r=0;r0?r.props.visiblePercent:1,r.isPercent=void 0===r.props.isPercent||r.props.isPercent,r}var r,i,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,(i=[{key:"scrollToTop",value:function(){(0,a.ScrollToAnimate)(this.props.offsetTop,this.props.step,this.state.current)}},{key:"componentDidMount",value:function(){var e=this;window&&(window.onscroll=function(){e.setState({percent:(0,a.getScrollPercent)(e.props.offsetTop),current:(0,a.getScrollTop)()})})}},{key:"render",value:function(){var e=this,t=this.props,r=t.animate,a=t.children,i=this.state.percent>=this.visiblePercent,o="c-animate-hide",s="c-animate-show";return"fade"!==r&&"rotate"!==r?"none"!==r&&(o="fade-hide",s="fade-show"):(o=r+"-hide",s=r+"-show"),console.log("asdasd",this.props,this.props.children),n.default.createElement("div",{onClick:function(){return e.scrollToTop()},className:"base-back-to-up "+(i?s:o)},n.default.createElement("div",{className:"back-to-up-default",style:this.mainStyle},a?Array.isArray(a)?a.map(child,(function(e){return n.default.createElement("div",{key:e},child)})):a&&n.default.createElement("div",null,a):n.default.createElement("div",{className:"back-to-up-default-text"},n.default.createElement("span",null,"UP")),n.default.createElement("div",{className:"to-up-percent"+(this.isPercent?"":" percent-hide"),style:this.percentStyle},this.state.percent+"%")))}}])&&s(r.prototype,i),o&&s(r,o),t}(n.Component);t.default=f},,,,,,,,,,,function(e,t,r){"use strict";var n,a=r(0),i=(n=a)&&"object"===typeof n&&"default"in n?n.default:n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof r&&"function"!==typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!==typeof n)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function l(){u=e(c.map((function(e){return e.props}))),f.canUseDOM?t(u):r&&(u=r(u))}var f=function(e){var t,r;function a(){return e.apply(this,arguments)||this}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.peek=function(){return u},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,c=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){c.push(this),l()},o.componentDidUpdate=function(){l()},o.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},o.render=function(){return i.createElement(n,this.props)},a}(a.PureComponent);return o(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),o(f,"canUseDOM",s),f}}},function(e,t){var r="undefined"!==typeof Element,n="function"===typeof Map,a="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,t){try{return function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var s,u,c,l;if(Array.isArray(t)){if((s=t.length)!=o.length)return!1;for(u=s;0!==u--;)if(!e(t[u],o[u]))return!1;return!0}if(n&&t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!o.has(u.value[0]))return!1;for(l=t.entries();!(u=l.next()).done;)if(!e(u.value[1],o.get(u.value[0])))return!1;return!0}if(a&&t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((s=t.length)!=o.length)return!1;for(u=s;0!==u--;)if(t[u]!==o[u])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(o,c[u]))return!1;if(r&&t instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!t.$$typeof)&&!e(t[c[u]],o[c[u]]))return!1;return!0}return t!==t&&o!==o}(e,t)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}}},function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),a=r.n(n),i=r(38);function o(e){var t=[];return a.a.Children.forEach(e,(function(e){void 0!==e&&null!==e&&(Array.isArray(e)?t=t.concat(o(e)):Object(i.isFragment)(e)&&e.props?t=t.concat(o(e.props.children)):t.push(e))})),t}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(296))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(310))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;un&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*r&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(B=(q=q.replace(" ",":")).length),0D.length&&D.push(e)}function N(e,t,r){return null==e?0:function e(t,r,n,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return n(a,t,""===r?"."+I(t,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c