!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NmodesWidget=t():e.NmodesWidget=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="dist/",t(t.s=305)}([function(e,t,n){"use strict";e.exports=n(306)},function(e,t,n){e.exports=n(315)()},function(e,t,n){"use strict";(function(e){function r(e){return e.replace(_,"-$1").toLowerCase()}function i(e){return S(e).replace(E,"-ms-")}function o(e){return"string"==typeof e}function a(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function s(e){return e.displayName||e.name||"Component"}function c(e){return e.replace(le,"-").replace(fe,"")}function u(e,t){for(var n=1540483477,r=t^e.length,i=e.length,o=0;i>=4;){var a=l(e,o);a=p(a,n),a^=a>>>24,a=p(a,n),r=p(r,n),r^=a,o+=4,i-=4}switch(i){case 3:r^=f(e,o),r^=e.charCodeAt(o+2)<<16,r=p(r,n);break;case 2:r^=f(e,o),r=p(r,n);break;case 1:r^=e.charCodeAt(o),r=p(r,n)}return r^=r>>>13,r=p(r,n),(r^=r>>>15)>>>0}function l(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function f(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function p(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}n.d(t,"d",function(){return Ee}),n.d(t,"c",function(){return Ce}),n.d(t,"a",function(){return ge}),n.d(t,"e",function(){return ke});var h,d=n(312),m=n.n(d),y=n(314),g=n.n(y),b=n(0),v=n.n(b),w=n(1),x=n.n(w),O=n(317),k=n.n(O),_=/([A-Z])/g,j=r,S=j,E=/^ms-/,C=i,T=function e(t,n){var r=Object.keys(t).filter(function(e){var n=t[e];return void 0!==n&&null!==n&&!1!==n&&""!==n}).map(function(n){return m()(t[n])?e(t[n],n):C(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},A=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||!1===r||""===r?t:Array.isArray(r)?[].concat(t,e(r,n)):r.hasOwnProperty("styledComponentId")?[].concat(t,["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,e([r(n)],n)):t.concat(r):t.concat(m()(r)?T(r):r.toString())},[])},P=new g.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),M=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,""),i=t&&n?n+" "+t+" { "+r+" }":r;return P(n||!t?"":t,i)},N="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),I=N.length,L=function(e){var t="",n=void 0;for(n=e;n>I;n=Math.floor(n/I))t=N[n%I]+t;return N[n%I]+t},R=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},D=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},V=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Y=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";U(this,e),this.el=t,this.isLocal=n,this.ready=!1;var i=B(r);this.size=i.length,this.components=i.reduce(function(e,t){return e[t.componentId]=t,e},{})}return e.prototype.isFull=function(){return this.size>=40},e.prototype.addComponent=function(e){this.ready||this.replaceElement();var t={componentId:e,textNode:document.createTextNode("")};this.el.appendChild(t.textNode),this.size+=1,this.components[e]=t},e.prototype.inject=function(e,t,n){this.ready||this.replaceElement();var r=this.components[e];if(""===r.textNode.data&&r.textNode.appendData("\n/* sc-component-id: "+e+" */\n"),r.textNode.appendData(t),n){var i=this.el.getAttribute(K);this.el.setAttribute(K,i?i+" "+n:n)}var o=F();o&&this.el.setAttribute("nonce",o)},e.prototype.toHTML=function(){return this.el.outerHTML},e.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},e.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},e.prototype.replaceElement=function(){var e=this;if(this.ready=!0,0!==this.size){var t=this.el.cloneNode();if(t.appendChild(document.createTextNode("\n")),Object.keys(this.components).forEach(function(n){var r=e.components[n];r.textNode=document.createTextNode(r.cssFromDOM),t.appendChild(r.textNode)}),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(t,this.el),this.el=t}},e}(),X={create:function(){for(var e=[],t={},n=document.querySelectorAll("["+K+"]"),r=n.length,i=0;i");return document.head.appendChild(t),new Y(t,e)},e,t)}},K="data-styled-components",$="data-styled-components-is-local",Z="__styled-components-stylesheet__",Q=null,J=[],ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};U(this,e),this.hashes={},this.deferredInjections={},this.stylesCacheable="undefined"!=typeof document,this.tagConstructor=t,this.tags=n,this.names=r,this.constructComponentTagMap()}return e.prototype.constructComponentTagMap=function(){var e=this;this.componentTags={},this.tags.forEach(function(t){Object.keys(t.components).forEach(function(n){e.componentTags[n]=t})})},e.prototype.getName=function(e){return this.hashes[e.toString()]},e.prototype.alreadyInjected=function(e,t){return!!this.names[t]&&(this.hashes[e.toString()]=t,!0)},e.prototype.hasInjectedComponent=function(e){return!!this.componentTags[e]},e.prototype.deferredInject=function(e,t,n){this===Q&&J.forEach(function(r){r.deferredInject(e,t,n)}),this.getOrCreateTag(e,t),this.deferredInjections[e]=n},e.prototype.inject=function(e,t,n,r,i){this===Q&&J.forEach(function(r){r.inject(e,t,n)});var o=this.getOrCreateTag(e,t),a=this.deferredInjections[e];a&&(o.inject(e,a),delete this.deferredInjections[e]),o.inject(e,n,i),r&&i&&(this.hashes[r.toString()]=i)},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){return this.tags.map(function(e,t){return e.toReactElement("sc-"+t)})},e.prototype.getOrCreateTag=function(e,t){var n=this.componentTags[e];if(n)return n;var r=this.tags[this.tags.length-1],i=!r||r.isFull()||r.isLocal!==t?this.createNewTag(t):r;return this.componentTags[e]=i,i.addComponent(e),i},e.prototype.createNewTag=function(e){var t=this.tagConstructor(e);return this.tags.push(t),t},e.reset=function(t){Q=e.create(t)},e.create=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof document)?oe:X).create()},e.clone=function(t){var n=new e(t.tagConstructor,t.tags.map(function(e){return e.clone()}),H({},t.names));return n.hashes=H({},t.hashes),n.deferredInjections=H({},t.deferredInjections),J.push(n),n},W(e,null,[{key:"instance",get:function(){return Q||(Q=e.create())}}]),e}(),te=function(e){function t(){return U(this,t),V(this,e.apply(this,arguments))}return q(t,e),t.prototype.getChildContext=function(){var e;return e={},e[Z]=this.props.sheet,e},t.prototype.render=function(){return v.a.Children.only(this.props.children)},t}(b.Component);te.childContextTypes=(h={},h[Z]=x.a.oneOfType([x.a.instanceOf(ee),x.a.instanceOf(oe)]).isRequired,h),te.propTypes={sheet:x.a.oneOfType([x.a.instanceOf(ee),x.a.instanceOf(oe)]).isRequired};var ne,re,ie=function(){function e(t){U(this,e),this.isLocal=t,this.components={},this.size=0,this.names=[]}return e.prototype.isFull=function(){return!1},e.prototype.addComponent=function(e){this.components[e]={componentId:e,css:""},this.size+=1},e.prototype.concatenateCSS=function(){var e=this;return Object.keys(this.components).reduce(function(t,n){return t+e.components[n].css},"")},e.prototype.inject=function(e,t,n){var r=this.components[e];""===r.css&&(r.css="/* sc-component-id: "+e+" */\n"),r.css+=t.replace(/\n*$/,"\n"),n&&this.names.push(n)},e.prototype.toHTML=function(){var e=['type="text/css"',K+'="'+this.names.join(" ")+'"',$+'="'+(this.isLocal?"true":"false")+'"'],t=F();return t&&e.push('nonce="'+t+'"'),""},e.prototype.toReactElement=function(e){var t,n=(t={},t[K]=this.names.join(" "),t[$]=this.isLocal.toString(),t),r=F();return r&&(n.nonce=r),v.a.createElement("style",H({key:e,type:"text/css"},n,{dangerouslySetInnerHTML:{__html:this.concatenateCSS()}}))},e.prototype.clone=function(){var t=this,n=new e(this.isLocal);return n.names=[].concat(this.names),n.size=this.size,n.components=Object.keys(this.components).reduce(function(e,n){return e[n]=H({},t.components[n]),e},{}),n},e}(),oe=function(){function e(){U(this,e),this.instance=ee.clone(ee.instance)}return e.prototype.collectStyles=function(e){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return v.a.createElement(te,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.closed||(J.splice(J.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.closed||(J.splice(J.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},e.create=function(){return new ee(function(e){return new ie(e)})},e}(),ae=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|(?:attribute|glyph)Nam|playsInlin|(?:formE|e)ncTyp|(?:writing|input|edge)Mod|(?:xlinkTy|itemSco|keyTy|slo)p|(?:amplitu|mo)d|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ntrol|ord)s|o(?:lor(?:Interpolation)?|ntent)|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|o(?:ntextMenu|ls)|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|(?:rossOrigi|olSpa)n|apHeight|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|formActio|zoomAndPa|onFocusI|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:gradientT|patternT|t)ransform|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|a(?:utoCorrec|bou)|markerStar|onFocusOu|in(?:tercep|lis)|restar|forma|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|m(?:arkerMi|etho)|preloa|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:allowFullScre|hidd)en|strokeDasharray|systemLanguage|(?:strokeLineca|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|unicodeRange|(?:(?:allowReord|placehold|frameBord|paintOrd|post|ord)e|repeatDu|d(?:efe|u))r|mathematical|(?:vI|i)deographic|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|vAlphabetic|mediaGroup|spellCheck|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|(?:xmlnsXl|valueL)ink|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|(?:text|m(?:in|ax))Length|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|r(?:e(?:quired|sult|f))?|o(?:verflow|pen)|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|f(?:o(?:ntSize|rm)|il(?:ter|l))|autoPlay|unicode|p(?:attern|oints)|t(?:arget[XY]|o)|i(?:temRef|n2|s)|divisor|d(?:efault|ata|ir)?|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|(?:stri|la)ng|prefix|itemID|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|s)|t(?:arget|ype)|typeof|width|value|x(?:mlns)?|label|m(?:edia|a(?:sk|x)|in)|size|href|k(?:ey)?|end|low|x[12]|i[dn]|y[12]|g[12]|by|f[xy]|[yz])$/,se=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),ce=function(e){return ae.test(e)||se(e.toLowerCase())},ue=function(e,t,n){var r=n&&e.theme===n.theme;return e.theme&&!r?e.theme:t},le=/[[\].#*$><+~=|^:(),"'`-]+/g,fe=/(^-|-$)/g,pe=function(e){function t(e){a=e;for(var t in i){var n=i[t];void 0!==n&&n(a)}}function n(e){var t=o;return i[t]=e,o+=1,e(a),t}function r(e){i[e]=void 0}var i={},o=0,a=e;return{publish:t,subscribe:n,unsubscribe:r}},he="__styled-components__",de=he+"next__",me=x.a.shape({getTheme:x.a.func,subscribe:x.a.func,unsubscribe:x.a.func}),ye=function(e){return"function"==typeof e},ge=function(e){function t(){U(this,t);var n=V(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return q(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[de];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t})),this.broadcast=pe(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return H({},this.context,(e={},e[de]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[he]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[de].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(ye(t))return t(this.outerTheme);if(!m()(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return H({},this.outerTheme,t)},t.prototype.render=function(){return this.props.children?v.a.Children.only(this.props.children):null},t}(b.Component);ge.childContextTypes=(ne={},ne[he]=x.a.func,ne[de]=me,ne),ge.contextTypes=(re={},re[de]=me,re);var be={},ve=function e(t,n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o=function(t){for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s1?i-1:0),a=1;a1?r-1:0),o=1;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"c",function(){return j}),n.d(t,"a",function(){return S}),n.d(t,"d",function(){return C}),n.d(t,"b",function(){return T}),n.d(t,"e",function(){return A}),n.d(t,"k",function(){return P}),n.d(t,"i",function(){return M}),n.d(t,"j",function(){return N}),n.d(t,"l",function(){return I}),n.d(t,"f",function(){return R}),n.d(t,"g",function(){return z}),n.d(t,"r",function(){return B}),n.d(t,"o",function(){return F}),n.d(t,"h",function(){return H}),n.d(t,"n",function(){return G}),n.d(t,"q",function(){return V}),n.d(t,"m",function(){return Y}),n.d(t,"p",function(){return X});var u=n(20),l=n.n(u),f=n(79),p=n.n(f),h=n(47),d=n.n(h),m=n(7),y=n.n(m),g=n(15),b=n.n(g),v=n(0),w=n.n(v),x=n(1),O=n.n(x),k=n(6),_=n(83),j={"aria-current":O.a.string,"aria-details":O.a.any,"aria-disabled":O.a.any,"aria-hidden":O.a.any,"aria-invalid":O.a.any,"aria-keyshortcuts":O.a.any,"aria-label":O.a.any,"aria-roledescription":O.a.any,"aria-autocomplete":O.a.any,"aria-checked":O.a.any,"aria-expanded":O.a.any,"aria-haspopup":O.a.any,"aria-level":O.a.any,"aria-modal":O.a.any,"aria-multiline":O.a.any,"aria-multiselectable":O.a.any,"aria-orientation":O.a.any,"aria-placeholder":O.a.any,"aria-pressed":O.a.any,"aria-readonly":O.a.any,"aria-required":O.a.any,"aria-selected":O.a.any,"aria-sort":O.a.any,"aria-valuemax":O.a.any,"aria-valuemin":O.a.any,"aria-valuenow":O.a.any,"aria-valuetext":O.a.any,"aria-atomic":O.a.any,"aria-busy":O.a.any,"aria-live":O.a.any,"aria-relevant":O.a.any,"aria-dropeffect":O.a.any,"aria-grabbed":O.a.any,"aria-activedescendant":O.a.any,"aria-colcount":O.a.any,"aria-colindex":O.a.any,"aria-colspan":O.a.any,"aria-controls":O.a.any,"aria-describedby":O.a.any,"aria-errormessage":O.a.any,"aria-flowto":O.a.any,"aria-labelledby":O.a.any,"aria-owns":O.a.any,"aria-posinset":O.a.any,"aria-rowcount":O.a.any,"aria-rowindex":O.a.any,"aria-rowspan":O.a.any,"aria-setsize":O.a.any,alignmentBaseline:O.a.string,angle:O.a.number,baselineShift:O.a.string,clip:O.a.string,clipPath:O.a.string,clipRule:O.a.string,color:O.a.string,colorInterpolation:O.a.string,colorInterpolationFilters:O.a.string,colorProfile:O.a.string,colorRendering:O.a.string,cursor:O.a.string,direction:O.a.oneOf(["ltr","rtl","inherit"]),display:O.a.string,dominantBaseline:O.a.string,enableBackground:O.a.string,fill:O.a.string,fillOpacity:O.a.oneOfType([O.a.string,O.a.number]),fillRule:O.a.oneOf(["nonzero","evenodd","inherit"]),filter:O.a.string,floodColor:O.a.string,floodOpacity:O.a.oneOfType([O.a.string,O.a.number]),font:O.a.string,fontFamily:O.a.string,fontSize:O.a.oneOfType([O.a.number,O.a.string]),fontSizeAdjust:O.a.oneOfType([O.a.number,O.a.string]),fontStretch:O.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:O.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:O.a.oneOf(["normal","small-caps","inherit"]),fontWeight:O.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:O.a.string,glyphOrientationVertical:O.a.string,imageRendering:O.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:O.a.oneOfType([O.a.number,O.a.string]),letterSpacing:O.a.oneOfType([O.a.number,O.a.string]),lightingColor:O.a.string,lineHeight:O.a.oneOfType([O.a.number,O.a.string]),markerEnd:O.a.string,markerMid:O.a.string,markerStart:O.a.string,mask:O.a.string,opacity:O.a.oneOfType([O.a.number,O.a.string]),overflow:O.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:O.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:O.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:O.a.string,stopOpacity:O.a.oneOfType([O.a.number,O.a.string]),stroke:O.a.oneOfType([O.a.number,O.a.string]),strokeDasharray:O.a.string,strokeDashoffset:O.a.oneOfType([O.a.number,O.a.string]),strokeLinecap:O.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:O.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:O.a.oneOfType([O.a.number,O.a.string]),strokeOpacity:O.a.oneOfType([O.a.number,O.a.string]),strokeWidth:O.a.oneOfType([O.a.number,O.a.string]),textAnchor:O.a.oneOf(["start","middle","end","inherit"]),textDecoration:O.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:O.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:O.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:O.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:O.a.oneOfType([O.a.number,O.a.string]),writingMode:O.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:O.a.string,role:O.a.string,focusable:O.a.string,tabIndex:O.a.string,style:O.a.object,width:O.a.number,height:O.a.number,dx:O.a.number,dy:O.a.number,x:O.a.number,y:O.a.number,r:O.a.number,radius:O.a.oneOfType([O.a.number,O.a.array])},S={onClick:O.a.func,onMouseDown:O.a.func,onMouseUp:O.a.func,onMouseOver:O.a.func,onMouseMove:O.a.func,onMouseOut:O.a.func,onMouseEnter:O.a.func,onMouseLeave:O.a.func,onTouchEnd:O.a.func,onTouchMove:O.a.func,onTouchStart:O.a.func,onTouchCancel:O.a.func},E={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},C=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],T=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],A=["none"],P=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},M=function(e,t){var n=[],r=[];return r=b()(t)?t.map(function(e){return P(e)}):[P(t)],w.a.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n},N=function(e,t){var n=M(e,t);return n&&n[0]},I=function(e){if(!e||y()(e))return null;var t=w.a.isValidElement(e)?e.props:e;if(!d()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&j[r]&&(n||(n={}),n[r]=t[r]);return n},L=function(e,t){return function(n){return e(t,n),null}},R=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||y()(e))return null;var r=w.a.isValidElement(e)?e.props:e;if(!d()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&S[o]&&(i||(i={}),i[o]=t||(n?L(r[o],r):r[o]));return i},D=function(e,t,n){return function(r){return e(t,n,r),null}},z=function(e,t,n){if(!d()(e))return null;var r=null;for(var i in e)({}).hasOwnProperty.call(e,i)&&S[i]&&y()(e[i])&&(r||(r={}),r[i]=D(e[i],t,n));return r},B=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Object(k.h)(n)||n<=0||!Object(k.h)(r)||r<=0)},F=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},U=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],W=function(e){return e&&e.type&&p()(e.type)&&U.indexOf(e.type)>=0},H=function(e){var t=[];return w.a.Children.forEach(e,function(e){e&&e.type&&p()(e.type)&&U.indexOf(e.type)>=0&&t.push(e)}),t},q=function(e,t){if(l()(e)&&l()(t))return!0;if(!l()(e)&&!l()(t)){var n=e.props||{},r=n.children,i=s(n,["children"]),o=t.props||{},a=o.children,c=s(o,["children"]);return r&&a?Object(_.a)(i,c)&&G(r,a):!r&&!a&&Object(_.a)(i,c)}return!1},G=function e(t,n){if(t===n)return!0;if(v.Children.count(t)!==v.Children.count(n))return!1;var r=v.Children.count(t);if(0===r)return!0;if(1===r)return q(b()(t)?t[0]:t,b()(n)?n[0]:n);for(var i=0;i0?1:-1},d=function(e){return p()(e)&&e.indexOf("%")===e.length-1},m=function(e){return l()(e)&&!c()(e)},y=function(e){return m(e)||p()(e)},g=0,b=function(e){var t=++g;return"".concat(e||"").concat(t)},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!m(e)&&!p()(e))return n;var i;if(d(e)){var o=e.indexOf("%");i=t*parseFloat(e.slice(0,o))/100}else i=+e;return c()(i)&&(i=n),r&&i>t&&(i=t),i},w=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},x=function(e){if(!a()(e))return!1;for(var t=e.length,n={},r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(e){var t=e.children,n=e.className,o=i(e,["children","className"]),a=p()("recharts-layer",n);return c.a.createElement("g",r({className:a},o),t)}var s=n(0),c=n.n(s),u=n(1),l=n.n(u),f=n(4),p=n.n(f),h={className:l.a.string,children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node])};a.propTypes=h,t.a=a},function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[o-1].coordinate,u=n[s].coordinate,l=s>=o-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(Object(L.j)(u-c)!==Object(L.j)(l-u)){var p=[];if(Object(L.j)(l-u)===Object(L.j)(a[1]-a[0])){f=l;var h=u+a[1]-a[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var d=l+a[1]-a[0];p[0]=Math.min(u,(d+u)/2),p[1]=Math.max(u,(d+u)/2)}var m=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=n[s].index;break}}else{var y=Math.min(c,l),g=Math.max(c,l);if(e>(y+u)/2&&e<=(g+u)/2){i=n[s].index;break}}}else for(var b=0;b0&&b(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===o-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){i=t[b].index;break}}else i=0;return i},W=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},H=function(e){var t=e.children,n=e.formatedGraphicalItems,r=e.legendWidth,i=e.legendContent,o=Object(z.j)(t,D.a);if(!o)return null;var a;return a=o.props&&o.props.payload?o.props&&o.props.payload:"children"===i?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:o.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:r,type:o.props.iconType||a||"square",color:W(t),value:i||r,payload:t.props}}),c({},o.props,{},D.a.getWithHeight(o,r),{payload:a,item:o})},q=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a=0});if(m&&m.length){var y=m[0].props.barSize,g=m[0].props[d];i[g]||(i[g]=[]),i[g].push({item:m[0],stackList:m.slice(1),barSize:P()(y)?t:y})}}return i},G=function(e){var t=e.barGap,n=e.barCategoryGap,i=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,s=e.maxBarSize,c=a.length;if(c<1)return null;var u,l=Object(L.d)(t,i,0,!0);if(a[0].barSize===+a[0].barSize){var f=!1,p=i/c,h=a.reduce(function(e,t){return e+t.barSize||0},0);h+=(c-1)*l,h>=i&&(h-=(c-1)*l,l=0),h>=i&&p>0&&(f=!0,p*=.9,h=c*p);var d=(i-h)/2>>0,m={offset:d-l,size:0};u=a.reduce(function(e,t){var n=[].concat(r(e),[{item:t.item,position:{offset:m.offset+m.size+l,size:f?p:t.barSize}}]);return m=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:m})}),n},[])}else{var y=Object(L.d)(n,i,0,!0);i-2*y-(c-1)*l<=0&&(l=0);var g=(i-2*y-(c-1)*l)/c;g>1&&(g>>=0);var b=s===+s?Math.min(g,s):g;u=a.reduce(function(e,t,n){var i=[].concat(r(e),[{item:t.item,position:{offset:y+(g+l)*n+(g-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){i.push({item:e,position:i[i.length-1].position})}),i},[])}return u},V=function(e,t,n,r){var i=n.children,o=n.width,a=n.height,s=n.margin,l=o-(s.left||0)-(s.right||0),f=a-(s.top||0)-(s.bottom||0),p=H({children:i,items:t,legendWidth:l,legendHeight:f}),h=e;if(p){var d=r||{},m=p.align,y=p.verticalAlign,g=p.layout;("vertical"===g||"horizontal"===g&&"center"===y)&&Object(L.h)(e[m])&&(h=c({},e,u({},m,h[m]+(d.width||0)))),("horizontal"===g||"vertical"===g&&"center"===m)&&Object(L.h)(e[y])&&(h=c({},e,u({},y,h[y]+(d.height||0))))}return h},Y=function(e,t,n,r){var i=t.props.children,o=Object(z.i)(i,R.a).filter(function(e){var t=e.props.direction;return!(!P()(t)&&!P()(r))||r.indexOf(t)>=0});if(o&&o.length){var a=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=B(t,n,0),i=v()(r)?[k()(r),x()(r)]:[r,r],o=a.reduce(function(e,n){var r=B(t,n,0),o=i[0]-Math.abs(v()(r)?r[0]:r),a=i[1]+Math.abs(v()(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]},[1/0,-1/0])}return null},X=function(e,t,n,r){var i=t.map(function(t){return Y(e,t,n,r)}).filter(function(e){return!P()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},K=function(e,t,n,r){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i?Y(e,t,i)||F(e,i,n,r):F(e,i,n,r)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:N.scalePoint(),realScaleType:"point"}:"category"===r?{scale:N.scaleBand(),realScaleType:"band"}:{scale:N.scaleLinear(),realScaleType:"linear"};if(g()(n)){var a="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(N[a]||N.scalePoint)(),realScaleType:N[a]?a:"point"}}return E()(n)?{scale:n}:{scale:N.scalePoint(),realScaleType:"point"}},te=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(ao||so)&&e.domain([t[0],t[n-1]])}},ne=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},oe={sign:ie,expand:I.o,none:I.p,silhouette:I.q,wiggle:I.r},ae=function(e,t,n){var r=t.map(function(e){return e.props.dataKey});return Object(I.n)().keys(r).value(function(e,t){return+B(e,t,0)}).order(I.s).offset(oe[n])(e)},se=function(e,t,n,r,i,o){if(!e)return null;var a=o?t.reverse():t,s=a.reduce(function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(Object(L.g)(o)){var l=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),s.hasStack=!0,s.stackGroups[o]=l}else s.stackGroups[Object(L.k)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return c({},e,u({},a,s))},{});return Object.keys(s).reduce(function(t,o){var a=s[o];return a.hasStack&&(a.stackGroups=Object.keys(a.stackGroups).reduce(function(t,o){var s=a.stackGroups[o];return c({},t,u({},o,{numericAxisId:n,cateAxisId:r,items:s.items,stackedData:ae(e,s.items,i)}))},{})),c({},t,u({},o,a))},{})},ce=function(e,t){return"number"===t?[k()(e),x()(e)]:e},ue=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var c=e.domain(),u=Object(M.a)(c,i,a);return e.domain(ce(u,r)),{niceTicks:u}}if(i&&"number"===r){var l=e.domain();return{niceTicks:Object(M.b)(l,i,a)}}return null},le=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!P()(i[t.dataKey])){var s=Object(L.a)(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=B(i,P()(a)?t.dataKey:a);return P()(c)?null:t.scale(c)},fe=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=B(o,t.dataKey,t.domain[a]);return P()(s)?null:t.scale(s)-i/2+r},pe=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},he=function(e,t){var n=e.props.stackId;if(Object(L.g)(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null},de=function(e){return e.reduce(function(e,t){return[k()(t.concat([e[0]]).filter(L.h)),x()(t.concat([e[1]]).filter(L.h))]},[1/0,-1/0])},me=function(e,t,n){return Object.keys(e).reduce(function(r,i){var o=e[i],a=o.stackedData,s=a.reduce(function(e,r){var i=de(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},ye=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ge=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,be=function(e,t,n){if(!v()(e))return t;var r=[];if(Object(L.h)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(ye.test(e[0])){var i=+ye.exec(e[0])[1];r[0]=t[0]-i}else E()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Object(L.h)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(ge.test(e[1])){var o=+ge.exec(e[1])[1];r[1]=t[1]+o}else E()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},ve=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=h()(t,function(e){return e.coordinate}),r=1/0,i=1,o=n.length;i0))return a;do{a.push(o=new Date(+n)),t(n,i),e(n)}while(o=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(s.count=function(t,r){return i.setTime(+t),o.setTime(+r),e(i),e(o),Math.floor(n(i,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}t.a=r;var i=new Date,o=new Date},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}t.b=r,t.a=i},function(e,t,n){"use strict";t.a={background:"#FFFFFF",fontFamily:"WhitneyMedium",headerBgColor:"#033745",headerFontColor:"#fff",headerFontSize:"16px",botBubbleColor:"#F3F5F9",botFontColor:"#666666",botNameFontColor:"#A3ACB1",userBubbleColor:"#A7D54F",userFontColor:"#FFFFFF",logoBackgroundColor:"#F3F5F9"}},function(e,t){function n(e){return null==e}e.exports=n},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},function(e,t,n){"use strict";function r(e){return"[object Array]"===_.call(e)}function i(e){return"[object ArrayBuffer]"===_.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function c(e){return"number"==typeof e}function u(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function f(e){return"[object Date]"===_.call(e)}function p(e){return"[object File]"===_.call(e)}function h(e){return"[object Blob]"===_.call(e)}function d(e){return"[object Function]"===_.call(e)}function m(e){return l(e)&&d(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function g(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function v(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},b=function(e,t,n,r,s){var c=e.width,u=e.height,l=e.startAngle,d=e.endAngle,m=Object(p.d)(e.cx,c,c/2),y=Object(p.d)(e.cy,u,u/2),b=g(c,u,n),v=Object(p.d)(e.innerRadius,b,0),w=Object(p.d)(e.outerRadius,b,.8*b);return Object.keys(t).reduce(function(e,n){var c,u=t[n],p=u.domain,g=u.reversed;if(f()(u.range))"angleAxis"===r?c=[l,d]:"radiusAxis"===r&&(c=[v,w]),g&&(c=[c[1],c[0]]);else{c=u.range;var b=c,x=a(b,2);l=x[0],d=x[1]}var O=Object(h.z)(u,s),k=O.realScaleType,_=O.scale;return _.domain(p).range(c),Object(h.c)(_),i({},e,o({},n,i({},u,{},Object(h.u)(_,i({},u,{realScaleType:k})),{range:c,radius:w,realScaleType:k,scale:_,cx:m,cy:y,innerRadius:v,outerRadius:w,startAngle:l,endAngle:d})))},{})},v=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},w=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=v({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,c=Math.acos(s);return r>o&&(c=2*Math.PI-c),{radius:a,angle:m(c),angleInRadian:c}},x=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}},O=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},k=function(e,t){var n=e.x,r=e.y,o=w({x:n,y:r},t),a=o.radius,s=o.angle,c=t.innerRadius,u=t.outerRadius;if(au)return!1;if(0===a)return!0;var l,f=x(t),p=f.startAngle,h=f.endAngle,d=s;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return l?i({},t,{radius:a,angle:O(d,t)}):null}},function(e,t,n){"use strict";var r=n(254);n.d(t,"b",function(){return r.a});var i=n(50);n.d(t,"a",function(){return i.a});var o=n(255);n.d(t,"c",function(){return o.a});var a=(n(671),n(672),n(257),n(259),n(673),n(676),n(677),n(263),n(678),n(679),n(680),n(681),n(264),n(256),n(682),n(136));n.d(t,"d",function(){return a.a});var s=n(261);n.d(t,"e",function(){return s.a});var c=(n(683),n(684),n(685),n(262));n.d(t,"h",function(){return c.a}),n.d(t,"f",function(){return c.b}),n.d(t,"g",function(){return c.c}),n(265),n(258),n(686)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){function r(e,t){return i(e,t)}var i=n(649);e.exports=r},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return s});var r=1e3,i=6e4,o=36e5,a=864e5,s=6048e5},function(e,t,n){"use strict";function r(e){return a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function h(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,o=e.id,a=f(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?j.a.createElement(T.a,{className:"recharts-label-list"},t.map(function(e,t){var c=v()(r)?n(e,t):Object(P.v)(e&&e.payload,r),l=v()(o)?{}:{id:"".concat(o,"-").concat(t)};return j.a.createElement(C.a,s({},Object(A.l)(e),a,l,{index:t,value:c,viewBox:C.a.parseViewBox(v()(i)?e:u({},e,{clockWise:i})),key:"label-".concat(t)}))})):null}var d=n(47),m=n.n(d),y=n(7),g=n.n(y),b=n(20),v=n.n(b),w=n(287),x=n.n(w),O=n(15),k=n.n(O),_=n(0),j=n.n(_),S=n(1),E=n.n(S),C=n(33),T=n(13),A=n(3),P=n(16),M={id:E.a.string,data:E.a.arrayOf(E.a.object),valueAccessor:E.a.func,clockWise:E.a.bool,dataKey:E.a.oneOfType([E.a.string,E.a.number,E.a.func])},N={valueAccessor:function(e){return k()(e.value)?x()(e.value):e.value}};h.propTypes=M,h.displayName="LabelList";var I=function(e,t){return e?!0===e?j.a.createElement(h,{key:"labelList-implicit",data:t}):j.a.isValidElement(e)||g()(e)?j.a.createElement(h,{key:"labelList-implicit",data:t,content:e}):m()(e)?j.a.createElement(h,s({data:t},e,{key:"labelList-implicit"})):null:null},L=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var i=e.children,o=Object(A.i)(i,h).map(function(e,n){return Object(_.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return n?[I(e.label,t)].concat(r(o)):o};h.renderCallByParent=L,h.defaultProps=N,t.a=h},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 i(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(){return a=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return Object(ne.l)(Q.a.getTicks(p({},Q.a.defaultProps,{},t,{ticks:Object(ne.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return Object(ne.l)(Q.a.getTicks(p({},Q.a.defaultProps,{},t,{ticks:Object(ne.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(e){return Object(ne.t)(e,!0)},n.tooltipTicksGenerator=function(e){var t=Object(te.b)(e),n=Object(ne.t)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:E()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:Object(ne.f)(t)}},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!(e&&e.props.cursor&&i&&o))return null;var c,u=n.props.layout,l=V.a;if("ScatterChart"===t)c=o,l=Y.a;else if("BarChart"===t)c=n.getCursorRectangle(),l=$.a;else if("radial"===u){var f=n.getCursorPoints(),h=f.cx,d=f.cy,m=f.radius,y=f.startAngle,g=f.endAngle;c={cx:h,cy:d,startAngle:y,endAngle:g,innerRadius:m,outerRadius:m},l=X.a}else c={points:n.getCursorPoints()},l=V.a;var b=e.key||"_recharts-cursor",v=p({stroke:"#ccc",pointerEvents:"none"},s,{},c,{},Object(Z.l)(e.props.cursor),{payload:a,key:b,className:"recharts-tooltip-cursor"});return Object(R.isValidElement)(e.props.cursor)?Object(R.cloneElement)(e.props.cursor,v):Object(R.createElement)(l,v)},n.renderPolarAxis=function(e,t,r){var i=e.type.axisType,o=n.state["".concat(i,"Map")],a=o[e.props["".concat(i,"Id")]];return Object(R.cloneElement)(e,p({},a,{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:Object(ne.t)(a,!0)}))},n.renderXAxis=function(e,t,r){var i=n.state.xAxisMap,o=i[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var i=n.state.yAxisMap,o=i[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,i=t.yAxisMap,o=t.offset,a=n.props,s=a.width,c=a.height,u=Object(te.b)(r),l=j()(i,function(e){return k()(e.domain,Number.isFinite)}),f=l||Object(te.b)(i),p=e.props||{};return Object(R.cloneElement)(e,{key:e.key||"grid",x:Object(te.h)(p.x)?p.x:o.left,y:Object(te.h)(p.y)?p.y:o.top,width:Object(te.h)(p.width)?p.width:o.width,height:Object(te.h)(p.height)?p.height:o.height,xAxis:u,yAxis:f,offset:o,chartWidth:s,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,i=t.angleAxisMap,o=Object(te.b)(r),a=Object(te.b)(i),s=a.cx,c=a.cy,u=a.innerRadius,l=a.outerRadius;return Object(R.cloneElement)(e,{polarAngles:Object(ne.t)(a,!0).map(function(e){return e.coordinate}),polarRadius:Object(ne.t)(o,!0).map(function(e){return e.coordinate}),cx:s,cy:c,innerRadius:u,outerRadius:l,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,i=t.data,o=n.state,a=o.offset,s=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return Object(R.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(ne.d)(n.handleBrushChange,null,e.props.onChange),data:i,x:Object(te.h)(e.props.x)?e.props.x:a.left,y:Object(te.h)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(te.h)(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:c,updateId:"brush-".concat(u)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var i=v(n),o=i.clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return Object(R.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:s[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){function i(e){return l.dataKey(e.payload)}var o=n.filterFormatItem(e,t,r);if(!o)return null;var a=Object(R.cloneElement)(e,o.props),c=n.state,u=c.isTooltipActive,l=c.tooltipAxis,f=c.activeTooltipIndex,p=c.activeLabel,h=n.props.children,d=Object(Z.j)(h,q.a),m=o.props,y=m.points,g=m.isRange,b=m.baseLine,v=o.item.props,w=v.activeDot;if(!v.hide&&u&&d&&w&&f>=0){var x,O;if(l.dataKey&&!l.allowDuplicatedCategory){var k="function"==typeof l.dataKey?i:"payload.".concat(l.dataKey);x=Object(te.a)(y,k,p),O=g&&b&&Object(te.a)(b,k,p)}else x=y[f],O=g&&b&&b[f];if(!L()(x))return[a].concat(s(n.renderActivePoints({item:o,activePoint:x,basePoint:O,childIndex:f,isRange:g})))}return g?[a,null,null]:[a,null]},n.renderCustomized=function(e){return Object(R.cloneElement)(e,p({},n.props,{},n.state))};var i=n.constructor.createDefaultState(e);return n.state=p({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(p({props:e},i,{updateId:0}))),n.uniqueChartId=L()(e.id)?Object(te.k)("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=N()(n.triggeredAfterMouseMove,e.throttleDelay)),n}return w(r,e),y(r,[{key:"componentDidMount",value:function(){L()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,s=n.layout,c=n.stackOffset,u=n.margin,l=this.state.updateId;if(e.data===r&&e.width===o&&e.height===a&&e.layout===s&&e.stackOffset===c&&Object(oe.a)(e.margin,u)){if(!Object(Z.n)(e.children,i)){var f=!L()(e.data),h=f?l:l+1;this.setState(function(n){return p({updateId:h},t.updateStateOfAxisMapsOffsetAndStackGroups(p({props:e},n,{updateId:h})))})}}else{var d=this.constructor.createDefaultState(e);this.setState(p({},d,{updateId:l+1},this.updateStateOfAxisMapsOffsetAndStackGroups(p({props:e},d,{updateId:l+1}))))}L()(this.props.syncId)&&!L()(e.syncId)&&this.addListener(),!L()(this.props.syncId)&&L()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){L()(this.props.syncId)||this.removeListener(),"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=Object(Z.i)(u,i),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=this.getAxisMapByItems(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,i=t.graphicalItems,o=t.axisType,a=t.axisIdKey,c=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,f=e.layout,d=e.children,m=e.stackOffset,y=Object(ne.w)(f,o);return r.reduce(function(t,r){var g=r.props,b=g.type,v=g.dataKey,w=g.allowDataOverflow,x=g.allowDuplicatedCategory,O=g.scale,k=g.ticks,_=r.props[a],j=n.constructor.getDisplayedData(e,{graphicalItems:i.filter(function(e){return e.props[a]===_}),dataStartIndex:u,dataEndIndex:l}),S=j.length;if(!t[_]){var E,C,T;if(v){if(E=Object(ne.m)(j,v,b),"category"===b&&y){var A=Object(te.e)(E);x&&A?(C=E,E=P()(0,S)):x||(E=Object(ne.x)(r.props.domain,E,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(s(e),[t])},[]))}else if("category"===b)E=x?E.filter(function(e){return""!==e&&!L()(e)}):Object(ne.x)(r.props.domain,E,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||L()(t)?e:[].concat(s(e),[t])},[]);else if("number"===b){var M=Object(ne.y)(j,i.filter(function(e){return e.props[a]===_&&!e.props.hide}),v,o);M&&(E=M)}!y||"number"!==b&&"auto"===O||(T=Object(ne.m)(j,v,"category"))}else E=y?P()(0,S):c&&c[_]&&c[_].hasStack&&"number"===b?"expand"===m?[0,1]:Object(ne.o)(c[_].stackGroups,u,l):Object(ne.n)(j,i.filter(function(e){return e.props[a]===_&&!e.props.hide}),b,!0);return"number"===b&&(E=Object(re.a)(d,E,_,o,k),r.props.domain&&(E=Object(ne.A)(r.props.domain,E,w))),p({},t,h({},_,p({},r.props,{axisType:o,domain:E,categoricalDomain:T,duplicateDomain:C,originalDomain:r.props.domain,isCategorial:y,layout:f})))}return t},{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,m=Object(ne.w)(u,i),y=-1;return n.reduce(function(e,t){var g=t.props[o];if(!e[g]){y++;var b;return m?b=P()(0,d):a&&a[g]&&a[g].hasStack?(b=Object(ne.o)(a[g].stackGroups,s,c),b=Object(re.a)(l,b,g,i)):(b=Object(ne.A)(r.defaultProps.domain,Object(ne.n)(f,n.filter(function(e){return e.props[o]===g&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),b=Object(re.a)(l,b,g,i)),p({},e,h({},g,p({axisType:i},r.defaultProps,{hide:!0,orientation:se[i]&&se[i][y%2],domain:b,originalDomain:r.defaultProps.domain,isCategorial:m,layout:u})))}return e},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,i=e.find(function(e){return e&&e.index===t});if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return p({},n,{},Object(ie.e)(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,c=n.angle;return p({},n,{},Object(ie.e)(n.cx,n.cy,s,c),{angle:c,radius:s})}return ce}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(ee.b)(this.container),n=Object(ee.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,a=i.xAxisMap,s=i.yAxisMap;if("axis"!==o&&a&&s){var c=Object(te.b)(a).scale,u=Object(te.b)(s).scale;return p({},n,{xValue:c&&c.invert?c.invert(n.chartX):null,yValue:u&&u.invert?u.invert(n.chartY):null})}var l=this.state,f=l.orderedTooltipTicks,h=l.tooltipAxis,d=l.tooltipTicks,m=this.calculateTooltipPos(r),y=Object(ne.b)(m,f,d,h);if(y>=0&&d){var g=d[y]&&d[y].value;return p({},n,{activeTooltipIndex:y,activeLabel:g,activePayload:this.getTooltipContent(y,g),activeCoordinate:this.getActiveCoordinate(f,y,r)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=o.length?null:r.reduce(function(n,r){if(r.props.hide)return n;var a,c=r.props,u=c.dataKey,l=c.name,f=c.unit,h=c.formatter,d=c.data,m=c.tooltipType;return a=i.dataKey&&!i.allowDuplicatedCategory?Object(te.a)(d||o,i.dataKey,t):d&&d[e]||o[e],a?[].concat(s(n),[p({},Object(Z.l)(r),{dataKey:u,unit:f,formatter:h,name:l||u,color:Object(ne.q)(r),value:Object(ne.v)(a,u),type:m,payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,i=t.stackGroups,o=t.offset,a=t.updateId,s=t.dataStartIndex,u=t.dataEndIndex,l=e.barSize,f=e.layout,d=e.barGap,m=e.barCategoryGap,y=e.maxBarSize,g=this.constructor.getAxisNameByLayout(f),b=g.numericAxisName,v=g.cateAxisName,w=this.constructor.hasBar(r),x=w&&Object(ne.h)({barSize:l,stackGroups:i}),O=[];return r.forEach(function(r,l){var g=n.constructor.getDisplayedData(e,{dataStartIndex:s,dataEndIndex:u},r),k=r.props,_=k.dataKey,j=k.maxBarSize,S=r.props["".concat(b,"Id")],E=r.props["".concat(v,"Id")],C=c.reduce(function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return p({},e,(i={},h(i,n.axisType,s),h(i,"".concat(n.axisType,"Ticks"),Object(ne.t)(s)),i))},{}),T=C[v],A=C["".concat(v,"Ticks")],P=i&&i[S]&&i[S].hasStack&&Object(ne.s)(r,i[S].stackGroups),M=Object(ne.f)(T,A),N=L()(j)?y:j,I=w&&Object(ne.g)({barGap:d,barCategoryGap:m,bandSize:M,sizeList:x[E],maxBarSize:N}),R=r&&r.type&&r.type.getComposedData;if(R){var D;O.push({props:p({},R(p({},C,{displayedData:g,props:e,dataKey:_,item:r,bandSize:M,barPosition:I,offset:o,stackedData:P,layout:f,dataStartIndex:s,dataEndIndex:u,onItemMouseLeave:Object(ne.d)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Object(ne.d)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(D={key:r.key||"item-".concat(l)},h(D,b,C[b]),h(D,v,C[v]),h(D,"animationId",a),D)),childIndex:Object(Z.p)(r,e.children),item:r})}}),O}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)e=a.x,n=e,t=s.top,r=s.top+s.height;else if("vertical"===i)t=a.y,r=t,e=s.left,n=s.left+s.width;else if(!L()(a.cx)||!L()(a.cy)){if("centric"!==i){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle,h=Object(ie.e)(c,u,l,f),d=Object(ie.e)(c,u,l,p);return{points:[h,d],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var m=a.cx,y=a.cy,g=a.innerRadius,b=a.outerRadius,v=a.angle,w=Object(ie.e)(m,y,g,v),x=Object(ie.e)(m,y,b,v);e=w.x,t=w.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=Object(te.b)(o);return Object(ie.d)({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Object(Z.j)(e,q.a),n=t&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return p({},Object(Z.f)(this.props,this.handleOuterEvent),{},n)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,i=e.props,o=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Object(Z.r)({props:i}))return null;var u=i.children,f=i.layout,d=i.stackOffset,m=i.data,y=i.reverseStackOrder,g=this.constructor.getAxisNameByLayout(f),b=g.numericAxisName,v=g.cateAxisName,w=Object(Z.i)(u,n),x=Object(ne.r)(m,w,"".concat(b,"Id"),"".concat(v,"Id"),d,y),O=c.reduce(function(e,t){return p({},e,h({},"".concat(t.axisType,"Map"),r.getAxisMap(i,p({},t,{graphicalItems:w,stackGroups:t.axisType===b&&x,dataStartIndex:o,dataEndIndex:a}))))},{}),k=this.calculateOffset(p({},O,{props:i,graphicalItems:w}));Object.keys(O).forEach(function(e){O[e]=l(i,O[e],k,e.replace("Map",""),t)});var _=O["".concat(v,"Map")],j=this.tooltipTicksGenerator(_);return p({formatedGraphicalItems:this.getFormatItems(i,p({},O,{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:w,stackGroups:x,offset:k})),graphicalItems:w,offset:k,stackGroups:x},j,{},O)}},{key:"addListener",value:function(){ae.b.on(ae.a,this.handleReceiveSyncEvent),ae.b.setMaxListeners&&ae.b._maxListeners&&ae.b.setMaxListeners(ae.b._maxListeners+1)}},{key:"removeListener",value:function(){ae.b.removeListener(ae.a,this.handleReceiveSyncEvent),ae.b.setMaxListeners&&ae.b._maxListeners&&ae.b.setMaxListeners(ae.b._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=t.width,c=t.height,u=t.children,l=t.margin||{},f=Object(Z.j)(u,J.a),d=Object(Z.j)(u,G.a),m=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:p({},e,h({},r,e[r]+n.width))},{left:l.left||0,right:l.right||0}),y=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:p({},e,h({},r,e[r]+n.height))},{top:l.top||0,bottom:l.bottom||0}),g=p({},y,{},m),b=g.bottom;if(f&&(g.bottom+=f.props.height||J.a.defaultProps.height),d&&this.legendInstance){var v=this.legendInstance.getBBox();g=Object(ne.a)(g,n,t,v)}return p({brushBottom:b},g,{width:s-g.left-g.right,height:c-g.top-g.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;L()(t)||ae.b.emit(ae.a,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i=0})},x.getDisplayedData=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(s(e),s(n)):e},[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var c=e.data;return c&&c.length&&Object(te.h)(i)&&Object(te.h)(o)?c.slice(i,o+1):[]},x};t.a=ue},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){"use strict";function r(e){return a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===o?(r=d+x*c,i=g):"insideEnd"===o?(r=m-x*c,i=!g):"end"===o&&(r=m+x*c,i=g),i=w<=0?i:!i;var k=Object(S.e)(l,f,v,r),_=Object(S.e)(l,f,v,r+359*(i?1:-1)),E="M".concat(k.x,",").concat(k.y,"\n A").concat(v,",").concat(v,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),C=y()(e.id)?Object(j.k)("recharts-radial-line-"):e.id;return b.a.createElement("text",s({},n,{dominantBaseline:"central",className:O()("recharts-radial-bar-label",u)}),b.a.createElement("defs",null,b.a.createElement("path",{id:C,d:E})),b.a.createElement("textPath",{xlinkHref:"#".concat(C)},t))},I=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.cx,o=t.cy,a=t.innerRadius,s=t.outerRadius,c=t.startAngle,u=t.endAngle,l=(c+u)/2;if("outside"===r){var f=Object(S.e)(i,o,s+n,l),p=f.x;return{x:p,y:f.y,textAnchor:p>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var h=(a+s)/2,d=Object(S.e)(i,o,h,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},L=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.x,o=t.y,a=t.width,s=t.height,c=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+s-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-c*n,textAnchor:"end",verticalAnchor:"end"}:p()(r)&&(Object(j.h)(r.x)||Object(j.i)(r.x))&&(Object(j.h)(r.y)||Object(j.i)(r.y))?{x:i+Object(j.d)(r.x,a),y:o+Object(j.d)(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}},R=function(e){return Object(j.h)(e.cx)};l.displayName="Label",l.defaultProps=A,l.propTypes=T;var D=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=e.outerRadius,l=e.x,f=e.y,p=e.top,h=e.left,d=e.width,m=e.height,y=e.clockWise;if(Object(j.h)(d)&&Object(j.h)(m)){if(Object(j.h)(l)&&Object(j.h)(f))return{x:l,y:f,width:d,height:m};if(Object(j.h)(p)&&Object(j.h)(h))return{x:p,y:h,width:d,height:m}}return Object(j.h)(l)&&Object(j.h)(f)?{x:l,y:f,width:0,height:0}:Object(j.h)(t)&&Object(j.h)(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},z=function(e,t){return e?!0===e?b.a.createElement(l,{key:"label-implicit",viewBox:t}):Object(j.g)(e)?b.a.createElement(l,{key:"label-implicit",viewBox:t,value:e}):Object(g.isValidElement)(e)?e.type===l?Object(g.cloneElement)(e,{key:"label-implicit",viewBox:t}):b.a.createElement(l,{key:"label-implicit",content:e,viewBox:t}):d()(e)?b.a.createElement(l,{key:"label-implicit",content:e,viewBox:t}):p()(e)?b.a.createElement(l,s({viewBox:t},e,{key:"label-implicit"})):null:null},B=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var i=e.children,o=D(e),a=Object(_.i)(i,l).map(function(e,n){return Object(g.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});return n?[z(e.label,t||o)].concat(r(a)):a};l.parseViewBox=D,l.renderCallByParent=B,t.a=l},function(e,t,n){"use strict";function r(e){return e}function i(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Object(d.a)(isNaN(t)?NaN:.5)}function o(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function a(e,t,n){var r=e[0],o=e[1],a=t[0],s=t[1];return o2?s:a,l=f=null,t}function t(e){return isNaN(e=+e)?c:(l||(l=u(d.map(n),g,b)))(n(v(e)))}var n,i,c,u,l,f,d=y,g=y,b=p.a,v=r;return t.invert=function(e){return v(i((f||(f=u(g,d.map(n),p.b)))(e)))},t.domain=function(t){return arguments.length?(d=h.a.call(t,m.a),v===r||(v=o(d)),e()):d.slice()},t.range=function(t){return arguments.length?(g=h.b.call(t),e()):g.slice()},t.rangeRound=function(t){return g=h.b.call(t),b=p.c,e()},t.clamp=function(e){return arguments.length?(v=e?o(d):r,t):v!==r},t.interpolate=function(t){return arguments.length?(b=t,e()):b},t.unknown=function(e){return arguments.length?(c=e,t):c},function(t,r){return n=t,i=r,e()}}function l(e,t){return u()(e,t)}t.c=r,t.a=c,t.d=u,t.b=l;var f=n(25),p=n(694),h=n(40),d=n(710),m=n(275),y=[0,1]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();g.EPS=1e-4;var b=function(){function e(t){r(this,e),this.scales=p()(t,g.create),Object.assign(this,this.scales)}return o(e,null,[{key:"create",value:function(e){return new this(e)}}]),o(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return p()(e,function(e,t){return r[t].apply(e,{bandAware:n})})}},{key:"isInRange",value:function(e){var t=this.scales;return l()(e,function(e,n){return t[n].isInRange(e)})}}]),e}()},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return u});var r=n(2),i=n(364),o=Object(r.d)(["0%{opacity:.2;}20%{opacity:1;}100%{opacity:.2;}"]),a=Object(r.d)(["100%{transform:scale(1);}"]),s=Object(r.d)(["25%{transform:rotate(-1deg);}100%{transform:rotate(1deg);}"]),c=function(e){return Object(r.d)(["0%{box-shadow:0 0 0 0 ",";}70%{box-shadow:0 0 0 10px ",";}100%{box-shadow:0 0 0 0 ",";}"],Object(i.a)(e,.4),Object(i.a)(e,0),Object(i.a)(e,0))},u=function(e,t,n){return Object(r.d)(["0%{background-color:",";}25%{background-color:",";}50%{background-color:",";}100%{background-color:",";}"],e,t,n,e)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function u(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?(c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r,r=Object(o.f)(c,u,n)):r<0&&(c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r,r=Object(o.f)(c,u,n)),r>0?(i[a]=Math.floor(c/r)*r,i[s]=Math.ceil(u/r)*r,t(i)):r<0&&(i[a]=Math.ceil(c*r)/r,i[s]=Math.floor(u*r)/r,t(i)),e},e}function i(){var e=Object(a.b)(a.c,a.c);return e.copy=function(){return Object(a.a)(e,i())},s.b.apply(e,arguments),r(e)}t.b=r,t.a=i;var o=n(25),a=n(34),s=n(18),c=n(276)},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 i(){return i=Object.assign||function(e){for(var t=1;t1?{type:v[i],data:e.substring(1)}:{type:v[i]}:w}var o=new Uint8Array(e),i=o[0],a=p(e,1);return x&&"blob"===n&&(a=new x([a])),{type:v[i],data:a}},t.decodeBase64Packet=function(e,t){var n=v[e.charAt(0)];if(!u)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=u.decode(e.substr(1));return"blob"===t&&x&&(r=new x([r])),{type:n,data:r}},t.encodePayload=function(e,n,r){function i(e){return e.length+":"+e}function o(e,r){t.encodePacket(e,!!a&&n,!1,function(e){r(null,i(e))})}"function"==typeof n&&(r=n,n=null);var a=f(e);return n&&a?x&&!g?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void c(e,o,function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===e)return r(w,0,1);for(var o,a,s="",c=0,u=e.length;c0;){for(var a=new Uint8Array(i),s=0===a[0],c="",u=1;255!==a[u];u++){if(c.length>310)return r(w,0,1);c+=a[u]}i=p(i,2+c.length),c=parseInt(c);var l=p(i,0,c);if(s)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(e){var f=new Uint8Array(l);l="";for(var u=0;ut?1:e>=t?0:NaN}},function(e,t,n){"use strict";var r=n(139);n.d(t,"a",function(){return r.e}),n.d(t,"f",function(){return r.g}),n.d(t,"d",function(){return r.f});var i=n(695);n.d(t,"e",function(){return i.a}),n.d(t,"c",function(){return i.b});var o=n(696);n.d(t,"b",function(){return o.a})},function(e,t,n){"use strict";function r(e,t){return function(n){return e+n*t}}function i(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function o(e,t){var n=t-e;return n?r(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(c.a)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){return n-t?i(t,n,e):Object(c.a)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?r(e,n):Object(c.a)(isNaN(e)?t:e)}t.c=o,t.b=a,t.a=s;var c=n(270)},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 i(){return i=Object.assign||function(e){for(var t=1;t=0?1:-1,c=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+c*l[0],",").concat(t)),o+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+s*l[1])),o+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),o+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},_=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:p,animationEasing:f,isActive:m},function(t){var n=t.width,r=t.height,i=t.x,o=t.y;return y.a.createElement(x.a,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:d,easing:f},y.a.createElement("path",a({},Object(O.l)(e.props),Object(O.f)(e.props),{className:g,d:k(i,o,n,r,s),ref:function(t){e.node=t}})))}):y.a.createElement("path",a({},Object(O.l)(this.props),Object(O.f)(this.props),{className:g,d:k(n,r,i,o,s)}))}}]),t}(m.PureComponent);_.displayName="Rectangle",_.propTypes=function(e){for(var t=1;t1)for(var n=1;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(e){var t=e.children,n=e.width,o=e.height,a=e.viewBox,s=e.className,u=e.style,l=i(e,["children","width","height","viewBox","className","style"]),f=a||{width:n,height:o,x:0,y:0},d=p()("recharts-surface",s),m=Object(h.l)(l);return c.a.createElement("svg",r({},m,{className:d,width:n,height:o,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),version:"1.1"}),t)}var s=n(0),c=n.n(s),u=n(1),l=n.n(u),f=n(4),p=n.n(f),h=n(3),d={width:l.a.number.isRequired,height:l.a.number.isRequired,viewBox:l.a.shape({x:l.a.number,y:l.a.number,width:l.a.number,height:l.a.number}),className:l.a.string,style:l.a.object,children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node])};a.propTypes=d,t.a=a},function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(205);e.exports=r},function(e,t,n){"use strict";var r=n(544);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";function r(e){return e>1?0:e<-1?h:Math.acos(e)}function i(e){return e>=1?d:e<=-1?-d:Math.asin(e)}n.d(t,"a",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"k",function(){return l}),n.d(t,"l",function(){return f}),n.d(t,"f",function(){return p}),n.d(t,"j",function(){return h}),n.d(t,"g",function(){return d}),n.d(t,"m",function(){return m}),t.b=r,t.c=i;var o=Math.abs,a=Math.atan2,s=Math.cos,c=Math.max,u=Math.min,l=Math.sin,f=Math.sqrt,p=1e-12,h=Math.PI,d=h/2,m=2*h},function(e,t,n){"use strict";t.a=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}},function(e,t,n){"use strict";t.a=function(e){return null===e?NaN:+e}},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 i(){return i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(439),t.log=a,t.formatArgs=o,t.save=s,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(t,n(57))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(457),t.log=a,t.formatArgs=o,t.save=s,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(t,n(57))},function(e,t,n){var r=n(45);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&a(e)&&i(e)==s}var i=n(80),o=n(15),a=n(81),s="[object String]";e.exports=r},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e){return i(e)&&e!=+e}var i=n(124);e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}t.a=r},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===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,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";t.a=function(){}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function i(e){this._context=e}t.c=r,t.a=i,i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===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,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},t.b=function(e){return new i(e)}},function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}t.b=r,t.a=i,i.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(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===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,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(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 i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},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 i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;tl[t]+i?Math.max(f,l[t]):Math.max(p,l[t])},n}return h(t,e),u(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,s=i.payload,c=i.isAnimationActive,u=i.animationDuration,l=i.animationEasing,f=i.filterNull,p=i.paylodUniqBy,h=N(p,f&&s&&s.length?s.filter(function(e){return!y()(e.value)}):s),d=h&&h.length,m=this.props,g=m.content,b=m.viewBox,v=m.coordinate,w=m.position,x=m.active,k=m.wrapperStyle,_=o({pointerEvents:"none",visibility:x&&d?"visible":"hidden",position:"absolute",top:0},k);if(w&&Object(A.h)(w.x)&&Object(A.h)(w.y))t=w.x,n=w.y;else{var S=this.state,C=S.boxWidth,T=S.boxHeight;C>0&&T>0&&v?(t=this.getTranslate({key:"x",tooltipDimension:C,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:T,viewBoxDimension:b.height})):_.visibility="hidden"}_=o({},Object(j.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},_),c&&x&&(_=o({},Object(j.b)({transition:"transform ".concat(u,"ms ").concat(l)}),{},_));var M=E()(P,(e={},a(e,"".concat(P,"-right"),Object(A.h)(t)&&v&&Object(A.h)(v.x)&&t>=v.x),a(e,"".concat(P,"-left"),Object(A.h)(t)&&v&&Object(A.h)(v.x)&&t=v.y),a(e,"".concat(P,"-top"),Object(A.h)(n)&&v&&Object(A.h)(v.y)&&n=0&&t===+t?"".concat(t,"px"):t}function f(e){return e.split("").reduce(function(e,t){return t===t.toUpperCase()?[].concat(a(e),["-",t.toLowerCase()]):[].concat(a(e),[t])},[]).join("")}n.d(t,"c",function(){return g}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return v});var p=n(3),h={widthCache:{},cacheCount:0},d={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},m=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],y=function(e){return Object.keys(e).reduce(function(t,n){return"".concat(t).concat(f(n),":").concat(l(n,e[n]),";")},"")},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||Object(p.o)())return{width:0,height:0};var n="".concat(e),r=y(t),o="".concat(n,"-").concat(r);if(h.widthCache[o])return h.widthCache[o];try{var a=document.getElementById("recharts_measurement_span");a||(a=document.createElement("span"),a.setAttribute("id","recharts_measurement_span"),document.body.appendChild(a));var s=i({},d,{},t);Object.keys(s).map(function(e){return a.style[e]=s[e],e}),a.textContent=n;var c=a.getBoundingClientRect(),u={width:c.width,height:c.height};return h.widthCache[o]=u,++h.cacheCount>2e3&&(h.cacheCount=0,h.widthCache={}),u}catch(e){return{width:0,height:0}}},b=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},v=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}var i=n(246);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,o=e.length;++r1?r[0]+r.slice(2):r,+e.slice(n+1)]}t.b=r,t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var p=Object(O.e)(t,n,r,o),h=Object(O.e)(t,n,r,c);f+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(o<=c),",\n ").concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(t,",").concat(n," Z");return f},E=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,u=e.endAngle,l=Object(k.j)(u-c),f=j({cx:t,cy:n,radius:i,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=f.circleTangency,h=f.lineTangency,d=f.theta,m=j({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o,cornerIsExternal:s}),y=m.circleTangency,g=m.lineTangency,b=m.theta,v=Math.abs(c-u)-d-b;if(v<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):S({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(v>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(g.x,",").concat(g.y,"\n ");if(r>0){var x=j({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=x.circleTangency,_=x.lineTangency,E=x.theta,C=j({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),T=C.circleTangency,A=C.lineTangency,P=C.theta,M=Math.abs(c-u)-E-P;if(M<0)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w},C=function(e){function t(){return s(this,t),l(this,p(t).apply(this,arguments))}return h(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i0&&Math.abs(u-l)<360?E({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(m,d/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):S({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l}),y.a.createElement("path",a({},Object(x.l)(this.props),Object(x.f)(this.props),{className:h,d:p}))}}]),t}(m.PureComponent);C.displayName="Sector",C.propTypes=function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}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;n1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,s=e.axisLineType,c=a({},Object(k.l)(this.props),{fill:"none"},Object(k.l)(o));if("circle"===s)return v.a.createElement(_.a,i({className:"recharts-polar-angle-axis-line"},c,{cx:t,cy:n,r:r}));var u=this.props.ticks,l=u.map(function(e){return Object(E.e)(t,n,r,e.coordinate)});return v.a.createElement(j.a,i({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,s=t.tickFormatter,c=t.stroke,u=Object(k.l)(this.props),l=Object(k.l)(r),f=a({},u,{fill:"none"},Object(k.l)(o)),p=n.map(function(t,n){var p=e.getTickLineCoord(t),h=e.getTickTextAnchor(t),d=a({textAnchor:h},u,{stroke:"none",fill:c},l,{index:n,payload:t,x:p.x2,y:p.y2});return v.a.createElement(O.a,i({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Object(k.g)(e.props,t,n)),o&&v.a.createElement("line",i({className:"recharts-polar-angle-axis-tick-line"},f,p)),r&&e.constructor.renderTickItem(r,d,s?s(t.value):t.value))});return v.a.createElement(O.a,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:v.a.createElement(O.a,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(e,t,n){return v.a.isValidElement(e)?v.a.cloneElement(e,t):g()(e)?e(t):v.a.createElement(S.a,i({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}]),t}(b.PureComponent);T.displayName="PolarAngleAxis",T.axisType="angleAxis",T.propTypes=a({},k.c,{},k.a,{type:x.a.oneOf(["number","category"]),angleAxisId:x.a.oneOfType([x.a.string,x.a.number]),dataKey:x.a.oneOfType([x.a.number,x.a.string,x.a.func]),cx:x.a.number,cy:x.a.number,radius:x.a.oneOfType([x.a.number,x.a.string]),hide:x.a.bool,scale:x.a.oneOfType([x.a.oneOf(k.d),x.a.func]),axisLine:x.a.oneOfType([x.a.bool,x.a.object]),axisLineType:x.a.oneOf(["polygon","circle"]),tickLine:x.a.oneOfType([x.a.bool,x.a.object]),tick:x.a.oneOfType([x.a.bool,x.a.func,x.a.object,x.a.element]),ticks:x.a.arrayOf(x.a.shape({value:x.a.any,coordinate:x.a.number})),stroke:x.a.string,orientation:x.a.oneOf(["inner","outer"]),tickFormatter:x.a.func,allowDuplicatedCategory:x.a.bool}),T.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0},t.a=T},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t}},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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(a)}),e.exports=s}).call(t,n(57))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=i.a.createContext({value:1});t.a=o},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=(n(19),function(e){var t=e.width,n=e.height,r=e.colorStyle,o=e.style,a="#298BC0",s="#376F7A";return"white"===r&&(s="#fff",a=s),i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,width:t,height:n,viewBox:"0 0 68.9 15.8"},i.a.createElement("path",{fill:s,d:"M3.1,9.1c0.6,2.6,2.9,4.5,5.6,4.5c3.2,0,5.7-2.6,5.7-5.7c0-3.1-2.4-5.6-5.4-5.7c2.3,0.5,4,2.6,4,5 c0,2.8-2.3,5.1-5.1,5.1C5.7,12.3,3.8,11,3.1,9.1z"}),i.a.createElement("path",{fill:a,d:"M13.6,4.1C12.4,1.6,9.9,0,7.2,0C3.2,0,0,3.2,0,7.2c0,3.2,2.2,6,5.3,6.9l0.1,0l-0.1,0.1 c-0.3,0.4-1,1.2-2.2,1.6c1.2-0.1,3.6-0.4,5.7-1.6l0,0c0.1,0,0.2-0.1,0.3-0.1c-0.2,0-0.3,0-0.5,0c-3.4,0-6.2-2.8-6.2-6.2 c0-3.4,2.8-6.2,6.2-6.2C10.6,1.6,12.5,2.5,13.6,4.1z"}),i.a.createElement("g",null,i.a.createElement("path",{fill:a,d:"M17.4,10.9V3.4h2.2v0.7c0.3-0.3,0.6-0.5,0.9-0.7c0.3-0.1,0.7-0.2,1.2-0.2c0.8,0,1.4,0.3,1.7,0.8 C23.8,4.5,24,5.3,24,6.4v4.5h-2.2V6.5c0-0.5-0.1-0.9-0.3-1.1C21.4,5.2,21.1,5,20.8,5c-0.4,0-0.7,0.1-0.9,0.3S19.5,6,19.5,6.5v4.4 H17.4z"}),i.a.createElement("path",{fill:s,d:"M25.6,10.9V3.4h2.2v0.7c0.3-0.3,0.6-0.5,0.9-0.6c0.3-0.1,0.7-0.2,1.1-0.2c0.4,0,0.8,0.1,1.2,0.3 c0.3,0.2,0.6,0.5,0.8,0.9c0.3-0.4,0.7-0.7,1.1-0.9c0.4-0.2,0.8-0.3,1.2-0.3c0.8,0,1.4,0.3,1.7,0.8c0.4,0.5,0.6,1.3,0.6,2.4v4.5 h-2.2V6.5c0-0.5-0.1-0.9-0.3-1.1C33.7,5.2,33.4,5,33.1,5c-0.4,0-0.6,0.1-0.8,0.4C32.1,5.6,32,6,32,6.5v4.4h-2.2V6.5 c0-0.5-0.1-0.9-0.3-1.1C29.4,5.2,29.1,5,28.8,5c-0.4,0-0.6,0.1-0.8,0.4c-0.2,0.2-0.3,0.6-0.3,1.1v4.4H25.6z"}),i.a.createElement("path",{fill:s,d:"M41.3,11.1c-1.2,0-2.1-0.4-2.8-1.1c-0.7-0.7-1.1-1.7-1.1-2.9c0-1.2,0.4-2.2,1.1-2.9c0.7-0.7,1.6-1.1,2.8-1.1 c1.2,0,2.1,0.4,2.8,1.1C44.8,5,45.2,6,45.2,7.2c0,1.2-0.4,2.2-1.1,2.9C43.4,10.8,42.5,11.1,41.3,11.1z M39.7,7.2 c0,0.7,0.1,1.2,0.4,1.6c0.3,0.4,0.7,0.6,1.2,0.6c0.5,0,0.9-0.2,1.2-0.6C42.8,8.4,43,7.8,43,7.2c0-0.7-0.1-1.2-0.4-1.6 c-0.3-0.4-0.7-0.6-1.2-0.6c-0.5,0-0.9,0.2-1.2,0.6C39.8,6,39.7,6.5,39.7,7.2z"}),i.a.createElement("path",{fill:s,d:"M53.1,0.9v10h-2v-0.8c-0.3,0.3-0.6,0.5-1,0.7c-0.4,0.1-0.8,0.2-1.3,0.2c-1,0-1.7-0.3-2.3-1 c-0.6-0.7-0.9-1.6-0.9-2.7c0-1.2,0.3-2.2,0.9-2.9c0.6-0.7,1.4-1.1,2.3-1.1c0.4,0,0.8,0.1,1.1,0.2c0.3,0.1,0.6,0.3,0.9,0.5V0.9 H53.1z M49.4,4.9c-0.5,0-0.9,0.2-1.1,0.6c-0.3,0.4-0.4,1-0.4,1.7c0,0.7,0.1,1.3,0.4,1.7c0.3,0.4,0.6,0.6,1.1,0.6 c0.5,0,0.8-0.2,1.1-0.6c0.3-0.4,0.4-1,0.4-1.7c0-0.7-0.1-1.3-0.4-1.7C50.2,5.1,49.9,4.9,49.4,4.9z"}),i.a.createElement("path",{fill:s,d:"M56.4,7.6c0,0.6,0.2,1.1,0.4,1.4c0.3,0.3,0.7,0.5,1.2,0.5c0.4,0,0.7-0.1,1-0.3c0.3-0.2,0.5-0.6,0.7-1L61.4,9 c-0.3,0.7-0.8,1.2-1.4,1.6c-0.6,0.4-1.3,0.5-2.2,0.5c-1.1,0-1.9-0.3-2.6-1c-0.6-0.7-1-1.6-1-2.8c0-1.2,0.3-2.2,1-3 c0.7-0.8,1.6-1.1,2.7-1.1c1.1,0,2,0.4,2.6,1.1c0.6,0.7,1,1.7,1,3c0,0,0,0.1,0,0.2c0,0.1,0,0.1,0,0.2H56.4z M56.4,6.3h2.9 c-0.1-0.5-0.2-0.9-0.5-1.1c-0.3-0.3-0.6-0.4-1-0.4c-0.4,0-0.7,0.1-1,0.4C56.6,5.5,56.5,5.8,56.4,6.3z"}),i.a.createElement("path",{fill:s,d:"M63.3,8.4c0.3,0.4,0.6,0.6,1,0.8c0.4,0.2,0.8,0.3,1.2,0.3c0.4,0,0.6-0.1,0.8-0.2c0.2-0.1,0.3-0.3,0.3-0.5 c0-0.1,0-0.2-0.1-0.3c-0.1-0.1-0.2-0.2-0.3-0.2c-0.2-0.1-0.4-0.1-0.8-0.2c-0.4-0.1-0.7-0.1-0.9-0.2c-0.7-0.2-1.3-0.5-1.6-0.8 c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.8,0.3-1.5,0.9-1.9c0.6-0.5,1.4-0.7,2.3-0.7c0.6,0,1.1,0.1,1.6,0.3c0.5,0.2,1,0.4,1.4,0.8l-1.2,1.3 c-0.3-0.3-0.6-0.5-1-0.6c-0.3-0.1-0.7-0.2-1-0.2c-0.3,0-0.5,0.1-0.6,0.2c-0.2,0.1-0.2,0.3-0.2,0.5c0,0.3,0.4,0.5,1.2,0.7 c0.2,0,0.3,0.1,0.4,0.1c1.1,0.3,1.9,0.6,2.2,0.9c0.4,0.3,0.5,0.8,0.5,1.4c0,0.8-0.3,1.4-0.9,1.9c-0.6,0.5-1.5,0.7-2.6,0.7 c-0.8,0-1.5-0.1-2.1-0.4c-0.6-0.3-1-0.7-1.3-1.2L63.3,8.4z"})))});o.defaultProps={width:68.9,height:15.8},t.a=o},function(e,t){function n(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=c?Math.round(e/c)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return o(e,u,"day")||o(e,c,"hour")||o(e,s,"minute")||o(e,a,"second")||e+" ms"}function o(e,t,n){if(!(e0)return n(e);if("number"===o&&!1===isNaN(e))return t.long?i(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(){}function i(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var r=o(e.data);if(!1===r)return g;n+=r}return p("encoded %j as %s",e,n),n}function o(e){try{return JSON.stringify(e)}catch(e){return!1}}function a(e,t){function n(e){var n=d.deconstructPacket(e),r=i(n.packet),o=n.buffers;o.unshift(r),t(o)}d.removeBlobs(e,n)}function s(){this.reconstructor=null}function c(e){var n=0,r={type:Number(e.charAt(0))};if(null==t.types[r.type])return f("unknown packet type "+r.type);if(t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type){for(var i="";"-"!==e.charAt(++n)&&(i+=e.charAt(n),n!=e.length););if(i!=Number(i)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(n+1))for(r.nsp="";++n;){var o=e.charAt(n);if(","===o)break;if(r.nsp+=o,n===e.length)break}else r.nsp="/";var a=e.charAt(n+1);if(""!==a&&Number(a)==a){for(r.id="";++n;){var o=e.charAt(n);if(null==o||Number(o)!=o){--n;break}if(r.id+=e.charAt(n),n===e.length)break}r.id=Number(r.id)}if(e.charAt(++n)){var s=u(e.substr(n));if(!1===s||r.type!==t.ERROR&&!m(s))return f("invalid payload");r.data=s}return p("decoded %s as %j",e,r),r}function u(e){try{return JSON.parse(e)}catch(e){return!1}}function l(e){this.reconPack=e,this.buffers=[]}function f(e){return{type:t.ERROR,data:"parser error: "+e}}var p=n(440)("socket.io-parser"),h=n(43),d=n(442),m=n(177),y=n(178);t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=r,t.Decoder=s;var g=t.ERROR+'"encode error"';r.prototype.encode=function(e,n){p("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?a(e,n):n([i(e)])},h(s.prototype),s.prototype.add=function(e){var n;if("string"==typeof e)n=c(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!y(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){"use strict";(function(e){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function y(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}var u;if(i){var l=-1;for(u=n;us&&(n=s-c),u=n;u>=0;u--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var c,u,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(c=e[i+1]))&&(f=(31&o)<<6|63&c)>127&&(a=f);break;case 3:c=e[i+1],u=e[i+2],128==(192&c)&&128==(192&u)&&(f=(15&o)<<12|(63&c)<<6|63&u)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:c=e[i+1],u=e[i+2],l=e[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(f=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return T(r)}function T(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function z(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||z(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||z(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,n,r,52,8),n+8}function U(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function Y(e){return $.toByteArray(U(e))}function X(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e){return e!==e}var $=n(443),Z=n(444),Q=n(445);t.Buffer=o,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return c(null,e,t,n)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,s=n-t,c=Math.min(a,s),u=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return j(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),Z.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),Z.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),Z.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),Z.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(514),i=n(120);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(5),i=n(120),o=n(31),a=n(123),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(p):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){function r(e){return"number"==typeof e||o(e)&&i(e)==a}var i=n(80),o=n(81),a="[object Number]";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 i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,i=r.layout,a=r.align,s=r.verticalAlign,c=r.margin,u=r.chartWidth,l=r.chartHeight;if(!e||(void 0===e.left||null===e.left)&&(void 0===e.right||null===e.right))if("center"===a&&"vertical"===i){var f=this.getBBox()||{width:0};t={left:((u||0)-f.width)/2}}else t="right"===a?{right:c&&c.right||0}:{left:c&&c.left||0};if(!e||(void 0===e.top||null===e.top)&&(void 0===e.bottom||null===e.bottom))if("middle"===s){var p=this.getBBox()||{height:0};n={top:((l||0)-p.height)/2}}else n="bottom"===s?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return o({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},function(){r&&r(i)})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},function(){r&&r(null)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,s=t.paylodUniqBy,c=t.payload,u=o({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a),{},a);return w.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},C(n,o({},this.props,{payload:E(s,c)})))}}],[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Object(_.h)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}]),t}(v.PureComponent);A.displayName="Legend",A.propTypes={content:O.a.oneOfType([O.a.element,O.a.func]),wrapperStyle:O.a.object,chartWidth:O.a.number,chartHeight:O.a.number,width:O.a.number,height:O.a.number,iconSize:O.a.number,iconType:O.a.oneOf(T),layout:O.a.oneOf(["horizontal","vertical"]),align:O.a.oneOf(["center","left","right"]),verticalAlign:O.a.oneOf(["top","bottom","middle"]),margin:O.a.shape({top:O.a.number,left:O.a.number,bottom:O.a.number,right:O.a.number}),payload:O.a.arrayOf(O.a.shape({value:O.a.any,id:O.a.any,type:O.a.oneOf(j.b)})),paylodUniqBy:O.a.oneOfType([O.a.func,O.a.bool]),formatter:O.a.func,onMouseEnter:O.a.func,onMouseLeave:O.a.func,onClick:O.a.func,onBBoxUpdate:O.a.func},A.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},t.a=A},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return a=Object.assign||function(e){for(var t=1;to.f){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>o.f){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/f,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,i,a,s,e._x2,e._y2)}function i(e,t){this._context=e,this._alpha=t}t.a=r;var o=n(64),a=n(87);i.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._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,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 t?new i(e,t):new a.a(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=-1,i=e.length;++r1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){function r(e,t,n,a,s){var c=-1,u=e.length;for(n||(n=o),s||(s=[]);++c0&&n(l)?t>1?r(l,t-1,n,a,s):i(s,l):a||(s[s.length]=l)}return s}var i=n(619),o=n(620);e.exports=r},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){"use strict";var r=n(67);t.a=function(e,t,n){if(null==n&&(n=r.a),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,a=Math.floor(o),s=+n(e[a],a,e);return s+(+n(e[a+1],a+1,e)-s)*(o-a)}}},function(e,t,n){"use strict";function r(){}function i(e,t){var n=new r;if(e instanceof r)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i,o=-1,a=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?u(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=C.exec(e))?new p(t[1],t[2],t[3],1):(t=T.exec(e))?new p(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=A.exec(e))?u(t[1],t[2],t[3],t[4]):(t=P.exec(e))?u(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=M.exec(e))?y(t[1],t[2]/100,t[3]/100,1):(t=N.exec(e))?y(t[1],t[2]/100,t[3]/100,t[4]):I.hasOwnProperty(e)?c(I[e]):"transparent"===e?new p(NaN,NaN,NaN,0):null}function c(e){return new p(e>>16&255,e>>8&255,255&e,1)}function u(e,t,n,r){return r<=0&&(e=t=n=NaN),new p(e,t,n,r)}function l(e){return e instanceof r||(e=s(e)),e?(e=e.rgb(),new p(e.r,e.g,e.b,e.opacity)):new p}function f(e,t,n,r){return 1===arguments.length?l(e):new p(e,t,n,null==r?1:r)}function p(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function h(){return"#"+m(this.r)+m(this.g)+m(this.b)}function d(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function m(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function y(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new v(e,t,n,r)}function g(e){if(e instanceof v)return new v(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=s(e)),!e)return new v;if(e instanceof v)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),a=Math.max(t,n,i),c=NaN,u=a-o,l=(a+o)/2;return u?(c=t===a?(n-i)/u+6*(n0&&l<1?0:c,new v(c,u,l,e.opacity)}function b(e,t,n,r){return 1===arguments.length?g(e):new v(e,t,n,null==r?1:r)}function v(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function w(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t.a=r,n.d(t,"d",function(){return O}),n.d(t,"c",function(){return k}),t.e=s,t.h=l,t.g=f,t.b=p,t.f=b;var x=n(140),O=.7,k=1/O,_="\\s*([+-]?\\d+)\\s*",j="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",S="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3,8})$/,C=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),T=new RegExp("^rgb\\("+[S,S,S]+"\\)$"),A=new RegExp("^rgba\\("+[_,_,_,j]+"\\)$"),P=new RegExp("^rgba\\("+[S,S,S,j]+"\\)$"),M=new RegExp("^hsl\\("+[j,S,S]+"\\)$"),N=new RegExp("^hsla\\("+[j,S,S,j]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(x.a)(r,s,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:i,formatHex:i,formatHsl:o,formatRgb:a,toString:a}),Object(x.a)(p,f,Object(x.b)(r,{brighter:function(e){return e=null==e?k:Math.pow(k,e),new p(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?O:Math.pow(O,e),new p(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:h,formatHex:h,formatRgb:d,toString:d})),Object(x.a)(v,b,Object(x.b)(r,{brighter:function(e){return e=null==e?k:Math.pow(k,e),new v(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?O:Math.pow(O,e),new v(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new p(w(e>=240?e-240:e+120,i,r),w(e,i,r),w(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}t.b=r,t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";function r(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}t.a=r,t.b=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,c=i0){for(;lo)break;m.push(u)}}else for(;l=1;--c)if(!((u=a*c)o)break;m.push(u)}}else m=Object(h.h)(l,f,Math.min(f-l,d)).map(s);return t?m.reverse():m},f.tickFormat=function(e,t){if(null==t&&(t=10===y?".0e":","),"function"!=typeof t&&(t=Object(d.a)(t)),e===1/0)return t;null==e&&(e=10);var r=Math.max(1,y*e/f.ticks().length);return function(e){var i=e/s(Math.round(n(e)));return i*yo){s=[].concat(c(n.slice(0,u)),[o-l]);break}var f=s.length%2==0?[0,a]:[a];return[].concat(c(this.constructor.repeat(n,i)),c(s),f).map(function(e){return"".concat(e,"px")}).join(", ")}},{key:"renderErrorBar",value:function(){function e(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Object(F.v)(e.payload,t)}}if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.points,r=t.xAxis,i=t.yAxis,o=t.layout,a=t.children,s=Object(B.i)(a,D.a);return s?s.map(function(t,a){return E.a.cloneElement(t,{key:a,data:n,xAxis:r,yAxis:i,layout:o,dataPointFormatter:e})}):null}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,s=r.points,c=r.dataKey,u=Object(B.l)(this.props),l=Object(B.l)(o),f=Object(B.f)(o),p=s.map(function(e,t){var r=a({key:"dot-".concat(t),r:3},u,{},l,{},f,{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)}),h={clipPath:e?"url(#clipPath-".concat(t,")"):null};return E.a.createElement(L.a,i({className:"recharts-line-dots",key:"dots"},h),p)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,s=o.type,c=o.layout,u=o.connectNulls,l=a({},Object(B.l)(this.props),{},Object(B.f)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:s,layout:c,connectNulls:u});return E.a.createElement(N.a,i({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,s=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,p=r.width,h=r.height,d=this.state,m=d.prevPoints,y=d.totalLength;return E.a.createElement(A.a,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var s=r.t;if(m){var c=m.length/i.length,u=i.map(function(e,t){var r=Math.floor(t*c);if(m[r]){var i=m[r],o=Object(z.f)(i.x,e.x),u=Object(z.f)(i.y,e.y);return a({},e,{x:o(s),y:u(s)})}if(n.animateNewValues){var l=Object(z.f)(2*p,e.x),f=Object(z.f)(h/2,e.y);return a({},e,{x:l(s),y:f(s)})}return a({},e,{x:e.x,y:e.y})});return n.renderCurveStatically(u,e,t)}var l,f=Object(z.f)(0,y),d=f(s);if(o){var g=o.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});l=n.getStrokeDasharray(d,y,g)}else l="".concat(d,"px ").concat(y-d,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:l})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!x()(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.xAxis,a=e.yAxis,s=e.top,c=e.left,u=e.width,l=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=1===r.length,m=M()("recharts-line",i),y=o&&o.allowDataOverflow||a&&a.allowDataOverflow,g=j()(p)?this.id:p;return E.a.createElement(L.a,{className:m},y?E.a.createElement("defs",null,E.a.createElement("clipPath",{id:"clipPath-".concat(g)},E.a.createElement("rect",{x:c,y:s,width:u,height:l}))):null,!d&&this.renderCurve(y,g),this.renderErrorBar(),(d||n)&&this.renderDots(y,g),(!f||h)&&R.a.renderCallByParent(this.props,r))}}],[{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(c(e),[0]):e,r=[],i=0;i0||!g()(s,r)||!g()(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.top,a=e.left,s=e.xAxis,c=e.yAxis,u=e.width,l=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=1===r.length,m=L()("recharts-area",i),y=s&&s.allowDataOverflow||c&&c.allowDataOverflow,g=E()(p)?this.id:p;return P.a.createElement(B.a,{className:m},y?P.a.createElement("defs",null,P.a.createElement("clipPath",{id:"clipPath-".concat(g)},P.a.createElement("rect",{x:a,y:o,width:u,height:parseInt(l,10)}))):null,d?null:this.renderArea(y,g),(n||d)&&this.renderDots(y,g),(!f||h)&&F.a.renderCallByParent(this.props,r))}}]),t}(A.PureComponent);q.displayName="Area",q.propTypes=a({},U.c,{},U.a,{className:N.a.string,dataKey:N.a.oneOfType([N.a.string,N.a.number,N.a.func]).isRequired,type:N.a.oneOfType([N.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),N.a.func]),unit:N.a.oneOfType([N.a.string,N.a.number]),name:N.a.oneOfType([N.a.string,N.a.number]),yAxisId:N.a.oneOfType([N.a.string,N.a.number]),xAxisId:N.a.oneOfType([N.a.string,N.a.number]),yAxis:N.a.object,xAxis:N.a.object,stackId:N.a.oneOfType([N.a.number,N.a.string]),legendType:N.a.oneOf(U.b),tooltipType:N.a.oneOf(U.e),connectNulls:N.a.bool,activeDot:N.a.oneOfType([N.a.object,N.a.element,N.a.func,N.a.bool]),dot:N.a.oneOfType([N.a.func,N.a.element,N.a.object,N.a.bool]),label:N.a.oneOfType([N.a.func,N.a.element,N.a.object,N.a.bool]),hide:N.a.bool,layout:N.a.oneOf(["horizontal","vertical"]),baseLine:N.a.oneOfType([N.a.number,N.a.array]),isRange:N.a.bool,points:N.a.arrayOf(N.a.shape({x:N.a.number,y:N.a.number,value:N.a.oneOfType([N.a.number,N.a.array])})),onAnimationStart:N.a.func,onAnimationEnd:N.a.func,animationId:N.a.number,isAnimationActive:N.a.bool,animationBegin:N.a.number,animationDuration:N.a.number,animationEasing:N.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:N.a.string}),q.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Object(U.o)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},q.getBaseValue=function(e,t,n){var r=e.layout,i=e.baseValue;if(Object(W.h)(i))return i;var o="horizontal"===r?n:t,a=o.scale.domain();if("number"===o.type){var s=Math.max(a[0],a[1]),c=Math.min(a[0],a[1]);return"dataMin"===i?c:"dataMax"===i?s:s<0?s:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},q.getComposedData=function(e){var t,n=e.props,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,h=e.offset,d=n.layout,m=l&&l.length,y=q.getBaseValue(n,r,i),g=!1,b=p.map(function(e,t){var n;return m?n=l[f+t]:(n=Object(H.v)(e,u),T()(n)?g=!0:n=[y,n]),"horizontal"===d?{x:Object(H.k)({axis:r,ticks:o,bandSize:c,entry:e,index:t}),y:E()(n[1])?null:i.scale(n[1]),value:n,payload:e}:{x:E()(n[1])?null:r.scale(n[1]),y:Object(H.k)({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}});return t=m||g?b.map(function(e){return"horizontal"===d?{x:e.x,y:E()(j()(e,"value[0]"))?null:i.scale(j()(e,"value[0]"))}:{x:E()(j()(e,"value[0]"))?null:r.scale(j()(e,"value[0]")),y:e.y}}):"horizontal"===d?i.scale(y):r.scale(y),a({points:b,baseLine:t,layout:d,isRange:g},h)},q.renderDotItem=function(e,t){return P.a.isValidElement(e)?P.a.cloneElement(e,t):k()(e)?e(t):P.a.createElement(z.a,i({},t,{className:"recharts-area-dot"}))},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 i(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(){return a=Object.assign||function(e){for(var t=1;t0&&Math.abs(y)0&&Math.abs(h)=this.state.lastPosition&&(t=this.state.lastPosition),e0,t=this.state.showArrows&&this.state.firstItem0&&(t=0),n===r&&t<0&&(t=0);var i=e.itemsWrapperRef.clientWidth,o=n+100/(i/t)+"%";e.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(t){e.itemsListRef.style[t]=(0,g.default)(o,e.props.axis)})},this.slideRight=function(t){e.moveTo(e.state.firstItem-("number"==typeof t?t:1))},this.slideLeft=function(t){e.moveTo(e.state.firstItem+("number"==typeof t?t:1))},this.moveTo=function(t){t=t<0?0:t,t=t>=e.lastPosition?e.lastPosition:t,e.setState({firstItem:t,selectedItem:e.state.selectedItem})}};t.default=w},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&x.splice(t,1)}function s(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=l();n&&(e.attrs.nonce=n)}return u(t,e.attrs),o(e,t),t}function c(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function l(){return n.nc}function f(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var u=w++;n=v||(v=s(t)),r=p.bind(null,n,u,!1),i=p.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=d.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=h.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function p(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=k(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=O(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},y=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e,t){return t?t.querySelector(e):document.querySelector(e)},b=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=g.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),v=null,w=0,x=[],O=n(386);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=y()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){l("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();l("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(l("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(l("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(l("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){function r(e){var t=!1,n=!1,r=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,c=location.port;c||(c=s?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new i(e)&&!e.forceJSONP)return new o(e);if(!r)throw new Error("JSONP disabled");return new a(e)}var i=n(112),o=n(449),a=n(458),s=n(459);t.polling=r,t.websocket=s},function(e,t,n){function r(e){var t=e&&e.forceBase64;l&&!t||(this.supportsBinary=!1),i.call(this,e)}var i=n(113),o=n(73),a=n(44),s=n(74),c=n(183),u=n(75)("engine.io-client:polling");e.exports=r;var l=function(){return null!=new(n(112))({xdomain:!1}).responseType}();s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){u("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||t()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;u("polling got data %s",e);var n=function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)};a.decodePayload(e,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){u("writing close packet"),t.write([{type:"close"}])}var t=this;"open"===this.readyState?(u("transport open - closing"),e()):(u("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){function r(e){if(!e||"object"!=typeof e)return!1;if(i(e)){for(var n=0,o=e.length;n0);return t}function i(e){var t=0;for(f=0;f-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(513),i=n(194),o=n(119),a=n(115),s=n(77),c=n(192),u=Object.getOwnPropertyDescriptor;t.f=n(46)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(77),i=n(119),o=n(516)(!1),a=n(202)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(197)("keys"),i=n(196);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(118);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(45),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(e,t){return e&&e.length?o(e,i(t,2)):[]}var i=n(32),o=n(537);e.exports=r},function(e,t,n){function r(){if(!arguments.length)return[];var e=arguments[0];return i(e)?e:[e]}var i=n(15);e.exports=r},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r-1}var i=n(208);e.exports=r},function(e,t,n){"use strict";var r=n(63),i=n(38),o=n(84),a=n(128),s=n(129);t.a=function(){function e(e){var t,i,o,a,s,m=e.length,y=!1,g=new Array(m),b=new Array(m);for(null==p&&(d=h(s=Object(r.a)())),t=0;t<=m;++t){if(!(t=i;--o)d.point(g[o],b[o]);d.lineEnd(),d.areaEnd()}y&&(g[t]=+n(a,t,e),b[t]=+u(a,t,e),d.point(c?+c(a,t,e):g[t],l?+l(a,t,e):b[t]))}if(s)return d=null,s+""||null}function t(){return Object(a.a)().defined(f).curve(h).context(p)}var n=s.a,c=null,u=Object(i.a)(0),l=s.b,f=Object(i.a)(!0),p=null,h=o.a,d=null;return e.x=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.a)(+t),c=null,e):n},e.x0=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.a)(+t),e):n},e.x1=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:Object(i.a)(+t),e):c},e.y=function(t){return arguments.length?(u="function"==typeof t?t:Object(i.a)(+t),l=null,e):u},e.y0=function(t){return arguments.length?(u="function"==typeof t?t:Object(i.a)(+t),e):u},e.y1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:Object(i.a)(+t),e):l},e.lineX0=e.lineY0=function(){return t().x(n).y(u)},e.lineY1=function(){return t().x(n).y(l)},e.lineX1=function(){return t().x(c).y(u)},e.defined=function(t){return arguments.length?(f="function"==typeof t?t:Object(i.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 i(e){function t(t){return new r(e(t))}return t._curve=e,t}n.d(t,"a",function(){return a}),t.b=i;var o=n(84),a=i(o.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(i.b)(e)):t()._curve},e}t.a=r;var i=n(211);n(128)},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(64);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),i=2*r;t.a={draw:function(e,t){var n=Math.sqrt(t/i),o=n*r;e.moveTo(0,-n),e.lineTo(o,0),e.lineTo(0,n),e.lineTo(-o,0),e.closePath()}}},function(e,t,n){"use strict";var r=n(64),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),o=Math.sin(r.m/10)*i,a=-Math.cos(r.m/10)*i;t.a={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),i=o*n,s=a*n;e.moveTo(0,-n),e.lineTo(i,s);for(var c=1;c<5;++c){var u=r.m*c/5,l=Math.cos(u),f=Math.sin(u);e.lineTo(f*n,-l*n),e.lineTo(l*i-f*s,f*i+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,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);t.a={draw:function(e,t){var n=Math.sqrt(t/a),s=n/2,c=n*o,u=s,l=n*o+n,f=-u,p=l;e.moveTo(s,c),e.lineTo(u,l),e.lineTo(f,p),e.lineTo(r*s-i*c,i*s+r*c),e.lineTo(r*u-i*l,i*u+r*l),e.lineTo(r*f-i*p,i*f+r*p),e.lineTo(r*s+i*c,r*c-i*s),e.lineTo(r*u+i*l,r*l-i*u),e.lineTo(r*f+i*p,r*p-i*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 i=n(85),o=n(87);r.prototype={areaStart:i.a,areaEnd:i.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(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,t){this._context=e,this._k=(1-t)/6}t.a=r;var i=n(87);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(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){for(var t,n=-1,r=0,i=e.length,o=-1/0;++no&&(o=t,r=n);return r}var i=n(66);t.a=function(e){var t=e.map(r);return Object(i.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 i(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(e){return u(e)||c(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[i-1]:r,d=f||Object.keys(u);if("function"==typeof c||"spring"===c)return a(e).concat([t.runJSAnimation.bind(t,{from:h.style,to:u,duration:o,easing:c}),o]);var m=Object(T.b)(d,o,c),y=l({},h.style,u,{transition:m});return a(e).concat([y,o,p]).filter(T.c)};return this.manager.start([i].concat(a(n.reduce(f,[s,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Object(S.a)());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,u=e.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),"function"==typeof o||"function"==typeof u||"spring"===o)return void this.runJSAnimation(e);if(c.length>1)return void this.runStepAnimation(e);var h=r?f({},r,i):i,d=Object(T.b)(Object.keys(h),n,o);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,i(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=O.Children.count(t),a=Object(T.e)(this.state.style);if("function"==typeof t)return t(a);if(!n||0===o)return t;var s=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,o=t.className;return Object(O.cloneElement)(e,l({},r,{style:l({},i,a),className:o}))};return 1===o?s(O.Children.only(t)):k.a.createElement("div",null,O.Children.map(t,function(e){return s(e)}))}}]),t}(O.PureComponent);A.displayName="Animate",A.propTypes={from:j.a.oneOfType([j.a.object,j.a.string]),to:j.a.oneOfType([j.a.object,j.a.string]),attributeName:j.a.string,duration:j.a.number,begin:j.a.number,easing:j.a.oneOfType([j.a.string,j.a.func]),steps:j.a.arrayOf(j.a.shape({duration:j.a.number.isRequired,style:j.a.object.isRequired,easing:j.a.oneOfType([j.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),j.a.func]),properties:j.a.arrayOf("string"),onAnimationEnd:j.a.func})),children:j.a.oneOfType([j.a.node,j.a.func]),isActive:j.a.bool,canBegin:j.a.bool,onAnimationEnd:j.a.func,shouldReAnimate:j.a.bool,onAnimationStart:j.a.func,onAnimationReStart:j.a.func},A.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},t.a=A},function(e,t,n){function r(){if(!arguments.length)return[];var e=arguments[0];return i(e)?e:[e]}var i=n(227);e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}var i=n(229);e.exports=r},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var p=d(i,a),h=d(o,s),y=m(i,a),g=function(e){return e>1?1:e<0?0:e},b=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=p(n)-t,o=y(n);if(Math.abs(i-t)<1e-4||o<1e-4)return h(n);n=g(n-i/o)}return h(n)};return b.isStepper=!1,b},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,a=void 0===o?17:o,s=function(e,t,r){var o=-(e-t)*n,s=r*i,c=r+(o-s)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<1e-4&&Math.abs(c)<1e-4?[t,0]:[u,c]};return s.isStepper=!0,s.dt=a,s},b=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(i[n]=e[n]);return i}function o(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)),c=r(n(0)),u=r(n(69)),l=n(236),f=(n(237),"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 m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=p,r.appearStatus=h):i=d:i=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:i},r.nextCallback=null,r}o(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=u.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,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;if(!t&&!r)return void this.safeSetState({status:d},function(){n.props.onEntered(e)});this.props.onEnter(e,i),this.safeSetState({status:h},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,function(){n.safeSetState({status:d},function(){n.props.onEntered(e,i)})})})},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=i(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 o=c.default.Children.only(n);return c.default.cloneElement(o,r)},t}(c.default.Component);m.contextTypes={transitionGroup:s.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.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},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var y=(0,l.polyfill)(m);t.default=y},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 i(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 o(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 c=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+u+" 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=i),"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=o;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,i.__suppressDeprecationWarning=!0,o.__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 i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function o(){return o=Object.assign||function(e){for(var t=1;t=t||n<0||S&&r>=w}function h(){var e=o();if(p(e))return d(e);O=setTimeout(h,f(e))}function d(e){return O=void 0,E&&b?r(e):(b=v=void 0,x)}function m(){void 0!==O&&clearTimeout(O),_=0,b=k=v=O=void 0}function y(){return void 0===O?x:d(o())}function g(){var e=o(),n=p(e);if(b=arguments,v=this,k=e,n){if(void 0===O)return l(k);if(S)return clearTimeout(O),O=setTimeout(h,t),r(k)}return void 0===O&&(O=setTimeout(h,t)),x}var b,v,w,x,O,k,_=0,j=!1,S=!1,E=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(j=!!n.leading,S="maxWait"in n,w=S?c(a(n.maxWait)||0,t):w,E="trailing"in n?!!n.trailing:E),g.cancel=m,g.flush=y,g}var i=n(47),o=n(633),a=n(634),s="Expected a function",c=Math.max,u=Math.min;e.exports=r},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function r(e){return e&&e.length?i(e,a,o):void 0}var i=n(94),o=n(248),a=n(91);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?i(e,a,o):void 0}var i=n(94),o=n(250),a=n(91);e.exports=r},function(e,t){function n(e,t){return es?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=c.length,o=u.length,s-o<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/A|0,c[o]%=A;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,k?d(t,f):t}function a(e,t,n){if(e!==~~e||en)throw Error(j+e)}function s(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t16)throw Error(S+u(e));if(!e.s)return new p(w);for(null==t?(k=!1,c=h):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(r=Math.log(C(2,f))/Math.LN10*2+5|0,c+=r,n=i=o=new p(w),p.precision=c;;){if(i=d(i.times(e),c),n=n.times(++l),a=o.plus(I(i,n,c)),s(a.d).slice(0,c)===s(o.d).slice(0,c)){for(;f--;)o=d(o.times(o),c);return p.precision=h,null==t?(k=!0,d(o,h)):o}o=a}}function u(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 k=!0,n&&(e.precision=n),Error(_+"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,i,o,a,c,f,h,m,y=1,g=e,b=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(_+(g.s?"NaN":"-Infinity"));if(g.eq(w))return new v(0);if(null==t?(k=!1,h=x):h=t,g.eq(10))return null==t&&(k=!0),l(v,h);if(h+=10,v.precision=h,n=s(b),r=n.charAt(0),o=u(g),!(Math.abs(o)<15e14))return f=l(v,h+2,x).times(o+""),g=p(new v(r+"."+n.slice(1)),h-10).plus(f),v.precision=x,null==t?(k=!0,d(g,x)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)g=g.times(e),n=s(g.d),r=n.charAt(0),y++;for(o=u(g),r>1?(g=new v("0."+n),o++):g=new v(r+"."+n.slice(1)),c=a=g=I(g.minus(w),g.plus(w),h),m=d(g.times(g),h),i=3;;){if(a=d(a.times(m),h),f=c.plus(I(a,new v(i),h)),s(f.d).slice(0,h)===s(c.d).slice(0,h))return c=c.times(2),0!==o&&(c=c.plus(l(v,h+2,x).times(o+""))),c=I(c,new v(y),h),v.precision=x,null==t?(k=!0,d(c,x)):c;c=f,i+=2}}function h(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=E(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,i,o,a,s,c,l,f,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=P,i=t,l=p[f=0];else{if(f=Math.ceil((r+1)/P),o=p.length,f>=o)return e;for(l=o=p[f],a=1;o>=10;o/=10)a++;r%=P,i=r-P+a}if(void 0!==n&&(o=C(10,a-i-1),s=l/o%10|0,c=t<0||void 0!==p[f+1]||l%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?l/C(10,a-i):0:p[f-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(o=u(e),p.length=1,t=t-o-1,p[0]=C(10,(P-t%P)%P),e.e=E(-t/P)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(0==r?(p.length=f,o=1,f--):(p.length=f+1,o=C(10,P-r),p[f]=i>0?(l/C(10,a-i)%C(10,i)|0)*o:0),c)for(;;){if(0==f){(p[0]+=o)==A&&(p[0]=1,++e.e);break}if(p[f]+=o,p[f]!=A)break;p[f--]=0,o=1}for(r=p.length;0===p[--r];)p.pop();if(k&&(e.e>M||e.e<-M))throw Error(S+u(e));return e}function m(e,t){var n,r,i,o,a,s,c,u,l,f,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),k?d(t,h):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for(l=a<0,l?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),i=Math.max(Math.ceil(h/P),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=f.length,l=i0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+f(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+f(-i-1)+o,n&&(r=n-a)>0&&(o+=f(r))):i>=a?(o+=f(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+f(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=f(r))),e.s<0?"-"+o:o}function g(e,t){if(e.length>t)return e.length=t,!0}function b(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(j+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(j+e);if(45===e.charCodeAt(0)?(e=e.slice(1),n.s=-1):n.s=1,!T.test(e))throw Error(j+e);h(n,e)}var n,r,i;if(t.prototype=N,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=b,t.config=t.set=v,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=i[t+1]&&r<=i[t+2]))throw Error(j+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(j+n+": "+r);this[n]=new this(r)}return this}var w,x=1e9,O={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},k=!0,_="[DecimalError] ",j=_+"Invalid argument: ",S=_+"Exponent out of range: ",E=Math.floor,C=Math.pow,T=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,P=7,M=E(9007199254740991/P),N={};N.absoluteValue=N.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},N.comparedTo=N.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},N.decimalPlaces=N.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},N.dividedBy=N.div=function(e){return I(this,new this.constructor(e))},N.dividedToIntegerBy=N.idiv=function(e){var t=this,n=t.constructor;return d(I(t,new n(e),0,1),n.precision)},N.equals=N.eq=function(e){return!this.cmp(e)},N.exponent=function(){return u(this)},N.greaterThan=N.gt=function(e){return this.cmp(e)>0},N.greaterThanOrEqualTo=N.gte=function(e){return this.cmp(e)>=0},N.isInteger=N.isint=function(){return this.e>this.d.length-2},N.isNegative=N.isneg=function(){return this.s<0},N.isPositive=N.ispos=function(){return this.s>0},N.isZero=function(){return 0===this.s},N.lessThan=N.lt=function(e){return this.cmp(e)<0},N.lessThanOrEqualTo=N.lte=function(e){return this.cmp(e)<1},N.logarithm=N.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if(e=new r(e),e.s<1||e.eq(w))throw Error(_+"NaN");if(n.s<1)throw Error(_+(n.s?"NaN":"-Infinity"));return n.eq(w)?new r(0):(k=!1,t=I(p(n,o),p(e,o),o),k=!0,d(t,i))},N.minus=N.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?m(t,e):o(t,(e.s=-e.s,e))},N.modulo=N.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(_+"NaN");return n.s?(k=!1,t=I(n,e,0,1).times(e),k=!0,n.minus(t)):d(new r(n),i)},N.naturalExponential=N.exp=function(){return c(this)},N.naturalLogarithm=N.ln=function(){return p(this)},N.negated=N.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},N.plus=N.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?o(t,e):m(t,(e.s=-e.s,e))},N.precision=N.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(j+e);if(t=u(i)+1,r=i.d.length-1,n=r*P+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},N.squareRoot=N.sqrt=function(){var e,t,n,r,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(_+"NaN")}for(e=u(c),k=!1,i=Math.sqrt(+c),0==i||i==1/0?(t=s(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=E((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(I(c,o,a+2)).times(.5),s(o.d).slice(0,a)===(t=s(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(d(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return k=!0,d(r,n)},N.times=N.mul=function(e){var t,n,r,i,o,a,s,c,u,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,c=p.length,u=h.length,c=0;){for(t=0,i=c+r;i>r;)s=o[i]+h[r]*p[i-r-1]+t,o[i--]=s%A|0,t=s/A|0;o[i]=(o[i]+t)%A|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,k?d(e,f.precision):e},N.toDecimalPlaces=N.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(a(e,0,x),void 0===t?t=r.rounding:a(t,0,8),d(n,e+u(n)+1,t))},N.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=y(r,!0):(a(e,0,x),void 0===t?t=i.rounding:a(t,0,8),r=d(new i(r),e+1,t),n=y(r,!0,e+1)),n},N.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?y(i):(a(e,0,x),void 0===t?t=o.rounding:a(t,0,8),r=d(new o(i),e+u(i)+1,t),n=y(r.abs(),!1,e+u(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},N.toInteger=N.toint=function(){var e=this,t=e.constructor;return d(new t(e),u(e)+1,t.rounding)},N.toNumber=function(){return+this},N.toPower=N.pow=function(e){var t,n,r,i,o,a,s=this,u=s.constructor,l=+(e=new u(e));if(!e.s)return new u(w);if(s=new u(s),!s.s){if(e.s<1)throw Error(_+"Infinity");return s}if(s.eq(w))return s;if(r=u.precision,e.eq(w))return d(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=l<0?-l:l)<=9007199254740991){for(i=new u(w),t=Math.ceil(r/P+4),k=!1;n%2&&(i=i.times(s),g(i.d,t)),0!==(n=E(n/2));)s=s.times(s),g(s.d,t);return k=!0,e.s<0?new u(w).div(i):d(i,r)}}else if(o<0)throw Error(_+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,k=!1,i=e.times(p(s,r+12)),k=!0,i=c(i),i.s=o,i},N.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?(n=u(i),r=y(i,n<=o.toExpNeg||n>=o.toExpPos)):(a(e,1,x),void 0===t?t=o.rounding:a(t,0,8),i=d(new o(i),e,t),n=u(i),r=y(i,e<=n||n<=o.toExpNeg,e)),r},N.toSignificantDigits=N.tosd=function(e,t){var n=this,r=n.constructor;return void 0===e?(e=r.precision,t=r.rounding):(a(e,1,x),void 0===t?t=r.rounding:a(t,0,8)),d(new r(n),e,t)},N.toString=N.valueOf=N.val=N.toJSON=function(){var e=this,t=u(e),n=e.constructor;return y(e,t<=n.toExpNeg||t>=n.toExpPos)};var I=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%A|0,r=n/A|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,i,o,a){var s,c,l,f,p,h,m,y,g,b,v,w,x,O,k,j,S,E,C=r.constructor,T=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new C(r);if(!i.s)throw Error(_+"Division by zero");for(c=r.e-i.e,S=N.length,k=M.length,m=new C(T),y=m.d=[],l=0;N[l]==(M[l]||0);)++l;if(N[l]>(M[l]||0)&&--c,(w=null==o?o=C.precision:a?o+(u(r)-u(i))+1:o)<0)return new C(0);if(w=w/P+2|0,l=0,1==S)for(f=0,N=N[0],w++;(l1&&(N=e(N,f),M=e(M,f),S=N.length,k=M.length),O=S,g=M.slice(0,S),b=g.length;b=A/2&&++j;do{f=0,s=t(N,g,S,b),s<0?(v=g[0],S!=b&&(v=v*A+(g[1]||0)),f=v/j|0,f>1?(f>=A&&(f=A-1),p=e(N,f),h=p.length,b=g.length,1==(s=t(p,g,h,b))&&(f--,n(p,Se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,o):e(t-s,p(function(){for(var e=arguments.length,t=new Array(e),i=0;i>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+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(258);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(67);t.a=function(e,t){var n,i,o=e.length,a=0,s=-1,c=0,u=0;if(null==t)for(;++s1)return u/(a-1)}},function(e,t,n){"use strict";t.a=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i=0?(c>=o?10:c>=a?5:c>=s?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(c>=o?10:c>=a?5:c>=s?2:1)}function i(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),c=r/i;return c>=o?i*=10:c>=a?i*=5:c>=s&&(i*=2),t0)return[e];if((i=t0)for(e=Math.ceil(e/s),t=Math.floor(t/s),a=new Array(o=Math.ceil(t-e+1));++c=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}},function(e,t,n){"use strict";function r(e){return e.length}var i=n(264);t.a=function(e){if(!(a=e.length))return[];for(var t=-1,n=Object(i.a)(e,r),o=new Array(n);++tl&&(u=t.slice(l,u),p[f]?p[f]+=u:p[++f]=u),(n=n[0])===(c=c[0])?p[f]?p[f]+=c:p[++f]=c:(p[++f]=null,h.push({i:f,x:Object(o.a)(n,c)})),l=s.lastIndex;return l(a=e.charCodeAt(t))||a>57){d=(46===a?y+e.slice(t+1):e.slice(t))+d,e=e.slice(0,t);break}}x&&!l&&(e=h(e,1/0));var b=c.length+e.length+d.length,T=b>1)+c+e+d+T.slice(b);break;default:e=T+c+e+d}return g(e)}e=Object(a.a)(e);var n=e.fill,r=e.align,i=e.sign,o=e.symbol,l=e.zero,f=e.width,x=e.comma,O=e.precision,k=e.trim,_=e.type;"n"===_?(x=!0,_="g"):c.a[_]||(void 0===O&&(O=12),k=!0,_="g"),(l||"0"===n&&"="===r)&&(l=!0,n="0",r="=");var j="$"===o?d:"#"===o&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S="$"===o?m:/[%p]/.test(_)?b:"",E=c.a[_],C=/[defgprs%]/.test(_);return O=void 0===O?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O)),t.toString=function(){return e+""},t}function n(e,n){var i=t((e=Object(a.a)(e),e.type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),s=Math.pow(10,-o),c=p[8+o/3];return function(e){return i(s*e)+c}}var h=void 0===e.grouping||void 0===e.thousands?l.a:Object(i.a)(f.call(e.grouping,Number),e.thousands+""),d=void 0===e.currency?"":e.currency[0]+"",m=void 0===e.currency?"":e.currency[1]+"",y=void 0===e.decimal?".":e.decimal+"",g=void 0===e.numerals?l.a:Object(o.a)(f.call(e.numerals,String)),b=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"-":e.minus+"",w=void 0===e.nan?"NaN":e.nan+"";return{format:t,formatPrefix:n}}},function(e,t,n){"use strict";function r(e){if(!(t=o.exec(e)))throw new Error("invalid format: "+e);var t;return new i({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 i(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 o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;r.prototype=i.prototype,i.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,i=n(97);t.a=function(e,t){var n=Object(i.b)(e,t);if(!n)return e+"";var o=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,c=o.length;return s===c?o:s>c?o+new Array(s-c+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(i.b)(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,i=e.length-1,o=e[r],a=e[i];return a53)return null;"w"in u||(u.w=1),"Z"in u?(s=i(o(u.y,0,1)),c=s.getUTCDay(),s=c>4||0===c?we.p.ceil(s):Object(we.p)(s),s=we.l.offset(s,7*(u.V-1)),u.y=s.getUTCFullYear(),u.m=s.getUTCMonth(),u.d=s.getUTCDate()+(u.w+6)%7):(s=r(o(u.y,0,1)),c=s.getDay(),s=c>4||0===c?we.e.ceil(s):Object(we.e)(s),s=we.a.offset(s,7*(u.V-1)),u.y=s.getFullYear(),u.m=s.getMonth(),u.d=s.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),c="Z"in u?i(o(u.y,0,1)).getUTCDay():r(o(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,i(u)):r(u)}}function a(e,t,n,r){for(var i,o,a=0,s=t.length,c=n.length;a=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=it[i in xe?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function s(e,t,n){var r=Ve.exec(t.slice(n));return r?(e.p=Ye[r[0].toLowerCase()],n+r[0].length):-1}function c(e,t,n){var r=$e.exec(t.slice(n));return r?(e.w=Ze[r[0].toLowerCase()],n+r[0].length):-1}function W(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.w=Ke[r[0].toLowerCase()],n+r[0].length):-1}function ce(e,t,n){var r=et.exec(t.slice(n));return r?(e.m=tt[r[0].toLowerCase()],n+r[0].length):-1}function Oe(e,t,n){var r=Qe.exec(t.slice(n));return r?(e.m=Je[r[0].toLowerCase()],n+r[0].length):-1}function ke(e,t,n){return a(e,ze,t,n)}function _e(e,t,n){return a(e,Be,t,n)}function je(e,t,n){return a(e,Fe,t,n)}function Se(e){return He[e.getDay()]}function Ee(e){return We[e.getDay()]}function Ce(e){return Ge[e.getMonth()]}function Te(e){return qe[e.getMonth()]}function Ae(e){return Ue[+(e.getHours()>=12)]}function Pe(e){return 1+~~(e.getMonth()/3)}function Me(e){return He[e.getUTCDay()]}function Ne(e){return We[e.getUTCDay()]}function Ie(e){return Ge[e.getUTCMonth()]}function Le(e){return qe[e.getUTCMonth()]}function Re(e){return Ue[+(e.getUTCHours()>=12)]}function De(e){return 1+~~(e.getUTCMonth()/3)}var ze=e.dateTime,Be=e.date,Fe=e.time,Ue=e.periods,We=e.days,He=e.shortDays,qe=e.months,Ge=e.shortMonths,Ve=u(Ue),Ye=l(Ue),Xe=u(We),Ke=l(We),$e=u(He),Ze=l(He),Qe=u(qe),Je=l(qe),et=u(Ge),tt=l(Ge),nt={a:Se,A:Ee,b:Ce,B:Te,c:null,d:P,e:P,f:R,g:Y,G:K,H:M,I:N,j:I,L:L,m:D,M:z,p:Ae,q:Pe,Q:be,s:ve,S:B,u:F,U:U,V:H,w:q,W:G,x:null,X:null,y:V,Y:X,Z:$,"%":ge},rt={a:Me,A:Ne,b:Ie,B:Le,c:null,d:Z,e:Z,f:ne,g:he,G:me,H:Q,I:J,j:ee,L:te,m:re,M:ie,p:Re,q:De,Q:be,s:ve,S:oe,u:ae,U:se,V:ue,w:le,W:fe,x:null,X:null,y:pe,Y:de,Z:ye,"%":ge},it={a:c,A:W,b:ce,B:Oe,c:ke,d:x,e:x,f:E,g:g,G:y,H:k,I:k,j:O,L:S,m:w,M:_,p:s,q:v,Q:T,s:A,S:j,u:p,U:h,V:d,w:f,W:m,x:_e,X:je,y:g,Y:y,Z:b,"%":C};return nt.x=t(Be,nt),nt.X=t(Fe,nt),nt.c=t(ze,nt),rt.x=t(Be,rt),rt.X=t(Fe,rt),rt.c=t(ze,rt),{format:function(e){var n=t(e+="",nt);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",rt);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e+="",!0);return t.toString=function(){return e},t}}}function s(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function b(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 v(e,t,n){var r=Oe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function w(e,t,n){var r=Oe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function x(e,t,n){var r=Oe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function O(e,t,n){var r=Oe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function k(e,t,n){var r=Oe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _(e,t,n){var r=Oe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function j(e,t,n){var r=Oe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function S(e,t,n){var r=Oe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function E(e,t,n){var r=Oe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function C(e,t,n){var r=ke.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function T(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function A(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function P(e,t){return s(e.getDate(),t,2)}function M(e,t){return s(e.getHours(),t,2)}function N(e,t){return s(e.getHours()%12||12,t,2)}function I(e,t){return s(1+we.a.count(Object(we.k)(e),e),t,3)}function L(e,t){return s(e.getMilliseconds(),t,3)}function R(e,t){return L(e,t)+"000"}function D(e,t){return s(e.getMonth()+1,t,2)}function z(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(we.h.count(Object(we.k)(e)-1,e),t,2)}function W(e){var t=e.getDay();return t>=4||0===t?Object(we.i)(e):we.i.ceil(e)}function H(e,t){return e=W(e),s(we.i.count(Object(we.k)(e),e)+(4===Object(we.k)(e).getDay()),t,2)}function q(e){return e.getDay()}function G(e,t){return s(we.e.count(Object(we.k)(e)-1,e),t,2)}function V(e,t){return s(e.getFullYear()%100,t,2)}function Y(e,t){return e=W(e),s(e.getFullYear()%100,t,2)}function X(e,t){return s(e.getFullYear()%1e4,t,4)}function K(e,t){var n=e.getDay();return e=n>=4||0===n?Object(we.i)(e):we.i.ceil(e),s(e.getFullYear()%1e4,t,4)}function $(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+s(t/60|0,"0",2)+s(t%60,"0",2)}function Z(e,t){return s(e.getUTCDate(),t,2)}function Q(e,t){return s(e.getUTCHours(),t,2)}function J(e,t){return s(e.getUTCHours()%12||12,t,2)}function ee(e,t){return s(1+we.l.count(Object(we.v)(e),e),t,3)}function te(e,t){return s(e.getUTCMilliseconds(),t,3)}function ne(e,t){return te(e,t)+"000"}function re(e,t){return s(e.getUTCMonth()+1,t,2)}function ie(e,t){return s(e.getUTCMinutes(),t,2)}function oe(e,t){return s(e.getUTCSeconds(),t,2)}function ae(e){var t=e.getUTCDay();return 0===t?7:t}function se(e,t){return s(we.s.count(Object(we.v)(e)-1,e),t,2)}function ce(e){var t=e.getUTCDay();return t>=4||0===t?Object(we.t)(e):we.t.ceil(e)}function ue(e,t){return e=ce(e),s(we.t.count(Object(we.v)(e),e)+(4===Object(we.v)(e).getUTCDay()),t,2)}function le(e){return e.getUTCDay()}function fe(e,t){return s(we.p.count(Object(we.v)(e)-1,e),t,2)}function pe(e,t){return s(e.getUTCFullYear()%100,t,2)}function he(e,t){return e=ce(e),s(e.getUTCFullYear()%100,t,2)}function de(e,t){return s(e.getUTCFullYear()%1e4,t,4)}function me(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(we.t)(e):we.t.ceil(e),s(e.getUTCFullYear()%1e4,t,4)}function ye(){return"+0000"}function ge(){return"%"}function be(e){return+e}function ve(e){return Math.floor(+e/1e3)}t.a=a;var we=n(146),xe={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,ke=/^%/,_e=/[\\^$*+?|[\]().{}]/g},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(147),i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(r.b)(i)},function(e,t,n){"use strict";function r(){function e(e){return isNaN(e=+e)?o:c(0===r?.5:(e=(i(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}var t,n,r,i,o,a=0,s=1,c=l.c,u=!1;return e.domain=function(o){return arguments.length?(t=i(a=+o[0]),n=i(s=+o[1]),r=t===n?0:1/(n-t),e):[a,s]},e.clamp=function(t){return arguments.length?(u=!!t,e):u},e.interpolator=function(t){return arguments.length?(c=t,e):c},e.unknown=function(t){return arguments.length?(o=t,e):o},function(o){return i=o,t=o(a),n=o(s),r=t===n?0:1/(n-t),e}}function i(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function o(){var e=Object(p.b)(r()(l.c));return e.copy=function(){return i(e,o())},f.a.apply(e,arguments)}function a(){var e=Object(h.b)(r()).domain([1,10]);return e.copy=function(){return i(e,a()).base(e.base())},f.a.apply(e,arguments)}function s(){var e=Object(d.b)(r());return e.copy=function(){return i(e,s()).constant(e.constant())},f.a.apply(e,arguments)}function c(){var e=Object(m.b)(r());return e.copy=function(){return i(e,c()).exponent(e.exponent())},f.a.apply(e,arguments)}function u(){return c.apply(null,arguments).exponent(.5)}t.a=i,t.b=o,t.c=a,t.f=s,t.d=c,t.e=u;var l=n(34),f=n(18),p=n(41),h=n(143),d=n(144),m=n(145)},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t0?v()(e,"paddingAngle",0):0;if(n){var c=Object(W.f)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=a({},e,{startAngle:s+o,endAngle:s+c(r)+o});i.push(l),s=l.endAngle}else{var f=e.endAngle,p=e.startAngle,h=Object(W.f)(0,f-p),d=h(r),m=a({},e,{startAngle:s+o,endAngle:s+d+o});i.push(m),s=m.endAngle}}),E.a.createElement(N.a,null,e.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&g()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,i=e.label,o=e.cx,a=e.cy,s=e.innerRadius,c=e.outerRadius,u=e.isAnimationActive,l=e.prevSectors;if(t||!n||!n.length||!Object(W.h)(o)||!Object(W.h)(a)||!Object(W.h)(s)||!Object(W.h)(c))return null;var f=M()("recharts-pie",r);return E.a.createElement(N.a,{className:f},this.renderSectors(),i&&this.renderLabels(n),D.a.renderCallByParent(this.props,null,!1),(!u||l&&g()(l,n))&&z.a.renderCallByParent(this.props,n,!1))}}],[{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=360?b:b-1)*f,O=w-b*y-x,k=p;j()(p)&&j()(d)?(Object(q.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),k="value"):j()(p)&&(Object(q.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),k=d);var _,S=o.reduce(function(e,t){var n=Object(H.v)(t,k,0);return e+(Object(W.h)(n)?n:0)},0);if(S>0){var E;_=o.map(function(e,t){var n,r=Object(H.v)(e,k,0),i=Object(H.v)(e,h,t),o=(Object(W.h)(r)?r:0)/S;n=t?E.endAngle+Object(W.j)(v)*f:u;var s=n+Object(W.j)(v)*(y+o*O),l=(n+s)/2,p=(g.innerRadius+g.outerRadius)/2,d=[{name:i,value:r,payload:e,dataKey:k,type:m}],b=Object(U.e)(g.cx,g.cy,p,l);return E=a({percent:o,cornerRadius:c,name:i,tooltipPayload:d,midAngle:l,middleRadius:p,tooltipPosition:b},e,{},g,{value:Object(H.v)(e,k),startAngle:n,endAngle:s,payload:e,paddingAngle:Object(W.j)(v)*f})})}return a({},g,{sectors:_,data:o,onMouseLeave:r,onMouseEnter:i})},t.a=G},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 i(){return i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function u(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(E)0&&Math.abs(C)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),c(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.width,o=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===i&&e.x===o&&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,i=r.gap,o=r.data,a=o.length-1,s=Math.min(t,n),c=Math.max(t,n),u=this.constructor.getIndexInRange(this.scaleValues,s),l=this.constructor.getIndexInRange(this.scaleValues,c);return{startIndex:u-u%i,endIndex:l===a?a:l-l%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=Object(j.v)(n[e],i,e);return g()(r)?r(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,c=o.travellerWidth,u=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-i,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});h.startIndex===u&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:i+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,i=n.movingTravellerId,a=n.endX,s=n.startX,c=this.state[i],u=this.props,l=u.x,f=u.width,p=u.travellerWidth,h=u.onChange,d=u.gap,m=u.data,y={startX:this.state.startX,endX:this.state.endX},g=e.pageX-r;g>0?g=Math.min(g,l+f-p-c):g<0&&(g=Math.max(g,l-c)),y[i]=c+g;var b=this.getIndex(y),v=b.startIndex,w=b.endIndex,x=function(){var e=m.length-1;return"startX"===i&&(a>s?v%d==0:w%d==0)||as?w%d==0:v%d==0)||a>s&&w===e};this.setState((t={},o(t,i,c+g),o(t,"brushMoveStartX",e.pageX),t),function(){h&&x()&&h(b)})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,i=e.endIndex,o=e.x,a=e.width,s=e.travellerWidth,c=n.length;return this.scale=Object(_.scalePoint)().domain(m()(0,c)).range([o,o+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(i)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,a=e.stroke;return v.a.createElement("rect",{stroke:a,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.data,a=e.children,s=e.padding,c=b.Children.only(a);return c?v.a.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,c=Math.max(e,this.props.x);return v.a.createElement(S.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},v.a.createElement("rect",{x:c,y:r,width:i,height:o,fill:a,stroke:"none"}),v.a.createElement("line",{x1:c+1,y1:s,x2:c+i-1,y2:s,fill:"none",stroke:"#fff"}),v.a.createElement("line",{x1:c+1,y1:s+2,x2:c+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,o=n.stroke;return v.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:o,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return v.a.createElement(S.a,{className:"recharts-brush-texts"},v.a.createElement(E.a,i({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+o/2},f),this.getTextOfTick(t)),v.a.createElement(E.a,i({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,o=e.y,a=e.width,s=e.height,c=e.alwaysShowText,u=this.state,l=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,d=u.isTravellerMoving;if(!t||!t.length||!Object(C.h)(i)||!Object(C.h)(o)||!Object(C.h)(a)||!Object(C.h)(s)||a<=0||s<=0)return null;var m=k()("recharts-brush",n),y=1===v.a.Children.count(r),g=Object(T.a)("userSelect","none");return v.a.createElement(S.a,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(l,f),this.renderTraveller(l,"startX"),this.renderTraveller(f,"endX"),(p||h||d||c)&&this.renderText())}}],[{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);e[o]>t?i=o:r=o}return t>=e[i]?i:r}}]),t}(b.PureComponent);A.displayName="Brush",A.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,alwaysShowText:x.a.bool},A.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1},t.a=A},function(e,t,n){var r=n(746),i=r();e.exports=i},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 i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}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:u)),n<=0||r<=0||!l||!l.length?null:x.a.createElement(C.a,{className:j()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(l),A.a.renderCallByParent(this.props))}}],[{key:"getTicks",value:function(e){var n=e.tick,r=e.ticks,i=e.viewBox,o=e.minTickGap,a=e.orientation,s=e.interval,c=e.tickFormatter,u=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:c,viewBox:i,orientation:a,minTickGap:o,unit:u},!0):"preserveStart"===s?t.getTicksStart({ticks:r,tickFormatter:c,viewBox:i,orientation:a,minTickGap:o,unit:u}):t.getTicksEnd({ticks:r,tickFormatter:c,viewBox:i,orientation:a,minTickGap:o,unit:u}):[]}},{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,i=e.ticks,o=e.tickFormatter,s=e.viewBox,c=e.orientation,u=e.minTickGap,l=e.unit,f=s.x,p=s.y,h=s.width,d=s.height,m="top"===c||"bottom"===c?"width":"height",y=(i||[]).slice(),g=l&&"width"===m?Object(E.c)(l)[m]:0,b=y.length,w=b>=2?Object(M.j)(y[1].coordinate-y[0].coordinate):1;if(1===w?(n="width"===m?f:p,r="width"===m?f+h:p+d):(n="width"===m?f+h:p+d,r="width"===m?f:p),t){var x=i[b-1],O=v()(o)?o(x.value):x.value,k=Object(E.c)(O)[m]+g,_=w*(x.coordinate+w*k/2-r);y[b-1]=x=a({},x,{tickCoord:_>0?x.coordinate-_*w:x.coordinate}),w*(x.tickCoord-w*k/2-n)>=0&&w*(x.tickCoord+w*k/2-r)<=0&&(r=x.tickCoord-w*(k/2+u),y[b-1]=a({},x,{isShow:!0}))}for(var j=t?b-1:b,S=0;S=0&&w*(C.tickCoord+w*A/2-r)<=0&&(n=C.tickCoord+w*(A/2+u),y[S]=a({},C,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,s=e.orientation,c=e.minTickGap,u=e.unit,l=o.x,f=o.y,p=o.width,h=o.height,d="top"===s||"bottom"===s?"width":"height",m=u&&"width"===d?Object(E.c)(u)[d]:0,y=(r||[]).slice(),g=y.length,b=g>=2?Object(M.j)(y[1].coordinate-y[0].coordinate):1;1===b?(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 w=g-1;w>=0;w--){var x=y[w],O=v()(i)?i(x.value):x.value,k=Object(E.c)(O)[d]+m;if(w===g-1){var _=b*(x.coordinate+b*k/2-n);y[w]=x=a({},x,{tickCoord:_>0?x.coordinate-_*b:x.coordinate})}else y[w]=x=a({},x,{tickCoord:x.coordinate});b*(x.tickCoord-b*k/2-t)>=0&&b*(x.tickCoord+b*k/2-n)<=0&&(n=x.tickCoord-b*(k/2+c),y[w]=a({},x,{isShow:!0}))}return y.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return x.a.isValidElement(e)?x.a.cloneElement(e,t):v()(e)?e(t):x.a.createElement(T.a,i({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}]),t}(w.Component);N.displayName="CartesianAxis",N.propTypes=a({},P.c,{},P.a,{className:k.a.string,x:k.a.number,y:k.a.number,width:k.a.number,height:k.a.number,orientation:k.a.oneOf(["top","bottom","left","right"]),viewBox:k.a.shape({x:k.a.number,y:k.a.number,width:k.a.number,height:k.a.number}),tick:k.a.oneOfType([k.a.bool,k.a.func,k.a.object,k.a.element]),axisLine:k.a.oneOfType([k.a.bool,k.a.object]),tickLine:k.a.oneOfType([k.a.bool,k.a.object]),mirror:k.a.bool,tickMargin:k.a.number.isRequired,minTickGap:k.a.number,ticks:k.a.array,tickSize:k.a.number,stroke:k.a.string,tickFormatter:k.a.func,ticksGenerator:k.a.func,interval:k.a.oneOfType([k.a.number,k.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),N.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=N},function(e,t,n){var r=n(240),i=n(773),o=n(774),a=n(302),s=n(777),c=n(779),u=n(780),l=n(782),f=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,l(e),n),u&&(n=i(n,7,c));for(var f=t.length;f--;)o(n,t[f]);return n});e.exports=f},function(e,t,n){function r(){if(!arguments.length)return[];var e=arguments[0];return i(e)?e:[e]}var i=n(15);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 i(){return i=Object.assign||function(e){for(var t=1;t0,from:{upperWidth:0,lowerWidth:0,height:s,x:n,y:r},to:{upperWidth:i,lowerWidth:o,height:s,x:n,y:r},duration:p,animationEasing:f,isActive:d},function(t){var n=t.upperWidth,r=t.lowerWidth,i=t.height,o=t.x,s=t.y;return y.a.createElement(x.a,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,easing:f},y.a.createElement("path",a({},Object(O.l)(e.props),Object(O.f)(e.props),{className:m,d:k(o,s,n,r,i),ref:function(t){e.node=t}})))}):y.a.createElement("g",null,y.a.createElement("path",a({},Object(O.l)(this.props),Object(O.f)(this.props),{className:m,d:k(n,r,i,o,s)})))}}]),t}(m.PureComponent);_.displayName="Trapezoid",_.propTypes=function(e){for(var t=1;tU.length&&U.push(e)}function h(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case O:case k:a=!0}}if(a)return n(i,e,""===t?"."+m(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;st}return!1}function O(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}function k(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=po.hasOwnProperty(t)?po[t]:null;(null!==i?0===i.type:!r&&2=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:T(n)}}function G(e,t){var n=T(t.value),r=T(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 V(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Y(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 X(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Y(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function K(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 Z(e){if(Do[e])return Do[e];if(!Ro[e])return e;var t,n=Ro[e];for(t in n)if(n.hasOwnProperty(t)&&t in zo)return Do[e]=n[t];return e}function Q(e){var t=Yo.get(e);return void 0===t&&(t=new Map,Yo.set(e,t)),t}function J(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!=(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ee(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function te(e){if(J(e)!==e)throw Error(r(188))}function ne(e){var t=e.alternate;if(!t){if(null===(t=J(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){n=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return te(o),e;if(a===i)return te(o),t;a=a.sibling}throw Error(r(188))}if(n.return!==i.return)n=o,i=a;else{for(var s=!1,c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function re(e){if(!(e=ne(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ie(e,t){if(null==t)throw Error(r(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function oe(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function ae(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rKo.length&&Ko.push(e)}function fe(e,t,n,r){if(Ko.length){var i=Ko.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}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=Xe(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=Be(n)}}function Ue(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ue(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function We(){for(var e=window,t=ze();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=ze(e.document)}return t}function He(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 qe(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ge(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 Ve(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ye(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===va||n===Oa||n===xa){if(0===t)return e;t--}else n===wa&&t++}e=e.previousSibling}return null}function Xe(e){var t=e[Ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Aa]||n[Ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ye(e);null!==e;){if(n=e[Ca])return n;e=Ye(e)}return t}e=n,n=e.parentNode}return null}function Ke(e){return e=e[Ca]||e[Aa],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function $e(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function Ze(e){return e[Ta]||null}function Qe(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Je(e,t){var n=e.stateNode;if(!n)return null;var i=Vi(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}function et(e,t,n){(t=Je(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ie(n._dispatchListeners,t),n._dispatchInstances=ie(n._dispatchInstances,e))}function tt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Qe(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function ft(e){e.eventPool=[],e.getPooled=ut,e.release=lt}function pt(e,t){switch(e){case"keyup":return-1!==Ra.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ht(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function dt(e,t){switch(e){case"compositionend":return ht(t);case"keypress":return 32!==t.which?null:(Ha=!0,Ua);case"textInput":return e=t.data,e===Ua&&Ha?null:e;default:return null}}function mt(e,t){if(qa)return"compositionend"===e||!Da&&pt(e,t)?(e=ot(),Na=Ma=Pa=null,qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Is||(e.current=Ns[Is],Ns[Is]=null,Is--)}function It(e,t){Is++,Ns[Is]=e.current,e.current=t}function Lt(e,t){var n=e.type.contextTypes;if(!n)return Ls;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Dt(){Nt(Ds),Nt(Rs)}function zt(e,t,n){if(Rs.current!==Ls)throw Error(r(168));It(Rs,t),It(Ds,n)}function Bt(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return n;i=i.getChildContext();for(var o in i)if(!(o in e))throw Error(r(108,E(t)||"Unknown",o));return Bi({},n,{},i)}function Ft(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ls,zs=Rs.current,It(Rs,e),It(Ds,Ds.current),!0}function Ut(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Bt(e,t,zs),i.__reactInternalMemoizedMergedChildContext=e,Nt(Ds),Nt(Rs),It(Rs,e)):Nt(Ds),It(Ds,n)}function Wt(){switch(qs()){case Gs:return 99;case Vs:return 98;case Ys:return 97;case Xs:return 96;case Ks:return 95;default:throw Error(r(332))}}function Ht(e){switch(e){case 99:return Gs;case 98:return Vs;case 97:return Ys;case 96:return Xs;case 95:return Ks;default:throw Error(r(332))}}function qt(e,t){return e=Ht(e),Bs(e,t)}function Gt(e,t,n){return e=Ht(e),Fs(e,t,n)}function Vt(e){return null===Js?(Js=[e],ec=Fs(Gs,Xt)):Js.push(e),$s}function Yt(){if(null!==ec){var e=ec;ec=null,Us(e)}Xt()}function Xt(){if(!tc&&null!==Js){tc=!0;var e=0;try{var t=Js;qt(99,function(){for(;e=t&&(Lc=!0),e.firstContext=null)}function tn(e,t){if(sc!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(sc=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ac){if(null===oc)throw Error(r(308));ac=t,oc.dependencies={expirationTime:0,firstContext:t,responders:null}}else ac=ac.next=t;return e._currentValue}function nn(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function rn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function on(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function an(e,t){if(null!==(e=e.updateQueue)){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function sn(e,t){var n=e.alternate;null!==n&&rn(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function cn(e,t,n,r){var i=e.updateQueue;cc=!1;var o=i.baseQueue,a=i.shared.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}o=a,i.shared.pending=null,null!==(s=e.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=a)}if(null!==o){s=o.next;var c=i.baseState,u=0,l=null,f=null,p=null;if(null!==s)for(var h=s;;){if((a=h.expirationTime)u&&(u=a)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),Zr(a,h.suspenseConfig);e:{var m=e,y=h;switch(a=t,d=n,y.tag){case 1:if("function"==typeof(m=y.payload)){c=m.call(d,c,a);break e}c=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(m=y.payload,null===(a="function"==typeof m?m.call(d,c,a):m)||void 0===a)break e;c=Bi({},c,a);break e;case 2:cc=!0}}null!==h.callback&&(e.effectTag|=32,a=i.effects,null===a?i.effects=[h]:a.push(h))}if(null===(h=h.next)||h===s){if(null===(a=i.shared.pending))break;h=o.next=a.next,a.next=s,i.baseQueue=o=a,i.shared.pending=null}}null===p?l=c:p.next=f,i.baseState=l,i.baseQueue=p,Qr(u),e.expirationTime=u,e.memoizedState=c}}function un(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tm?(y=f,f=null):y=f.sibling;var g=h(r,f,s[m],c);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(r,f),o=a(g,o,m),null===l?u=g:l.sibling=g,l=g,f=y}if(m===s.length)return n(r,f),u;if(null===f){for(;my?(g=m,m=null):g=m.sibling;var v=h(o,m,b.value,u);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),s=a(v,s,y),null===f?l=v:f.sibling=v,f=v,m=g}if(b.done)return n(o,m),l;if(null===m){for(;!b.done;y++,b=c.next())null!==(b=p(o,b.value,u))&&(s=a(b,s,y),null===f?l=b:f.sibling=b,f=b);return l}for(m=i(o,m);!b.done;y++,b=c.next())null!==(b=d(m,o,y,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?y:b.key),s=a(b,s,y),null===f?l=b:f.sibling=b,f=b);return e&&m.forEach(function(e){return t(o,e)}),l}return function(e,i,a,c){var u="object"==typeof a&&null!==a&&a.type===xo&&null===a.key;u&&(a=a.props.children);var l="object"==typeof a&&null!==a;if(l)switch(a.$$typeof){case vo:e:{for(l=a.key,u=i;null!==u;){if(u.key===l){switch(u.tag){case 7:if(a.type===xo){n(e,u.sibling),i=o(u,a.props.children),i.return=e,e=i;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),i=o(u,a.props),i.ref=mn(e,u,a),i.return=e,e=i;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===xo?(i=wi(a.props.children,e.mode,c,a.key),i.return=e,e=i):(c=vi(a.type,a.key,a.props,null,e.mode,c),c.ref=mn(e,i,a),c.return=e,e=c)}return s(e);case wo:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[]),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=Oi(a,e.mode,c),i.return=e,e=i}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),i=o(i,a),i.return=e,e=i):(n(e,i),i=xi(a,e.mode,c),i.return=e,e=i),s(e);if(pc(a))return m(e,i,a,c);if(j(a))return y(e,i,a,c);if(l&&yn(e,a),void 0===a&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(r(152,e.displayName||e.name||"Component"))}return n(e,i)}}function bn(e){if(e===mc)throw Error(r(174));return e}function vn(e,t){switch(It(bc,t),It(gc,e),It(yc,mc),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:X(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=X(t,e)}Nt(yc),It(yc,t)}function wn(){Nt(yc),Nt(gc),Nt(bc)}function xn(e){bn(bc.current);var t=bn(yc.current),n=X(t,e.type);t!==n&&(It(gc,e),It(yc,n))}function On(e){gc.current===e&&(Nt(yc),Nt(gc))}function kn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===xa||n.data===Oa))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))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 _n(e,t){return{responder:e,props:t}}function jn(){throw Error(r(321))}function Sn(e,t){if(null===t)return!1;for(var n=0;na))throw Error(r(301));a+=1,jc=_c=null,t.updateQueue=null,wc.current=Ac,e=n(i,o)}while(t.expirationTime===Oc)}if(wc.current=Ec,t=null!==_c&&null!==_c.next,Oc=0,jc=_c=kc=null,Sc=!1,t)throw Error(r(300));return e}function Cn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===jc?kc.memoizedState=jc=e:jc=jc.next=e,jc}function Tn(){if(null===_c){var e=kc.alternate;e=null!==e?e.memoizedState:null}else e=_c.next;var t=null===jc?kc.memoizedState:jc.next;if(null!==t)jc=t,_c=e;else{if(null===e)throw Error(r(310));_c=e,e={memoizedState:_c.memoizedState,baseState:_c.baseState,baseQueue:_c.baseQueue,queue:_c.queue,next:null},null===jc?kc.memoizedState=jc=e:jc=jc.next=e}return jc}function An(e,t){return"function"==typeof t?t(e):t}function Pn(e){var t=Tn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=_c,o=i.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,i=i.baseState;var c=s=a=null,u=o;do{var l=u.expirationTime;if(lkc.expirationTime&&(kc.expirationTime=l,Qr(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Zr(l,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action);u=u.next}while(null!==u&&u!==o);null===c?a=i:c.next=s,cs(i,t.memoizedState)||(Lc=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=c,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Mn(e){var t=Tn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);cs(a,t.memoizedState)||(Lc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Nn(e){var t=Cn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},e=e.dispatch=Xn.bind(null,kc,e),[t.memoizedState,e]}function In(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=kc.updateQueue,null===t?(t={lastEffect:null},kc.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ln(){return Tn().memoizedState}function Rn(e,t,n,r){var i=Cn();kc.effectTag|=e,i.memoizedState=In(1|t,n,void 0,void 0===r?null:r)}function Dn(e,t,n,r){var i=Tn();r=void 0===r?null:r;var o=void 0;if(null!==_c){var a=_c.memoizedState;if(o=a.destroy,null!==r&&Sn(r,a.deps))return void In(t,n,o,r)}kc.effectTag|=e,i.memoizedState=In(1|t,n,o,r)}function zn(e,t){return Rn(516,4,e,t)}function Bn(e,t){return Dn(516,4,e,t)}function Fn(e,t){return Dn(4,2,e,t)}function Un(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 Wn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Dn(4,2,Un.bind(null,t,e),n)}function Hn(){}function qn(e,t){return Cn().memoizedState=[e,void 0===t?null:t],e}function Gn(e,t){var n=Tn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vn(e,t){var n=Tn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yn(e,t,n){var r=Wt();qt(98>r?98:r,function(){e(!0)}),qt(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(o,{is:i.is}):(e=s.createElement(o),"select"===o&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,o),e[Ca]=t,e[Ta]=i,Ts(e,t,!1,!1),t.stateNode=e,s=Le(o,i),o){case"iframe":case"object":case"embed":Se("load",e),c=i;break;case"video":case"audio":for(c=0;ci.tailExpiration&&1t)&&vu.set(e,t))}}function Fr(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Wr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Vt(qr.bind(null,e));else{var t=Ur(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Dr();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 i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==$s&&Us(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Vt(qr.bind(null,e)):Gt(r,Hr.bind(null,e),{timeout:10*(1073741821-t)-rc()}),e.callbackNode=t}}}function Hr(e,t){if(Ou=0,t)return t=Dr(),Ei(e,t),Wr(e),null;var n=Ur(e);if(0!==n){if(t=e.callbackNode,(Jc&(Gc|Vc))!==Hc)throw Error(r(327));if(si(),e===eu&&n===nu||Xr(e,n),null!==tu){var i=Jc;Jc|=Gc;for(var o=$r();;)try{ei();break}catch(t){Kr(e,t)}if(Zt(),Jc=i,Uc.current=o,ru===Xc)throw t=iu,Xr(e,n),ji(e,n),Wr(e),t;if(null===tu)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,i=ru,eu=null,i){case Yc:case Xc:throw Error(r(345));case Kc:Ei(e,2=n){e.lastPingedTime=n,Xr(e,n);break}}if(0!==(a=Ur(e))&&a!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}e.timeoutHandle=ja(ii.bind(null,e),o);break}ii(e);break;case Zc:if(ji(e,n),i=e.lastSuspendedTime,n===i&&(e.nextKnownPendingLevel=ri(o)),uu&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,Xr(e,n);break}if(0!==(o=Ur(e))&&o!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}if(1073741823!==au?i=10*(1073741821-au)-rc():1073741823===ou?i=0:(i=10*(1073741821-ou)-5e3,o=rc(),n=10*(1073741821-n)-o,i=o-i,0>i&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Fc(i/1960))-i,n=i?i=0:(o=0|s.busyDelayMs,a=rc()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),i=a<=o?0:o+i-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+C(a))}ru!==Qc&&(ru=Kc),s=br(s,a),f=o;do{switch(f.tag){case 3:c=s,f.effectTag|=4096,f.expirationTime=t,sn(f,Lr(f,c,t));break e;case 1:c=s;var w=f.type,x=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===mu||!mu.has(x)))){f.effectTag|=4096,f.expirationTime=t,sn(f,Rr(f,c,t));break e}}f=f.return}while(null!==f)}tu=ni(tu)}catch(e){t=e;continue}break}}function $r(){var e=Uc.current;return Uc.current=Ec,null===e?Ec:e}function Zr(e,t){ecu&&(cu=e)}function Jr(){for(;null!==tu;)tu=ti(tu)}function ei(){for(;null!==tu&&!Zs();)tu=ti(tu)}function ti(e){var t=Dc(e.alternate,e,nu);return e.memoizedProps=e.pendingProps,null===t&&(t=ni(e)),Wc.current=null,t}function ni(e){tu=e;do{var t=tu.alternate;if(e=tu.return,0==(2048&tu.effectTag)){if(t=yr(t,tu,nu),1===nu||1!==tu.childExpirationTime){for(var n=0,r=tu.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}tu.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=tu.firstEffect),null!==tu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=tu.firstEffect),e.lastEffect=tu.lastEffect),1e?t:e}function ii(e){var t=Wt();return qt(99,oi.bind(null,e,t)),null}function oi(e,t){do{si()}while(null!==gu);if((Jc&(Gc|Vc))!==Hc)throw Error(r(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=ri(n);if(e.firstPendingTime=o,i<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:i<=e.firstSuspendedTime&&(e.firstSuspendedTime=i-1),i<=e.lastPingedTime&&(e.lastPingedTime=0),i<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===eu&&(tu=eu=null,nu=0),1c&&(l=c,c=s,s=l),l=Fe(w,s),f=Fe(w,c),l&&f&&(1!==O.rangeCount||O.anchorNode!==l.node||O.anchorOffset!==l.offset||O.focusNode!==f.node||O.focusOffset!==f.offset)&&(x=x.createRange(),x.setStart(l.node,l.offset),O.removeAllRanges(),s>c?(O.addRange(x),O.extend(f.node,f.offset)):(x.setEnd(f.node,f.offset),O.addRange(x)))))),x=[];for(O=w;O=O.parentNode;)1===O.nodeType&&x.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w=t&&e<=t}function ji(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Si(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ei(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ci(e,t,n,i){var o=t.current,a=Dr(),s=uc.suspense;a=zr(a,o,s);e:if(n){n=n._reactInternalFiber;t:{if(J(n)!==n||1!==n.tag)throw Error(r(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Rt(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(r(171))}if(1===n.tag){var u=n.type;if(Rt(u)){n=Bt(n,u,c);break e}}n=c}else n=Ls;return null===t.context?t.context=n:t.pendingContext=n,t=on(a,s),t.payload={element:e},i=void 0===i?null:i,null!==i&&(t.callback=i),an(o,t),Br(o,a),a}function Ti(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ai(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime