ost-ui
Version:
ost ui for react
11 lines • 897 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1:function(e,t,r){e.exports=r(344)()},10:function(e,t,r){var n;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},135:function(e,t,r){"use strict";var n=r(0),i=r(10),o=r.n(i);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){return null};function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(e){var r,i,o,a,s,u,l,c,f,p,d,h,m,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=v(this,y(t).call(this,e))).scrollHanders=(i=-1,o=0,a=0,s=!1,u=!1,l=function(e,t){e.transform=t,e.webkitTransform=t},c=function(e,t){e.transition=t,e.webkitTransition=t},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.3;i!==t&&(i=t,n&&!r.props.noAnimate&&c(r.contentRef.style,"cubic-bezier(0,0,0.2,1.15) ".concat(n,"s")),l(r.contentRef.style,"translate3d(0,".concat(-t,"px,0)")),setTimeout((function(){r.scrollingComplete(),r.contentRef&&c(r.contentRef.style,"")}),1e3*+n))},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=0,n=0,i=0,o={record:function(o){var a=+new Date;i=(o-n)/(a-r),a-r>=e&&(i=a-r<=t?i:0,n=o,r=a)},getVelocity:function(e){return e!==n&&o.record(e),i}};return o}(),d=function(){u=!1;var e=i,t=(r.props.children.length-1)*r.itemHeight,n=.3,o=4*p.getVelocity(e);o&&(e=40*o+e,n=.1*Math.abs(o)),e%r.itemHeight!=0&&(e=Math.round(e/r.itemHeight)*r.itemHeight),e<0?e=0:e>t&&(e=t),f(0,e,n<.3?.3:n),r.onScrollChange()},h=function(e){s||(u=!0,a=e,o=i)},m=function(e){!s&&u&&(i=o-e+a,p.record(i),r.onScrollChange(),l(r.contentRef.style,"translate3d(0,".concat(-i,"px,0)")))},{touchstart:function(e){return h(e.touches[0].pageY)},mousedown:function(e){return h(e.pageY)},touchmove:function(e){e.preventDefault(),m(e.touches[0].pageY)},mousemove:function(e){e.preventDefault(),m(e.pageY)},touchend:function(){return d()},touchcancel:function(){return d()},mouseup:function(){return d()},getValue:function(){return i},scrollTo:f,setDisabled:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s=e}}),r.scrollTo=function(e){r.scrollHanders.scrollTo(0,e)},r.scrollToWithoutAnimation=function(e){r.scrollHanders.scrollTo(0,e,0)},r.fireValueChange=function(e){e!==r.state.selectedValue&&("selectedValue"in r.props||r.setState({selectedValue:e}),r.props.onValueChange&&r.props.onValueChange(e))},r.onScrollChange=function(){var e=r.scrollHanders.getValue();if(e>=0){var t=n.Children.toArray(r.props.children),i=r.props.computeChildIndex(e,r.itemHeight,t.length);if(r.scrollValue!==i){r.scrollValue=i;var o=t[i];o&&r.props.onScrollChange?r.props.onScrollChange(o.props.value):!o&&console.warn&&console.warn("child not found",t,i)}}},r.scrollingComplete=function(){var e=r.scrollHanders.getValue();e>=0&&r.props.doScrollingComplete(e,r.itemHeight,r.fireValueChange)};var b=r.props,E=b.selectedValue,x=b.defaultSelectedValue;if(void 0!==E)g=E;else if(void 0!==x)g=x;else{var A=n.Children.toArray(r.props.children);g=A&&A[0]&&A[0].props.value}return r.state={selectedValue:g},r}var r,i,a;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&&g(e,t)}(t,e),r=t,(i=[{key:"componentDidMount",value:function(){var e=this,t=this.contentRef,r=this.indicatorRef,n=this.maskRef,i=this.rootRef,o=i.getBoundingClientRect().height,a=this.itemHeight=r.getBoundingClientRect().height,s=Math.floor(o/a);s%2==0&&s--,s--,s/=2,t.style.padding="".concat(a*s,"px 0"),r.style.top="".concat(a*s,"px"),n.style.backgroundSize="100% ".concat(a*s,"px"),this.scrollHanders.setDisabled(this.props.disabled),this.props.select(this.state.selectedValue,this.itemHeight,this.scrollTo);var u=this.passiveSupported(),l=!!u&&{passive:!1},c=!!u&&{passive:!0};Object.keys(this.scrollHanders).forEach((function(t){if(0===t.indexOf("touch")||0===t.indexOf("mouse")){var r=t.indexOf("move")>=0?l:c;i.addEventListener(t,e.scrollHanders[t],r)}}))}},{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this.scrollHanders).forEach((function(t){0!==t.indexOf("touch")&&0!==t.indexOf("mouse")||e.rootRef.removeEventListener(t,e.scrollHanders[t])}))}},{key:"passiveSupported",value:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}},{key:"componentWillReceiveProps",value:function(e){var t=this;"selectedValue"in e&&this.state.selectedValue!==e.selectedValue&&this.setState({selectedValue:e.selectedValue},(function(){t.props.select(e.selectedValue,t.itemHeight,e.noAnimate?t.scrollToWithoutAnimation:t.scrollTo)})),this.scrollHanders.setDisabled(e.disabled)}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.selectedValue!==t.selectedValue||this.props.children!==e.children}},{key:"componentDidUpdate",value:function(){this.props.select(this.state.selectedValue,this.itemHeight,this.scrollToWithoutAnimation)}},{key:"getValue",value:function(){if("selectedValue"in this.props)return this.props.selectedValue;var e=n.Children.toArray(this.props.children);return e&&e[0]&&e[0].props.value}},{key:"render",value:function(){var e,t=this,r=this.props,i=r.prefixCls,a=r.itemStyle,s=r.indicatorStyle,u=r.indicatorClassName,l=void 0===u?"":u,c=r.children,f=this.state.selectedValue,p="".concat(i,"-item"),m="".concat(p," ").concat(i,"-item-selected"),v=function(e){var t=e.props,r=t.className,i=void 0===r?"":r,o=t.style,s=t.value;return n.createElement("div",{style:h({},a,o),className:"".concat(f===s?m:p," ").concat(i),key:s},e.children||e.props.children)},y=n.Children?n.Children.map(c,v):[].concat(c).map(v),g=(d(e={},r.className,!!r.className),d(e,i,!0),e);return n.createElement("div",{className:o()(g),ref:function(e){return t.rootRef=e},style:this.props.style},n.createElement("div",{className:"".concat(i,"-mask"),ref:function(e){return t.maskRef=e}}),n.createElement("div",{className:"".concat(i,"-indicator ").concat(l),ref:function(e){return t.indicatorRef=e},style:s}),n.createElement("div",{className:"".concat(i,"-content"),ref:function(e){return t.contentRef=e}},y))}}])&&m(r.prototype,i),a&&m(r,a),t}(n.Component);b.defaultProps={prefixCls:"rmc-picker"};var E,x,A=(E=b,(x=function(e){function t(){var e;return s(this,t),(e=l(this,c(t).apply(this,arguments))).select=function(t,r,i){for(var o=n.Children.toArray(e.props.children),a=0,s=o.length;a<s;a++)if(o[a].props.value===t)return void e.selectByIndex(a,r,i);e.selectByIndex(0,r,i)},e.doScrollingComplete=function(t,r,i){var o=n.Children.toArray(e.props.children),a=e.computeChildIndex(t,r,o.length),s=o[a];s?i(s.props.value):console.warn&&console.warn("child not found",o,a)},e}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&&f(e,t)}(t,e),r=t,(i=[{key:"selectByIndex",value:function(e,t,r){e<0||e>=n.Children.count(this.props.children)||!t||r(e*t)}},{key:"computeChildIndex",value:function(e,t,r){var n=Math.round(e/t);return Math.min(n,r-1)}},{key:"render",value:function(){return n.createElement(E,a({},this.props,{doScrollingComplete:this.doScrollingComplete,computeChildIndex:this.computeChildIndex,select:this.select}))}}])&&u(r.prototype,i),o&&u(r,o),t}(n.Component)).Item=p,x);r.d(t,"a",(function(){return A}))},162:function(e,t,r){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==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(e){return!1}}()?Object.assign:function(e,t){for(var r,s,u=a(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(u[c]=r[c]);if(n){s=n(r);for(var f=0;f<s.length;f++)o.call(r,s[f])&&(u[s[f]]=r[s[f]])}}return u}},17:function(e,t,r){"use strict";t.__esModule=!0;var n,i=r(173),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},174:function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},177:function(e,t,r){var n=r(346);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var r,n=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(r=i.exec(e));){var f=r[0],p=r[1],d=r.index;if(s+=e.slice(a,d),a=d+f.length,p)s+=p[1];else{var h=e[a],m=r[2],v=r[3],y=r[4],g=r[5],b=r[6],E=r[7];s&&(n.push(s),s="");var x=null!=m&&null!=h&&h!==m,A="+"===b||"*"===b,S="?"===b||"*"===b,_=r[2]||c,w=y||g;n.push({name:v||o++,prefix:m||"",delimiter:_,optional:S,repeat:A,partial:x,asterisk:!!E,pattern:w?l(w):E?".*":"[^"+u(_)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&n.push(s),n}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var r=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(r[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!=typeof c){var f,p=s[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(n(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=u(p[d]),!r[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(p),!r[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,r){n(t)||(r=t||r,t=[]);for(var i=(r=r||{}).strict,o=!1!==r.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=u(l);else{var p=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+p+d+")*"),a+=d=l.optional?l.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var h=u(r.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,f(r)),t)}function d(e,t,r){return n(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):n(e)?function(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(d(e[i],t,r).source);return c(new RegExp("(?:"+n.join("|")+")",f(r)),t)}(e,t,r):function(e,t,r){return p(o(e,r),t,r)}(e,t,r)}},186: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;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),i=o(r(10));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=(0,o(r(350)).default)((function(e){var t=e.prefixCls,r=e.className,o=e.rootNativeProps,s=e.children,u=e.style,l=e.getValue(),c=n.Children.map(s,(function(t,r){return n.cloneElement(t,{selectedValue:l[r],onValueChange:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.onValueChange.apply(e,[r].concat(n))},onScrollChange:e.onScrollChange&&function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.onScrollChange.apply(e,[r].concat(n))}})}));return n.createElement("div",a({},o,{style:u,className:(0,i.default)(r,t)}),c)}));t.default=s},187: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;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(0)),i=s(r(354)),o=s(r(353)),a=s(r(356));function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,o.default)((function(e,t,r){var o=r.getContent,s=r.hide,u=r.onDismiss,l=r.onOk;if(!t)return null;var c=e.prefixCls;return n.createElement(i.default,{prefixCls:"".concat(c),className:e.className||"",visible:!0,closable:!1,transitionName:e.transitionName||e.popupTransitionName,maskTransitionName:e.maskTransitionName,onClose:s,style:e.style},n.createElement("div",null,n.createElement("div",{className:"".concat(c,"-header")},n.createElement(a.default,{activeClassName:"".concat(c,"-item-active")},n.createElement("div",{className:"".concat(c,"-item ").concat(c,"-header-left"),onClick:u},e.dismissText)),n.createElement("div",{className:"".concat(c,"-item ").concat(c,"-title")},e.title),n.createElement(a.default,{activeClassName:"".concat(c,"-item-active")},n.createElement("div",{className:"".concat(c,"-item ").concat(c,"-header-right"),onClick:l},e.okText))),o()))}),{prefixCls:"rmc-picker-popup",WrapComponent:"span",triggerType:"onClick",pickerValueProp:"selectedValue",pickerValueChangeProp:"onValueChange"});t.default=u},188:function(e,t,r){"use strict";t.__esModule=!0;var n,i=r(173),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(e,t,r){return t in e?(0,o.default)(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},189:function(e,t,r){try{var n=r(174)}catch(e){n=r(174)}var i=/\s+/,o=Object.prototype.toString;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~n(t,e)||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),r=n(t,e);return~r&&t.splice(r,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),r=0;r<t.length;r++)e.test(t[r])&&this.remove(t[r]);return this},a.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},a.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(i);return""===e[0]&&e.shift(),e},a.prototype.has=a.prototype.contains=function(e){return this.list?this.list.contains(e):!!~n(this.array(),e)}},191:function(e,t,r){var n;n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var r=t.slice(1),n=e[t[0]];return function(e,t,i){n.apply(this,[e,t,i].concat(r))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.buildExternalHelpers=t.availablePresets=t.availablePlugins=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i="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};t.transform=c,t.transformFromAst=function(e,t,r){return o.transformFromAst(e,t,l(r))},t.registerPlugin=d,t.registerPlugins=h,t.registerPreset=m,t.registerPresets=v,t.transformScriptTags=y,t.disableScriptTags=function(){window.removeEventListener("DOMContentLoaded",y)};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(290)),a=r(629),s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function u(e,t){return s(t)&&"string"==typeof t[0]?e.hasOwnProperty(t[0])?[e[t[0]]].concat(t.slice(1)):void 0:"string"==typeof t?e[t]:t}function l(e){var t=(e.presets||[]).map((function(e){var t=u(p,e);if(!t)throw new Error('Invalid preset specified in Babel options: "'+e+'"');return(s(t)&&"object"===i(t[0])&&t[0].hasOwnProperty("buildPreset")&&(t[0]=n({},t[0],{buildPreset:t[0].buildPreset})),t)})),r=(e.plugins||[]).map((function(e){var t=u(f,e);if(!t)throw new Error('Invalid plugin specified in Babel options: "'+e+'"');return t}));return n({babelrc:!1},e,{presets:t,plugins:r})}function c(e,t){return o.transform(e,l(t))}var f=t.availablePlugins={},p=t.availablePresets={};function d(e,t){f.hasOwnProperty(e)&&console.warn('A plugin named "'+e+'" is already registered, it will be overridden'),f[e]=t}function h(e){Object.keys(e).forEach((function(t){return d(t,e[t])}))}function m(e,t){p.hasOwnProperty(e)&&console.warn('A preset named "'+e+'" is already registered, it will be overridden'),p[e]=t}function v(e){Object.keys(e).forEach((function(t){return m(t,e[t])}))}function y(e){(0,a.runScripts)(c,e)}t.buildExternalHelpers=o.buildExternalHelpers,h({"check-es2015-constants":r(66),"external-helpers":r(322),"inline-replace-variables":r(323),"syntax-async-functions":r(67),"syntax-async-generators":r(195),"syntax-class-constructor-call":r(196),"syntax-class-properties":r(197),"syntax-decorators":r(125),"syntax-do-expressions":r(198),"syntax-exponentiation-operator":r(199),"syntax-export-extensions":r(200),"syntax-flow":r(126),"syntax-function-bind":r(201),"syntax-function-sent":r(325),"syntax-jsx":r(127),"syntax-object-rest-spread":r(202),"syntax-trailing-function-commas":r(128),"transform-async-functions":r(326),"transform-async-to-generator":r(129),"transform-async-to-module-method":r(328),"transform-class-constructor-call":r(203),"transform-class-properties":r(204),"transform-decorators":r(205),"transform-decorators-legacy":r(329).default,"transform-do-expressions":r(206),"transform-es2015-arrow-functions":r(68),"transform-es2015-block-scoped-functions":r(69),"transform-es2015-block-scoping":r(70),"transform-es2015-classes":r(71),"transform-es2015-computed-properties":r(72),"transform-es2015-destructuring":r(73),"transform-es2015-duplicate-keys":r(130),"transform-es2015-for-of":r(74),"transform-es2015-function-name":r(75),"transform-es2015-instanceof":r(332),"transform-es2015-literals":r(76),"transform-es2015-modules-amd":r(131),"transform-es2015-modules-commonjs":r(77),"transform-es2015-modules-systemjs":r(208),"transform-es2015-modules-umd":r(209),"transform-es2015-object-super":r(78),"transform-es2015-parameters":r(79),"transform-es2015-shorthand-properties":r(80),"transform-es2015-spread":r(81),"transform-es2015-sticky-regex":r(82),"transform-es2015-template-literals":r(83),"transform-es2015-typeof-symbol":r(84),"transform-es2015-unicode-regex":r(85),"transform-es3-member-expression-literals":r(336),"transform-es3-property-literals":r(337),"transform-es5-property-mutators":r(338),"transform-eval":r(339),"transform-exponentiation-operator":r(132),"transform-export-extensions":r(210),"transform-flow-comments":r(340),"transform-flow-strip-types":r(211),"transform-function-bind":r(212),"transform-jscript":r(341),"transform-object-assign":r(342),"transform-object-rest-spread":r(213),"transform-object-set-prototype-of-to-assign":r(343),"transform-proto-to-assign":r(344),"transform-react-constant-elements":r(345),"transform-react-display-name":r(214),"transform-react-inline-elements":r(346),"transform-react-jsx":r(215),"transform-react-jsx-compat":r(347),"transform-react-jsx-self":r(349),"transform-react-jsx-source":r(350),"transform-regenerator":r(86),"transform-runtime":r(353),"transform-strict-mode":r(216),"undeclared-variables-check":r(354)}),v({es2015:r(217),es2016:r(218),es2017:r(219),latest:r(356),react:r(357),"stage-0":r(358),"stage-1":r(220),"stage-2":r(221),"stage-3":r(222),"es2015-no-commonjs":{plugins:[r(83),r(76),r(75),r(68),r(69),r(71),r(78),r(80),r(72),r(74),r(82),r(85),r(66),r(81),r(79),r(73),r(70),r(84),[r(86),{async:!1,asyncGenerators:!1}]]},"es2015-loose":{plugins:[[r(83),{loose:!0}],r(76),r(75),r(68),r(69),[r(71),{loose:!0}],r(78),r(80),r(130),[r(72),{loose:!0}],[r(74),{loose:!0}],r(82),r(85),r(66),[r(81),{loose:!0}],r(79),[r(73),{loose:!0}],r(70),r(84),[r(77),{loose:!0}],[r(86),{async:!1,asyncGenerators:!1}]]}}),t.version="6.26.0","undefined"!=typeof window&&window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){return y()}),!1)},function(e,t,r){"use strict";t.__esModule=!0,t.createTypeAnnotationBasedOnTypeof=t.removeTypeDuplicates=t.createUnionTypeAnnotation=t.valueToNode=t.toBlock=t.toExpression=t.toStatement=t.toBindingIdentifierName=t.toIdentifier=t.toKeyAlias=t.toSequenceExpression=t.toComputedKey=t.isNodesEquivalent=t.isImmutable=t.isScope=t.isSpecifierDefault=t.isVar=t.isBlockScoped=t.isLet=t.isValidIdentifier=t.isReferenced=t.isBinding=t.getOuterBindingIdentifiers=t.getBindingIdentifiers=t.TYPES=t.react=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.NODE_FIELDS=t.ALIAS_KEYS=t.VISITOR_KEYS=t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=void 0;var n=y(r(360)),i=y(r(2)),o=y(r(14)),a=y(r(35)),s=r(135);Object.defineProperty(t,"STATEMENT_OR_BLOCK_KEYS",{enumerable:!0,get:function(){return s.STATEMENT_OR_BLOCK_KEYS}}),Object.defineProperty(t,"FLATTENABLE_KEYS",{enumerable:!0,get:function(){return s.FLATTENABLE_KEYS}}),Object.defineProperty(t,"FOR_INIT_KEYS",{enumerable:!0,get:function(){return s.FOR_INIT_KEYS}}),Object.defineProperty(t,"COMMENT_KEYS",{enumerable:!0,get:function(){return s.COMMENT_KEYS}}),Object.defineProperty(t,"LOGICAL_OPERATORS",{enumerable:!0,get:function(){return s.LOGICAL_OPERATORS}}),Object.defineProperty(t,"UPDATE_OPERATORS",{enumerable:!0,get:function(){return s.UPDATE_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return s.BOOLEAN_NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"EQUALITY_BINARY_OPERATORS",{enumerable:!0,get:function(){return s.EQUALITY_BINARY_OPERATORS}}),Object.defineProperty(t,"COMPARISON_BINARY_OPERATORS",{enumerable:!0,get:function(){return s.COMPARISON_BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_BINARY_OPERATORS",{enumerable:!0,get:function(){return s.BOOLEAN_BINARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_BINARY_OPERATORS",{enumerable:!0,get:function(){return s.NUMBER_BINARY_OPERATORS}}),Object.defineProperty(t,"BINARY_OPERATORS",{enumerable:!0,get:function(){return s.BINARY_OPERATORS}}),Object.defineProperty(t,"BOOLEAN_UNARY_OPERATORS",{enumerable:!0,get:function(){return s.BOOLEAN_UNARY_OPERATORS}}),Object.defineProperty(t,"NUMBER_UNARY_OPERATORS",{enumerable:!0,get:function(){return s.NUMBER_UNARY_OPERATORS}}),Object.defineProperty(t,"STRING_UNARY_OPERATORS",{enumerable:!0,get:function(){return s.STRING_UNARY_OPERATORS}}),Object.defineProperty(t,"UNARY_OPERATORS",{enumerable:!0,get:function(){return s.UNARY_OPERATORS}}),Object.defineProperty(t,"INHERIT_KEYS",{enumerable:!0,get:function(){return s.INHERIT_KEYS}}),Object.defineProperty(t,"BLOCK_SCOPED_SYMBOL",{enumerable:!0,get:function(){return s.BLOCK_SCOPED_SYMBOL}}),Object.defineProperty(t,"NOT_LOCAL_BINDING",{enumerable:!0,get:function(){return s.NOT_LOCAL_BINDING}}),t.is=function(e,t,r){return!!t&&(!!x(t.type,e)&&(void 0===r||g.shallowEqual(t,r)))},t.isType=x,t.validate=_,t.shallowEqual=function(e,t){var r=(0,o.default)(t),n=Array.isArray(r),a=0;for(r=n?r:(0,i.default)(r);;){var s;if(n){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var u=s;if(e[u]!==t[u])return!1}return!0},t.appendToMemberExpression=function(e,t,r){return e.object=g.memberExpression(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e},t.prependToMemberExpression=function(e,t){return e.object=g.memberExpression(t,e.object),e},t.ensureBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return e[t]=g.toBlock(e[t],e)},t.clone=w,t.cloneWithoutLoc=function(e){var t=w(e);return delete t.loc,t},t.cloneDeep=function(e){if(!e)return e;var t={};for(var r in e)if("_"!==r[0]){var n=e[r];n&&(n.type?n=g.cloneDeep(n):Array.isArray(n)&&(n=n.map(g.cloneDeep))),t[r]=n}return t},t.buildMatchMemberExpression=function(e,t){var r=e.split(".");return function(e){if(!g.isMemberExpression(e))return!1;for(var n=[e],i=0;n.length;){var o=n.shift();if(t&&i===r.length)return!0;if(g.isIdentifier(o)){if(r[i]!==o.name)return!1}else{if(!g.isStringLiteral(o)){if(g.isMemberExpression(o)){if(o.computed&&!g.isStringLiteral(o.property))return!1;n.push(o.object),n.push(o.property);continue}return!1}if(r[i]!==o.value)return!1}if(++i>r.length)return!1}return!0}},t.removeComments=function(e){var t=g.COMMENT_KEYS,r=Array.isArray(t),n=0;for(t=r?t:(0,i.default)(t);;){var o;if(r){if(n>=t.length)break;o=t[n++]}else{if((n=t.next()).done)break;o=n.value}delete e[o]}return e},t.inheritsComments=function(e,t){return C(e,t),D(e,t),P(e,t),e},t.inheritTrailingComments=C,t.inheritLeadingComments=D,t.inheritInnerComments=P,t.inherits=function(e,t){if(!e||!t)return e;var r=g.INHERIT_KEYS.optional,n=Array.isArray(r),o=0;for(r=n?r:(0,i.default)(r);;){var a;if(n){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;null==e[s]&&(e[s]=t[s])}for(var u in t)"_"===u[0]&&(e[u]=t[u]);var l=g.INHERIT_KEYS.force,c=Array.isArray(l),f=0;for(l=c?l:(0,i.default)(l);;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;e[d]=t[d]}return g.inheritsComments(e,t),e},t.assertNode=function(e){if(!T(e))throw new TypeError("Not a valid node "+(e&&e.type))},t.isNode=T,t.traverseFast=O,t.removeProperties=B,t.removePropertiesDeep=function(e,t){return O(e,B,t),e};var u=r(226);Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return u.getBindingIdentifiers}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return u.getOuterBindingIdentifiers}});var l=r(395);Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return l.isBinding}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return l.isReferenced}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return l.isValidIdentifier}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return l.isLet}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return l.isBlockScoped}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return l.isVar}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return l.isSpecifierDefault}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return l.isScope}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return l.isImmutable}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return l.isNodesEquivalent}});var c=r(385);Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return c.toComputedKey}}),Object.defineProperty(t,"toSequenceExpression",{enumerable:!0,get:function(){return c.toSequenceExpression}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return c.toKeyAlias}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return c.toIdentifier}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return c.toBindingIdentifierName}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return c.toStatement}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return c.toExpression}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return c.toBlock}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return c.valueToNode}});var f=r(393);Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return f.createUnionTypeAnnotation}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return f.removeTypeDuplicates}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return f.createTypeAnnotationBasedOnTypeof}});var p=y(r(624)),d=y(r(109)),h=y(r(600));r(390);var m=r(26),v=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(394));function y(e){return e&&e.__esModule?e:{default:e}}var g=t;function b(e){var t=g["is"+e];t||(t=g["is"+e]=function(t,r){return g.is(e,t,r)}),g["assert"+e]=function(r,n){if(!t(r,n=n||{}))throw new Error("Expected type "+(0,a.default)(e)+" with option "+(0,a.default)(n))}}for(var E in t.VISITOR_KEYS=m.VISITOR_KEYS,t.ALIAS_KEYS=m.ALIAS_KEYS,t.NODE_FIELDS=m.NODE_FIELDS,t.BUILDER_KEYS=m.BUILDER_KEYS,t.DEPRECATED_KEYS=m.DEPRECATED_KEYS,t.react=v,g.VISITOR_KEYS)b(E);function x(e,t){if(e===t)return!0;if(g.ALIAS_KEYS[t])return!1;var r=g.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;var n=r,o=Array.isArray(n),a=0;for(n=o?n:(0,i.default)(n);;){var s;if(o){if(a>=n.length)break;s=n[a++]}else{if((a=n.next()).done)break;s=a.value}if(e===s)return!0}}return!1}g.FLIPPED_ALIAS_KEYS={},(0,o.default)(g.ALIAS_KEYS).forEach((function(e){g.ALIAS_KEYS[e].forEach((function(t){(g.FLIPPED_ALIAS_KEYS[t]=g.FLIPPED_ALIAS_KEYS[t]||[]).push(e)}))})),(0,o.default)(g.FLIPPED_ALIAS_KEYS).forEach((function(e){g[e.toUpperCase()+"_TYPES"]=g.FLIPPED_ALIAS_KEYS[e],b(e)})),t.TYPES=(0,o.default)(g.VISITOR_KEYS).concat((0,o.default)(g.FLIPPED_ALIAS_KEYS)).concat((0,o.default)(g.DEPRECATED_KEYS)),(0,o.default)(g.BUILDER_KEYS).forEach((function(e){var t=g.BUILDER_KEYS[e];function r(){if(arguments.length>t.length)throw new Error("t."+e+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+t.length);var r={};r.type=e;var n=0,o=t,a=Array.isArray(o),s=0;for(o=a?o:(0,i.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=u,c=g.NODE_FIELDS[e][l],f=arguments[n++];void 0===f&&(f=(0,d.default)(c.default)),r[l]=f}for(var p in r)_(r,p,r[p]);return r}g[e]=r,g[e[0].toLowerCase()+e.slice(1)]=r}));var A=function(e){var t=g.DEPRECATED_KEYS[e];function r(r){return function(){return console.trace("The node type "+e+" has been renamed to "+t),r.apply(this,arguments)}}g[e]=g[e[0].toLowerCase()+e.slice(1)]=r(g[t]),g["is"+e]=r(g["is"+t]),g["assert"+e]=r(g["assert"+t])};for(var S in g.DEPRECATED_KEYS)A(S);function _(e,t,r){if(e){var n=g.NODE_FIELDS[e.type];if(n){var i=n[t];i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}}}function w(e){if(!e)return e;var t={};for(var r in e)"_"!==r[0]&&(t[r]=e[r]);return t}function C(e,t){k("trailingComments",e,t)}function D(e,t){k("leadingComments",e,t)}function P(e,t){k("innerComments",e,t)}function k(e,t,r){t&&r&&(t[e]=(0,h.default)([].concat(t[e],r[e]).filter(Boolean)))}function T(e){return!(!e||!m.VISITOR_KEYS[e.type])}function O(e,t,r){if(e){var n=g.VISITOR_KEYS[e.type];if(n){t(e,r=r||{});var o=n,a=Array.isArray(o),s=0;for(o=a?o:(0,i.default)(o);;){var u;if(a){if(s>=o.length)break;u=o[s++]}else{if((s=o.next()).done)break;u=s.value}var l=e[u];if(Array.isArray(l)){var c=l,f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}O(d,t,r)}}else O(l,t,r)}}}}(0,p.default)(g),(0,p.default)(g.VISITOR_KEYS);var F=["tokens","start","end","loc","raw","rawValue"],R=g.COMMENT_KEYS.concat(["comments"]).concat(F);function B(e,t){var r=(t=t||{}).preserveComments?F:R,o=Array.isArray(r),a=0;for(r=o?r:(0,i.default)(r);;){var s;if(o){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var u=s;null!=e[u]&&(e[u]=void 0)}for(var l in e)"_"===l[0]&&null!=e[l]&&(e[l]=void 0);var c=(0,n.default)(e),f=Array.isArray(c),p=0;for(c=f?c:(0,i.default)(c);;){var d;if(f){if(p>=c.length)break;d=c[p++]}else{if((p=c.next()).done)break;d=p.value}e[d]=null}}},function(e,t,r){"use strict";e.exports={default:r(404),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";t.__esModule=!0;var n=f(r(10));t.default=function(e,t){var r=void 0;try{throw new Error}catch(e){e.stack&&(r=e.stack.split("\n").slice(1).join("\n"))}t=(0,o.default)({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,preserveComments:!1},t);var n=function(){var i=void 0;try{i=u.parse(e,t),i=s.default.removeProperties(i,{preserveComments:t.preserveComments}),s.default.cheap(i,(function(e){e[p]=!0}))}catch(e){throw e.stack=e.stack+"from\n"+r,e}return n=function(){return i},i};return function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h(n(),t)}};var i=f(r(574)),o=f(r(174)),a=f(r(274)),s=f(r(7)),u=c(r(89)),l=c(r(1));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}var p="_fromTemplate",d=(0,n.default)();function h(e,t){var r=(e=(0,i.default)(e)).program;return t.length&&(0,s.default)(e,m,null,t),r.body.length>1?r.body:r.body[0]}var m={noScope:!0,enter:function(e,t){var r=e.node;if(r[d])return e.skip();l.isExpressionStatement(r)&&(r=r.expression);var n=void 0;if(l.isIdentifier(r)&&r[p])if((0,a.default)(t[0],r.name))n=t[0][r.name];else if("$"===r.name[0]){var i=+r.name.slice(1);t[i]&&(n=t[i])}null===n&&e.remove(),n&&(n[d]=!0,e.replaceInline(n))},exit:function(e){var t=e.node;t.loc||s.default.clearNode(t)}};e.exports=t.default},function(e,t){"use strict";var r=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=r)},function(e,t){"use strict";var r=Array.isArray;e.exports=r},function(e,t,r){"use strict";t.__esModule=!0,t.visitors=t.Hub=t.Scope=t.NodePath=void 0;var n=h(r(2)),i=r(36);Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return h(i).default}});var o=r(134);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return h(o).default}});var a=r(223);Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return h(a).default}}),t.default=m;var s=h(r(367)),u=d(r(384)),l=d(r(20)),c=h(r(111)),f=d(r(1)),p=d(r(88));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,r,n,i){if(e){if(t||(t={}),!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw new Error(l.get("traverseNeedsParent",e.type));u.explode(t),m.node(e,t,r,n,i)}}function v(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.visitors=u,m.visitors=u,m.verify=u.verify,m.explode=u.explode,m.NodePath=r(36),m.Scope=r(134),m.Hub=r(223),m.cheap=function(e,t){return f.traverseFast(e,t)},m.node=function(e,t,r,i,o,a){var u=f.VISITOR_KEYS[e.type];if(u){var l=new s.default(r,t,i,o),c=u,p=Array.isArray(c),d=0;for(c=p?c:(0,n.default)(c);;){var h;if(p){if(d>=c.length)break;h=c[d++]}else{if((d=c.next()).done)break;h=d.value}var m=h;if((!a||!a[m])&&l.visit(e,m))return}}},m.clearNode=function(e,t){f.removeProperties(e,t),p.path.delete(e)},m.removeProperties=function(e,t){return f.traverseFast(e,m.clearNode,t),e},m.hasType=function(e,t,r,n){if((0,c.default)(n,e.type))return!1;if(e.type===r)return!0;var i={has:!1,type:r};return m(e,{blacklist:n,enter:v},t,i),i.has},m.clearCache=function(){p.clear()},m.clearCache.clearPath=p.clearPath,m.clearCache.clearScope=p.clearScope,m.copyCache=function(e,t){p.path.has(e)&&p.path.set(t,p.path.get(e))}},function(e,t){"use strict";var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!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:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||c||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";e.exports={default:r(409),__esModule:!0}},function(e,t,r){"use strict";e.exports={default:r(414),__esModule:!0}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var i=s(r(363)),o=s(r(10)),a="function"==typeof o.default&&"symbol"===n(i.default)?function(e){return void 0===e?"undefined":n(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":n(e)};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(i.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t,r){"use strict";var n=r(15),i=r(5),o=r(43),a=r(29),s=function e(t,r,s){var u,l,c,f=t&e.F,p=t&e.G,d=t&e.S,h=t&e.P,m=t&e.B,v=t&e.W,y=p?i:i[r]||(i[r]={}),g=y.prototype,b=p?n:d?n[r]:(n[r]||{}).prototype;for(u in p&&(s=r),s)(l=!f&&b&&void 0!==b[u])&&u in y||(c=l?b[u]:s[u],y[u]=p&&"function"!=typeof b[u]?s[u]:m&&l?o(c,n):v&&b[u]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?o(Function.call,c):c,h&&((y.virtual||(y.virtual={}))[u]=c,t&e.R&&g&&!g[u]&&a(g,u,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,r){"use strict";var n=r(151)("wks"),i=r(95),o=r(15).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},function(e,t,r){"use strict";e.exports={default:r(411),__esModule:!0}},function(e,t){"use strict";var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){"use strict";var r="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.exports=function(e){return"object"===(void 0===e?"undefined":r(e))?null!==e:"function"==typeof e}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(261),o="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t){"use strict";var r="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.exports=function(e){var t=void 0===e?"undefined":r(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,r){(function(e){"use strict";function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return n.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return(n?"/":"")+(t=r(o(t.split("/"),(function(e){return!!e})),!n).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===a(e,-1);return(e=r(o(e.split("/"),(function(e){return!!e})),!n).join("/"))||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var l=[];for(u=s;u<i.length;u++)l.push("..");return(l=l.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},t.basename=function(e,t){var r=i(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(t,r(8))},function(e,t,r){"use strict";t.__esModule=!0,t.MESSAGES=void 0;var n,i=r(35),o=(n=i)&&n.__esModule?n:{default:n};t.get=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=s[e];if(!i)throw new ReferenceError("Unknown message "+(0,o.default)(e));return r=u(r),i.replace(/\$(\d+)/g,(function(e,t){return r[t-1]}))},t.parseArgs=u;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(117)),s=t.MESSAGES={tailCallReassignmentDeopt:"Function reference has been reassigned, so it will probably be dereferenced, therefore we can't optimise this with confidence",classesIllegalBareSuper:"Illegal use of bare super",classesIllegalSuperCall:"Direct super call is illegal in non-constructor, use super.$1() instead",scopeDuplicateDeclaration:"Duplicate declaration $1",settersNoRest:"Setters aren't allowed to have a rest",noAssignmentsInForHead:"No assignments allowed in for-in/of head",expectedMemberExpressionOrIdentifier:"Expected type MemberExpression or Identifier",invalidParentForThisNode:"We don't know how to handle this node within the current parent - please open an issue",readOnly:"$1 is read-only",unknownForHead:"Unknown node type $1 in ForStatement",didYouMean:"Did you mean $1?",codeGeneratorDeopt:"Note: The code generator has deoptimised the styling of $1 as it exceeds the max of $2.",missingTemplatesDirectory:"no templates directory - this is most likely the result of a broken `npm publish`. Please report to https://github.com/babel/babel/issues",unsupportedOutputType:"Unsupported output type $1",illegalMethodName:"Illegal method name $1",lostTrackNodePath:"We lost track of this node's position, likely because the AST was directly manipulated",modulesIllegalExportName:"Illegal export $1",modulesDuplicateDeclarations:"Duplicate module declarations with the same source but in different scopes",undeclaredVariable:"Reference to undeclared variable $1",undeclaredVariableType:"Referencing a type alias outside of a type annotation",undeclaredVariableSuggestion:"Reference to undeclared variable $1 - did you mean $2?",traverseNeedsParent:"You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a $1 node without passing scope and parentPath.",traverseVerifyRootFunction:"You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?",traverseVerifyVisitorProperty:"You passed `traverse()` a visitor object with the property $1 that has the invalid property $2",traverseVerifyNodeType:"You gave us a visitor for the node type $1 but it's not a valid ty