=t?(n=s.a.createElement(g.a,{icon:v.b}),r=e-t):(n=s.a.createElement(g.a,{icon:v.a}),r=t-e),s.a.createElement("section",{className:y.a["header-content-maus"]},s.a.createElement("div",{className:A({"main-content":!0,container:!0})},s.a.createElement("div",{className:y.a["users-count"]},s.a.createElement("span",{className:y.a.number},e),s.a.createElement("span",{className:y.a.text},"active users (MAUs) this month")),s.a.createElement("span",{className:y.a["text-separator"]}),s.a.createElement("div",{className:y.a["comparison-box"]},s.a.createElement("span",{className:y.a["comparison-box__icon"]},n),s.a.createElement("span",{className:y.a["comparison-box__text"]},e>=t?"up":"down"," ",r," compared to last month"),this.props.showHistoryButton?s.a.createElement(l.a,{to:"/figures/mau-history",className:y.a["mau-history-link"]},"See details"):"")),s.a.createElement("div",{className:y.a["graph-container"]},s.a.createElement(m.f,{width:"100%",height:110},this.props.mauDataHistory.size?s.a.createElement(m.b,{data:this.props.mauDataHistory.toJS(),margin:{top:0,bottom:0,left:0,right:0}},s.a.createElement(m.a,{type:"linear",dataKey:"value",stroke:"none",fill:"#ffffff",fillOpacity:.8}),s.a.createElement(m.g,{content:s.a.createElement(w,null),cursor:{fill:"rgba(255, 255, 255, 0.15)"},offset:0})):s.a.createElement("span",{className:y.a["no-data-label"]},"Active Users historic data unavailable"))))}}]),t}(a.Component);_.defaultProps={showHistoryButton:!1};var O=function(e,t){return{mauDataCurrent:c.a.fromJS(e.generalData.activeUsers.current_month),mauDataHistory:c.a.fromJS(e.generalData.activeUsers.history)}};t.a=Object(f.b)(O)(_)},function(e,t,n){var r=n(134),o=n(239);e.exports=n(57)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(57)&&!n(43)(function(){return 7!=Object.defineProperty(n(238)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(56),o=n(35).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(35),o=n(236),i=n(92),a=n(241)("src"),s=n(505),u=(""+s).split("toString");n(73).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(73),o=n(35),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(506)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(507);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(529),o=n(239),i=n(139),a=n(135),s=n(92),u=n(237),c=Object.getOwnPropertyDescriptor;t.f=n(57)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(92),o=n(139),i=n(532)(!1),a=n(247)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(242)("keys"),o=n(241);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(138);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(56),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(16))},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e,t){return e&&e.length?i(e,o(t,2)):[]}var o=n(22),i=n(611);e.exports=r},function(e,t,n){function r(e,t,n,r,c,l){var f=n&s,p=e.length,h=t.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(e),y=l.get(t);if(d&&y)return d==t&&y==e;var m=-1,g=!0,v=n&u?new o:void 0;for(l.set(e,t),l.set(t,e);++m-1}var o=n(612);e.exports=r},function(e,t){function n(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i=o;--i)d.point(g[i],v[i]);d.lineEnd(),d.areaEnd()}m&&(g[t]=+n(a,t,e),v[t]=+c(a,t,e),d.point(u?+u(a,t,e):g[t],l?+l(a,t,e):v[t]))}if(s)return d=null,s+""||null}function t(){return Object(a.a)().defined(f).curve(h).context(p)}var n=s.a,u=null,c=Object(o.a)(0),l=s.b,f=Object(o.a)(!0),p=null,h=i.a,d=null;return e.x=function(t){return arguments.length?(n="function"===typeof t?t:Object(o.a)(+t),u=null,e):n},e.x0=function(t){return arguments.length?(n="function"===typeof t?t:Object(o.a)(+t),e):n},e.x1=function(t){return arguments.length?(u=null==t?null:"function"===typeof t?t:Object(o.a)(+t),e):u},e.y=function(t){return arguments.length?(c="function"===typeof t?t:Object(o.a)(+t),l=null,e):c},e.y0=function(t){return arguments.length?(c="function"===typeof t?t:Object(o.a)(+t),e):c},e.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:Object(o.a)(+t),e):l},e.lineX0=e.lineY0=function(){return t().x(n).y(c)},e.lineY1=function(){return t().x(n).y(l)},e.lineX1=function(){return t().x(u).y(c)},e.defined=function(t){return arguments.length?(f="function"===typeof t?t:Object(o.a)(!!t),e):f},e.curve=function(t){return arguments.length?(h=t,null!=p&&(d=h(p)),e):h},e.context=function(t){return arguments.length?(null==t?p=d=null:d=h(p=t),e):p},e}},function(e,t,n){"use strict";function r(e){this._curve=e}function o(e){function t(t){return new r(e(t))}return t._curve=e,t}n.d(t,"a",function(){return a}),t.b=o;var i=n(105),a=o(i.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},function(e,t,n){"use strict";function r(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Object(o.b)(e)):t()._curve},e}t.a=r;var o=n(270);n(163)},function(e,t,n){"use strict";t.a=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.prototype.slice},function(e,t,n){"use strict";var r=n(79);t.a={draw:function(e,t){var n=Math.sqrt(t/r.j);e.moveTo(n,0),e.arc(0,0,n,0,r.m)}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}}},function(e,t,n){"use strict";var r=Math.sqrt(1/3),o=2*r;t.a={draw:function(e,t){var n=Math.sqrt(t/o),i=n*r;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}}},function(e,t,n){"use strict";var r=n(79),o=Math.sin(r.j/10)/Math.sin(7*r.j/10),i=Math.sin(r.m/10)*o,a=-Math.cos(r.m/10)*o;t.a={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),o=i*n,s=a*n;e.moveTo(0,-n),e.lineTo(o,s);for(var u=1;u<5;++u){var c=r.m*u/5,l=Math.cos(c),f=Math.sin(c);e.lineTo(f*n,-l*n),e.lineTo(l*o-f*s,f*o+l*s)}e.closePath()}}},function(e,t,n){"use strict";t.a={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}}},function(e,t,n){"use strict";var r=Math.sqrt(3);t.a={draw:function(e,t){var n=-Math.sqrt(t/(3*r));e.moveTo(0,2*n),e.lineTo(-r*n,-n),e.lineTo(r*n,-n),e.closePath()}}},function(e,t,n){"use strict";var r=-.5,o=Math.sqrt(3)/2,i=1/Math.sqrt(12),a=3*(i/2+1);t.a={draw:function(e,t){var n=Math.sqrt(t/a),s=n/2,u=n*i,c=s,l=n*i+n,f=-c,p=l;e.moveTo(s,u),e.lineTo(c,l),e.lineTo(f,p),e.lineTo(r*s-o*u,o*s+r*u),e.lineTo(r*c-o*l,o*c+r*l),e.lineTo(r*f-o*p,o*f+r*p),e.lineTo(r*s+o*u,r*u-o*s),e.lineTo(r*c+o*l,r*l-o*c),e.lineTo(r*f+o*p,r*p-o*f),e.closePath()}}},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var o=n(106),i=n(108);r.prototype={areaStart:o.a,areaEnd:o.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Object(i.b)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e,t){this._context=e,this._k=(1-t)/6}t.a=r;var o=n(108);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(o.b)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};!function e(t){function n(e){return new r(e,t)}return n.tension=function(t){return e(+t)},n}(0)},function(e,t,n){"use strict";function r(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++ni&&(i=t,r=n);return r}var o=n(81);t.a=function(e){var t=e.map(r);return Object(o.a)(e).sort(function(e,n){return t[e]-t[n]})}},function(e,t,n){"use strict";function r(e){return(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)}function o(e,t){if(null==e)return{};var n,r,o=i(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function a(e){return c(e)||u(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function u(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function c(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,d=f||Object.keys(c);if("function"===typeof u||"spring"===u)return a(e).concat([t.runJSAnimation.bind(t,{from:h.style,to:c,duration:i,easing:u}),i]);var y=Object(I.b)(d,i,u),m=l({},h.style,c,{transition:y});return a(e).concat([m,i,p]).filter(I.c)};return this.manager.start([o].concat(a(n.reduce(f,[s,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Object(C.a)());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,c=e.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),"function"===typeof i||"function"===typeof c||"spring"===i)return void this.runJSAnimation(e);if(u.length>1)return void this.runStepAnimation(e);var h=r?f({},r,o):o,d=Object(I.b)(Object.keys(h),n,i);p.start([a,t,l({},h,{transition:d}),n,s])}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,o(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=E.Children.count(t),a=Object(I.e)(this.state.style);if("function"===typeof t)return t(a);if(!n||0===i)return t;var s=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,i=t.className;return Object(E.cloneElement)(e,l({},r,{style:l({},o,a),className:i}))};return 1===i?s(E.Children.only(t)):S.a.createElement("div",null,E.Children.map(t,function(e){return s(e)}))}}]),t}(E.Component),w.displayName="Animate",w.propTypes={from:k.a.oneOfType([k.a.object,k.a.string]),to:k.a.oneOfType([k.a.object,k.a.string]),attributeName:k.a.string,duration:k.a.number,begin:k.a.number,easing:k.a.oneOfType([k.a.string,k.a.func]),steps:k.a.arrayOf(k.a.shape({duration:k.a.number.isRequired,style:k.a.object.isRequired,easing:k.a.oneOfType([k.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),k.a.func]),properties:k.a.arrayOf("string"),onAnimationEnd:k.a.func})),children:k.a.oneOfType([k.a.node,k.a.func]),isActive:k.a.bool,canBegin:k.a.bool,onAnimationEnd:k.a.func,shouldReAnimate:k.a.bool,onAnimationStart:k.a.func,onAnimationReStart:k.a.func},w.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},A=_))||A;t.a=N},function(e,t,n){(function(t){for(var r=n(286),o="undefined"===typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u=l(r,i),c=l(o,a),p=f(r,i),h=function(e){return e>1?1:e<0?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=p(n);if(Math.abs(o-t)<1e-4||i<1e-4)return c(n);n=h(n-o/i)}return c(n)};return d.isStepper=!1,d},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=-(e-t)*n,s=r*o,u=r+(i-s)*a/1e3,c=r*a/1e3+e;return Math.abs(c-t)<1e-4&&Math.abs(u)<1e-4?[t,0]:[c,u]};return s.isStepper=!0,s.dt=a,s},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(o[n]=e[n]);return o}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),u=r(n(0)),c=r(n(39)),l=n(294),f=(n(295),"unmounted");t.UNMOUNTED=f;var p="exited";t.EXITED=p;var h="entering";t.ENTERING=h;var d="entered";t.ENTERED=d;t.EXITING="exiting";var y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=p,r.appearStatus=h):o=d:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}i(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==d&&(t=h):n!==h&&n!==d||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=c.default.findDOMNode(this);t===h?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;if(!t&&!r)return void this.safeSetState({status:d},function(){n.props.onEntered(e)});this.props.onEnter(e,o),this.safeSetState({status:h},function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,function(){n.safeSetState({status:d},function(){n.props.onEntered(e,o)})})})},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;if(!e||r)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=o(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=u.default.Children.only(n);return u.default.cloneElement(i,r)},t}(u.default.Component);y.contextTypes={transitionGroup:s.object},y.childContextTypes={transitionGroup:function(){}},y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:a,onEntering:a,onEntered:a,onExit:a,onExiting:a,onExited:a},y.UNMOUNTED=0,y.EXITED=1,y.ENTERING=2,y.ENTERED=3,y.EXITING=4;var m=(0,l.polyfill)(y);t.default=m},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;!function(e){e&&e.__esModule}(n(1));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function i(){return i=Object.assign||function(e){for(var t=1;t=t||n<0||S&&r>=A}function h(){var e=i();if(p(e))return d(e);_=setTimeout(h,f(e))}function d(e){return _=void 0,j&&v?r(e):(v=b=void 0,w)}function y(){void 0!==_&&clearTimeout(_),x=0,v=O=b=_=void 0}function m(){return void 0===_?w:d(i())}function g(){var e=i(),n=p(e);if(v=arguments,b=this,O=e,n){if(void 0===_)return l(O);if(S)return clearTimeout(_),_=setTimeout(h,t),r(O)}return void 0===_&&(_=setTimeout(h,t)),w}var v,b,A,w,_,O,x=0,E=!1,S=!1,j=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,o(n)&&(E=!!n.leading,S="maxWait"in n,A=S?u(a(n.maxWait)||0,t):A,j="trailing"in n?!!n.trailing:j),g.cancel=y,g.flush=m,g}var o=n(21),i=n(672),a=n(299),s="Expected a function",u=Math.max,c=Math.min;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?f(e.slice(2),n?2:8):u.test(e)?a:+e}var o=n(21),i=n(60),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){function r(e){return e&&e.length?o(e,a,i):void 0}var o=n(115),i=n(301),a=n(63);e.exports=r},function(e,t){function n(e,t){return e>t}e.exports=n},function(e,t,n){function r(e){return e&&e.length?o(e,a,i):void 0}var o=n(115),i=n(303),a=n(63);e.exports=r},function(e,t){function n(e,t){return es?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=c.length,s-i<0&&(i=s,r=c,c=u,u=r),n=0;i;)n=(u[--i]=u[i]+c[i]+n)/T|0,u[i]%=T;for(n&&(u.unshift(n),++o),s=u.length;0==u[--s];)u.pop();return t.d=u,t.e=o,O?d(t,f):t}function a(e,t,n){if(e!==~~e||en)throw Error(E+e)}function s(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t16)throw Error(S+c(e));if(!e.s)return new p(A);for(null==t?(O=!1,u=h):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(r=Math.log(k(2,f))/Math.LN10*2+5|0,u+=r,n=o=i=new p(A),p.precision=u;;){if(o=d(o.times(e),u),n=n.times(++l),a=i.plus(N(o,n,u)),s(a.d).slice(0,u)===s(i.d).slice(0,u)){for(;f--;)i=d(i.times(i),u);return p.precision=h,null==t?(O=!0,d(i,h)):i}i=a}}function c(e){for(var t=e.e*P,n=e.d[0];n>=10;n/=10)t++;return t}function l(e,t,n){if(t>e.LN10.sd())throw O=!0,n&&(e.precision=n),Error(x+"LN10 precision limit exceeded");return d(new e(e.LN10),t)}function f(e){for(var t="";e--;)t+="0";return t}function p(e,t){var n,r,o,i,a,u,f,h,y,m=1,g=e,v=g.d,b=g.constructor,w=b.precision;if(g.s<1)throw Error(x+(g.s?"NaN":"-Infinity"));if(g.eq(A))return new b(0);if(null==t?(O=!1,h=w):h=t,g.eq(10))return null==t&&(O=!0),l(b,h);if(h+=10,b.precision=h,n=s(v),r=n.charAt(0),i=c(g),!(Math.abs(i)<15e14))return f=l(b,h+2,w).times(i+""),g=p(new b(r+"."+n.slice(1)),h-10).plus(f),b.precision=w,null==t?(O=!0,d(g,w)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)g=g.times(e),n=s(g.d),r=n.charAt(0),m++;for(i=c(g),r>1?(g=new b("0."+n),i++):g=new b(r+"."+n.slice(1)),u=a=g=N(g.minus(A),g.plus(A),h),y=d(g.times(g),h),o=3;;){if(a=d(a.times(y),h),f=u.plus(N(a,new b(o),h)),s(f.d).slice(0,h)===s(u.d).slice(0,h))return u=u.times(2),0!==i&&(u=u.plus(l(b,h+2,w).times(i+""))),u=N(u,new b(m),h),b.precision=w,null==t?(O=!0,d(u,w)):u;u=f,o+=2}}function h(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=j(n/P),e.d=[],r=(n+1)%P,n<0&&(r+=P),rM||e.e<-M))throw Error(S+n)}else e.s=0,e.e=0,e.d=[0];return e}function d(e,t,n){var r,o,i,a,s,u,l,f,p=e.d;for(a=1,i=p[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=P,o=t,l=p[f=0];else{if(f=Math.ceil((r+1)/P),i=p.length,f>=i)return e;for(l=i=p[f],a=1;i>=10;i/=10)a++;r%=P,o=r-P+a}if(void 0!==n&&(i=k(10,a-o-1),s=l/i%10|0,u=t<0||void 0!==p[f+1]||l%i,u=n<4?(s||u)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||u||6==n&&(r>0?o>0?l/k(10,a-o):0:p[f-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return u?(i=c(e),p.length=1,t=t-i-1,p[0]=k(10,(P-t%P)%P),e.e=j(-t/P)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(0==r?(p.length=f,i=1,f--):(p.length=f+1,i=k(10,P-r),p[f]=o>0?(l/k(10,a-o)%k(10,o)|0)*i:0),u)for(;;){if(0==f){(p[0]+=i)==T&&(p[0]=1,++e.e);break}if(p[f]+=i,p[f]!=T)break;p[f--]=0,i=1}for(r=p.length;0===p[--r];)p.pop();if(O&&(e.e>M||e.e<-M))throw Error(S+c(e));return e}function y(e,t){var n,r,o,i,a,s,u,c,l,f,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),O?d(t,h):t;if(u=e.d,f=t.d,r=t.e,c=e.e,u=u.slice(),a=c-r){for(l=a<0,l?(n=u,a=-a,s=f.length):(n=f,r=c,s=u.length),o=Math.max(Math.ceil(h/P),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=u.length,s=f.length,l=o0;--o)u[s++]=0;for(o=f.length;o>a;){if(u[--o]0?i=i.charAt(0)+"."+i.slice(1)+f(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+f(-o-1)+i,n&&(r=n-a)>0&&(i+=f(r))):o>=a?(i+=f(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+f(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=f(r))),e.s<0?"-"+i:i}function g(e,t){if(e.length>t)return e.length=t,!0}function v(e){function t(e){var n=this;if(!(n instanceof t))return new t(e);if(n.constructor=t,e instanceof t)return n.s=e.s,n.e=e.e,void(n.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(E+e);if(e>0)n.s=1;else{if(!(e<0))return n.s=0,n.e=0,void(n.d=[0]);e=-e,n.s=-1}return e===~~e&&e<1e7?(n.e=0,void(n.d=[e])):h(n,e.toString())}if("string"!==typeof e)throw Error(E+e);if(45===e.charCodeAt(0)?(e=e.slice(1),n.s=-1):n.s=1,!C.test(e))throw Error(E+e);h(n,e)}var n,r,o;if(t.prototype=I,t.ROUND_UP=0,t.ROUND_DOWN=1,t.ROUND_CEIL=2,t.ROUND_FLOOR=3,t.ROUND_HALF_UP=4,t.ROUND_HALF_DOWN=5,t.ROUND_HALF_EVEN=6,t.ROUND_HALF_CEIL=7,t.ROUND_HALF_FLOOR=8,t.clone=v,t.config=t.set=b,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=o[t+1]&&r<=o[t+2]))throw Error(E+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(E+n+": "+r);this[n]=new this(r)}return this}var A,w=1e9,_={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},O=!0,x="[DecimalError] ",E=x+"Invalid argument: ",S=x+"Exponent out of range: ",j=Math.floor,k=Math.pow,C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,T=1e7,P=7,M=j(9007199254740991/P),I={};I.absoluteValue=I.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},I.comparedTo=I.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},I.decimalPlaces=I.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*P;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},I.dividedBy=I.div=function(e){return N(this,new this.constructor(e))},I.dividedToIntegerBy=I.idiv=function(e){var t=this,n=t.constructor;return d(N(t,new n(e),0,1),n.precision)},I.equals=I.eq=function(e){return!this.cmp(e)},I.exponent=function(){return c(this)},I.greaterThan=I.gt=function(e){return this.cmp(e)>0},I.greaterThanOrEqualTo=I.gte=function(e){return this.cmp(e)>=0},I.isInteger=I.isint=function(){return this.e>this.d.length-2},I.isNegative=I.isneg=function(){return this.s<0},I.isPositive=I.ispos=function(){return this.s>0},I.isZero=function(){return 0===this.s},I.lessThan=I.lt=function(e){return this.cmp(e)<0},I.lessThanOrEqualTo=I.lte=function(e){return this.cmp(e)<1},I.logarithm=I.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if(e=new r(e),e.s<1||e.eq(A))throw Error(x+"NaN");if(n.s<1)throw Error(x+(n.s?"NaN":"-Infinity"));return n.eq(A)?new r(0):(O=!1,t=N(p(n,i),p(e,i),i),O=!0,d(t,o))},I.minus=I.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y(t,e):i(t,(e.s=-e.s,e))},I.modulo=I.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(x+"NaN");return n.s?(O=!1,t=N(n,e,0,1).times(e),O=!0,n.minus(t)):d(new r(n),o)},I.naturalExponential=I.exp=function(){return u(this)},I.naturalLogarithm=I.ln=function(){return p(this)},I.negated=I.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},I.plus=I.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?i(t,e):y(t,(e.s=-e.s,e))},I.precision=I.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(E+e);if(t=c(o)+1,r=o.d.length-1,n=r*P+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},I.squareRoot=I.sqrt=function(){var e,t,n,r,o,i,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(x+"NaN")}for(e=c(u),O=!1,o=Math.sqrt(+u),0==o||o==1/0?(t=s(u.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=j((e+1)/2)-(e<0||e%2),o==1/0?t="1e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(N(u,i,a+2)).times(.5),s(i.d).slice(0,a)===(t=s(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(d(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return O=!0,d(r,n)},I.times=I.mul=function(e){var t,n,r,o,i,a,s,u,c,l=this,f=l.constructor,p=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,u=p.length,c=h.length,u=0;){for(t=0,o=u+r;o>r;)s=i[o]+h[r]*p[o-r-1]+t,i[o--]=s%T|0,t=s/T|0;i[o]=(i[o]+t)%T|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,O?d(e,f.precision):e},I.toDecimalPlaces=I.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(a(e,0,w),void 0===t?t=r.rounding:a(t,0,8),d(n,e+c(n)+1,t))},I.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=m(r,!0):(a(e,0,w),void 0===t?t=o.rounding:a(t,0,8),r=d(new o(r),e+1,t),n=m(r,!0,e+1)),n},I.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?m(o):(a(e,0,w),void 0===t?t=i.rounding:a(t,0,8),r=d(new i(o),e+c(o)+1,t),n=m(r.abs(),!1,e+c(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},I.toInteger=I.toint=function(){var e=this,t=e.constructor;return d(new t(e),c(e)+1,t.rounding)},I.toNumber=function(){return+this},I.toPower=I.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(A);if(s=new c(s),!s.s){if(e.s<1)throw Error(x+"Infinity");return s}if(s.eq(A))return s;if(r=c.precision,e.eq(A))return d(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=l<0?-l:l)<=9007199254740991){for(o=new c(A),t=Math.ceil(r/P+4),O=!1;n%2&&(o=o.times(s),g(o.d,t)),0!==(n=j(n/2));)s=s.times(s),g(s.d,t);return O=!0,e.s<0?new c(A).div(o):d(o,r)}}else if(i<0)throw Error(x+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,O=!1,o=e.times(p(s,r+12)),O=!0,o=u(o),o.s=i,o},I.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?(n=c(o),r=m(o,n<=i.toExpNeg||n>=i.toExpPos)):(a(e,1,w),void 0===t?t=i.rounding:a(t,0,8),o=d(new i(o),e,t),n=c(o),r=m(o,e<=n||n<=i.toExpNeg,e)),r},I.toSignificantDigits=I.tosd=function(e,t){var n=this,r=n.constructor;return void 0===e?(e=r.precision,t=r.rounding):(a(e,1,w),void 0===t?t=r.rounding:a(t,0,8)),d(new r(n),e,t)},I.toString=I.valueOf=I.val=I.toJSON=function(){var e=this,t=c(e),n=e.constructor;return m(e,t<=n.toExpNeg||t>=n.toExpPos)};var N=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%T|0,r=n/T|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var s,u,l,f,p,h,y,m,g,v,b,A,w,_,O,E,S,j,k=r.constructor,C=r.s==o.s?1:-1,M=r.d,I=o.d;if(!r.s)return new k(r);if(!o.s)throw Error(x+"Division by zero");for(u=r.e-o.e,S=I.length,O=M.length,y=new k(C),m=y.d=[],l=0;I[l]==(M[l]||0);)++l;if(I[l]>(M[l]||0)&&--u,(A=null==i?i=k.precision:a?i+(c(r)-c(o))+1:i)<0)return new k(0);if(A=A/P+2|0,l=0,1==S)for(f=0,I=I[0],A++;(l1&&(I=e(I,f),M=e(M,f),S=I.length,O=M.length),_=S,g=M.slice(0,S),v=g.length;v=T/2&&++E;do{f=0,s=t(I,g,S,v),s<0?(b=g[0],S!=v&&(b=b*T+(g[1]||0)),f=b/E|0,f>1?(f>=T&&(f=T-1),p=e(I,f),h=p.length,v=g.length,1==(s=t(p,g,h,v))&&(f--,n(p,S=t?n.apply(void 0,i):e(t-s,l(function(){for(var e=arguments.length,t=new Array(e),o=0;o>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}},function(e,t,n){"use strict";function r(e,t){return[e,t]}t.a=r},function(e,t,n){"use strict";var r=n(311);t.a=function(e,t){var n=Object(r.a)(e,t);return n?Math.sqrt(n):n}},function(e,t,n){"use strict";var r=n(82);t.a=function(e,t){var n,o,i=e.length,a=0,s=-1,u=0,c=0;if(null==t)for(;++s1)return c/(a-1)}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o=0?(u>=i?10:u>=a?5:u>=s?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(u>=i?10:u>=a?5:u>=s?2:1)}function o(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/o;return u>=i?o*=10:u>=a?o*=5:u>=s&&(o*=2),t0)return[e];if((o=t0)for(e=Math.ceil(e/s),t=Math.floor(t/s),a=new Array(i=Math.ceil(t-e+1));++u=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r}},function(e,t,n){"use strict";function r(e){return e.length}var o=n(317);t.a=function(e){if(!(a=e.length))return[];for(var t=-1,n=Object(o.a)(e,r),i=new Array(n);++tl&&(c=t.slice(l,c),p[f]?p[f]+=c:p[++f]=c),(n=n[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,h.push({i:f,x:Object(i.a)(n,u)})),l=s.lastIndex;return l(a=e.charCodeAt(t))||a>57){d=(46===a?m+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}w&&!l&&(e=h(e,1/0));var v=u.length+e.length+d.length,C=v>1)+u+e+d+C.slice(v);break;default:e=C+u+e+d}return g(e)}e=Object(a.a)(e);var n=e.fill,r=e.align,o=e.sign,i=e.symbol,l=e.zero,f=e.width,w=e.comma,_=e.precision,O=e.trim,x=e.type;"n"===x?(w=!0,x="g"):u.a[x]||(void 0===_&&(_=12),O=!0,x="g"),(l||"0"===n&&"="===r)&&(l=!0,n="0",r="=");var E="$"===i?d:"#"===i&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",S="$"===i?y:/[%p]/.test(x)?v:"",j=u.a[x],k=/[defgprs%]/.test(x);return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),t.toString=function(){return e+""},t}function n(e,n){var o=t((e=Object(a.a)(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),s=Math.pow(10,-i),u=p[8+i/3];return function(e){return o(s*e)+u}}var h=void 0===e.grouping||void 0===e.thousands?l.a:Object(o.a)(f.call(e.grouping,Number),e.thousands+""),d=void 0===e.currency?"":e.currency[0]+"",y=void 0===e.currency?"":e.currency[1]+"",m=void 0===e.decimal?".":e.decimal+"",g=void 0===e.numerals?l.a:Object(i.a)(f.call(e.numerals,String)),v=void 0===e.percent?"%":e.percent+"",b=void 0===e.minus?"-":e.minus+"",A=void 0===e.nan?"NaN":e.nan+"";return{format:t,formatPrefix:n}}},function(e,t,n){"use strict";function r(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}t.a=r;var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;r.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";n.d(t,"b",function(){return r});var r,o=n(177);t.a=function(e,t){var n=Object(o.a)(e,t);if(!n)return e+"";var i=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Object(o.a)(e,Math.max(0,t+s-1))[0]}},function(e,t,n){"use strict";t.a=function(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return a53)return null;"w"in u||(u.w=1),"Z"in u?(r=o(i(u.y)),s=r.getUTCDay(),r=s>4||0===s?he.p.ceil(r):Object(he.p)(r),r=he.l.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=t(i(u.y)),s=r.getDay(),r=s>4||0===s?he.e.ceil(r):Object(he.e)(r),r=he.a.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),s="Z"in u?o(i(u.y)).getUTCDay():t(i(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(s+5)%7:u.w+7*u.U-(s+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,o(u)):t(u)}}function a(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;a=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Je[o in de?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function s(e,t,n){var r=Fe.exec(t.slice(n));return r?(e.p=Ue[r[0].toLowerCase()],n+r[0].length):-1}function u(e,t,n){var r=He.exec(t.slice(n));return r?(e.w=Ye[r[0].toLowerCase()],n+r[0].length):-1}function ye(e,t,n){var r=ze.exec(t.slice(n));return r?(e.w=We[r[0].toLowerCase()],n+r[0].length):-1}function me(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.m=Ke[r[0].toLowerCase()],n+r[0].length):-1}function ge(e,t,n){var r=Ve.exec(t.slice(n));return r?(e.m=Ge[r[0].toLowerCase()],n+r[0].length):-1}function ve(e,t,n){return a(e,Pe,t,n)}function be(e,t,n){return a(e,Me,t,n)}function Ae(e,t,n){return a(e,Ie,t,n)}function we(e){return Le[e.getDay()]}function _e(e){return De[e.getDay()]}function Oe(e){return Be[e.getMonth()]}function xe(e){return Re[e.getMonth()]}function Ee(e){return Ne[+(e.getHours()>=12)]}function Se(e){return Le[e.getUTCDay()]}function je(e){return De[e.getUTCDay()]}function ke(e){return Be[e.getUTCMonth()]}function Ce(e){return Re[e.getUTCMonth()]}function Te(e){return Ne[+(e.getUTCHours()>=12)]}var Pe=e.dateTime,Me=e.date,Ie=e.time,Ne=e.periods,De=e.days,Le=e.shortDays,Re=e.months,Be=e.shortMonths,Fe=c(Ne),Ue=l(Ne),ze=c(De),We=l(De),He=c(Le),Ye=l(Le),Ve=c(Re),Ge=l(Re),Qe=c(Be),Ke=l(Be),qe={a:we,A:_e,b:Oe,B:xe,c:null,d:T,e:T,f:D,H:P,I:M,j:I,L:N,m:L,M:R,p:Ee,Q:fe,s:pe,S:B,u:F,U:U,V:z,w:W,W:H,x:null,X:null,y:Y,Y:V,Z:G,"%":le},Ze={a:Se,A:je,b:ke,B:Ce,c:null,d:Q,e:Q,f:X,H:K,I:q,j:Z,L:J,m:$,M:ee,p:Te,Q:fe,s:pe,S:te,u:ne,U:re,V:oe,w:ie,W:ae,x:null,X:null,y:se,Y:ue,Z:ce,"%":le},Je={a:u,A:ye,b:me,B:ge,c:ve,d:A,e:A,f:S,H:_,I:_,j:w,L:E,m:b,M:O,p:s,Q:k,s:C,S:x,u:p,U:h,V:d,w:f,W:y,x:be,X:Ae,y:g,Y:m,Z:v,"%":j};return qe.x=t(Me,qe),qe.X=t(Ie,qe),qe.c=t(Pe,qe),Ze.x=t(Me,Ze),Ze.X=t(Ie,Ze),Ze.c=t(Pe,Ze),{format:function(e){var n=t(e+="",qe);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",r);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",Ze);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e,o);return t.toString=function(){return e},t}}}function s(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function v(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function b(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function A(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function w(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function O(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function x(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function E(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function S(e,t,n){var r=ye.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function j(e,t,n){var r=me.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function k(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function C(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function T(e,t){return s(e.getDate(),t,2)}function P(e,t){return s(e.getHours(),t,2)}function M(e,t){return s(e.getHours()%12||12,t,2)}function I(e,t){return s(1+he.a.count(Object(he.k)(e),e),t,3)}function N(e,t){return s(e.getMilliseconds(),t,3)}function D(e,t){return N(e,t)+"000"}function L(e,t){return s(e.getMonth()+1,t,2)}function R(e,t){return s(e.getMinutes(),t,2)}function B(e,t){return s(e.getSeconds(),t,2)}function F(e){var t=e.getDay();return 0===t?7:t}function U(e,t){return s(he.h.count(Object(he.k)(e),e),t,2)}function z(e,t){var n=e.getDay();return e=n>=4||0===n?Object(he.i)(e):he.i.ceil(e),s(he.i.count(Object(he.k)(e),e)+(4===Object(he.k)(e).getDay()),t,2)}function W(e){return e.getDay()}function H(e,t){return s(he.e.count(Object(he.k)(e),e),t,2)}function Y(e,t){return s(e.getFullYear()%100,t,2)}function V(e,t){return s(e.getFullYear()%1e4,t,4)}function G(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+s(t/60|0,"0",2)+s(t%60,"0",2)}function Q(e,t){return s(e.getUTCDate(),t,2)}function K(e,t){return s(e.getUTCHours(),t,2)}function q(e,t){return s(e.getUTCHours()%12||12,t,2)}function Z(e,t){return s(1+he.l.count(Object(he.v)(e),e),t,3)}function J(e,t){return s(e.getUTCMilliseconds(),t,3)}function X(e,t){return J(e,t)+"000"}function $(e,t){return s(e.getUTCMonth()+1,t,2)}function ee(e,t){return s(e.getUTCMinutes(),t,2)}function te(e,t){return s(e.getUTCSeconds(),t,2)}function ne(e){var t=e.getUTCDay();return 0===t?7:t}function re(e,t){return s(he.s.count(Object(he.v)(e),e),t,2)}function oe(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(he.t)(e):he.t.ceil(e),s(he.t.count(Object(he.v)(e),e)+(4===Object(he.v)(e).getUTCDay()),t,2)}function ie(e){return e.getUTCDay()}function ae(e,t){return s(he.p.count(Object(he.v)(e),e),t,2)}function se(e,t){return s(e.getUTCFullYear()%100,t,2)}function ue(e,t){return s(e.getUTCFullYear()%1e4,t,4)}function ce(){return"+0000"}function le(){return"%"}function fe(e){return+e}function pe(e){return Math.floor(+e/1e3)}t.a=a;var he=n(181),de={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,me=/^%/,ge=/[\\^$*+?|[\]().{}]/g},function(e,t,n){"use strict";function r(e){return e.toISOString()}n.d(t,"a",function(){return i});var o=n(182),i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(o.b)(i)},function(e,t,n){"use strict";function r(){function e(e){return isNaN(e=+e)?i:u(0===r?.5:(e=(o(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}var t,n,r,o,i,a=0,s=1,u=l.c,c=!1;return e.domain=function(i){return arguments.length?(t=o(a=+i[0]),n=o(s=+i[1]),r=t===n?0:1/(n-t),e):[a,s]},e.clamp=function(t){return arguments.length?(c=!!t,e):c},e.interpolator=function(t){return arguments.length?(u=t,e):u},e.unknown=function(t){return arguments.length?(i=t,e):i},function(i){return o=i,t=i(a),n=i(s),r=t===n?0:1/(n-t),e}}function o(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function i(){var e=Object(p.b)(r()(l.c));return e.copy=function(){return o(e,i())},f.a.apply(e,arguments)}function a(){var e=Object(h.b)(r()).domain([1,10]);return e.copy=function(){return o(e,a()).base(e.base())},f.a.apply(e,arguments)}function s(){var e=Object(d.b)(r());return e.copy=function(){return o(e,s()).constant(e.constant())},f.a.apply(e,arguments)}function u(){var e=Object(y.b)(r());return e.copy=function(){return o(e,u()).exponent(e.exponent())},f.a.apply(e,arguments)}function c(){return u.apply(null,arguments).exponent(.5)}t.a=o,t.b=i,t.c=a,t.f=s,t.d=u,t.e=c;var l=n(46),f=n(18),p=n(53),h=n(178),d=n(179),y=n(180)},function(e,t,n){"use strict";function r(e){return(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)}function o(){return o=Object.assign||function(e){for(var t=1;t0?_()(e,"paddingAngle",0):0;if(n){var u=Object(G.f)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=a({},e,{startAngle:s+i,endAngle:s+u(r)+i});o.push(l),s=l.endAngle}else{var f=e.endAngle,p=e.startAngle,h=Object(G.f)(0,f-p),d=h(r),y=a({},e,{startAngle:s+i,endAngle:s+d+i});o.push(y),s=y.endAngle}}),T.a.createElement(R.a,null,e.renderSectorsStatically(o))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&A()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,i=e.cx,a=e.cy,s=e.innerRadius,u=e.outerRadius,c=e.isAnimationActive,l=e.prevSectors;if(t||!n||!n.length||!Object(G.h)(i)||!Object(G.h)(a)||!Object(G.h)(s)||!Object(G.h)(u))return null;var f=D()("recharts-pie",r);return T.a.createElement(R.a,{className:f},this.renderSectors(),o&&this.renderLabels(n),z.a.renderCallByParent(this.props,null,!1),(!c||l&&A()(l,n))&&W.a.renderCallByParent(this.props,n,!1))}}],[{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=360?v:v-1)*f,_=A-v*m-w,O=p;k()(p)&&k()(d)?(Object(K.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),O="value"):k()(p)&&(Object(K.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),O=d);var x,E=i.reduce(function(e,t){var n=Object(Q.w)(t,O,0);return e+(Object(G.h)(n)?n:0)},0);if(E>0){var S;x=i.map(function(e,t){var n,r=Object(Q.w)(e,O,0),o=Object(Q.w)(e,h,t),i=(Object(G.h)(r)?r:0)/E;n=t?S.endAngle+Object(G.j)(b)*f:c;var s=n+Object(G.j)(b)*(m+i*_),l=(n+s)/2,p=(g.innerRadius+g.outerRadius)/2,d=[{name:o,value:r,payload:e,dataKey:O,type:y}],v=Object(V.e)(g.cx,g.cy,p,l);return S=a({percent:i,cornerRadius:u,name:o,tooltipPayload:d,midAngle:l,middleRadius:p,tooltipPosition:v},e,{},g,{value:Object(Q.w)(e,O),startAngle:n,endAngle:s,payload:e,paddingAngle:Object(G.j)(b)*f})})}return a({},g,{sectors:x,data:i,onMouseLeave:r,onMouseEnter:o})},m=v))||m;t.a=q},function(e,t,n){"use strict";function r(e){return(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)}function o(){return o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&Math.abs(j)0&&Math.abs(k)0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(f(n),"startX"),endX:n.handleTravellerDragStart.bind(f(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}return p(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,s=n.updateId;(e.data!==r||e.updateId!==s)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data,a=i.length-1,s=Math.min(t,n),u=Math.max(t,n),c=this.constructor.getIndexInRange(this.scaleValues,s),l=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%o,endIndex:l===a?a:l-l%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Object(k.w)(n[e],o,e);return A()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-u-o,a+s-u-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===c&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,s=n.startX,u=this.state[o],c=this.props,l=c.x,f=c.width,p=c.travellerWidth,h=c.onChange,d=c.gap,y=c.data,m={startX:this.state.startX,endX:this.state.endX},g=e.pageX-r;g>0?g=Math.min(g,l+f-p-u):g<0&&(g=Math.max(g,l-u)),m[o]=u+g;var v=this.getIndex(m),b=v.startIndex,A=v.endIndex,w=function(){var e=y.length-1;return"startX"===o&&(a>s?b%d===0:A%d===0)||as?A%d===0:b%d===0)||a>s&&A===e};this.setState((t={},i(t,o,u+g),i(t,"brushMoveStartX",e.pageX),t),function(){h&&w()&&h(v)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,s=e.travellerWidth,u=n.length;return this.scale=Object(j.scalePoint)().domain(v()(0,u)).range([i,i+a-s]),this.scaleValues=this.scale.domain().map(function(e){return t.scale(e)}),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return _.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,s=e.padding,u=w.Children.only(a);return u?_.a.cloneElement(u,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,s=Math.floor(r+i/2)-1,u=Math.max(e,this.props.x);return _.a.createElement(T.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},_.a.createElement("rect",{x:u,y:r,width:o,height:i,fill:a,stroke:"none"}),_.a.createElement("line",{x1:u+1,y1:s,x2:u+o-1,y2:s,fill:"none",stroke:"#fff"}),_.a.createElement("line",{x1:u+1,y1:s+2,x2:u+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return _.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:s};return _.a.createElement(T.a,{className:"recharts-brush-texts"},_.a.createElement(P.a,o({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+i/2},f),this.getTextOfTick(t)),_.a.createElement(P.a,o({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,s=e.height,u=this.state,c=u.startX,l=u.endX,f=u.isTextActive,p=u.isSlideMoving,h=u.isTravellerMoving;if(!t||!t.length||!Object(M.h)(o)||!Object(M.h)(i)||!Object(M.h)(a)||!Object(M.h)(s)||a<=0||s<=0)return null;var d=S()("recharts-brush",n),y=1===_.a.Children.count(r),m=Object(I.a)("userSelect","none");return _.a.createElement(T.a,{className:d,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(c,l),this.renderTraveller(c,"startX"),this.renderTraveller(l,"endX"),(f||p||h)&&this.renderText())}}],[{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var i=Math.floor((r+o)/2);e[i]>t?o=i:r=i}return t>=e[o]?o:r}}]),t}(w.Component),y.displayName="Brush",y.propTypes={className:x.a.string,fill:x.a.string,stroke:x.a.string,x:x.a.number,y:x.a.number,width:x.a.number,height:x.a.number.isRequired,travellerWidth:x.a.number,gap:x.a.number,padding:x.a.shape({top:x.a.number,right:x.a.number,bottom:x.a.number,left:x.a.number}),dataKey:x.a.oneOfType([x.a.string,x.a.number,x.a.func]),data:x.a.array,startIndex:x.a.number,endIndex:x.a.number,tickFormatter:x.a.func,children:x.a.node,onChange:x.a.func,updateId:x.a.oneOfType([x.a.string,x.a.number]),leaveTimeOut:x.a.number},y.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3},d=m))||d;t.a=N},function(e,t,n){var r=n(772),o=r();e.exports=o},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=o(e))===i||e===-i){return(e<0?-1:1)*a}return e===e?e:0}var o=n(299),i=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){"use strict";function r(e){return(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)}function o(){return o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0?this.props:c)),n<=0||r<=0||!l||!l.length?null:w.a.createElement(k.a,{className:E()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(l),T.a.renderCallByParent(this.props))}}],[{key:"getTicks",value:function(e){var n=e.tick,r=e.ticks,o=e.viewBox,i=e.minTickGap,a=e.orientation,s=e.interval,u=e.tickFormatter,c=e.unit;return r&&r.length&&n?Object(M.h)(s)||Object(P.o)()?t.getNumberIntervalTicks(r,Object(M.h)(s)?s:0):"preserveStartEnd"===s?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:c},!0):"preserveStart"===s?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:c}):t.getTicksEnd({ticks:r,tickFormatter:u,viewBox:o,orientation:a,minTickGap:i,unit:c}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter(function(e,n){return n%(t+1)===0})}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,s=e.viewBox,u=e.orientation,c=e.minTickGap,l=e.unit,f=s.x,p=s.y,h=s.width,d=s.height,y="top"===u||"bottom"===u?"width":"height",m=(o||[]).slice(),g=l&&"width"===y?Object(j.c)(l)[y]:0,v=m.length,A=v>=2?Object(M.j)(m[1].coordinate-m[0].coordinate):1;if(1===A?(n="width"===y?f:p,r="width"===y?f+h:p+d):(n="width"===y?f+h:p+d,r="width"===y?f:p),t){var w=o[v-1],_=b()(i)?i(w.value):w.value,O=Object(j.c)(_)[y]+g,x=A*(w.coordinate+A*O/2-r);m[v-1]=w=a({},w,{tickCoord:x>0?w.coordinate-x*A:w.coordinate});A*(w.tickCoord-A*O/2-n)>=0&&A*(w.tickCoord+A*O/2-r)<=0&&(r=w.tickCoord-A*(O/2+c),m[v-1]=a({},w,{isShow:!0}))}for(var E=t?v-1:v,S=0;S=0&&A*(k.tickCoord+A*T/2-r)<=0&&(n=k.tickCoord+A*(T/2+c),m[S]=a({},k,{isShow:!0}))}return m.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,s=e.orientation,u=e.minTickGap,c=e.unit,l=i.x,f=i.y,p=i.width,h=i.height,d="top"===s||"bottom"===s?"width":"height",y=c&&"width"===d?Object(j.c)(c)[d]:0,m=(r||[]).slice(),g=m.length,v=g>=2?Object(M.j)(m[1].coordinate-m[0].coordinate):1;1===v?(t="width"===d?l:f,n="width"===d?l+p:f+h):(t="width"===d?l+p:f+h,n="width"===d?l:f);for(var A=g-1;A>=0;A--){var w=m[A],_=b()(o)?o(w.value):w.value,O=Object(j.c)(_)[d]+y;if(A===g-1){var x=v*(w.coordinate+v*O/2-n);m[A]=w=a({},w,{tickCoord:x>0?w.coordinate-x*v:w.coordinate})}else m[A]=w=a({},w,{tickCoord:w.coordinate});v*(w.tickCoord-v*O/2-t)>=0&&v*(w.tickCoord+v*O/2-n)<=0&&(n=w.tickCoord-v*(O/2+u),m[A]=a({},w,{isShow:!0}))}return m.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return w.a.isValidElement(e)?w.a.cloneElement(e,t):b()(e)?e(t):w.a.createElement(C.a,o({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}]),t}(A.Component);I.displayName="CartesianAxis",I.propTypes=a({},P.c,{},P.a,{className:O.a.string,x:O.a.number,y:O.a.number,width:O.a.number,height:O.a.number,orientation:O.a.oneOf(["top","bottom","left","right"]),viewBox:O.a.shape({x:O.a.number,y:O.a.number,width:O.a.number,height:O.a.number}),tick:O.a.oneOfType([O.a.bool,O.a.func,O.a.object,O.a.element]),axisLine:O.a.oneOfType([O.a.bool,O.a.object]),tickLine:O.a.oneOfType([O.a.bool,O.a.object]),mirror:O.a.bool,tickMargin:O.a.number.isRequired,minTickGap:O.a.number,ticks:O.a.array,tickSize:O.a.number,stroke:O.a.string,tickFormatter:O.a.func,ticksGenerator:O.a.func,interval:O.a.oneOfType([O.a.number,O.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),I.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"},t.a=I},function(e,t,n){var r=n(61),o=n(787),i=n(809),a=n(96),s=n(84),u=n(812),c=n(813),l=n(357),f=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,l(e),n),c&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n(183),i=n(100),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(153),o=n(167),i=n(154),a=n(259),s=Object.getOwnPropertySymbols,u=s?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=u},function(e,t,n){function r(e){return o(e,a,i)}var o=n(257),i=n(356),a=n(188);e.exports=r},function(e,t,n){"use strict";function r(e){return(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)}function o(){return o=Object.assign||function(e){for(var t=1;t0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:o,lowerWidth:i,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:d},function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,i=t.x,s=t.y;return b.a.createElement(x.a,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,easing:f},b.a.createElement("path",a({},Object(S.l)(e.props),Object(S.f)(e.props),{className:y,d:j(i,s,n,r,o),ref:function(t){e.node=t}})))}):b.a.createElement("g",null,b.a.createElement("path",a({},Object(S.l)(this.props),Object(S.f)(this.props),{className:y,d:j(n,r,o,i,s)})))}}]),t}(v.Component),m.displayName="Trapezoid",m.propTypes=function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var s=n(0),u=n.n(s),c=function(){function e(e,t){for(var n=0;n0){var g=1/0,v=1/0;y.forEach(function(e){e.x>h.x&&(g=Math.min(g,e.x)),e.y>h.y&&(v=Math.min(v,e.y))}),Number.isFinite(g)&&(h.w=g-h.x),Number.isFinite(v)&&(h.h=v-h.y)}}d||(h.w=t,h.h=n);var b={w:h.w,h:h.h,x:h.x,y:h.y,static:!0,i:e};this.props.onResize(u,c,h,b,o,i),this.setState({layout:(0,m.compact)(u,this.compactType(),f),activeDrag:b})}},t.prototype.onResizeStop=function(e,t,n,r){var o=r.e,i=r.node,a=this.state,s=a.layout,u=a.oldResizeItem,c=this.props.cols,l=(0,m.getLayoutItem)(s,e);this.props.onResizeStop(s,u,l,null,o,i);var f=(0,m.compact)(s,this.compactType(),c),p=this.state.oldLayout;this.setState({activeDrag:null,layout:f,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(f,p)},t.prototype.placeholder=function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,r=t.cols,o=t.margin,i=t.containerPadding,a=t.rowHeight,s=t.maxRows,u=t.useCSSTransforms;return c.default.createElement(v.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:o,containerPadding:i||o,maxRows:s,rowHeight:a,isDraggable:!1,isResizable:!1,useCSSTransforms:u},c.default.createElement("div",null))},t.prototype.processGridItem=function(e){if(e&&e.key){var t=(0,m.getLayoutItem)(this.state.layout,String(e.key));if(!t)return null;var n=this.props,r=n.width,o=n.cols,i=n.margin,a=n.containerPadding,s=n.rowHeight,u=n.maxRows,l=n.isDraggable,f=n.isResizable,p=n.useCSSTransforms,h=n.draggableCancel,d=n.draggableHandle,y=this.state.mounted,g=Boolean(!t.static&&l&&(t.isDraggable||null==t.isDraggable)),b=Boolean(!t.static&&f&&(t.isResizable||null==t.isResizable));return c.default.createElement(v.default,{containerWidth:r,cols:o,margin:i,containerPadding:a||i,maxRows:u,rowHeight:s,cancel:h,handle:d,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:g,isResizable:b,useCSSTransforms:p&&y,usePercentages:!y,w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minH:t.minH,minW:t.minW,maxH:t.maxH,maxW:t.maxW,static:t.static},e)}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.style,o=(0,y.default)("react-grid-layout",n),i=s({height:this.containerHeight()},r);return c.default.createElement("div",{className:o,style:i},c.default.Children.map(this.props.children,function(t){return e.processGridItem(t)}),this.placeholder())},t}(c.default.Component);b.displayName="ReactGridLayout",b.propTypes={className:f.default.string,style:f.default.object,width:f.default.number,autoSize:f.default.bool,cols:f.default.number,draggableCancel:f.default.string,draggableHandle:f.default.string,verticalCompact:function(e){e.verticalCompact,1},compactType:f.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&(0,m.validateLayout)(t,"layout")},margin:f.default.arrayOf(f.default.number),containerPadding:f.default.arrayOf(f.default.number),rowHeight:f.default.number,maxRows:f.default.number,isDraggable:f.default.bool,isResizable:f.default.bool,preventCollision:f.default.bool,useCSSTransforms:f.default.bool,onLayoutChange:f.default.func,onDragStart:f.default.func,onDrag:f.default.func,onDragStop:f.default.func,onResizeStart:f.default.func,onResize:f.default.func,onResizeStop:f.default.func,children:function(e,t){var n=e[t],r={};c.default.Children.forEach(n,function(e){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0})}},b.defaultProps={autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,compactType:"vertical",preventCollision:!1,onLayoutChange:m.noop,onDragStart:m.noop,onDrag:m.noop,onDragStop:m.noop,onResizeStart:m.noop,onResize:m.noop,onResizeStop:m.noop};var A=function(){this.state={activeDrag:null,layout:(0,m.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.compactType()),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null}};t.default=b},function(e,t,n){!function(t,r){e.exports=r(n(39),n(0))}(0,function(e,t){"use strict";function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}function r(e){return function(){return e}}function o(e,t,n,r,o,i,a,s){if(V(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(e,t,n,r,o){for(var i in e)if(e.hasOwnProperty(i)){var a;try{te("function"===typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",r||"React class",n,i,typeof e[i]),a=e[i](t,i,r,n,null,re)}catch(e){a=e}if(ne(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof a),a instanceof Error&&!(a.message in oe)){oe[a.message]=!0;var s=o?o():"";ne(!1,"Failed %s type: %s%s",n,a.message,null!=s?s:"")}}}function s(e,t){for(var n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:{};return de({touchAction:"none"},e)}function P(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)"+t+"(?!\\S)"))||(e.className+=" "+t)}function M(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)"+t+"(?!\\S)","g"),"")}function I(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"===typeof r?r:U(r);var o=z(e);if("string"===typeof r){var i=o.ownerDocument,a=i.defaultView,s=void 0;if(!((s="parent"===r?o.parentNode:i.querySelector(r))instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var u=a.getComputedStyle(o),f=a.getComputedStyle(s);r={left:-o.offsetLeft+l(f.paddingLeft)+l(u.marginLeft),top:-o.offsetTop+l(f.paddingTop)+l(u.marginTop),right:w(s)-b(o)-o.offsetLeft+l(f.paddingRight)-l(u.marginRight),bottom:A(s)-v(o)-o.offsetTop+l(f.paddingBottom)-l(u.marginBottom)}}return c(r.right)&&(t=Math.min(t,r.right)),c(r.bottom)&&(n=Math.min(n,r.bottom)),c(r.left)&&(t=Math.max(t,r.left)),c(r.top)&&(n=Math.max(n,r.top)),[t,n]}function N(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function D(e){return"both"===e.props.axis||"x"===e.props.axis}function L(e){return"both"===e.props.axis||"y"===e.props.axis}function R(e,t,n){var r="number"===typeof t?S(e,t):null;if("number"===typeof t&&!r)return null;var o=z(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return _(r||e,i)}function B(e,t,n){var r=e.state,o=!c(r.lastX),i=z(e);return o?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function F(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function U(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function z(t){var n=e.findDOMNode(t);if(!n)throw new Error(": Unmounted during event!");return n}function W(){}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var H=function(){};H.thatReturns=r,H.thatReturnsFalse=r(!1),H.thatReturnsTrue=r(!0),H.thatReturnsNull=r(null),H.thatReturnsThis=function(){return this},H.thatReturnsArgument=function(e){return e};var Y=H,V=function(e){};V=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")};var G=o,Q=Y,K=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r2?n-2:0),o=2;o>",O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:function(){return i(Y.thatReturnsNull)}(),arrayOf:s,element:function(){function t(t,n,r,i,a){var s=t[n];if(!e(s)){return new o("Invalid "+i+" `"+a+"` of type `"+m(s)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return i(t)}(),instanceOf:u,node:function(){function e(e,t,n,r,i){return d(e[t])?null:new o("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return i(e)}(),objectOf:l,oneOf:c,oneOfType:f,shape:p,exact:h};return o.prototype=Error.prototype,O.checkPropTypes=ie,O.PropTypes=O,O},se=n(function(e){var t="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,n=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t};e.exports=ae(n,!0)}),ue=n(function(e){!function(){function t(){for(var e=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window||"undefined"===typeof window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n not mounted on DragStart!");var r=n.ownerDocument;if(!(o.props.disabled||!(t.target instanceof r.defaultView.Node)||o.props.handle&&!y(t.target,o.props.handle,n)||o.props.cancel&&y(t.target,o.props.cancel,n))){var i=j(t);o.setState({touchIdentifier:i});var a=R(t,i,o);if(null!=a){var s=a.x,u=a.y,c=B(o,s,u);W("calling",o.props.onStart);!1!==o.props.onStart(t,c)&&(o.props.enableUserSelectHack&&k(r),o.setState({dragging:!0,lastX:s,lastY:u}),m(r,Ae.move,o.handleDrag),m(r,Ae.stop,o.handleDragStop))}}},o.handleDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=R(e,o.state.touchIdentifier,o);if(null!=t){var n=t.x,r=t.y;if(Array.isArray(o.props.grid)){var i=n-o.state.lastX,a=r-o.state.lastY,s=N(o.props.grid,i,a),u=ge(s,2);if(i=u[0],a=u[1],!i&&!a)return;n=o.state.lastX+i,r=o.state.lastY+a}var c=B(o,n,r);if(!1!==o.props.onDrag(e,c))o.setState({lastX:n,lastY:r});else try{o.handleDragStop(new MouseEvent("mouseup"))}catch(e){var l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.handleDragStop(l)}}},o.handleDragStop=function(t){if(o.state.dragging){var n=R(t,o.state.touchIdentifier,o);if(null!=n){var r=n.x,i=n.y,a=B(o,r,i),s=e.findDOMNode(o);s&&o.props.enableUserSelectHack&&C(s.ownerDocument),o.setState({dragging:!1,lastX:NaN,lastY:NaN}),o.props.onStop(t,a),s&&(g(s.ownerDocument,Ae.move,o.handleDrag),g(s.ownerDocument,Ae.stop,o.handleDragStop))}}},o.onMouseDown=function(e){return Ae=be.mouse,o.handleDragStart(e)},o.onMouseUp=function(e){return Ae=be.mouse,o.handleDragStop(e)},o.onTouchStart=function(e){return Ae=be.touch,o.handleDragStart(e)},o.onTouchEnd=function(e){return Ae=be.touch,o.handleDragStop(e)},i=n,me(o,i)}return ye(r,n),pe(r,[{key:"componentWillUnmount",value:function(){var t=e.findDOMNode(this);if(t){var n=t.ownerDocument;g(n,be.mouse.move,this.handleDrag),g(n,be.touch.move,this.handleDrag),g(n,be.mouse.stop,this.handleDragStop),g(n,be.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&C(n)}}},{key:"render",value:function(){return t.cloneElement(t.Children.only(this.props.children),{style:T(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(t.Component);we.displayName="DraggableCore",we.propTypes={allowAnyClick:se.bool,disabled:se.bool,enableUserSelectHack:se.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:se.arrayOf(se.number),scale:se.number,handle:se.string,cancel:se.string,onStart:se.func,onDrag:se.func,onStop:se.func,onMouseDown:se.func,className:f,style:f,transform:f},we.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}};var _e=function(n){function r(e){fe(this,r);var t=me(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.onDragStart=function(e,n){if(!1===t.props.onStart(e,F(t,n)))return!1;t.setState({dragging:!0,dragged:!0})},t.onDrag=function(e,n){if(!t.state.dragging)return!1;var r=F(t,n),o={x:r.x,y:r.y};if(t.props.bounds){var i=o.x,a=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var s=I(t,o.x,o.y),u=ge(s,2),c=u[0],l=u[1];o.x=c,o.y=l,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(a-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)},t.onDragStop=function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,F(t,n)))return!1;var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)},t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return ye(r,n),pe(r,[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&e.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n={},r=null,o=Boolean(this.props.position),i=!o||this.state.dragging,a=this.props.position||this.props.defaultPosition,s={x:D(this)&&i?this.state.x:a.x,y:L(this)&&i?this.state.y:a.y};this.state.isElementSVG?r=x(s,this.props.positionOffset):n=O(s,this.props.positionOffset);var u=this.props,c=u.defaultClassName,l=u.defaultClassNameDragging,f=u.defaultClassNameDragged,p=t.Children.only(this.props.children),h=ue(p.props.className||"",c,(e={},he(e,l,this.state.dragging),he(e,f,this.state.dragged),e));return t.createElement(we,de({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(p,{className:h,style:de({},p.props.style,n),transform:r}))}}]),r}(t.Component);return _e.displayName="Draggable",_e.propTypes=de({},we.propTypes,{axis:se.oneOf(["both","x","y","none"]),bounds:se.oneOfType([se.shape({left:se.number,right:se.number,top:se.number,bottom:se.number}),se.string,se.oneOf([!1])]),defaultClassName:se.string,defaultClassNameDragging:se.string,defaultClassNameDragged:se.string,defaultPosition:se.shape({x:se.number,y:se.number}),positionOffset:se.shape({x:se.oneOfType([se.number,se.string]),y:se.oneOfType([se.number,se.string])}),position:se.shape({x:se.number,y:se.number}),className:f,style:f,transform:f}),_e.defaultProps=de({},we.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}),_e.default=_e,_e.DraggableCore=we,_e})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function s(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)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;te[s]&&(r=s)}return r}function o(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function i(e,t,n,r,o,i){if(e[n])return(0,s.cloneLayout)(e[n]);for(var u=e[r],c=a(t),l=c.slice(c.indexOf(n)),f=0,p=l.length;fc){for(var t=0,n=a.length-u;t-1?t:e}function h(e,t){t=t||{};var n=t.body;if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function y(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function m(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},A=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},f.call(h.prototype),f.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];m.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=h,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,r){var o=new h(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new m(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),i=n(39),a=n.n(i),s=n(24),u=n(126),c=n(411),l=n(423),f=n(891);n.n(f);a.a.render(o.a.createElement(s.a,{store:c.a},o.a.createElement(u.a,{history:c.b},o.a.createElement(l.a,null))),document.getElementById("edx-figures-app"))},function(e,t,n){"use strict";function r(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rY.length&&Y.push(e)}function h(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case _:case O:a=!0}}if(a)return n(o,e,""===t?"."+y(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;st}return!1}function C(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}function T(e){return e[1].toUpperCase()}function P(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function M(e,t,n,r){var o=xi.hasOwnProperty(t)?xi[t]:null;(null!==o?0===o.type:!r&&(2=t.length))throw r(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:P(n)}}function K(e,t){var n=P(t.value),r=P(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function q(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Z(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function J(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Z(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function X(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function $(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function ee(e){if(Ti[e])return Ti[e];if(!Ci[e])return e;var t,n=Ci[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pi)return Ti[e]=n[t];return e}function te(e){var t=Ue(e);Yi.forEach(function(n){ze(n,e,t)}),Vi.forEach(function(n){ze(n,e,t)})}function ne(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function re(e,t){switch(e){case"focus":case"blur":Fi=null;break;case"dragenter":case"dragleave":Ui=null;break;case"mouseover":case"mouseout":zi=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function oe(e,t,n,r,o){return null===e||e.nativeEvent!==o?ne(t,n,r,o):(e.eventSystemFlags|=r,e)}function ie(e,t,n,r){switch(t){case"focus":return Fi=oe(Fi,e,t,n,r),!0;case"dragenter":return Ui=oe(Ui,e,t,n,r),!0;case"mouseover":return zi=oe(zi,e,t,n,r),!0;case"pointerover":var o=r.pointerId;return Wi.set(o,oe(Wi.get(o)||null,e,t,n,r)),!0;case"gotpointercapture":return o=r.pointerId,Hi.set(o,oe(Hi.get(o)||null,e,t,n,r)),!0}return!1}function ae(e){if(null!==e.blockedOn)return!1;var t=Be(e.topLevelType,e.eventSystemFlags,e.nativeEvent);return null===t||(e.blockedOn=t,!1)}function se(e,t,n){ae(e)&&n.delete(t)}function ue(){for(Ri=!1;0this.eventPool.length&&this.eventPool.push(e)}function je(e){e.eventPool=[],e.getPooled=Ee,e.release=Se}function ke(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ce(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ta[e])&&!!t[e]}function Te(){return Ce}function Pe(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=ot(r)}while(n);for(n=0;n=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qe(n)}}function Je(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Je(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xe(){for(var e=window,t=Ke();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Ke(e.document)}return t}function $e(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function et(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function tt(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function nt(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function rt(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Ma||n===Da||n===Na){if(0===t)return e;t--}else n===Ia&&t++}e=e.previousSibling}return null}function ot(e){var t=e[za];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ha]||n[za]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rt(e);null!==e;){if(n=e[za])return n;e=rt(e)}return t}e=n,n=e.parentNode}return null}function it(e){return e=e[za]||e[Ha],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function at(e){if(5===e.tag||6===e.tag)return e.stateNode;throw r(Error(33))}function st(e){return e[Wa]||null}function ut(){if(Ga)return Ga;var e,t,n=Va,r=n.length,o="value"in Ya?Ya.value:Ya.textContent,i=o.length;for(e=0;ejs||(e.current=Ss[js],Ss[js]=null,js--)}function kt(e,t){js++,Ss[js]=e.current,e.current=t}function Ct(e,t){var n=e.type.contextTypes;if(!n)return ks;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pt(e){jt(Ts,e),jt(Cs,e)}function Mt(e){jt(Ts,e),jt(Cs,e)}function It(e,t,n){if(Cs.current!==ks)throw r(Error(168));kt(Cs,t,e),kt(Ts,n,e)}function Nt(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!==typeof o.getChildContext)return n;o=o.getChildContext();for(var i in o)if(!(i in e))throw r(Error(108),g(t)||"Unknown",i);return Mo({},n,{},o)}function Dt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||ks,Ps=Cs.current,kt(Cs,t,e),kt(Ts,Ts.current,e),!0}function Lt(e,t,n){var o=e.stateNode;if(!o)throw r(Error(169));n?(t=Nt(e,t,Ps),o.__reactInternalMemoizedMergedChildContext=t,jt(Ts,e),jt(Cs,e),kt(Cs,t,e)):jt(Ts,e),kt(Ts,n,e)}function Rt(){switch(Bs()){case Fs:return 99;case Us:return 98;case zs:return 97;case Ws:return 96;case Hs:return 95;default:throw r(Error(332))}}function Bt(e){switch(e){case 99:return Fs;case 98:return Us;case 97:return zs;case 96:return Ws;case 95:return Hs;default:throw r(Error(332))}}function Ft(e,t){return e=Bt(e),Ms(e,t)}function Ut(e,t,n){return e=Bt(e),Is(e,t,n)}function zt(e){return null===Gs?(Gs=[e],Qs=Is(Fs,Ht)):Gs.push(e),Ys}function Wt(){if(null!==Qs){var e=Qs;Qs=null,Ns(e)}Ht()}function Ht(){if(!Ks&&null!==Gs){Ks=!0;var e=0;try{var t=Gs;Ft(99,function(){for(;e=t&&(Nu=!0),e.firstContext=null)}function Zt(e,t){if(eu!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(eu=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$s){if(null===Xs)throw r(Error(308));$s=t,Xs.dependencies={expirationTime:0,firstContext:t,responders:null}}else $s=$s.next=t;return e._currentValue}function Jt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $t(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function en(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function tn(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Jt(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Jt(e.memoizedState),o=n.updateQueue=Jt(n.memoizedState)):r=e.updateQueue=Xt(o):null===o&&(o=n.updateQueue=Xt(r));null===o||r===o?en(r,t):null===r.lastUpdate||null===o.lastUpdate?(en(r,t),en(o,t)):(en(r,t),o.lastUpdate=t)}function nn(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=Jt(e.memoizedState):rn(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function rn(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Xt(t)),t}function on(e,t,n,r,o,i){switch(n.tag){case 1:return e=n.payload,"function"===typeof e?e.call(i,r,o):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(e=n.payload,null===(o="function"===typeof e?e.call(i,r,o):e)||void 0===o)break;return Mo({},r,o);case 2:tu=!0}return r}function an(e,t,n,r,o){tu=!1,t=rn(e,t);for(var i=t.baseState,a=null,s=0,u=t.firstUpdate,c=i;null!==u;){var l=u.expirationTime;ly?(m=f,f=null):m=f.sibling;var g=h(r,f,s[y],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(r,f),i=a(g,i,y),null===l?c=g:l.sibling=g,l=g,f=m}if(y===s.length)return n(r,f),c;if(null===f){for(;yg?(v=m,m=null):v=m.sibling;var A=h(i,m,b.value,c);if(null===A){null===m&&(m=v);break}e&&m&&null===A.alternate&&t(i,m),s=a(A,s,g),null===f?l=A:f.sibling=A,f=A,m=v}if(b.done)return n(i,m),l;if(null===m){for(;!b.done;g++,b=u.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,g),null===f?l=b:f.sibling=b,f=b);return l}for(m=o(i,m);!b.done;g++,b=u.next())null!==(b=d(m,i,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===f?l=b:f.sibling=b,f=b);return e&&m.forEach(function(e){return t(i,e)}),l}return function(e,o,a,u){var c="object"===typeof a&&null!==a&&a.type===ti&&null===a.key;c&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case $o:e:{for(l=a.key,c=o;null!==c;){if(c.key===l){if(7===c.tag?a.type===ti:c.elementType===a.type){n(e,c.sibling),o=i(c,a.type===ti?a.props.children:a.props,u),o.ref=dn(e,c,a),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===ti?(o=so(a.props.children,e.mode,u,a.key),o.return=e,e=o):(u=ao(a.type,a.key,a.props,null,e.mode,u),u.ref=dn(e,o,a),u.return=e,e=u)}return s(e);case ei:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=co(a,e.mode,u),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,u),o.return=e,e=o):(n(e,o),o=uo(a,e.mode,u),o.return=e,e=o),s(e);if(iu(a))return m(e,o,a,u);if(y(a))return g(e,o,a,u);if(l&&yn(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,r(Error(152),e.displayName||e.name||"Component")}return n(e,o)}}function gn(e){if(e===uu)throw r(Error(174));return e}function vn(e,t){kt(fu,t,e),kt(lu,e,e),kt(cu,uu,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:J(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=J(t,n)}jt(cu,e),kt(cu,t,e)}function bn(e){jt(cu,e),jt(lu,e),jt(fu,e)}function An(e){gn(fu.current);var t=gn(cu.current),n=J(t,e.type);t!==n&&(kt(lu,e,e),kt(cu,n,e))}function wn(e){lu.current===e&&(jt(cu,e),jt(lu,e))}function _n(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Na||n.data===Da))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if((64&t.effectTag)!==Gi)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function On(e,t){return{responder:e,props:t}}function xn(){throw r(Error(321))}function En(e,t){if(null===t)return!1;for(var n=0;nwu&&(wu=f,Fr(wu))):(Br(f,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),s=c,c=c.next}while(null!==c&&c!==o);l||(u=s,i=a),hs(a,t.memoizedState)||(Nu=!0),t.memoizedState=a,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Mn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===_u?(_u={lastEffect:null},_u.lastEffect=e.next=e):(t=_u.lastEffect,null===t?_u.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,_u.lastEffect=e)),e}function In(e,t,n,r){var o=kn();Ou|=e,o.memoizedState=Mn(t,n,void 0,void 0===r?null:r)}function Nn(e,t,n,r){var o=Cn();r=void 0===r?null:r;var i=void 0;if(null!==mu){var a=mu.memoizedState;if(i=a.destroy,null!==r&&En(r,a.deps))return void Mn(0,n,i,r)}Ou|=e,o.memoizedState=Mn(t,n,i,r)}function Dn(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ln(){}function Rn(e,t,n){if(!(25>Su))throw r(Error(301));var o=e.alternate;if(e===yu||null!==o&&o===yu)if(xu=!0,e={expirationTime:du,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Eu&&(Eu=new Map),void 0===(n=Eu.get(t)))Eu.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=wr(),a=nu.suspense;i=_r(i,e,a),a={expirationTime:i,suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var s=t.last;if(null===s)a.next=a;else{var u=s.next;null!==u&&(a.next=u),s.next=a}if(t.last=a,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var c=t.lastRenderedState,l=o(c,n);if(a.eagerReducer=o,a.eagerState=l,hs(l,c))return}catch(e){}Or(e,i)}}function Bn(e,t){var n=no(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Un(e){if(Mu){var t=Pu;if(t){var n=t;if(!Fn(e,t)){if(!(t=nt(n.nextSibling))||!Fn(e,t))return e.effectTag=e.effectTag&~Ki|Qi,Mu=!1,void(Tu=e);Bn(Tu,n)}Tu=e,Pu=nt(t.firstChild)}else e.effectTag=e.effectTag&~Ki|Qi,Mu=!1,Tu=e}}function zn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Tu=e}function Wn(e){if(e!==Tu)return!1;if(!Mu)return zn(e),Mu=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!tt(t,e.memoizedProps))for(t=Pu;t;)Bn(e,t),t=nt(t.nextSibling);if(zn(e),13===e.tag)if(e=e.memoizedState,null===(e=null!==e?e.dehydrated:null))e=Pu;else e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Ia){if(0===t){e=nt(e.nextSibling);break e}t--}else n!==Ma&&n!==Da&&n!==Na||t++}e=e.nextSibling}e=null}else e=Tu?nt(e.stateNode.nextSibling):null;return Pu=e,!0}function Hn(){Pu=Tu=null,Mu=!1}function Yn(e,t,n,r){t.child=null===e?su(t,null,n,r):au(t,e.child,n,r)}function Vn(e,t,n,r,o){n=n.render;var i=t.ref;return qt(t,o),r=Sn(e,t,n,r,i,o),null===e||Nu?(t.effectTag|=1,Yn(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),nr(e,t,o))}function Gn(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||ro(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=ao(n.type,null,r,null,t.mode,i),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Qn(e,t,a,r,o,i))}return a=e.child,ot)&&bc.set(e,t))}}function xr(e,t){e.expirationTimee?t:e):t)}function Sr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=zt(kr.bind(null,e));else{var t=Er(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=wr();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Ys&&Ns(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?zt(kr.bind(null,e)):Ut(r,jr.bind(null,e),{timeout:10*(1073741821-t)-Zs()}),e.callbackNode=t}}}function jr(e,t){if(_c=0,t)return t=wr(),yo(e,t),Sr(e),null;var n=Er(e);if(0!==n){if(t=e.callbackNode,($u&(Yu|Vu))!==Wu)throw r(Error(327));if(Kr(),e===ec&&n===nc||Dr(e,n),null!==tc){var o=$u;$u|=Yu;for(var i=Rr();;)try{zr();break}catch(t){Lr(e,t)}if(Vt(),$u=o,Uu.current=i,rc===Qu)throw t=oc,Dr(e,n),po(e,n),Sr(e),t;if(null===tc)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,Tr(e,n),o=rc,ec=null,o){case Gu:case Qu:throw r(Error(345));case Ku:if(2!==n){yo(e,2);break}Vr(e);break;case qu:if(po(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=Yr(i)),1073741823===ic&&10<(i=lc+fc-Zs())){if(cc){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,Dr(e,n);break}}if(0!==(a=Er(e))&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Ba(Vr.bind(null,e),i);break}Vr(e);break;case Zu:if(po(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=Yr(i)),cc&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,Dr(e,n);break}if(0!==(i=Er(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==ac?o=10*(1073741821-ac)-Zs():1073741823===ic?o=0:(o=10*(1073741821-ic)-5e3,i=Zs(),n=10*(1073741821-n)-i,o=i-o,0>o&&(o=0),o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Fu(o/1960))-o,n=o?o=0:(i=0|s.busyDelayMs,a=Zs()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),o=a<=i?0:i+o-a),10=t&&(Ut(97,function(){return n._onComplete(),null}),rc=Xu)}function Pr(){if(null!==bc){var e=bc;bc=null,e.forEach(function(e,t){yo(t,e),Sr(t)}),Wt()}}function Mr(e,t){var n=$u;$u|=1;try{return e(t)}finally{($u=n)===Wu&&Wt()}}function Ir(e,t,n,r){var o=$u;$u|=4;try{return Ft(98,e.bind(null,t,n,r))}finally{($u=o)===Wu&&Wt()}}function Nr(e,t){var n=$u;$u&=-2,$u|=Hu;try{return e(t)}finally{($u=n)===Wu&&Wt()}}function Dr(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Fa(n)),null!==tc)for(n=tc.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!==o&&void 0!==o&&Pt(r);break;case 3:bn(r),Mt(r);break;case 5:wn(r);break;case 4:bn(r);break;case 13:case 19:jt(pu,r);break;case 10:Qt(r)}n=n.return}ec=e,tc=io(e.current,null),nc=t,rc=Gu,oc=null,ac=ic=1073741823,sc=null,uc=0,cc=!1}function Lr(e,t){for(;;){try{if(Vt(),jn(),null===tc||null===tc.return)return rc=Qu,oc=t,null;e:{var n=e,r=tc.return,o=tc,i=t;if(t=nc,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==i&&"object"===typeof i&&"function"===typeof i.then){var a=i,s=0!==(1&pu.current),u=r;do{var c;if(c=13===u.tag){var l=u.memoizedState;if(null!==l)c=null!==l.dehydrated;else{var f=u.memoizedProps;c=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!s)}}if(c){var p=u.updateQueue;if(null===p){var h=new Set;h.add(a),u.updateQueue=h}else p.add(a);if(0===(2&u.mode)){if(u.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var d=$t(1073741823,null);d.tag=2,tn(o,d)}o.expirationTime=1073741823;break e}i=void 0,o=t;var y=n.pingCache;if(null===y?(y=n.pingCache=new Bu,i=new Set,y.set(a,i)):void 0===(i=y.get(a))&&(i=new Set,y.set(a,i)),!i.has(o)){i.add(o);var m=Xr.bind(null,n,a,o);a.then(m,m)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);i=Error((g(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display."+v(o))}rc!==Ju&&(rc=Ku),i=ar(i,o),u=r;do{switch(u.tag){case 3:a=i,u.effectTag|=4096,u.expirationTime=t;nn(u,br(u,a,t));break e;case 1:a=i;var b=u.type,A=u.stateNode;if((64&u.effectTag)===Gi&&("function"===typeof b.getDerivedStateFromError||null!==A&&"function"===typeof A.componentDidCatch&&(null===yc||!yc.has(A)))){u.effectTag|=4096,u.expirationTime=t;nn(u,Ar(u,a,t));break e}}u=u.return}while(null!==u)}tc=Hr(tc)}catch(e){t=e;continue}break}}function Rr(){var e=Uu.current;return Uu.current=ju,null===e?ju:e}function Br(e,t){euc&&(uc=e)}function Ur(){for(;null!==tc;)tc=Wr(tc)}function zr(){for(;null!==tc&&!Ds();)tc=Wr(tc)}function Wr(e){var t=Lu(e.alternate,e,nc);return e.memoizedProps=e.pendingProps,null===t&&(t=Hr(e)),zu.current=null,t}function Hr(e){tc=e;do{var t=tc.alternate;if(e=tc.return,(2048&tc.effectTag)===Gi){e:{var n=t;t=tc;var o=nc,i=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Tt(t.type)&&Pt(t);break;case 3:bn(t),Mt(t),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===n||null===n.child)&&Wn(t)&&rr(t),Os(t);break;case 5:wn(t),o=gn(fu.current);var a=t.type;if(null!==n&&null!=t.stateNode)xs(n,t,a,i,o),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=gn(cu.current);if(Wn(t)){i=t,a=void 0,n=i.stateNode;var u=i.type,c=i.memoizedProps;switch(n[za]=i,n[Wa]=c,u){case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(var l=0;l