/*! For license information please see 2.a37627f4.chunk.js.LICENSE.txt */ (this.webpackJsonpenp=this.webpackJsonpenp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(863)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(31);function o(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 a(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}function U(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,o=t.mapStateToPropsFactories,a=void 0===o?I:o,i=t.mapDispatchToPropsFactories,s=void 0===i?P:i,l=t.mergePropsFactories,c=void 0===l?B:l,u=t.selectorFactory,h=void 0===u?j:u;return function(e,t,n,o){void 0===o&&(o={});var i=o,l=i.pure,u=void 0===l||l,p=i.areStatesEqual,v=void 0===p?L:p,g=i.areOwnPropsEqual,m=void 0===g?x:g,y=i.areStatePropsEqual,b=void 0===y?x:y,w=i.areMergedPropsEqual,A=void 0===w?x:w,E=Object(d.a)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=F(e,a,"mapStateToProps"),S=F(t,s,"mapDispatchToProps"),O=F(n,c,"mergeProps");return r(h,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:O,pure:u,areStatesEqual:v,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:A},E))}}var H=U();function W(){return Object(r.useContext)(a)}function z(e){void 0===e&&(e=a);var t=e===a?W:function(){return Object(r.useContext)(e)};return function(){return t().store}}var V=z();function G(e){void 0===e&&(e=a);var t=e===a?V:z(e);return function(){return t().dispatch}}var Y=G(),q=function(e,t){return e===t};function K(e){void 0===e&&(e=a);var t=e===a?W:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=q);var o=t();return function(e,t,n,o){var a,i=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new c(n,o)}),[n,o]),l=Object(r.useRef)(),u=Object(r.useRef)(),f=Object(r.useRef)();try{a=e!==u.current||l.current?e(n.getState()):f.current}catch(d){throw l.current&&(d.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),d}return g((function(){u.current=e,f.current=a,l.current=void 0})),g((function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current))return;f.current=e}catch(d){l.current=d}i({})}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),a}(e,n,o.store,o.subscription)}}var X,Q=K(),Z=n(58);X=Z.unstable_batchedUpdates,i=X},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return V})),n.d(t,"b",(function(){return re}));var r=n(15),o=n(24),a=n(80),i=n(0),s=n.n(i),l=n(2),c=n.n(l),u=n(20),f=n.n(u),d=n(231),h=n(16),p=n(301);function v(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function m(e,t,n){var r=v(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r0}function P(e){return Object.keys(e).map((function(t){return e[t]}))}var I=!("undefined"===typeof window||!window.document||!window.document.createElement);var M,B=((M=function(e,t,n){var r=e[t];return!1===r||D(r)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+r+" given.")}).isRequired=function(e,t,n){if("undefined"===typeof e[t])return new Error("The prop "+t+" is marked as required in \n "+n+", but its value is undefined.");M(e,t,n)},M),N={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e){return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=1?"onTransitionEnd":"onAnimationEnd"]=h&&p<1?null:i,n);return s.a.createElement("div",Object(r.a)({className:m,style:g},y))}function F(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function L(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}j.propTypes={delay:B.isRequired,isRunning:c.a.bool.isRequired,closeToast:c.a.func.isRequired,rtl:c.a.bool.isRequired,type:c.a.string,hide:c.a.bool,className:c.a.oneOfType([c.a.string,c.a.object]),progress:c.a.number,controlledProgress:c.a.bool},j.defaultProps={type:_.DEFAULT,hide:!1};var U=I&&/(msie|trident)/i.test(navigator.userAgent),H=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ot.drag.removalDistance)return void t.setState({preventExitTransition:!0},t.props.closeToast);t.ref.style.transition="transform 0.2s, opacity 0.2s",t.ref.style.transform="translateX(0)",t.ref.style.opacity=1}},t.onDragTransitionEnd=function(){if(t.boundingRect){var e=t.boundingRect,n=e.top,r=e.bottom,o=e.left,a=e.right;t.props.pauseOnHover&&t.drag.x>=o&&t.drag.x<=a&&t.drag.y>=n&&t.drag.y<=r?t.pauseToast():t.playToast()}},t.onExitTransitionEnd=function(){if(U)t.props.onExited();else{var e=t.ref.scrollHeight,n=t.ref.style;requestAnimationFrame((function(){n.minHeight="initial",n.height=e+"px",n.transition="all 0.4s ",requestAnimationFrame((function(){n.height=0,n.padding=0,n.margin=0})),setTimeout((function(){return t.props.onExited()}),400)}))}},t}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(e){e.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),e.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var e,t=this,n=this.props,o=n.closeButton,a=n.children,i=n.autoClose,l=n.pauseOnHover,c=n.onClick,u=n.closeOnClick,d=n.type,h=n.hideProgressBar,p=n.closeToast,v=n.transition,g=n.position,m=n.className,y=n.bodyClassName,b=n.progressClassName,w=n.progressStyle,A=n.updateId,E=n.role,_=n.progress,S=n.rtl,O={className:f()("Toastify__toast","Toastify__toast--"+d,(e={},e["Toastify__toast--rtl"]=S,e),m)};i&&l&&(O.onMouseEnter=this.pauseToast,O.onMouseLeave=this.playToast),u&&(O.onClick=function(e){c&&c(e),t.flag.canCloseOnClick&&p()});var x=parseFloat(_)===_;return s.a.createElement(v,{in:this.props.in,appear:!0,onExited:this.onExitTransitionEnd,position:g,preventExitTransition:this.state.preventExitTransition},s.a.createElement("div",Object(r.a)({onClick:c},O,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onMouseUp:this.onDragTransitionEnd,onTouchEnd:this.onDragTransitionEnd}),s.a.createElement("div",Object(r.a)({},this.props.in&&{role:E},{className:f()("Toastify__toast-body",y)}),a),o&&o,(i||x)&&s.a.createElement(j,Object(r.a)({},A&&!x?{key:"pb-"+A}:{},{rtl:S,delay:i,isRunning:this.state.isRunning,closeToast:p,hide:h,type:d,style:w,className:b,controlledProgress:x,progress:_}))))},t}(i.Component);function W(e){var t=e.closeToast,n=e.type,r=e.ariaLabel;return s.a.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":r},"\u2716\ufe0e")}H.propTypes={closeButton:c.a.oneOfType([c.a.node,c.a.bool]).isRequired,autoClose:B.isRequired,children:c.a.node.isRequired,closeToast:c.a.func.isRequired,position:c.a.oneOf(P(E)).isRequired,pauseOnHover:c.a.bool.isRequired,pauseOnFocusLoss:c.a.bool.isRequired,closeOnClick:c.a.bool.isRequired,transition:c.a.func.isRequired,rtl:c.a.bool.isRequired,hideProgressBar:c.a.bool.isRequired,draggable:c.a.bool.isRequired,draggablePercent:c.a.number.isRequired,in:c.a.bool,onExited:c.a.func,onOpen:c.a.func,onClose:c.a.func,type:c.a.oneOf(P(_)),className:c.a.oneOfType([c.a.string,c.a.object]),bodyClassName:c.a.oneOfType([c.a.string,c.a.object]),progressClassName:c.a.oneOfType([c.a.string,c.a.object]),progressStyle:c.a.object,progress:c.a.number,updateId:c.a.oneOfType([c.a.string,c.a.number]),ariaLabel:c.a.string,containerId:c.a.oneOfType([c.a.string,c.a.number]),role:c.a.string},H.defaultProps={type:_.DEFAULT,in:!0,onOpen:T,onClose:T,className:null,bodyClassName:null,progressClassName:null,updateId:null},W.propTypes={closeToast:c.a.func,arialLabel:c.a.string},W.defaultProps={ariaLabel:"close"};var z=R({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),V=(R({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),R({enter:"Toastify__zoom-enter",exit:"Toastify__zoom-exit"}),R({enter:"Toastify__flip-enter",exit:"Toastify__flip-exit"}),function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0}function $(e,t){var n=function(e){return Z()?e?G.get(e):G.get(Y):null}(t.containerId);if(!n)return null;var r=n.collection[e];return"undefined"===typeof r?null:r}function J(e,t){return Object(r.a)({},e,{type:t,toastId:te(e)})}function ee(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function te(e){return e&&("string"===typeof e.toastId||"number"===typeof e.toastId&&!isNaN(e.toastId))?e.toastId:ee()}function ne(e,t){return Z()?N.emit(S,e,t):(X.push({action:S,content:e,options:t}),Q&&I&&(Q=!1,q=document.createElement("div"),document.body.appendChild(q),Object(A.render)(s.a.createElement(V,K),q))),t.toastId}var re=function(e,t){return ne(e,J(t,t&&t.type||_.DEFAULT))},oe=function(e){_[e]!==_.DEFAULT&&(re[_[e].toLowerCase()]=function(t,n){return ne(t,J(n,n&&n.type||_[e]))})};for(var ae in _)oe(ae);re.warn=re.warning,re.dismiss=function(e){return void 0===e&&(e=null),Z()&&N.emit(O,e)},re.isActive=function(e){var t=!1;return G.size>0&&G.forEach((function(n){n.isToastActive(e)&&(t=!0)})),t},re.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=$(e,t);if(n){var o=n.options,a=n.content,i=Object(r.a)({},o,{},t,{toastId:t.toastId||e});t.toastId&&t.toastId!==e?i.staleToastId=e:i.updateId=ee();var s="undefined"!==typeof i.render?i.render:a;delete i.render,ne(s,i)}}),0)},re.done=function(e){re.update(e,{progress:1})},re.onChange=function(e){"function"===typeof e&&N.on(k,e)},re.configure=function(e){Q=!0,K=e},re.POSITION=E,re.TYPE=_,N.on(x,(function(e){Y=e.props.containerId||e,G.set(Y,e),X.forEach((function(e){N.emit(e.action,e.content,e.options)})),X=[]})).on(C,(function(e){e?G.delete(e.props.containerId||e):G.clear(),0===G.size&&N.off(S).off(O),I&&q&&document.body.removeChild(q)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(802),o=n.n(r),a=n(803),i=n.n(a),s=function(e){return e.cloneNode(!0)},l=function(){return"file:"===window.location.protocol},c=new Map,u={},f=function(e,t){u[e]=u[e]||[],u[e].push(t)},d=function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(u[e])){var n=c.get(e),r=u[e][t];(n instanceof SVGSVGElement||n instanceof HTMLElement)&&r(null,s(n)),n instanceof Error&&r(n),t===u[e].length-1&&delete u[e]}}),0)},n=0,r=u[e].length;n0&&("always"===t||"once"===t&&!g[a])){for(var I=0,M=T.length;I>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},W={};function z(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(W[e]=o),t&&(W[t[0]]=function(){return F(o.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=G(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,o=e.match(L);for(t=0,n=o.length;t=0&&U.test(e);)e=e.replace(U,r),U.lastIndex=0,n-=1;return e}var Y=/\d/,q=/\d\d/,K=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,te=/\d{1,4}/,ne=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return u(le,e)?le[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function he(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=E(e)}),n=0;n68?1900:2e3)};var ye,be=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),r.updateOffset(this,t),this):Ae(this,e)}}function Ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ee(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),_e(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function _e(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?me(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Be(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var r=7+t-n;return-(7+Be(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Ne(e,r,o);return s<=0?i=ge(a=e-1)+s:s>ge(e)?(a=e+1,i=s-ge(e)):(a=e,i=s),{year:a,dayOfYear:i}}function je(e,t,n){var r,o,a=Ne(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+Fe(o=e.year()-1,t,n):i>Fe(e.year(),t,n)?(r=i-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function Fe(e,t,n){var r=Ne(e,t,n),o=Ne(e+1,t,n);return(ge(e)-r+o)/7}function Le(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),j("week",5),j("isoWeek",5),ce("w",Z),ce("ww",Z,q),ce("W",Z),ce("WW",Z,q),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=E(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=E(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null}var Ve=se,Ge=se,Ye=se;function qe(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),i.push(r),s.push(o),l.push(a),c.push(r),c.push(o),c.push(a);for(i.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),c[t]=fe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Xe(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ke),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Ke.apply(this)+F(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ke.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),M("hour","h"),j("hour",13),ce("a",Qe),ce("A",Qe),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,q),ce("hh",Z,q),ce("kk",Z,q),ce("hmm",$),ce("hmmss",J),ce("Hmm",$),ce("Hmmss",J),he(["H","HH"],3),he(["k","kk"],(function(e,t,n){var r=E(e);t[3]=24===r?0:r})),he(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),he(["h","hh"],(function(e,t,n){t[3]=E(e),h(n).bigHour=!0})),he("hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r)),h(n).bigHour=!0})),he("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(o)),h(n).bigHour=!0})),he("Hmm",(function(e,t,n){var r=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r))})),he("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=E(e.substr(0,r)),t[4]=E(e.substr(r,2)),t[5]=E(e.substr(o))}));var Ze,$e=we("Hours",!0),Je={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:xe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:We,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(!et[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=Ze._abbr,!function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(r){}return et[t]}function ot(e,t){var n;return e&&((n=i(t)?it(e):at(e,t))?Ze=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=Je;if(t.abbr=e,null!=et[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new P(D(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=rt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&_(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function st(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>_e(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}function lt(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,o,a,i,s=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,i,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,i=4,n=lt(t.GG,e._a[0],je(St(),1,4).year),r=lt(t.W,1),((o=lt(t.E,1))<1||o>7)&&(l=!0);else{a=e._locale._week.dow,i=e._locale._week.doy;var c=je(St(),a,i);n=lt(t.gg,e._a[0],c.year),r=lt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a}r<1||r>Fe(n,a,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Re(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=lt(e._a[0],o[0]),(e._dayOfYear>ge(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Be(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Be:Me).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,r,o,a,i,s=e._i,l=ut.exec(s)||ft.exec(s);if(l){for(h(e).iso=!0,t=0,n=ht.length;t0&&h(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),c+=n.length),W[a]?(n?h(e).empty=!1:h(e).unusedTokens.push(a),ve(a,n,e)):e._strict&&!n&&h(e).unusedTokens.push(a);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ct(e),st(e)}else wt(e);else gt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(st(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:v()}));function Ct(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function Jt(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){z(0,[e,e.length],0,t)}function tn(e,t,n,r,o){var a;return null==e?je(this,r,o).year:(t>(a=Fe(e,r,o))&&(t=a),nn.call(this,e,t,n,r,o))}function nn(e,t,n,r,o){var a=Re(e,t,n,r,o),i=Be(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",Z,q),ce("gg",Z,q),ce("GGGG",te,X),ce("gggg",te,X),ce("GGGGG",ne,Q),ce("ggggg",ne,Q),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=E(e)})),pe(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),M("quarter","Q"),j("quarter",7),ce("Q",Y),he("Q",(function(e,t){t[1]=3*(E(e)-1)})),z("D",["DD",2],"Do","date"),M("date","D"),j("date",9),ce("D",Z),ce("DD",Z,q),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(["D","DD"],2),he("Do",(function(e,t){t[2]=E(e.match(Z)[0])}));var rn=we("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),j("dayOfYear",4),ce("DDD",ee),ce("DDDD",K),he(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=E(e)})),z("m",["mm",2],0,"minute"),M("minute","m"),j("minute",14),ce("m",Z),ce("mm",Z,q),he(["m","mm"],4);var on=we("Minutes",!1);z("s",["ss",2],0,"second"),M("second","s"),j("second",15),ce("s",Z),ce("ss",Z,q),he(["s","ss"],5);var an,sn=we("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),M("millisecond","ms"),j("millisecond",16),ce("S",ee,Y),ce("SS",ee,q),ce("SSS",ee,K),an="SSSS";an.length<=9;an+="S")ce(an,re);function ln(e,t){t[6]=E(1e3*("0."+e))}for(an="S";an.length<=9;an+="S")he(an,ln);var cn=we("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var un=b.prototype;function fn(e){return e}un.add=Gt,un.calendar=function(e,t){var n=e||St(),o=Nt(n,this).startOf("day"),a=r.calendarFormat(this,o)||"sameElse",i=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,St(n)))},un.clone=function(){return new b(this)},un.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":a=qt(this,r)/12;break;case"month":a=qt(this,r);break;case"quarter":a=qt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:A(a)},un.endOf=function(e){var t;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Jt:$t;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},un.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},un.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.fromNow=function(e){return this.from(St(),e)},un.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.toNow=function(e){return this.to(St(),e)},un.get=function(e){return T(this[e=B(e)])?this[e]():this},un.invalidAt=function(){return h(this).overflow},un.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},un.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},un.toJSON=function(){return this.isValid()?this.toISOString():null},un.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},un.unix=function(){return Math.floor(this.valueOf()/1e3)},un.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},un.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},un.year=be,un.isLeapYear=function(){return me(this.year())},un.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},un.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},un.quarter=un.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},un.month=Te,un.daysInMonth=function(){return _e(this.year(),this.month())},un.week=un.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},un.isoWeek=un.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},un.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},un.isoWeeksInYear=function(){return Fe(this.year(),1,4)},un.date=rn,un.day=un.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},un.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},un.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},un.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},un.hour=un.hours=$e,un.minute=un.minutes=on,un.second=un.seconds=sn,un.millisecond=un.milliseconds=cn,un.utcOffset=function(e,t,n){var o,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=Bt(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Rt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==e&&(!t||this._changeInProgress?Vt(this,Ut(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Rt(this)},un.utc=function(e){return this.utcOffset(0,e)},un.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},un.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=Bt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},un.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60===0)},un.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},un.isLocal=function(){return!!this.isValid()&&!this._isUTC},un.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},un.isUtc=jt,un.isUTC=jt,un.zoneAbbr=function(){return this._isUTC?"UTC":""},un.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},un.dates=O("dates accessor is deprecated. Use date instead.",rn),un.months=O("months accessor is deprecated. Use month instead",Te),un.years=O("years accessor is deprecated. Use year instead",be),un.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),un.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=Et(e))._a){var t=e._isUTC?d(e._a):St(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=P.prototype;function hn(e,t,n,r){var o=it(),a=d().set(r,t);return o[n](a,e)}function pn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hn(e,r,n,"month");return o}function vn(e,t,n,r){"boolean"===typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o,a=it(),i=e?a._week.dow:0;if(null!=n)return hn(t,(n+i)%7,r,"day");var l=[];for(o=0;o<7;o++)l[o]=hn(t,(o+i)%7,r,"day");return l}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=fn,dn.postformat=fn,dn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return je(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Le(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?Le(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?Le(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",it);var gn=Math.abs;function mn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function An(e){return function(){return this.as(e)}}var En=An("ms"),_n=An("s"),Sn=An("m"),On=An("h"),xn=An("d"),Cn=An("w"),kn=An("M"),Tn=An("Q"),Dn=An("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var In=Pn("milliseconds"),Mn=Pn("seconds"),Bn=Pn("minutes"),Nn=Pn("hours"),Rn=Pn("days"),jn=Pn("months"),Fn=Pn("years"),Ln=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11};function Hn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Wn=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Wn(this._milliseconds)/1e3,r=Wn(this._days),o=Wn(this._months);e=A(n/60),t=A(e/60),n%=60,e%=60;var a=A(o/12),i=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",h=zn(this._months)!==zn(f)?"-":"",p=zn(this._days)!==zn(f)?"-":"",v=zn(this._milliseconds)!==zn(f)?"-":"";return d+"P"+(a?h+a+"Y":"")+(i?h+i+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?v+l+"H":"")+(c?v+c+"M":"")+(u?v+u+"S":"")}var Gn=Tt.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Gn.add=function(e,t){return mn(this,e,t,1)},Gn.subtract=function(e,t){return mn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=En,Gn.asSeconds=_n,Gn.asMinutes=Sn,Gn.asHours=On,Gn.asDays=xn,Gn.asWeeks=Cn,Gn.asMonths=kn,Gn.asQuarters=Tn,Gn.asYears=Dn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*yn(wn(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=A(a/1e3),l.seconds=e%60,t=A(e/60),l.minutes=t%60,n=A(t/60),l.hours=n%24,i+=A(n/24),o=A(bn(i)),s+=o,i-=yn(wn(o)),r=A(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Gn.clone=function(){return Ut(this)},Gn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=In,Gn.seconds=Mn,Gn.minutes=Bn,Gn.hours=Nn,Gn.days=Rn,Gn.weeks=function(){return A(this.days()/7)},Gn.months=jn,Gn.years=Fn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ut(e).abs(),o=Ln(r.as("s")),a=Ln(r.as("m")),i=Ln(r.as("h")),s=Ln(r.as("d")),l=Ln(r.as("M")),c=Ln(r.as("y")),u=o<=Un.ss&&["s",o]||o0,u[4]=n,Hn.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Vn,Gn.toString=Vn,Gn.toJSON=Vn,Gn.locale=Kt,Gn.localeData=Qt,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),Gn.lang=Xt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),he("x",(function(e,t,n){n._d=new Date(E(e))})),r.version="2.24.0",t=St,r.fn=un,r.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return pn(e,t,"months")},r.isDate=l,r.locale=ot,r.invalid=v,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=it,r.isDuration=Dt,r.monthsShort=function(e,t){return pn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,o=Je;null!=(r=rt(e))&&(o=r._config),t=D(o,t),(n=new P(t)).parentLocale=et[e],et[e]=n,ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return x(et)},r.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Ln:"function"===typeof e&&(Ln=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=un,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(346)(e))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return w}));var r=n(149),o=n(80),a=n(0),i=n.n(a),s=n(159),l=(n(2),n(15)),c=n(24),u=n(188),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o1?"s":" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){var r=n(57),o=n(155).f,a=n(175),i=n(165),s=n(541),l=n(741),c=n(362);e.exports=function(e,t){var n,u,f,d,h,p=e.target,v=e.global,g=e.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(h=o(n,u))&&h.value:n[u],!c(v?u:p+(g?".":"#")+u,e.forced)&&void 0!==f){if(typeof d===typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),i(n,u,d,e)}}},function(e,t,n){"use strict";n.d(t,"h",(function(){return Et})),n.d(t,"n",(function(){return Jt})),n.d(t,"m",(function(){return fn})),n.d(t,"f",(function(){return vn})),n.d(t,"g",(function(){return tc})),n.d(t,"k",(function(){return Ou})),n.d(t,"e",(function(){return Fu})),n.d(t,"i",(function(){return sf})),n.d(t,"a",(function(){return bf})),n.d(t,"c",(function(){return Vf})),n.d(t,"o",(function(){return $f})),n.d(t,"p",(function(){return id})),n.d(t,"j",(function(){return pp})),n.d(t,"d",(function(){return vp})),n.d(t,"l",(function(){return rv})),n.d(t,"b",(function(){return ov}));var r={};n.r(r),n.d(r,"scaleBand",(function(){return Er})),n.d(r,"scalePoint",(function(){return Sr})),n.d(r,"scaleIdentity",(function(){return Yo})),n.d(r,"scaleLinear",(function(){return Go})),n.d(r,"scaleLog",(function(){return ta})),n.d(r,"scaleSymlog",(function(){return aa})),n.d(r,"scaleOrdinal",(function(){return Ar})),n.d(r,"scaleImplicit",(function(){return wr})),n.d(r,"scalePow",(function(){return ua})),n.d(r,"scaleSqrt",(function(){return fa})),n.d(r,"scaleQuantile",(function(){return da})),n.d(r,"scaleQuantize",(function(){return ha})),n.d(r,"scaleThreshold",(function(){return pa})),n.d(r,"scaleTime",(function(){return ys})),n.d(r,"scaleUtc",(function(){return Os})),n.d(r,"scaleSequential",(function(){return ks})),n.d(r,"scaleSequentialLog",(function(){return Ts})),n.d(r,"scaleSequentialPow",(function(){return Ps})),n.d(r,"scaleSequentialSqrt",(function(){return Is})),n.d(r,"scaleSequentialSymlog",(function(){return Ds})),n.d(r,"scaleSequentialQuantile",(function(){return Ms})),n.d(r,"scaleDiverging",(function(){return Ns})),n.d(r,"scaleDivergingLog",(function(){return Rs})),n.d(r,"scaleDivergingPow",(function(){return Fs})),n.d(r,"scaleDivergingSqrt",(function(){return Ls})),n.d(r,"scaleDivergingSymlog",(function(){return js})),n.d(r,"tickFormat",(function(){return zo}));n(1212),n(1234);if(!Object.setPrototypeOf&&!{}.__proto__){var o=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:o.call(Object,e)}}var a=n(37),i=n.n(a),s=n(333),l=n.n(s),c=n(0),u=n.n(c),f=n(2),d=n.n(f),h=n(20),p=n.n(h),v=n(39),g=n.n(v),m=n(199),y=n.n(m),b=n(127),w=n.n(b),A=n(52),E=n.n(A),_=n(177),S=n.n(_),O=n(261),x=n.n(O),C=n(291),k=n.n(C),T=function(e){return 0===e?0:e>0?1:-1},D=function(e){return y()(e)&&e.indexOf("%")===e.length-1},P=function(e){return k()(e)&&!x()(e)},I=function(e){return P(e)||y()(e)},M=0,B=function(e){var t=++M;return"".concat(e||"").concat(t)},N=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!P(e)&&!y()(e))return r;if(D(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return x()(n)&&(n=r),o&&n>t&&(n=t),n},R=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},j=function(e,t){return P(e)&&P(t)?function(n){return e+n*(t-e)}:function(){return t}},F=function(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):S()(e,t))===n})):null};function L(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}function U(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var W={"aria-current":d.a.string,"aria-details":d.a.any,"aria-disabled":d.a.any,"aria-hidden":d.a.any,"aria-invalid":d.a.any,"aria-keyshortcuts":d.a.any,"aria-label":d.a.any,"aria-roledescription":d.a.any,"aria-autocomplete":d.a.any,"aria-checked":d.a.any,"aria-expanded":d.a.any,"aria-haspopup":d.a.any,"aria-level":d.a.any,"aria-modal":d.a.any,"aria-multiline":d.a.any,"aria-multiselectable":d.a.any,"aria-orientation":d.a.any,"aria-placeholder":d.a.any,"aria-pressed":d.a.any,"aria-readonly":d.a.any,"aria-required":d.a.any,"aria-selected":d.a.any,"aria-sort":d.a.any,"aria-valuemax":d.a.any,"aria-valuemin":d.a.any,"aria-valuenow":d.a.any,"aria-valuetext":d.a.any,"aria-atomic":d.a.any,"aria-busy":d.a.any,"aria-live":d.a.any,"aria-relevant":d.a.any,"aria-dropeffect":d.a.any,"aria-grabbed":d.a.any,"aria-activedescendant":d.a.any,"aria-colcount":d.a.any,"aria-colindex":d.a.any,"aria-colspan":d.a.any,"aria-controls":d.a.any,"aria-describedby":d.a.any,"aria-errormessage":d.a.any,"aria-flowto":d.a.any,"aria-labelledby":d.a.any,"aria-owns":d.a.any,"aria-posinset":d.a.any,"aria-rowcount":d.a.any,"aria-rowindex":d.a.any,"aria-rowspan":d.a.any,"aria-setsize":d.a.any,alignmentBaseline:d.a.string,angle:d.a.number,baselineShift:d.a.string,clip:d.a.string,clipPath:d.a.string,clipRule:d.a.string,color:d.a.string,colorInterpolation:d.a.string,colorInterpolationFilters:d.a.string,colorProfile:d.a.string,colorRendering:d.a.string,cursor:d.a.string,direction:d.a.oneOf(["ltr","rtl","inherit"]),display:d.a.string,dominantBaseline:d.a.string,enableBackground:d.a.string,fill:d.a.string,fillOpacity:d.a.oneOfType([d.a.string,d.a.number]),fillRule:d.a.oneOf(["nonzero","evenodd","inherit"]),filter:d.a.string,floodColor:d.a.string,floodOpacity:d.a.oneOfType([d.a.string,d.a.number]),font:d.a.string,fontFamily:d.a.string,fontSize:d.a.oneOfType([d.a.number,d.a.string]),fontSizeAdjust:d.a.oneOfType([d.a.number,d.a.string]),fontStretch:d.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:d.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:d.a.oneOf(["normal","small-caps","inherit"]),fontWeight:d.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:d.a.string,glyphOrientationVertical:d.a.string,imageRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:d.a.oneOfType([d.a.number,d.a.string]),letterSpacing:d.a.oneOfType([d.a.number,d.a.string]),lightingColor:d.a.string,lineHeight:d.a.oneOfType([d.a.number,d.a.string]),markerEnd:d.a.string,markerMid:d.a.string,markerStart:d.a.string,mask:d.a.string,opacity:d.a.oneOfType([d.a.number,d.a.string]),overflow:d.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:d.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:d.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:d.a.string,stopOpacity:d.a.oneOfType([d.a.number,d.a.string]),stroke:d.a.oneOfType([d.a.number,d.a.string]),strokeDasharray:d.a.string,strokeDashoffset:d.a.oneOfType([d.a.number,d.a.string]),strokeLinecap:d.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:d.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:d.a.oneOfType([d.a.number,d.a.string]),strokeOpacity:d.a.oneOfType([d.a.number,d.a.string]),strokeWidth:d.a.oneOfType([d.a.number,d.a.string]),textAnchor:d.a.oneOf(["start","middle","end","inherit"]),textDecoration:d.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:d.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:d.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:d.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:d.a.oneOfType([d.a.number,d.a.string]),writingMode:d.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:d.a.string,role:d.a.string,focusable:d.a.string,tabIndex:d.a.string,style:d.a.object,width:d.a.number,height:d.a.number,dx:d.a.number,dy:d.a.number,x:d.a.number,y:d.a.number,r:d.a.number,radius:d.a.oneOfType([d.a.number,d.a.array])},z={onClick:d.a.func,onMouseDown:d.a.func,onMouseUp:d.a.func,onMouseOver:d.a.func,onMouseMove:d.a.func,onMouseOut:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onTouchEnd:d.a.func,onTouchMove:d.a.func,onTouchStart:d.a.func,onTouchCancel:d.a.func},V={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},G=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],Y=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],q=["none"],K=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},X=function(e,t){var n=[],r=[];return r=E()(t)?t.map((function(e){return K(e)})):[K(t)],u.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},Q=function(e,t){var n=X(e,t);return n&&n[0]},Z=function(e){if(!e||i()(e))return null;var t=u.a.isValidElement(e)?e.props:e;if(!w()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&W[r]&&(n||(n={}),n[r]=t[r]);return n},$=function(e,t){return function(n){return e(t,n),null}},J=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||i()(e))return null;var r=u.a.isValidElement(e)?e.props:e;if(!w()(r))return null;var o=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&z[a]&&(o||(o={}),o[a]=t||(n?$(r[a],r):r[a]));return o},ee=function(e,t,n){return function(r){return e(t,n,r),null}},te=function(e,t,n){if(!w()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&z[o]&&i()(e[o])&&(r||(r={}),r[o]=ee(e[o],t,n));return r},ne=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!P(n)||n<=0||!P(r)||r<=0)},re=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},oe=["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"],ae=function(e,t){if(g()(e)&&g()(t))return!0;if(!g()(e)&&!g()(t)){var n=e.props||{},r=n.children,o=H(n,["children"]),a=t.props||{},i=a.children,s=H(a,["children"]);return r&&i?L(o,s)&&ie(r,i):!r&&!i&&L(o,s)}return!1},ie=function e(t,n){if(t===n)return!0;if(c.Children.count(t)!==c.Children.count(n))return!1;var r=c.Children.count(t);if(0===r)return!0;if(1===r)return ae(E()(t)?t[0]:t,E()(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[K(e.type)]){var a=K(e.type),i=t[a],s=i.handler,l=i.once;if(l&&!r[a]||!l){var c=s(e,a,o);E()(c)?n=[n].concat(U(c)):n.push(c),r[a]=!0}}})),n},le=function(e,t){var n=-1;return c.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n};function ce(){return(ce=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fe={width:d.a.number.isRequired,height:d.a.number.isRequired,viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),className:d.a.string,style:d.a.object,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function de(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,i=e.style,s=ue(e,["children","width","height","viewBox","className","style"]),l=o||{width:n,height:r,x:0,y:0},c=p()("recharts-surface",a),f=Z(s);return u.a.createElement("svg",ce({},f,{className:c,width:n,height:r,style:i,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height),version:"1.1"}),t)}de.propTypes=fe;var he=de,pe=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),ve=2*pe;var ge={draw:function(e,t){var n=Math.sqrt(t/pe);e.moveTo(n,0),e.arc(0,0,n,0,ve)}},me={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()}},ye=Math.sqrt(1/3),be=2*ye,we={draw:function(e,t){var n=Math.sqrt(t/be),r=n*ye;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ae={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Ee=Math.sin(pe/10)/Math.sin(7*pe/10),_e=Math.sin(ve/10)*Ee,Se=-Math.cos(ve/10)*Ee,Oe={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=_e*n,o=Se*n;e.moveTo(0,-n),e.lineTo(r,o);for(var a=1;a<5;++a){var i=ve*a/5,s=Math.cos(i),l=Math.sin(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},xe=Math.sqrt(3),Ce={draw:function(e,t){var n=-Math.sqrt(t/(3*xe));e.moveTo(0,2*n),e.lineTo(-xe*n,-n),e.lineTo(xe*n,-n),e.closePath()}},ke=Math.sqrt(3)/2,Te=1/Math.sqrt(12),De=3*(Te/2+1),Pe={draw:function(e,t){var n=Math.sqrt(t/De),r=n/2,o=n*Te,a=r,i=n*Te+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(-.5*r-ke*o,ke*r+-.5*o),e.lineTo(-.5*a-ke*i,ke*a+-.5*i),e.lineTo(-.5*s-ke*l,ke*s+-.5*l),e.lineTo(-.5*r+ke*o,-.5*o-ke*r),e.lineTo(-.5*a+ke*i,-.5*i-ke*a),e.lineTo(-.5*s+ke*l,-.5*l-ke*s),e.closePath()}},Ie=Math.PI,Me=2*Ie,Be=Me-1e-6;function Ne(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Re(){return new Ne}Ne.prototype=Re.prototype={constructor:Ne,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,f=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(u*s-l*c)>1e-6&&o){var d=n-a,h=r-i,p=s*s+l*l,v=d*d+h*h,g=Math.sqrt(p),m=Math.sqrt(f),y=o*Math.tan((Ie-Math.acos((p+f-v)/(2*g*m)))/2),b=y/m,w=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+o+","+o+",0,0,"+ +(u*d>c*h)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,a){e=+e,t=+t,a=!!a;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,f=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(f<0&&(f=f%Me+Me),f>Be?this._+="A"+n+","+n+",0,1,"+u+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Ie)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var je=Re,Fe=function(e){return function(){return e}};function Le(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 Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return(He="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 We(){return(We=Object.assign||function(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,o=r.layout,a=r.align,i=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((l||0)-(this.getBBox()||{width:0}).width)/2}:"right"===a?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===i?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ft({},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 o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}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,o=t.height,a=t.wrapperStyle,s=t.paylodUniqBy,l=t.payload,c=ft({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a),{},a);return u.a.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){return u.a.isValidElement(e)?u.a.cloneElement(e,t):i()(e)?e(t):u.a.createElement(lt,t)}(n,ft({},this.props,{payload:bt(s,l)})))}}])&&pt(n.prototype,r),o&&pt(n,o),t}(c.PureComponent);At.displayName="Legend",At.propTypes={content:d.a.oneOfType([d.a.element,d.a.func]),wrapperStyle:d.a.object,chartWidth:d.a.number,chartHeight:d.a.number,width:d.a.number,height:d.a.number,iconSize:d.a.number,iconType:d.a.oneOf(wt),layout:d.a.oneOf(["horizontal","vertical"]),align:d.a.oneOf(["center","left","right"]),verticalAlign:d.a.oneOf(["top","bottom","middle"]),margin:d.a.shape({top:d.a.number,left:d.a.number,bottom:d.a.number,right:d.a.number}),payload:d.a.arrayOf(d.a.shape({value:d.a.any,id:d.a.any,type:d.a.oneOf(Y)})),paylodUniqBy:d.a.oneOfType([d.a.func,d.a.bool]),formatter:d.a.func,onMouseEnter:d.a.func,onMouseLeave:d.a.func,onClick:d.a.func,onBBoxUpdate:d.a.func},At.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var Et=At,_t=n(166),St=n(327),Ot=n.n(St);function xt(e){return(xt="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 Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function kt(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 Tt(e){for(var t=1;tu[t]+o?Math.max(f,u[t]):Math.max(d,u[t])},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}(t,e),n=t,(r=[{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,o=this.props,a=o.payload,s=o.isAnimationActive,c=o.animationDuration,f=o.animationEasing,d=o.filterNull,h=function(e,t){return!0===e?l()(t,Xt):i()(e)?l()(t,e):t}(o.paylodUniqBy,d&&a&&a.length?a.filter((function(e){return!g()(e.value)})):a),v=h&&h.length,m=this.props,y=m.content,b=m.viewBox,w=m.coordinate,A=m.position,E=m.active,_=Ht({pointerEvents:"none",visibility:E&&v?"visible":"hidden",position:"absolute",top:0},m.wrapperStyle);if(A&&P(A.x)&&P(A.y))t=A.x,n=A.y;else{var S=this.state,O=S.boxWidth,x=S.boxHeight;O>0&&x>0&&w?(t=this.getTranslate({key:"x",tooltipDimension:O,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:x,viewBoxDimension:b.height})):_.visibility="hidden"}_=Ht({},Object(_t.translateStyle)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},_),s&&E&&(_=Ht({},Object(_t.translateStyle)({transition:"transform ".concat(c,"ms ").concat(f)}),{},_));var C=p()(Kt,(Wt(e={},"".concat(Kt,"-right"),P(t)&&w&&P(w.x)&&t>=w.x),Wt(e,"".concat(Kt,"-left"),P(t)&&w&&P(w.x)&&t=w.y),Wt(e,"".concat(Kt,"-top"),P(n)&&w&&P(w.y)&&n0?tn()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,a=r.width,i=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),l=r.children;D(a)||D(i);var c=D(a)?t:a,f=D(i)?n:i;return o&&o>0&&(c?f=c/o:f&&(c=f*o),s&&f>s&&(f=s)),u.a.cloneElement(l,{width:c,height:f})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o=t.width,a=t.height,i=t.maxHeight,s=t.id,l=t.className,c={width:o,height:a,minWidth:n,minHeight:r,maxHeight:i};return u.a.createElement("div",{id:s,className:p()("recharts-responsive-container",l),style:c,ref:function(t){e.container=t}},this.renderChart(),u.a.createElement(rn.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&an(n.prototype,r),o&&an(n,o),t}(c.Component);un.displayName="ResponsiveContainer",un.propTypes={aspect:d.a.number,width:d.a.oneOfType([d.a.string,d.a.number]),height:d.a.oneOfType([d.a.string,d.a.number]),minHeight:d.a.oneOfType([d.a.string,d.a.number]),minWidth:d.a.oneOfType([d.a.string,d.a.number]),maxHeight:d.a.oneOfType([d.a.string,d.a.number]),children:d.a.node.isRequired,debounce:d.a.number,id:d.a.oneOfType([d.a.string,d.a.number]),className:d.a.oneOfType([d.a.string,d.a.number])},un.defaultProps={width:"100%",height:"100%",debounce:0};var fn=un;function dn(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 hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(){return null}pn.propTypes=function(e){for(var t=1;t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,a}),"")},xn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||re())return{width:0,height:0};var n="".concat(e),r=On(t),o="".concat(n,"-").concat(r);if(En.widthCache[o])return En.widthCache[o];try{var a=document.getElementById("recharts_measurement_span");a||((a=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(a));var i=bn({},_n,{},t);Object.keys(i).map((function(e){return a.style[e]=i[e],e})),a.textContent=n;var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return En.widthCache[o]=l,++En.cacheCount>2e3&&(En.cacheCount=0,En.widthCache={}),l}catch(c){return{width:0,height:0}}};function Cn(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 kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e){return(Tn="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 Dn(){return(Dn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function In(e,t){for(var n=0;nt?1:e>=t?0:NaN},Xn=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Kn(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[a],n)>0?o=a:r=a+1}return r}}};var Qn=Xn(Kn),Zn=Qn.right,$n=(Qn.left,Zn);var Jn=function(e){return null===e?NaN:+e},er=Array.prototype,tr=(er.slice,er.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/i),t=Math.floor(t/i),a=new Array(o=Math.ceil(t-e+1));++s=0?(a>=nr?10:a>=rr?5:a>=or?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=nr?10:a>=rr?5:a>=or?2:1)}function sr(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=nr?o*=10:a>=rr?o*=5:a>=or&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}};function cr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function ur(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function fr(){}function dr(e,t){var n=new fr;if(e instanceof fr)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,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?zr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zr(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=Ir.exec(e))?new Yr(t[1],t[2],t[3],1):(t=Mr.exec(e))?new Yr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Br.exec(e))?zr(t[1],t[2],t[3],t[4]):(t=Nr.exec(e))?zr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rr.exec(e))?Qr(t[1],t[2]/100,t[3]/100,1):(t=jr.exec(e))?Qr(t[1],t[2]/100,t[3]/100,t[4]):Fr.hasOwnProperty(e)?Wr(Fr[e]):"transparent"===e?new Yr(NaN,NaN,NaN,0):null}function Wr(e){return new Yr(e>>16&255,e>>8&255,255&e,1)}function zr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yr(e,t,n,r)}function Vr(e){return e instanceof Cr||(e=Hr(e)),e?new Yr((e=e.rgb()).r,e.g,e.b,e.opacity):new Yr}function Gr(e,t,n,r){return 1===arguments.length?Vr(e):new Yr(e,t,n,null==r?1:r)}function Yr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qr(){return"#"+Xr(this.r)+Xr(this.g)+Xr(this.b)}function Kr(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(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 Xr(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Qr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function Zr(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof Cr||(e=Hr(e)),!e)return new $r;if(e instanceof $r)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n0&&l<1?0:i,new $r(i,s,l,e.opacity)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function eo(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}Or(Cr,Hr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Lr,formatHex:Lr,formatHsl:function(){return Zr(this).formatHsl()},formatRgb:Ur,toString:Ur}),Or(Yr,Gr,xr(Cr,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Yr(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:qr,formatHex:qr,formatRgb:Kr,toString:Kr})),Or($r,(function(e,t,n,r){return 1===arguments.length?Zr(e):new $r(e,t,n,null==r?1:r)}),xr(Cr,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new $r(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,o=2*n-r;return new Yr(Jr(e>=240?e-240:e+120,o,r),Jr(e,o,r),Jr(e<120?e+240:e-120,o,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(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var to=function(e){return function(){return e}};function no(e,t){return function(n){return e+n*t}}function ro(e){return 1===(e=+e)?oo:function(t,n){return n-t?function(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)}}(t,n,e):to(isNaN(t)?n:t)}}function oo(e,t){var n=t-e;return n?no(e,n):to(isNaN(e)?t:e)}var ao=function e(t){var n=ro(t);function r(e,t){var r=n((e=Gr(e)).r,(t=Gr(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=oo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function io(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=ra&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:fo(n,r)})),a=vo.lastIndex;return ar&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function So(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o2?Oo:So,o=a=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return f.invert=function(n){return c(t((a||(a=r(s,i.map(e),fo)))(n)))},f.domain=function(e){return arguments.length?(i=yr.call(e,bo),c===Ao||(c=_o(i)),u()):i.slice()},f.range=function(e){return arguments.length?(s=br.call(e),u()):s.slice()},f.rangeRound=function(e){return s=br.call(e),l=yo,u()},f.clamp=function(e){return arguments.length?(c=e?_o(i):Ao,f):c!==Ao},f.interpolate=function(e){return arguments.length?(l=e,u()):l},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function ko(e,t){return Co()(e,t)}var To=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Do(e){if(!(t=To.exec(e)))throw new Error("invalid format: "+e);var t;return new Po({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 Po(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+""}Do.prototype=Po.prototype,Po.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};var Io,Mo,Bo,No,Ro=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},jo=function(e){return(e=Ro(Math.abs(e)))?e[1]:NaN},Fo=function(e,t){var n=Ro(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Lo={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Fo(100*e,t)},r:Fo,s:function(e,t){var n=Ro(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Io=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ro(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Uo=function(e){return e},Ho=Array.prototype.map,Wo=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Mo=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Uo:(t=Ho.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Uo:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ho.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Do(e)).fill,n=e.align,f=e.sign,d=e.symbol,h=e.zero,p=e.width,v=e.comma,g=e.precision,m=e.trim,y=e.type;"n"===y?(v=!0,y="g"):Lo[y]||(void 0===g&&(g=12),m=!0,y="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===d?a:/[%p]/.test(y)?l:"",A=Lo[y],E=/[defgprs%]/.test(y);function _(e){var o,a,l,d=b,_=w;if("c"===y)_=A(e)+_,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:A(Math.abs(e),g),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:c:"-"===f||"("===f?"":f)+d,_=("s"===y?Wo[8+Io/3]:"")+_+(S&&"("===f?")":""),E)for(o=-1,a=e.length;++o(l=e.charCodeAt(o))||l>57){_=(46===l?i+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}v&&!h&&(e=r(e,1/0));var O=d.length+e.length+_.length,x=O>1)+d+e+_+x.slice(O);break;default:e=x+d+e+_}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=Do(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(jo(t)/3))),o=Math.pow(10,-r),a=Wo[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Bo=Mo.format,No=Mo.formatPrefix;var zo=function(e,t,n,r){var o,a=sr(e,t,n);switch((r=Do(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(jo(t)/3)))-jo(Math.abs(e)))}(a,i))||(r.precision=o),No(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jo(t)-jo(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-jo(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return Bo(r)};function Vo(e){var t=e.domain;return e.ticks=function(e){var n=t();return ar(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return zo(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),a=0,i=o.length-1,s=o[a],l=o[i];return l0?r=ir(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=ir(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[a]=Math.floor(s/r)*r,o[i]=Math.ceil(l/r)*r,t(o)):r<0&&(o[a]=Math.ceil(s*r)/r,o[i]=Math.floor(l*r)/r,t(o)),e},e}function Go(){var e=ko(Ao,Ao);return e.copy=function(){return xo(e,Go())},cr.apply(e,arguments),Vo(e)}function Yo(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=yr.call(t,bo),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Yo(e).unknown(t)},e=arguments.length?yr.call(e,bo):[0,1],Vo(n)}var qo=function(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i0){for(;dl)break;v.push(f)}}else for(;d=1;--u)if(!((f=c*u)l)break;v.push(f)}}else v=ar(d,h,Math.min(h-d,p)).map(n);return r?v.reverse():v},r.tickFormat=function(e,o){if(null==o&&(o=10===a?".0e":","),"function"!==typeof o&&(o=Bo(o)),e===1/0)return o;null==e&&(e=10);var i=Math.max(1,a*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*a0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[i-1],o[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return o.slice()},i.copy=function(){return ha().domain([t,n]).range(a).unknown(e)},cr.apply(Vo(i),arguments)}function pa(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[$n(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=br.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=br.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return pa().domain(t).range(n).unknown(e)},cr.apply(o,arguments)}var va=new Date,ga=new Date;function ma(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return s;do{s.push(i=new Date(+n)),t(n,a),e(n)}while(i=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&&(o.count=function(t,r){return va.setTime(+t),ga.setTime(+r),e(va),e(ga),Math.floor(n(va,ga))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var ya=ma((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));ya.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ma((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ba=ya,wa=(ya.range,ma((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Aa=wa;wa.range;function Ea(e){return ma((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var _a=Ea(0),Sa=Ea(1),Oa=Ea(2),xa=Ea(3),Ca=Ea(4),ka=Ea(5),Ta=Ea(6),Da=(_a.range,Sa.range,Oa.range,xa.range,Ca.range,ka.range,Ta.range,ma((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Pa=Da,Ia=(Da.range,ma((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Ma=Ia,Ba=(Ia.range,ma((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),Na=Ba,Ra=(Ba.range,ma((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),ja=Ra,Fa=(Ra.range,ma((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));Fa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ma((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Fa:null};var La=Fa;Fa.range;function Ua(e){return ma((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var Ha=Ua(0),Wa=Ua(1),za=Ua(2),Va=Ua(3),Ga=Ua(4),Ya=Ua(5),qa=Ua(6),Ka=(Ha.range,Wa.range,za.range,Va.range,Ga.range,Ya.range,qa.range,ma((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Xa=Ka,Qa=(Ka.range,ma((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Qa.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ma((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Za=Qa;Qa.range;function $a(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ja(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ei(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ti,ni,ri,oi={"-":"",_:" ",0:"0"},ai=/^\s*\d+/,ii=/^%/,si=/[\\^$*+?|[\]().{}]/g;function li(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a68?1900:2e3),n+r[0].length):-1}function bi(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 wi(e,t,n){var r=ai.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Ai(e,t,n){var r=ai.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ei(e,t,n){var r=ai.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _i(e,t,n){var r=ai.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Si(e,t,n){var r=ai.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Oi(e,t,n){var r=ai.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xi(e,t,n){var r=ai.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ci(e,t,n){var r=ai.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ki(e,t,n){var r=ai.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ti(e,t,n){var r=ii.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Di(e,t,n){var r=ai.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Pi(e,t,n){var r=ai.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ii(e,t){return li(e.getDate(),t,2)}function Mi(e,t){return li(e.getHours(),t,2)}function Bi(e,t){return li(e.getHours()%12||12,t,2)}function Ni(e,t){return li(1+Pa.count(ba(e),e),t,3)}function Ri(e,t){return li(e.getMilliseconds(),t,3)}function ji(e,t){return Ri(e,t)+"000"}function Fi(e,t){return li(e.getMonth()+1,t,2)}function Li(e,t){return li(e.getMinutes(),t,2)}function Ui(e,t){return li(e.getSeconds(),t,2)}function Hi(e){var t=e.getDay();return 0===t?7:t}function Wi(e,t){return li(_a.count(ba(e)-1,e),t,2)}function zi(e,t){var n=e.getDay();return e=n>=4||0===n?Ca(e):Ca.ceil(e),li(Ca.count(ba(e),e)+(4===ba(e).getDay()),t,2)}function Vi(e){return e.getDay()}function Gi(e,t){return li(Sa.count(ba(e)-1,e),t,2)}function Yi(e,t){return li(e.getFullYear()%100,t,2)}function qi(e,t){return li(e.getFullYear()%1e4,t,4)}function Ki(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+li(t/60|0,"0",2)+li(t%60,"0",2)}function Xi(e,t){return li(e.getUTCDate(),t,2)}function Qi(e,t){return li(e.getUTCHours(),t,2)}function Zi(e,t){return li(e.getUTCHours()%12||12,t,2)}function $i(e,t){return li(1+Xa.count(Za(e),e),t,3)}function Ji(e,t){return li(e.getUTCMilliseconds(),t,3)}function es(e,t){return Ji(e,t)+"000"}function ts(e,t){return li(e.getUTCMonth()+1,t,2)}function ns(e,t){return li(e.getUTCMinutes(),t,2)}function rs(e,t){return li(e.getUTCSeconds(),t,2)}function os(e){var t=e.getUTCDay();return 0===t?7:t}function as(e,t){return li(Ha.count(Za(e)-1,e),t,2)}function is(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ga(e):Ga.ceil(e),li(Ga.count(Za(e),e)+(4===Za(e).getUTCDay()),t,2)}function ss(e){return e.getUTCDay()}function ls(e,t){return li(Wa.count(Za(e)-1,e),t,2)}function cs(e,t){return li(e.getUTCFullYear()%100,t,2)}function us(e,t){return li(e.getUTCFullYear()%1e4,t,4)}function fs(){return"+0000"}function ds(){return"%"}function hs(e){return+e}function ps(e){return Math.floor(+e/1e3)}!function(e){ti=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=ui(o),u=fi(o),f=ui(a),d=fi(a),h=ui(i),p=fi(i),v=ui(s),g=fi(s),m=ui(l),y=fi(l),b={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ii,e:Ii,f:ji,H:Mi,I:Bi,j:Ni,L:Ri,m:Fi,M:Li,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:hs,s:ps,S:Ui,u:Hi,U:Wi,V:zi,w:Vi,W:Gi,x:null,X:null,y:Yi,Y:qi,Z:Ki,"%":ds},w={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Xi,e:Xi,f:es,H:Qi,I:Zi,j:$i,L:Ji,m:ts,M:ns,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:hs,s:ps,S:rs,u:os,U:as,V:is,w:ss,W:ls,x:null,X:null,y:cs,Y:us,Z:fs,"%":ds},A={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Ei,e:Ei,f:ki,H:Si,I:Si,j:_i,L:Ci,m:Ai,M:Oi,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:wi,Q:Di,s:Pi,S:xi,u:hi,U:pi,V:vi,w:di,W:gi,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:yi,Y:mi,Z:bi,"%":Ti};function E(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=Ja(ei(a.y,0,1))).getUTCDay(),r=o>4||0===o?Wa.ceil(r):Wa(r),r=Xa.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=$a(ei(a.y,0,1))).getDay(),r=o>4||0===o?Sa.ceil(r):Sa(r),r=Pa.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?Ja(ei(a.y,0,1)).getUTCDay():$a(ei(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Ja(a)):$a(a)}}function S(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=A[o in oi?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),w.x=E(n,w),w.X=E(r,w),w.c=E(t,w),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),ni=ti.format,ti.parse,ri=ti.utcFormat,ti.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vs(e){return new Date(e)}function gs(e){return e instanceof Date?+e:+new Date(+e)}function ms(e,t,n,r,o,a,i,s,l){var c=ko(Ao,Ao),u=c.invert,f=c.domain,d=l(".%L"),h=l(":%S"),p=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),y=l("%B"),b=l("%Y"),w=[[i,1,1e3],[i,5,5e3],[i,15,15e3],[i,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function A(s){return(i(s)1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a=0;)n[t]=t;return n};function zs(e,t){return e[t]}function Vs(){return(Vs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ys={className:d.a.string,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node])};function qs(e){var t=e.children,n=e.className,r=Gs(e,["children","className"]),o=p()("recharts-layer",n);return u.a.createElement("g",Vs({className:o},r),t)}qs.propTypes=Ys;var Ks=qs;function Xs(e){return(Xs="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 Qs(){return(Qs=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Js(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function el(e,t){for(var n=0;n=0}));if(a&&a.length){var i=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=ul(t,n,0),o=E()(r)?[Vn()(r),Wn()(r)]:[r,r],a=i.reduce((function(e,n){var r=ul(t,n,0),a=o[0]-Math.abs(E()(r)?r[0]:r),i=o[1]+Math.abs(E()(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]}),[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]}),[1/0,-1/0])}return null},vl=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&pl(e,t,o)||fl(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:Sr(),realScaleType:"point"}:"category"===o?{scale:Er(),realScaleType:"band"}:{scale:Go(),realScaleType:"linear"};if(y()(n)){var l="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[l]||Sr)(),realScaleType:r[l]?l:"point"}}return i()(n)?{scale:n}:{scale:Sr(),realScaleType:"point"}},Al=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),s=e(t[n-1]);(ia||sa)&&e.domain([t[0],t[n-1]])}},El={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[i][n][0]=o,e[i][n][1]=o+s,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+s,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=2){for(var n=Ot()(t,(function(e){return e.coordinate})),r=1/0,o=1,a=n.length;o2&&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},Hl=function(e,t){var n=e.x,r=e.y,o=t.cx,a=t.cy,i=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-a,2))}({x:n,y:r},{x:o,y:a});if(i<=0)return{radius:i};var s=(n-o)/i,l=Math.acos(s);return r>a&&(l=2*Math.PI-l),{radius:i,angle:Fl(l),angleInRadian:l}},Wl=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),a=Math.floor(r/360);return e+360*Math.min(o,a)},zl=function(e,t){var n=e.x,r=e.y,o=Hl({x:n,y:r},t),a=o.radius,i=o.angle,s=t.innerRadius,l=t.outerRadius;if(al)return!1;if(0===a)return!0;var c,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),a=Math.min(r,o);return{startAngle:t-360*a,endAngle:n-360*a}}(t),f=u.startAngle,d=u.endAngle,h=i;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return c?Bl({},t,{radius:a,angle:Wl(h,t)}):null};function Vl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===a?(r=v+A*s,o=y):"insideEnd"===a?(r=m-A*s,o=!y):"end"===a&&(r=m+A*s,o=y),o=w<=0?o:!o;var E=Ll(c,f,b,r),_=Ll(c,f,b,r+359*(o?1:-1)),S="M".concat(E.x,",").concat(E.y,"\n A").concat(b,",").concat(b,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),O=g()(e.id)?B("recharts-radial-line-"):e.id;return u.a.createElement("text",Gl({},n,{dominantBaseline:"central",className:p()("recharts-radial-bar-label",l)}),u.a.createElement("defs",null,u.a.createElement("path",{id:O,d:S})),u.a.createElement("textPath",{xlinkHref:"#".concat(O)},t))};function $l(e){var t,n=e.viewBox,r=e.position,o=e.value,a=e.children,s=e.content,l=e.className,f=void 0===l?"":l;if(!n||g()(o)&&g()(a)&&!Object(c.isValidElement)(s)&&!i()(s))return null;if(Object(c.isValidElement)(s))return Object(c.cloneElement)(s,e);if(i()(s)){if(t=s(e),Object(c.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=g()(e.children)?t:e.children;return i()(n)?n(r):r}(e);var d=function(e){return P(e.cx)}(n),h=Z(e),v=J(e);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return Zl(e,t,h);var m=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,s=t.outerRadius,l=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=Ll(o,a,s+n,l),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=Ll(o,a,(i+s)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,a=t.y,i=t.width,s=t.height,l=s>=0?1:-1;return"top"===r?{x:o+i/2,y:a-l*n,textAnchor:"middle",verticalAnchor:l>0?"end":"start"}:"bottom"===r?{x:o+i/2,y:a+s+l*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:a+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+i+n,y:a+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:a+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+i-n,y:a+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+i/2,y:a+l*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+i/2,y:a+s-l*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:a+l*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+i-n,y:a+l*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:a+s-l*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+i-n,y:a+s-l*n,textAnchor:"end",verticalAnchor:"end"}:w()(r)&&(P(r.x)||D(r.x))&&(P(r.y)||D(r.y))?{x:o+N(r.x,i),y:a+N(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:o+i/2,y:a+s/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return u.a.createElement(Fn,Gl({className:p()("recharts-label",f)},h,m,v),t)}$l.displayName="Label",$l.defaultProps={offset:5},$l.propTypes=Ql;var Jl=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,f=e.y,d=e.top,h=e.left,p=e.width,v=e.height,g=e.clockWise;if(P(p)&&P(v)){if(P(u)&&P(f))return{x:u,y:f,width:p,height:v};if(P(d)&&P(h))return{x:d,y:h,width:p,height:v}}return P(u)&&P(f)?{x:u,y:f,width:0,height:0}:P(t)&&P(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:l||0,outerRadius:c||s||i||0,clockWise:g}:e.viewBox?e.viewBox:{}},ec=function(e,t){return e?!0===e?u.a.createElement($l,{key:"label-implicit",viewBox:t}):I(e)?u.a.createElement($l,{key:"label-implicit",viewBox:t,value:e}):Object(c.isValidElement)(e)?e.type===$l?Object(c.cloneElement)(e,{key:"label-implicit",viewBox:t}):u.a.createElement($l,{key:"label-implicit",content:e,viewBox:t}):i()(e)?u.a.createElement($l,{key:"label-implicit",content:e,viewBox:t}):w()(e)?u.a.createElement($l,Gl({viewBox:t},e,{key:"label-implicit"})):null:null};$l.parseViewBox=Jl,$l.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Jl(e),a=X(r,$l).map((function(e,n){return Object(c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return a;var i=ec(e.label,t||o);return[i].concat(Vl(a))};var tc=$l,nc=n(813),rc=n.n(nc);function oc(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 ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ic(e){return(ic="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 sc(){return(sc=Object.assign||function(e){for(var t=1;t180),",").concat(+(a>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=Ll(t,n,r,a),d=Ll(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(i)>180),",").concat(+(a<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},vc=function(e){function t(){return lc(this,t),uc(this,fc(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dc(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,f=e.className;if(o0&&Math.abs(l-c)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=T(c-l),f=hc({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),d=f.circleTangency,h=f.lineTangency,p=f.theta,v=hc({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=v.circleTangency,m=v.lineTangency,y=v.theta,b=Math.abs(l-c)-p-y;if(b<0)return i?"M ".concat(h.x,",").concat(h.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(2*-a,",0\n "):pc({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var A=hc({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=A.circleTangency,_=A.lineTangency,S=A.theta,O=hc({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),x=O.circleTangency,C=O.lineTangency,k=O.theta,D=Math.abs(l-c)-S-k;if(D<0)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(C.x,",").concat(C.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"\n A").concat(r,",").concat(r,",0,").concat(+(D>180),",").concat(+(u>0),",").concat(E.x,",").concat(E.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,v/2),forceCornerRadius:i,cornerIsExternal:s,startAngle:l,endAngle:c}):pc({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c}),u.a.createElement("path",sc({},Z(this.props),J(this.props),{className:h,d:d}))}}])&&cc(n.prototype,r),o&&cc(n,o),t}(c.PureComponent);vc.displayName="Sector",vc.propTypes=function(e){for(var t=1;t=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,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:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Nc(e){return e[0]}function Rc(e){return e[1]}var jc=function(){var e=Nc,t=Rc,n=Fe(!0),r=null,o=Sc,a=null;function i(i){var s,l,c,u=i.length,f=!1;for(null==r&&(a=o(c=je())),s=0;s<=u;++s)!(s=u;--f)s.point(g[f],m[f]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+e(d,c,l),m[c]=+n(d,c,l),s.point(t?+t(d,c,l):g[c],r?+r(d,c,l):m[c]))}if(h)return s=null,h+""||null}function c(){return jc().defined(o).curve(i).context(a)}return l.x=function(n){return arguments.length?(e="function"===typeof n?n:Fe(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"===typeof t?t:Fe(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Fe(+e),l):t},l.y=function(e){return arguments.length?(n="function"===typeof e?e:Fe(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"===typeof e?e:Fe(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Fe(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"===typeof e?e:Fe(!!e),l):o},l.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),l):i},l.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),l):a},l};function Lc(e){return(Lc="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 Uc(){return(Uc=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cu={id:d.a.string,data:d.a.arrayOf(d.a.object),valueAccessor:d.a.func,clockWise:d.a.bool,dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func])},uu={valueAccessor:function(e){return E()(e.value)?nu()(e.value):e.value}};function fu(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,a=e.id,i=lu(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?u.a.createElement(Ks,{className:"recharts-label-list"},t.map((function(e,t){var s=g()(r)?n(e,t):ul(e&&e.payload,r),l=g()(a)?{}:{id:"".concat(a,"-").concat(t)};return u.a.createElement(tc,ou({},Z(e),i,l,{index:t,value:s,viewBox:tc.parseViewBox(g()(o)?e:iu({},e,{clockWise:o})),key:"label-".concat(t)}))}))):null}fu.propTypes=cu,fu.displayName="LabelList";var du=function(e,t){return e?!0===e?u.a.createElement(fu,{key:"labelList-implicit",data:t}):u.a.isValidElement(e)||i()(e)?u.a.createElement(fu,{key:"labelList-implicit",data:t,content:e}):w()(e)?u.a.createElement(fu,ou({data:t},e,{key:"labelList-implicit"})):null:null};fu.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=X(r,fu).map((function(e,n){return Object(c.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var a=du(e.label,t);return[a].concat(ru(o))},fu.defaultProps=uu;var hu=fu;function pu(e){return(pu="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 vu(){return(vu=Object.assign||function(e){for(var t=1;tt?"start":e0?S()(e,"paddingAngle",0):0;if(n){var s=j(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=mu({},e,{startAngle:a+i,endAngle:a+s(r)+i});o.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,d=j(0,u-f)(r),h=mu({},e,{startAngle:a+i,endAngle:a+d+i});o.push(h),a=h.endAngle}})),u.a.createElement(Ks,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Un()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,i=e.cy,s=e.innerRadius,l=e.outerRadius,c=e.isAnimationActive,f=e.prevSectors;if(t||!n||!n.length||!P(a)||!P(i)||!P(s)||!P(l))return null;var d=p()("recharts-pie",r);return u.a.createElement(Ks,{className:d},this.renderSectors(),o&&this.renderLabels(n),tc.renderCallByParent(this.props,null,!1),(!c||f&&Un()(f,n))&&hu.renderCallByParent(this.props,n,!1))}}])&&wu(n.prototype,r),o&&wu(n,o),t}(c.PureComponent);Su.displayName="Pie",Su.propTypes=mu({},W,{},z,{className:d.a.string,animationId:d.a.number,cx:d.a.oneOfType([d.a.number,d.a.string]),cy:d.a.oneOfType([d.a.number,d.a.string]),startAngle:d.a.number,endAngle:d.a.number,paddingAngle:d.a.number,innerRadius:d.a.oneOfType([d.a.number,d.a.string]),outerRadius:d.a.oneOfType([d.a.number,d.a.string]),cornerRadius:d.a.oneOfType([d.a.number,d.a.string]),dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]).isRequired,nameKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]),valueKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]),data:d.a.arrayOf(d.a.object),blendStroke:d.a.bool,minAngle:d.a.number,legendType:d.a.oneOf(Y),tooltipType:d.a.oneOf(q),maxRadius:d.a.number,sectors:d.a.arrayOf(d.a.object),hide:d.a.bool,labelLine:d.a.oneOfType([d.a.object,d.a.func,d.a.element,d.a.bool]),label:d.a.oneOfType([d.a.shape({offsetRadius:d.a.number}),d.a.func,d.a.element,d.a.bool]),activeShape:d.a.oneOfType([d.a.object,d.a.func,d.a.element]),activeIndex:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,isAnimationActive:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:d.a.string}),Su.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!re(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},Su.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return T(n-t)*Math.min(Math.abs(n-t),360)},Su.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Z(e.props),a=X(r,vn);return n&&n.length?n.map((function(e,t){return mu({payload:e},o,{},e,{},a&&a[t]&&a[t].props)})):a&&a.length?a.map((function(e){return mu({},o,{},e.props)})):[]},Su.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,a=t.height,i=Ul(o,a);return{cx:r+N(e.props.cx,o,o/2),cy:n+N(e.props.cy,a,a/2),innerRadius:N(e.props.innerRadius,i,0),outerRadius:N(e.props.outerRadius,i,.8*i),maxRadius:e.props.maxRadius||Math.sqrt(o*o+a*a)/2}},Su.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,o=e.onItemMouseEnter,a=Su.getRealPieData(t);if(!a||!a.length)return[];var i=t.props,s=i.cornerRadius,l=i.startAngle,c=i.endAngle,u=i.paddingAngle,f=i.dataKey,d=i.nameKey,h=i.valueKey,p=i.tooltipType,v=Math.abs(t.props.minAngle),m=Su.parseCoordinateOfPie(t,n),y=a.length,b=Su.parseDeltaAngle({startAngle:l,endAngle:c}),w=Math.abs(b),A=w-y*v-(w>=360?y:y-1)*u,E=f;g()(f)&&g()(h)?E="value":g()(f)&&(E=h);var _,S,O=a.reduce((function(e,t){var n=ul(t,E,0);return e+(P(n)?n:0)}),0);O>0&&(_=a.map((function(e,t){var n,r=ul(e,E,0),o=ul(e,d,t),a=(P(r)?r:0)/O,i=(n=t?S.endAngle+T(b)*u:l)+T(b)*(v+a*A),c=(n+i)/2,f=(m.innerRadius+m.outerRadius)/2,h=[{name:o,value:r,payload:e,dataKey:E,type:p}],g=Ll(m.cx,m.cy,f,c);return S=mu({percent:a,cornerRadius:s,name:o,tooltipPayload:h,midAngle:c,middleRadius:f,tooltipPosition:g},e,{},m,{value:ul(e,E),startAngle:n,endAngle:i,payload:e,paddingAngle:T(b)*u})})));return mu({},m,{sectors:_,data:a,onMouseLeave:r,onMouseEnter:o})};var Ou=Su;function xu(e){return(xu="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 Cu(){return(Cu=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Tu(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 Du(e){for(var t=1;ta){s=[].concat(Ju(n.slice(0,l)),[a-c]);break}var u=s.length%2===0?[0,i]:[i];return[].concat(Ju(this.constructor.repeat(n,o)),Ju(s),u).map((function(e){return"".concat(e,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,a=e.children,i=X(a,al);if(!i)return null;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:ul(e.payload,t)}}return i.map((function(e,a){return u.a.cloneElement(e,{key:a,data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:s})}))}},{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,a=r.points,i=r.dataKey,s=Z(this.props),l=Z(o),c=J(o),f=a.map((function(e,t){var r=Zu({key:"dot-".concat(t),r:3},s,{},l,{},c,{value:e.value,dataKey:i,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(o,r)})),d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return u.a.createElement(Ks,Xu({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,a=o.type,i=o.layout,s=o.connectNulls,l=Zu({},Z(this.props),{},J(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:a,layout:i,connectNulls:s});return u.a.createElement(eu,Xu({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,a=r.strokeDasharray,i=r.isAnimationActive,s=r.animationBegin,l=r.animationDuration,c=r.animationEasing,f=r.animationId,d=r.width,h=r.height,p=this.state,v=p.prevPoints,g=p.totalLength;return u.a.createElement(_t.default,{begin:s,duration:l,isActive:i,easing:c,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(v){var s=v.length/o.length,l=o.map((function(e,t){var r=Math.floor(t*s);if(v[r]){var o=v[r],a=j(o.x,e.x),l=j(o.y,e.y);return Zu({},e,{x:a(i),y:l(i)})}if(n.animateNewValues){var c=j(2*d,e.x),u=j(h/2,e.y);return Zu({},e,{x:c(i),y:u(i)})}return Zu({},e,{x:e.x,y:e.y})}));return n.renderCurveStatically(l,e,t)}var c,u=j(0,g)(i);if(a){var f=a.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(u,g,f)}else c="".concat(u,"px ").concat(g-u,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,a=this.state,i=a.prevPoints,s=a.totalLength;return o&&r&&r.length&&(!i&&s>0||!Un()(i,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,o=e.className,a=e.xAxis,i=e.yAxis,s=e.top,l=e.left,c=e.width,f=e.height,d=e.isAnimationActive,h=e.id;if(t||!r||!r.length)return null;var v=this.state.isAnimationFinished,m=1===r.length,y=p()("recharts-line",o),b=a&&a.allowDataOverflow||i&&i.allowDataOverflow,w=g()(h)?this.id:h;return u.a.createElement(Ks,{className:y},b?u.a.createElement("defs",null,u.a.createElement("clipPath",{id:"clipPath-".concat(w)},u.a.createElement("rect",{x:l,y:s,width:c,height:f}))):null,!m&&this.renderCurve(b,w),this.renderErrorBar(),(m||n)&&this.renderDots(b,w),(!d||v)&&hu.renderCallByParent(this.props,r))}}])&&tf(n.prototype,r),o&&tf(n,o),t}(c.PureComponent);af.displayName="Line",af.propTypes=Zu({},W,{},z,{className:d.a.string,type:d.a.oneOfType([d.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),d.a.func]),unit:d.a.oneOfType([d.a.string,d.a.number]),name:d.a.oneOfType([d.a.string,d.a.number]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),yAxis:d.a.object,xAxis:d.a.object,legendType:d.a.oneOf(Y),tooltipType:d.a.oneOf(q),layout:d.a.oneOf(["horizontal","vertical"]),connectNulls:d.a.bool,hide:d.a.bool,activeDot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),dot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),top:d.a.number,left:d.a.number,width:d.a.number,height:d.a.number,points:d.a.arrayOf(d.a.shape({x:d.a.number,y:d.a.number,value:d.a.value})),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,isAnimationActive:d.a.bool,animateNewValues:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:d.a.number,id:d.a.string}),af.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!re(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},af.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,i=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout;return Zu({points:l.map((function(e,t){var l=ul(e,i);return"horizontal"===u?{x:Ol({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:g()(l)?null:r.scale(l),value:l,payload:e}:{x:g()(l)?null:n.scale(l),y:Ol({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:l,payload:e}})),layout:u},c)};var sf=af;function lf(e){return(lf="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 cf(){return(cf=Object.assign||function(e){for(var t=1;t0||!Un()(s,r)||!Un()(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,a=e.top,i=e.left,s=e.xAxis,l=e.yAxis,c=e.width,f=e.height,d=e.isAnimationActive,h=e.id;if(t||!r||!r.length)return null;var v=this.state.isAnimationFinished,m=1===r.length,y=p()("recharts-area",o),b=s&&s.allowDataOverflow||l&&l.allowDataOverflow,w=g()(h)?this.id:h;return u.a.createElement(Ks,{className:y},b?u.a.createElement("defs",null,u.a.createElement("clipPath",{id:"clipPath-".concat(w)},u.a.createElement("rect",{x:i,y:a,width:c,height:parseInt(f,10)}))):null,m?null:this.renderArea(b,w),(n||m)&&this.renderDots(b,w),(!d||v)&&hu.renderCallByParent(this.props,r))}}])&&pf(n.prototype,r),o&&pf(n,o),t}(c.PureComponent);yf.displayName="Area",yf.propTypes=ff({},W,{},z,{className:d.a.string,dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]).isRequired,type:d.a.oneOfType([d.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),d.a.func]),unit:d.a.oneOfType([d.a.string,d.a.number]),name:d.a.oneOfType([d.a.string,d.a.number]),yAxisId:d.a.oneOfType([d.a.string,d.a.number]),xAxisId:d.a.oneOfType([d.a.string,d.a.number]),yAxis:d.a.object,xAxis:d.a.object,stackId:d.a.oneOfType([d.a.number,d.a.string]),legendType:d.a.oneOf(Y),tooltipType:d.a.oneOf(q),connectNulls:d.a.bool,activeDot:d.a.oneOfType([d.a.object,d.a.element,d.a.func,d.a.bool]),dot:d.a.oneOfType([d.a.func,d.a.element,d.a.object,d.a.bool]),label:d.a.oneOfType([d.a.func,d.a.element,d.a.object,d.a.bool]),hide:d.a.bool,layout:d.a.oneOf(["horizontal","vertical"]),baseLine:d.a.oneOfType([d.a.number,d.a.array]),isRange:d.a.bool,points:d.a.arrayOf(d.a.shape({x:d.a.number,y:d.a.number,value:d.a.oneOfType([d.a.number,d.a.array])})),onAnimationStart:d.a.func,onAnimationEnd:d.a.func,animationId:d.a.number,isAnimationActive:d.a.bool,animationBegin:d.a.number,animationDuration:d.a.number,animationEasing:d.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:d.a.string}),yf.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!re(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},yf.getBaseValue=function(e,t,n){var r=e.layout,o=e.baseValue;if(P(o))return o;var a="horizontal"===r?n:t,i=a.scale.domain();if("number"===a.type){var s=Math.max(i[0],i[1]),l=Math.min(i[0],i[1]);return"dataMin"===o?l:"dataMax"===o||s<0?s:Math.max(Math.min(i[0],i[1]),0)}return"dataMin"===o?i[0]:"dataMax"===o?i[1]:i[0]},yf.getComposedData=function(e){var t,n=e.props,r=e.xAxis,o=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,h=n.layout,p=c&&c.length,v=yf.getBaseValue(n,r,o),m=!1,y=f.map((function(e,t){var n;return p?n=c[u+t]:(n=ul(e,l),E()(n)?m=!0:n=[v,n]),"horizontal"===h?{x:Ol({axis:r,ticks:a,bandSize:s,entry:e,index:t}),y:g()(n[1])?null:o.scale(n[1]),value:n,payload:e}:{x:g()(n[1])?null:r.scale(n[1]),y:Ol({axis:o,ticks:i,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=p||m?y.map((function(e){return"horizontal"===h?{x:e.x,y:g()(S()(e,"value[0]"))?null:o.scale(S()(e,"value[0]"))}:{x:g()(S()(e,"value[0]"))?null:r.scale(S()(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(v):r.scale(v),ff({points:y,baseLine:t,layout:h,isRange:m},d)},yf.renderDotItem=function(e,t){return u.a.isValidElement(e)?u.a.cloneElement(e,t):i()(e)?e(t):u.a.createElement(qu,cf({},t,{className:"recharts-area-dot"}))};var bf=yf;function wf(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 Af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ef(e){return(Ef="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 _f(){return(_f=Object.assign||function(e){for(var t=1;t=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[],f=0;f<4;f++)u[f]=o[f]>i?i:o[f];a="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),a+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*u[1])),a+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),a+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var d=Math.min(i,o);a="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+l*d,",").concat(t,"\n L ").concat(e+n-l*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n-l*d,",").concat(t+r,"\n L ").concat(e+l*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*d," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},Df=function(e){function t(){var e,n;Sf(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0,from:{width:o,height:a,x:n,y:r},to:{width:o,height:a,x:n,y:r},duration:d,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,a=t.y;return u.a.createElement(_t.default,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:v,easing:f},u.a.createElement("path",_f({},Z(e.props),J(e.props),{className:m,d:Tf(o,a,n,r,i),ref:function(t){e.node=t}})))})):u.a.createElement("path",_f({},Z(this.props),J(this.props),{className:m,d:Tf(n,r,o,a,i)}))}}])&&Of(n.prototype,r),o&&Of(n,o),t}(c.PureComponent);Df.displayName="Rectangle",Df.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Bf(){return(Bf=Object.assign||function(e){for(var t=1;t=0?0:o<0?o:r}return n[0]}({props:t,numericAxis:b}),_=X(m,vn),S=f.map((function(e,t){var n,r,f,d,v,m;if(c?n=function(e,t){if(!t||2!==t.length||!P(t[0])||!P(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!P(e[0])||e[0]r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]0&&Math.abs(v)0&&Math.abs(d)=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Md(e,t){for(var n=0;n=2?T(g[1].coordinate-g[0].coordinate):1;if(1===b?(n="width"===v?f:d,r="width"===v?f+h:d+p):(n="width"===v?f+h:d+p,r="width"===v?f:d),t){var w=o[y-1],A=i()(a)?a(w.value):w.value,E=xn(A)[v]+m,_=b*(w.coordinate+b*E/2-r);g[y-1]=w=Td({},w,{tickCoord:_>0?w.coordinate-_*b:w.coordinate}),b*(w.tickCoord-b*E/2-n)>=0&&b*(w.tickCoord+b*E/2-r)<=0&&(r=w.tickCoord-b*(E/2+c),g[y-1]=Td({},w,{isShow:!0}))}for(var S=t?y-1:y,O=0;O=0&&b*(x.tickCoord+b*k/2-r)<=0&&(n=x.tickCoord+b*(k/2+c),g[O]=Td({},x,{isShow:!0}))}return g.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,a=e.viewBox,s=e.orientation,l=e.minTickGap,c=e.unit,u=a.x,f=a.y,d=a.width,h=a.height,p="top"===s||"bottom"===s?"width":"height",v=c&&"width"===p?xn(c)[p]:0,g=(r||[]).slice(),m=g.length,y=m>=2?T(g[1].coordinate-g[0].coordinate):1;1===y?(t="width"===p?u:f,n="width"===p?u+d:f+h):(t="width"===p?u+d:f+h,n="width"===p?u:f);for(var b=m-1;b>=0;b--){var w=g[b],A=i()(o)?o(w.value):w.value,E=xn(A)[p]+v;if(b===m-1){var _=y*(w.coordinate+y*E/2-n);g[b]=w=Td({},w,{tickCoord:_>0?w.coordinate-_*y:w.coordinate})}else g[b]=w=Td({},w,{tickCoord:w.coordinate});y*(w.tickCoord-y*E/2-t)>=0&&y*(w.tickCoord+y*E/2-n)<=0&&(n=w.tickCoord-y*(E/2+l),g[b]=Td({},w,{isShow:!0}))}return g.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return u.a.isValidElement(e)?u.a.cloneElement(e,t):i()(e)?e(t):u.a.createElement(Fn,Cd({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Pd(e,["viewBox"]),o=this.props,a=o.viewBox,i=Pd(o,["viewBox"]);return!L(n,a)||!L(r,i)||!L(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,a,i,s=this.props,l=s.x,c=s.y,u=s.width,f=s.height,d=s.orientation,h=s.tickSize,p=s.mirror,v=s.tickMargin,g=p?-1:1,m=e.tickSize||h,y=P(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,i=(r=(o=c+!p*f)-g*m)-g*v,a=y;break;case"left":r=o=e.coordinate,a=(t=(n=l+!p*u)-g*m)-g*v,i=y;break;case"right":r=o=e.coordinate,a=(t=(n=l+p*u)+g*m)+g*v,i=y;break;default:t=n=e.coordinate,i=(r=(o=c+p*f)+g*m)+g*v,a=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:a,y:i}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.orientation,i=e.axisLine,s=e.mirror,l=Td({},Z(this.props),{fill:"none"},Z(i));if("top"===a||"bottom"===a){var c="top"===a&&!s||"bottom"===a&&s;l=Td({},l,{x1:t,y1:n+c*o,x2:t+r,y2:n+c*o})}else{var f="left"===a&&!s||"right"===a&&s;l=Td({},l,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return u.a.createElement("line",Cd({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,a=r.stroke,s=r.tick,l=r.tickFormatter,c=r.unit,f=t.getTicks(Td({},this.props,{ticks:e})),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),p=Z(this.props),v=Z(s),g=Td({},p,{fill:"none"},Z(o)),m=f.map((function(e,t){var r=n.getTickLineCoord(e),m=r.line,y=r.tick,b=Td({textAnchor:d,verticalAnchor:h},p,{stroke:"none",fill:a},v,{},y,{index:t,payload:e,visibleTicksCount:f.length});return u.a.createElement(Ks,Cd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},te(n.props,e,t)),o&&u.a.createElement("line",Cd({className:"recharts-cartesian-axis-tick-line"},g,m)),s&&n.constructor.renderTickItem(s,b,"".concat(i()(l)?l(e.value):e.value).concat(c||"")))}));return u.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var s=this.props,l=s.ticks,c=Pd(s,["ticks"]),f=l;return i()(o)&&(f=l&&l.length>0?o(this.props):o(c)),n<=0||r<=0||!f||!f.length?null:u.a.createElement(Ks,{className:p()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(f),tc.renderCallByParent(this.props))}}])&&Md(n.prototype,r),o&&Md(n,o),t}(c.Component);jd.displayName="CartesianAxis",jd.propTypes=Td({},W,{},z,{className:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number,orientation:d.a.oneOf(["top","bottom","left","right"]),viewBox:d.a.shape({x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number}),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),mirror:d.a.bool,tickMargin:d.a.number.isRequired,minTickGap:d.a.number,ticks:d.a.array,tickSize:d.a.number,stroke:d.a.string,tickFormatter:d.a.func,ticksGenerator:d.a.func,interval:d.a.oneOfType([d.a.number,d.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),jd.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"};var Fd=jd;function Ld(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 Ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hd=["Webkit","Moz","O","ms"],Wd=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=Hd.reduce((function(e,r){return function(e){for(var t=1;t0&&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(Kd(n),"startX"),endX:n.handleTravellerDragStart.bind(Kd(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xd(e,t)}(t,e),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,a=n.x,i=n.travellerWidth,s=n.updateId;(e.data!==r||e.updateId!==s)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===a&&e.travellerWidth===i||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,a=r.data.length-1,i=Math.min(t,n),s=Math.max(t,n),l=this.constructor.getIndexInRange(this.scaleValues,i),c=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:l-l%o,endIndex:c===a?a:c-c%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ul(n[e],o,e);return i()(r)?r(a):a}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,s=a.width,l=a.travellerWidth,c=a.startIndex,u=a.endIndex,f=a.onChange,d=e.pageX-n;d>0?d=Math.min(d,i+s-l-o,i+s-l-r):d<0&&(d=Math.max(d,i-r,i-o));var h=this.getIndex({startX:r+d,endX:o+d});h.startIndex===c&&h.endIndex===u||!f||f(h),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,s=this.state[o],l=this.props,c=l.x,u=l.width,f=l.travellerWidth,d=l.onChange,h=l.gap,p=l.data,v={startX:this.state.startX,endX:this.state.endX},g=e.pageX-r;g>0?g=Math.min(g,c+u-f-s):g<0&&(g=Math.max(g,c-s)),v[o]=s+g;var m=this.getIndex(v),y=m.startIndex,b=m.endIndex;this.setState((Gd(t={},o,s+g),Gd(t,"brushMoveStartX",e.pageX),t),(function(){d&&function(){var e=p.length-1;return"startX"===o&&(a>i?y%h===0:b%h===0)||ai?b%h===0:y%h===0)||a>i&&b===e}()&&d(m)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,a=e.x,i=e.width,s=e.travellerWidth,l=n.length;return this.scale=Sr().domain(dd()(0,l)).range([a,a+i-s]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return u.a.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,s=e.padding,l=c.Children.only(i);return l?u.a.cloneElement(l,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:a}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,a=n.height,i=n.stroke,s=Math.floor(r+a/2)-1,l=Math.max(e,this.props.x);return u.a.createElement(Ks,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},u.a.createElement("rect",{x:l,y:r,width:o,height:a,fill:i,stroke:"none"}),u.a.createElement("line",{x1:l+1,y1:s,x2:l+o-1,y2:s,fill:"none",stroke:"#fff"}),u.a.createElement("line",{x1:l+1,y1:s+2,x2:l+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke;return u.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:a,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,s=this.state,l=s.startX,c=s.endX,f={pointerEvents:"none",fill:i};return u.a.createElement(Ks,{className:"recharts-brush-texts"},u.a.createElement(Fn,Vd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+o/2},f),this.getTextOfTick(t)),u.a.createElement(Fn,Vd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+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,o=e.x,a=e.y,i=e.width,s=e.height,l=e.alwaysShowText,c=this.state,f=c.startX,d=c.endX,h=c.isTextActive,v=c.isSlideMoving,g=c.isTravellerMoving;if(!t||!t.length||!P(o)||!P(a)||!P(i)||!P(s)||i<=0||s<=0)return null;var m=p()("recharts-brush",n),y=1===u.a.Children.count(r),b=Wd("userSelect","none");return u.a.createElement(Ks,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,d),this.renderTraveller(f,"startX"),this.renderTraveller(d,"endX"),(h||v||g||l)&&this.renderText())}}])&&Yd(n.prototype,r),o&&Yd(n,o),t}(c.PureComponent);Qd.displayName="Brush",Qd.propTypes={className:d.a.string,fill:d.a.string,stroke:d.a.string,x:d.a.number,y:d.a.number,width:d.a.number,height:d.a.number.isRequired,travellerWidth:d.a.number,gap:d.a.number,padding:d.a.shape({top:d.a.number,right:d.a.number,bottom:d.a.number,left:d.a.number}),dataKey:d.a.oneOfType([d.a.string,d.a.number,d.a.func]),data:d.a.array,startIndex:d.a.number,endIndex:d.a.number,tickFormatter:d.a.func,children:d.a.node,onChange:d.a.func,updateId:d.a.oneOfType([d.a.string,d.a.number]),leaveTimeOut:d.a.number,alwaysShowText:d.a.bool},Qd.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var Zd=Qd,$d=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},Jd=n(373),eh=n.n(Jd);function th(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nh(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 o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a;default:return this.scale(e)}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}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}();ch.EPS=1e-4;var uh=function(){function e(t){th(this,e),this.scales=eh()(t,ch.create),Object.assign(this,this.scales)}return rh(e,null,[{key:"create",value:function(e){return new this(e)}}]),rh(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return eh()(e,(function(e,t){return r[t].apply(e,{bandAware:n})}))}},{key:"isInRange",value:function(e){var t=this.scales;return ld()(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();function fh(e){return(fh="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 dh(){return(dh=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function np(){return(np=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,o=e.offset;return ml(Fd.getTicks(ap({},Fd.defaultProps,{},t,{ticks:yl(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return ml(Fd.getTicks(ap({},Fd.defaultProps,{},t,{ticks:yl(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return yl(e,!0)},n.tooltipTicksGenerator=function(e){var t=R(e),n=yl(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ot()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Pl(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,a=r.activeCoordinate,i=r.activePayload,s=r.offset;if(!e||!e.props.cursor||!o||!a)return null;var l,u=n.props.layout,f=eu;if("ScatterChart"===t)l=a,f=Od;else if("BarChart"===t)l=n.getCursorRectangle(),f=Pf;else if("radial"===u){var d=n.getCursorPoints(),h=d.cx,p=d.cy,v=d.radius;l={cx:h,cy:p,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:v,outerRadius:v},f=gc}else l={points:n.getCursorPoints()},f=eu;var g=e.key||"_recharts-cursor",m=ap({stroke:"#ccc",pointerEvents:"none"},s,{},l,{},Z(e.props.cursor),{payload:i,key:g,className:"recharts-tooltip-cursor"});return Object(c.isValidElement)(e.props.cursor)?Object(c.cloneElement)(e.props.cursor,m):Object(c.createElement)(f,m)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,a=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return Object(c.cloneElement)(e,ap({},a,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:yl(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,a=t.offset,i=n.props,s=i.width,l=i.height,u=R(r),f=ud()(o,(function(e){return ld()(e.domain,Number.isFinite)}))||R(o),d=e.props||{};return Object(c.cloneElement)(e,{key:e.key||"grid",x:P(d.x)?d.x:a.left,y:P(d.y)?d.y:a.top,width:P(d.width)?d.width:a.width,height:P(d.height)?d.height:a.height,xAxis:u,yAxis:f,offset:a,chartWidth:s,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,a=R(r),i=R(o),s=i.cx,l=i.cy,u=i.innerRadius,f=i.outerRadius;return Object(c.cloneElement)(e,{polarAngles:yl(i,!0).map((function(e){return e.coordinate})),polarRadius:yl(a,!0).map((function(e){return e.coordinate})),cx:s,cy:l,innerRadius:u,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,a=n.state,i=a.offset,s=a.dataStartIndex,l=a.dataEndIndex,u=a.updateId;return Object(c.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:bl(n.handleBrushChange,null,e.props.onChange),data:o,x:P(e.props.x)?e.props.x:i.left,y:P(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:P(e.props.width)?e.props.width:i.width,startIndex:s,endIndex:l,updateId:"brush-".concat(u)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=cp(n).clipPathId,a=n.state,i=a.xAxisMap,s=a.yAxisMap,l=a.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return Object(c.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:i[f],yAxis:s[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var a=Object(c.cloneElement)(e,o.props),i=n.state,s=i.isTooltipActive,l=i.tooltipAxis,u=i.activeTooltipIndex,f=i.activeLabel,d=n.props.children,h=Q(d,Jt),p=o.props,v=p.points,m=p.isRange,y=p.baseLine,b=o.item.props,w=b.activeDot;if(!b.hide&&s&&h&&w&&u>=0){var A,E;if(l.dataKey&&!l.allowDuplicatedCategory){var _="function"===typeof l.dataKey?function(e){return l.dataKey(e.payload)}:"payload.".concat(l.dataKey);A=F(v,_,f),E=m&&y&&F(y,_,f)}else A=v[u],E=m&&y&&y[u];if(!g()(A))return[a].concat(rp(n.renderActivePoints({item:o,activePoint:A,basePoint:E,childIndex:u,isRange:m})))}return m?[a,null,null]:[a,null]},n.renderCustomized=function(e){return Object(c.cloneElement)(e,ap({},n.props,{},n.state))};var o=n.constructor.createDefaultState(e);return n.state=ap({},o,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(ap({props:e},o,{updateId:0}))),n.uniqueChartId=g()(e.id)?B("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=pd()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var f,d,h;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&up(e,t)}(r,e),f=r,h=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(c.isValidElement)(e)?Object(c.cloneElement)(e,t):i()(e)?e(t):u.a.createElement(qu,t),u.a.createElement(Ks,{className:"recharts-active-dot",key:t.key},n)}}],(d=[{key:"componentDidMount",value:function(){g()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,a=n.width,i=n.height,s=n.layout,l=n.stackOffset,c=n.margin,u=this.state.updateId;if(e.data===r&&e.width===a&&e.height===i&&e.layout===s&&e.stackOffset===l&&L(e.margin,c)){if(!ie(e.children,o)){var f=g()(e.data)?u+1:u;this.setState((function(n){return ap({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(ap({props:e},n,{updateId:f})))}))}}else{var d=this.constructor.createDefaultState(e);this.setState(ap({},d,{updateId:u+1},this.updateStateOfAxisMapsOffsetAndStackGroups(ap({props:e},d,{updateId:u+1}))))}g()(this.props.syncId)&&!g()(e.syncId)&&this.addListener(),!g()(this.props.syncId)&&g()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){g()(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,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),f=X(c,o),d={};return f&&f.length?d=this.getAxisMapByAxes(e,{axes:f,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l}):a&&a.length&&(d=this.getAxisMapByItems(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:s,dataEndIndex:l})),d}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,a=t.axisType,i=t.axisIdKey,s=t.stackGroups,l=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,f=e.children,d=e.stackOffset,h=gl(u,a);return r.reduce((function(t,r){var p=r.props,v=p.type,m=p.dataKey,y=p.allowDataOverflow,b=p.allowDuplicatedCategory,w=p.scale,A=p.ticks,_=r.props[i],S=n.constructor.getDisplayedData(e,{graphicalItems:o.filter((function(e){return e.props[i]===_})),dataStartIndex:l,dataEndIndex:c}),O=S.length;if(!t[_]){var x,C,k;if(m){if(x=fl(S,m,v),"category"===v&&h){var T=function(e){if(!E()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:[].concat(rp(e),[t])}),[]))}else if("category"===v)x=b?x.filter((function(e){return""!==e&&!g()(e)})):Il(r.props.domain,x,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||g()(t)?e:[].concat(rp(e),[t])}),[]);else if("number"===v){var D=function(e,t,n,r){var o=t.map((function(t){return pl(e,t,n,r)})).filter((function(e){return!g()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(S,o.filter((function(e){return e.props[i]===_&&!e.props.hide})),m,a);D&&(x=D)}!h||"number"!==v&&"auto"===w||(k=fl(S,m,"category"))}else x=h?dd()(0,O):s&&s[_]&&s[_].hasStack&&"number"===v?"expand"===d?[0,1]:Cl(s[_].stackGroups,l,c):vl(S,o.filter((function(e){return e.props[i]===_&&!e.props.hide})),v,!0);return"number"===v&&(x=Qh(f,x,_,a,A),r.props.domain&&(x=Dl(r.props.domain,x,y))),ap({},t,ip({},_,ap({},r.props,{axisType:a,domain:x,categoricalDomain:k,duplicateDomain:C,originalDomain:r.props.domain,isCategorial:h,layout:u})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),d=f.length,h=gl(c,o),p=-1;return n.reduce((function(e,t){var v,g=t.props[a];return e[g]?e:(p++,h?v=dd()(0,d):i&&i[g]&&i[g].hasStack?(v=Cl(i[g].stackGroups,s,l),v=Qh(u,v,g,o)):(v=Dl(r.defaultProps.domain,vl(f,n.filter((function(e){return e.props[a]===g&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),v=Qh(u,v,g,o)),ap({},e,ip({},g,ap({axisType:o},r.defaultProps,{hide:!0,orientation:fp[o]&&fp[o][p%2],domain:v,originalDomain:r.defaultProps.domain,isCategorial:h,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find((function(e){return e&&e.index===t}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var a=o.coordinate,i=n.radius;return ap({},n,{},Ll(n.cx,n.cy,i,a),{angle:a,radius:i})}var s=o.coordinate,l=n.angle;return ap({},n,{},Ll(n.cx,n.cy,s,l),{angle:l,radius:s})}return dp}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,a=r.xAxisMap,i=r.yAxisMap;if("axis"!==o&&a&&i){var s=R(a).scale,l=R(i).scale;return ap({},t,{xValue:s&&s.invert?s.invert(t.chartX):null,yValue:l&&l.invert?l.invert(t.chartY):null})}var c=this.state,u=c.orderedTooltipTicks,f=c.tooltipAxis,d=c.tooltipTicks,h=function(e,t,n,r){var o=-1,a=t.length;if(a>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var i=r.range,s=0;s0?n[s-1].coordinate:n[a-1].coordinate,c=n[s].coordinate,u=s>=a-1?n[0].coordinate:n[s+1].coordinate,f=void 0;if(T(c-l)!==T(u-c)){var d=[];if(T(u-c)===T(i[1]-i[0])){f=u;var h=c+i[1]-i[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{f=l;var p=u+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var v=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=n[s].index;break}}else{var g=Math.min(l,u),m=Math.max(l,u);if(e>(g+c)/2&&e<=(m+c)/2){o=n[s].index;break}}}else for(var y=0;y0&&y(t[y].coordinate+t[y-1].coordinate)/2&&e<=(t[y].coordinate+t[y+1].coordinate)/2||y===a-1&&e>(t[y].coordinate+t[y-1].coordinate)/2){o=t[y].index;break}}else o=0;return o}(this.calculateTooltipPos(n),u,d,f);if(h>=0&&d){var p=d[h]&&d[h].value;return ap({},t,{activeTooltipIndex:h,activeLabel:p,activePayload:this.getTooltipContent(h,p),activeCoordinate:this.getActiveCoordinate(u,h,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,a=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=a.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var i,s=r.props,l=s.dataKey,c=s.name,u=s.unit,f=s.formatter,d=s.data,h=s.tooltipType;return(i=o.dataKey&&!o.allowDuplicatedCategory?F(d||a,o.dataKey,t):d&&d[e]||a[e])?[].concat(rp(n),[ap({},Z(r),{dataKey:l,unit:u,formatter:f,name:c||l,color:dl(r),value:ul(i,l),type:h,payload:i})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,i=t.offset,s=t.updateId,l=t.dataStartIndex,c=t.dataEndIndex,u=e.barSize,f=e.layout,d=e.barGap,h=e.barCategoryGap,p=e.maxBarSize,v=this.constructor.getAxisNameByLayout(f),m=v.numericAxisName,y=v.cateAxisName,b=this.constructor.hasBar(r),w=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,s=a.length;i=0}));if(v&&v.length){var m=v[0].props.barSize,y=v[0].props[p];o[y]||(o[y]=[]),o[y].push({item:v[0],stackList:v.slice(1),barSize:g()(m)?t:m})}}return o}({barSize:u,stackGroups:o}),A=[];return r.forEach((function(r,u){var v,E=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:c},r),_=r.props,S=_.dataKey,O=_.maxBarSize,x=r.props["".concat(m,"Id")],C=r.props["".concat(y,"Id")],k=a.reduce((function(e,n){var o,a=t["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")],s=a&&a[i];return ap({},e,(ip(o={},n.axisType,s),ip(o,"".concat(n.axisType,"Ticks"),yl(s)),o))}),{}),T=k[y],D=k["".concat(y,"Ticks")],P=o&&o[x]&&o[x].hasStack&&function(e,t){var n=e.props.stackId;if(I(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,a=0,i=r.items.length;a=0?r.stackedData[o]:null}}return null}(r,o[x].stackGroups),M=Pl(T,D),B=g()(O)?p:O,R=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,i=e.maxBarSize,s=a.length;if(s<1)return null;var l,c=N(t,r,0,!0);if(a[0].barSize===+a[0].barSize){var u=!1,f=r/s,d=a.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(s-1)*c)>=r&&(d-=(s-1)*c,c=0),d>=r&&f>0&&(u=!0,d=s*(f*=.9));var h={offset:((r-d)/2>>0)-c,size:0};l=a.reduce((function(e,t){var n=[].concat(il(e),[{item:t.item,position:{offset:h.offset+h.size+c,size:u?f:t.barSize}}]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:h})})),n}),[])}else{var p=N(n,r,0,!0);r-2*p-(s-1)*c<=0&&(c=0);var v=(r-2*p-(s-1)*c)/s;v>1&&(v>>=0);var g=i===+i?Math.min(v,i):v;l=a.reduce((function(e,t,n){var r=[].concat(il(e),[{item:t.item,position:{offset:p+(v+c)*n+(v-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return l}({barGap:d,barCategoryGap:h,bandSize:M,sizeList:w[C],maxBarSize:B}),j=r&&r.type&&r.type.getComposedData;j&&A.push({props:ap({},j(ap({},k,{displayedData:E,props:e,dataKey:S,item:r,bandSize:M,barPosition:R,offset:i,stackedData:P,layout:f,dataStartIndex:l,dataEndIndex:c,onItemMouseLeave:bl(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:bl(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(u)},ip(v,m,k[m]),ip(v,y,k[y]),ip(v,"animationId",s),v)),childIndex:le(r,e.children),item:r})})),A}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,a=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-a:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-a,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,a=this.state,i=a.activeCoordinate,s=a.offset;if("horizontal"===o)n=e=i.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=i.y,e=s.left,n=s.left+s.width;else if(!g()(i.cx)||!g()(i.cy)){if("centric"!==o){var l=i.cx,c=i.cy,u=i.radius,f=i.startAngle,d=i.endAngle;return{points:[Ll(l,c,u,f),Ll(l,c,u,d)],cx:l,cy:c,radius:u,startAngle:f,endAngle:d}}var h=i.cx,p=i.cy,v=i.innerRadius,m=i.outerRadius,y=i.angle,b=Ll(h,p,v,y),w=Ll(h,p,m,y);e=b.x,t=b.y,n=w.x,r=w.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 o=this.state,a=o.angleAxisMap,i=o.radiusAxisMap;if(a&&i){var s=R(a);return zl({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Q(e,Jt)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return ap({},J(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,i=e.dataStartIndex,s=e.dataEndIndex,c=e.updateId;if(!ne({props:o}))return null;var u=o.children,f=o.layout,d=o.stackOffset,h=o.data,p=o.reverseStackOrder,v=this.constructor.getAxisNameByLayout(f),g=v.numericAxisName,m=v.cateAxisName,y=X(u,n),b=function(e,t,n,r,o,a){if(!e)return null;var i=(a?t.reverse():t).reduce((function(e,t){var o=t.props,a=o.stackId;if(o.hide)return e;var i=t.props[n],s=e[i]||{hasStack:!1,stackGroups:{}};if(I(a)){var l=s.stackGroups[a]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),s.hasStack=!0,s.stackGroups[a]=l}else s.stackGroups[B("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return ll({},e,cl({},i,s))}),{});return Object.keys(i).reduce((function(t,a){var s=i[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,a){var i=s.stackGroups[a];return ll({},t,cl({},a,{numericAxisId:n,cateAxisId:r,items:i.items,stackedData:_l(e,i.items,o)}))}),{})),ll({},t,cl({},a,s))}),{})}(h,y,"".concat(g,"Id"),"".concat(m,"Id"),d,p),w=a.reduce((function(e,t){return ap({},e,ip({},"".concat(t.axisType,"Map"),r.getAxisMap(o,ap({},t,{graphicalItems:y,stackGroups:t.axisType===g&&b,dataStartIndex:i,dataEndIndex:s}))))}),{}),A=this.calculateOffset(ap({},w,{props:o,graphicalItems:y}));Object.keys(w).forEach((function(e){w[e]=l(o,w[e],A,e.replace("Map",""),t)}));var E=w["".concat(m,"Map")],_=this.tooltipTicksGenerator(E),S=this.getFormatItems(o,ap({},w,{dataStartIndex:i,dataEndIndex:s,updateId:c,graphicalItems:y,stackGroups:b,offset:A}));return ap({formatedGraphicalItems:S,graphicalItems:y,offset:A,stackGroups:b},_,{},w)}},{key:"addListener",value:function(){$h.on(Jh,this.handleReceiveSyncEvent),$h.setMaxListeners&&$h._maxListeners&&$h.setMaxListeners($h._maxListeners+1)}},{key:"removeListener",value:function(){$h.removeListener(Jh,this.handleReceiveSyncEvent),$h.setMaxListeners&&$h._maxListeners&&$h.setMaxListeners($h._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,a=e.yAxisMap,i=void 0===a?{}:a,s=t.width,l=t.height,c=t.children,u=t.margin||{},f=Q(c,Zd),d=Q(c,Et),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:ap({},e,ip({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),p=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:ap({},e,ip({},r,e[r]+n.height))}),{top:u.top||0,bottom:u.bottom||0}),v=ap({},p,{},h),g=v.bottom;return f&&(v.bottom+=f.props.height||Zd.defaultProps.height),d&&this.legendInstance&&(v=function(e,t,n,r){var o=n.children,a=n.width,i=n.height,s=n.margin,l=a-(s.left||0)-(s.right||0),c=i-(s.top||0)-(s.bottom||0),u=hl({children:o,items:t,legendWidth:l,legendHeight:c}),f=e;if(u){var d=r||{},h=u.align,p=u.verticalAlign,v=u.layout;("vertical"===v||"horizontal"===v&&"center"===p)&&P(e[h])&&(f=ll({},e,cl({},h,f[h]+(d.width||0)))),("horizontal"===v||"vertical"===v&&"center"===h)&&P(e[p])&&(f=ll({},e,cl({},p,f[p]+(d.height||0))))}return f}(v,n,t,this.legendInstance.getBBox())),ap({brushBottom:g},v,{width:s-v.left-v.right,height:l-v.top-v.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;g()(t)||$h.emit(Jh,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,a=r.length;o=0}))},v.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,a=t.dataEndIndex,i=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(rp(e),rp(n)):e}),[]);if(i&&i.length>0)return i;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var s=e.data;return s&&s.length&&P(o)&&P(a)?s.slice(o,a+1):[]},v},pp=hp({chartName:"LineChart",GraphicalChild:sf,axisComponents:[{axisType:"xAxis",AxisComp:$f},{axisType:"yAxis",AxisComp:id}],formatAxisMap:sh}),vp=hp({chartName:"BarChart",GraphicalChild:Vf,axisComponents:[{axisType:"xAxis",AxisComp:$f},{axisType:"yAxis",AxisComp:id}],formatAxisMap:sh});function gp(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 mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yp(e){return(yp="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 bp(){return(bp=Object.assign||function(e){for(var t=1;t1e-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,a=e.axisLineType,i=Pp({},Z(this.props),{fill:"none"},Z(o));if("circle"===a)return u.a.createElement(qu,Tp({className:"recharts-polar-angle-axis-line"},i,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return Ll(t,n,r,e.coordinate)}));return u.a.createElement(Cp,Tp({className:"recharts-polar-angle-axis-line"},i,{points:s}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,a=t.tickFormatter,i=t.stroke,s=Z(this.props),l=Z(r),c=Pp({},s,{fill:"none"},Z(o)),f=n.map((function(t,n){var f=e.getTickLineCoord(t),d=Pp({textAnchor:e.getTickTextAnchor(t)},s,{stroke:"none",fill:i},l,{index:n,payload:t,x:f.x2,y:f.y2});return u.a.createElement(Ks,Tp({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},te(e.props,t,n)),o&&u.a.createElement("line",Tp({className:"recharts-polar-angle-axis-tick-line"},c,f)),r&&e.constructor.renderTickItem(r,d,a?a(t.value):t.value))}));return u.a.createElement(Ks,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:u.a.createElement(Ks,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&Bp(n.prototype,r),o&&Bp(n,o),t}(c.PureComponent);Lp.displayName="PolarAngleAxis",Lp.axisType="angleAxis",Lp.propTypes=Pp({},W,{},z,{type:d.a.oneOf(["number","category"]),angleAxisId:d.a.oneOfType([d.a.string,d.a.number]),dataKey:d.a.oneOfType([d.a.number,d.a.string,d.a.func]),cx:d.a.number,cy:d.a.number,radius:d.a.oneOfType([d.a.number,d.a.string]),hide:d.a.bool,scale:d.a.oneOfType([d.a.oneOf(G),d.a.func]),axisLine:d.a.oneOfType([d.a.bool,d.a.object]),axisLineType:d.a.oneOf(["polygon","circle"]),tickLine:d.a.oneOfType([d.a.bool,d.a.object]),tick:d.a.oneOfType([d.a.bool,d.a.func,d.a.object,d.a.element]),ticks:d.a.arrayOf(d.a.shape({value:d.a.any,coordinate:d.a.number})),stroke:d.a.string,orientation:d.a.oneOf(["inner","outer"]),tickFormatter:d.a.func,allowDuplicatedCategory:d.a.bool}),Lp.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};var Up=Lp,Hp=n(816),Wp=n.n(Hp),zp=n(817),Vp=n.n(zp);function Gp(e){return(Gp="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 Yp(){return(Yp=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zp(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>>0}),11));return function(e,t,n){t.data.indexOf(e)<0&&(t.data=n?e+t.data:t.data+e)}(s[l]||(s[l]=function e(t,n,r){var o="",a="",i="";for(var s in t){var l=t[s];if("object"==typeof l){var c=n+" "+s;/&/g.test(s)&&(c=s.replace(/&/g,n)),"@"==s[0]&&(c=n,"f"==s[1]&&(c=s)),/@k/.test(s)?a+=s+"{"+e(l,"","")+"}":a+=e(l,c,c==n?s:r||"")}else/^@i/.test(s)?i=s+" "+l+";":o+=s.replace(/[A-Z]/g,"-$&").toLowerCase()+":"+l+";"}if(o.charCodeAt(0)){var u=n+"{"+o+"}";return r?a+r+"{"+u+"}":i+u+a}return i+a}(e[0]?function(e){for(var t,n=[{}];t=a.exec(e.replace(i,""));)t[4]&&n.shift(),t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):t[4]||(n[0][t[1]]=t[2]);return n[0]}(e):e,n?"":l)),t,r),l.slice(1)},c=function(e,t,n){return e.reduce((function(e,r,o){var a=t[o];if(a&&a.call){var i=a(n),s=i&&i.props&&i.props.className||/^go/.test(i)&&i;a=s?"."+s:i&&i.props?"":i}return e+r+(null==a?"":a)}),"")};function u(e){var t=this||{},n=e.call?e(t.p):e;return l(n.map?c(n,[].slice.call(arguments,1),t.p):n,o(t.target),t.g,t.o)}u.bind({g:1});var f=n(0),d=n.n(f);var h=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(f.useRef)(t),o=Object(f.useCallback)((function(t){e&&e.current&&!e.current.contains(t.target)&&r.current(t)}),[]);Object(f.useEffect)((function(){r.current=t})),Object(f.useEffect)((function(){if(n)return document.addEventListener("click",o),document.addEventListener("ontouchstart",o),function(){document.removeEventListener("click",o),document.removeEventListener("ontouchstart",o)}}),[e,t,n])};function p(e,t){var n=e.length,r=t.length,o=[];if(!n||!r)return 0;if(n=r.length-2})).sort((function(e,t){return t.score-e.score})).map((function(e){return e.option}))}(n,b),focusIndex:_-1,onClick:function(e,t){return I(t+1)},ItemRenderer:i,disabled:s})))};function C(e){var t=e.expanded,n=void 0!==t&&t;return d.a.createElement("span",{className:"dropdown-heading-dropdown-arrow gray",style:{paddingTop:"4px"}},d.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24"},n?d.a.createElement("polyline",{points:"18 15 12 9 6 15"}):d.a.createElement("path",{d:"M6 9L12 15 18 9"})))}var k=u({animation:"rotate 2s linear infinite","& .path":{stroke:"var(--rmsc-border)",strokeWidth:"4px",strokeLinecap:"round",animation:"dash 1.5s ease-in-out infinite"},"@keyframes rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes dash":{"0%":{strokeDasharray:"1, 150",strokeDashoffset:"0"},"50%":{strokeDasharray:"90, 150",strokeDashoffset:"-35"},"100%":{strokeDasharray:"90, 150",strokeDashoffset:"-124"}}});function T(e){var t=e.size,n=void 0===t?26:t;return d.a.createElement("div",{style:{cursor:"pointer",display:"table-cell",verticalAlign:"middle",width:n,marginRight:"0.2rem"}},d.a.createElement("svg",{width:n,height:n,className:k,viewBox:"0 0 50 50",style:{display:"inline-block",verticalAlign:"middle"}},d.a.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",className:"path"})))}var D=u({position:"absolute",zIndex:1,top:"100%",width:"100%",paddingTop:"8px",".panel-content":{maxHeight:"300px",overflowY:"auto",borderRadius:"var(--rmsc-border-radius)",backgroundColor:"var(--rmsc-background)",boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"}}),P=u({position:"relative",outline:"none",backgroundColor:"var(--rmsc-background)",border:"1px solid var(--rmsc-border)",borderRadius:"var(--rmsc-border-radius)","&:focus-within":{boxShadow:"var(--rmsc-primary) 0px 0px 0px 1px",borderColor:"var(--rmsc-primary)"}}),I=u({position:"relative",padding:"0 var(--rmsc-spacing)",display:"flex",alignItems:"center",justifyContent:"flex-end",overflow:"hidden",width:"100%",height:"var(--rmsc-height)",cursor:"default",outline:"none",".dropdown-heading-value":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:"1"}}),M=function(e){var t=e.children,n=e.contentComponent,r=e.contentProps,o=e.isLoading,a=e.disabled,i=e.shouldToggleOnHover,s=e.labelledBy,l=e.onMenuToggle,c=e.ArrowRenderer,u=Object(f.useState)(!1),p=u[0],v=u[1],g=Object(f.useState)(!1),m=g[0],y=g[1],b=c||C,w=Object(f.useRef)();h(w,(function(){return v(!1)})),Object(f.useEffect)((function(){l&&l(p)}),[p]);var A=function(e){i&&v(e)};return d.a.createElement("div",{tabIndex:0,className:P+" dropdown-container","aria-labelledby":s,"aria-expanded":p,"aria-readonly":"true","aria-disabled":a,ref:w,onKeyDown:function(e){switch(e.which){case 27:case 38:v(!1);break;case 13:case 40:v(!0);break;default:return}e.preventDefault()},onFocus:function(e){e.target===w&&!m&&y(!0)},onBlur:function(){return m&&y(!1)},onMouseEnter:function(){return A(!0)},onMouseLeave:function(){return A(!1)}},d.a.createElement("div",{className:I+" dropdown-heading",onClick:function(){return v(!o&&!p)}},d.a.createElement("div",{className:"dropdown-heading-value"},t),o&&d.a.createElement(T,null),d.a.createElement(b,{expanded:p})),p&&d.a.createElement("div",{className:D+" dropdown-content"},d.a.createElement("div",{className:"panel-content"},d.a.createElement(n,Object.assign({},r)))))},B=function(e){var t=e.value,n=e.options,r=e.valueRenderer,o=e.overrideStrings,a=0===t.length,i=t.length===n.length,s=r&&r(t,n);return a?d.a.createElement("span",{className:"gray"},s||m("selectSomeItems",o)):d.a.createElement("span",null,s||(i?m("allItemsAreSelected",o):t.map((function(e){return e.label})).join(", ")))},N=u({"--rmscPrimary":"#4285f4","--rmscHover":"#f1f3f5","--rmscSelected":"#e2e6ea","--rmscBorder":"#ccc","--rmscGray":"#aaa","--rmscBackground":"#fff","--rmscSpacing":"10px","--rmscBorderRadius":"4px","--rmscHeight":"38px","*":{boxSizing:"border-box",transition:"all 0.2s ease"},".gray":{color:"var(--rmsc-gray)"}});t.a=function(e){var t=e.focusSearchOnOpen,n=void 0===t||t,r=e.hasSelectAll,o=void 0===r||r,a=e.shouldToggleOnHover,i=void 0!==a&&a,s=e.className,l=void 0===s?"multi-select":s,c=e.options,u=e.value,f=e.valueRenderer,h=e.overrideStrings,p=e.onChange,v=e.disabled,g=e.ItemRenderer,m=e.ArrowRenderer,y=e.selectAllLabel,b=e.isLoading,w=e.disableSearch,A=e.filterOptions,E=e.labelledBy,_=e.onMenuToggle,S=u||[];return d.a.createElement("div",{className:N+" "+l},d.a.createElement(M,{isLoading:b,contentComponent:x,shouldToggleOnHover:i,contentProps:{ItemRenderer:g,options:c,value:S,hasSelectAll:o,selectAllLabel:y,onChange:p,disabled:v,disableSearch:w,focusSearchOnOpen:n,filterOptions:A,overrideStrings:h},disabled:v,labelledBy:E,onMenuToggle:_,ArrowRenderer:m},d.a.createElement(B,{value:S,options:c,valueRenderer:f,overrideStrings:h})))}},function(e,t){e.exports=function(e){return null==e}},,,,function(e,t,n){var r;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(n,o){"use strict";var a=[],i=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,v=p.call(Object),g={},m=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var r,o,a=(n=n||b).createElement("script");if(a.text=e,t)for(r in w)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function E(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?f[d.call(e)]||"object":typeof e}var _=function e(t,n){return new e.fn.init(t,n)};function S(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!m(e)&&!y(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:"3.6.0",constructor:_,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),G=new RegExp(j+"|>"),Y=new RegExp(U),q=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){d()},ie=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(D=B.call(A.childNodes),A.childNodes),D[A.childNodes.length].nodeType}catch(Oe){M={apply:D.length?function(e,t){I.apply(e,B.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var a,s,c,u,f,p,m,y=t&&t.ownerDocument,A=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==A&&9!==A&&11!==A)return r;if(!o&&(d(t),t=t||h,v)){if(11!==A&&(f=J.exec(e)))if(a=f[1]){if(9===A){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(f[2])return M.apply(r,t.getElementsByTagName(e)),r;if((a=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!C[e+" "]&&(!g||!g.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===A&&(G.test(e)||V.test(e))){for((y=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=w)),s=(p=i(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+be(p[s]);m=p.join(",")}try{return M.apply(r,y.querySelectorAll(m)),r}catch(E){C(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[w]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Oe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,a=e([],n.length,t),i=a.length;i--;)n[o=a[i]]&&(n[o]=!(r[o]=n[o]))}))}))}function me(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,o,i=e?e.ownerDocument||e:A;return i!=h&&9===i.nodeType&&i.documentElement?(p=(h=i).documentElement,v=!a(h),A!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ae,!1):o.attachEvent&&o.attachEvent("onunload",ae)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=$.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=w,!h.getElementsByName||!h.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&v){var n,r,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),r=0;a=o[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[o++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&v)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=$.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=$.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",U)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),t=$.test(p.compareDocumentPosition),b=t||$.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==A&&b(A,e)?-1:t==h||t.ownerDocument==A&&b(A,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,i=[e],s=[t];if(!o||!a)return e==h?-1:t==h?1:o?-1:a?1:u?N(u,e)-N(u,t):0;if(o===a)return de(e,t);for(n=e;n=n.parentNode;)i.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;i[r]===s[r];)r++;return r?de(i[r],s[r]):i[r]==A?-1:s[r]==A?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&v&&!C[t+" "]&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Oe){C(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var o=r.attrHandle[t.toLowerCase()],a=o&&T.call(r.attrHandle,t.toLowerCase())?o(e,t,!v):void 0;return void 0!==a?a:n.attributes||!v?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,a=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),f){for(;t=e[a++];)t===e[a]&&(o=r.push(a));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=i(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&S(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var a="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,f,d,h,p,v=a!==i?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(a){for(;v;){for(d=t;d=d[v];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;p=v="only"===e&&!p&&"nextSibling"}return!0}if(p=[i?g.firstChild:g.lastChild],i&&y){for(b=(h=(c=(u=(f=(d=g)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[v]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[E,h,b];break}}else if(y&&(b=h=(c=(u=(f=(d=t)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===E&&c[1]),!1===b)for(;(d=++h&&d&&d[v]||(b=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++b||(y&&((u=(f=d[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[E,b]),d!==t)););return(b-=o)===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=o(e,t),i=a.length;i--;)e[r=N(e,a[i])]=!(n[r]=a[i])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[w]?ce((function(e,t,n,o){for(var a,i=r(e,null,o,[]),s=e.length;s--;)(a=i[s])&&(e[s]=!(t[s]=a))})):function(e,o,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return q.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Ee(e,t,n,r,o){for(var a,i=[],s=0,l=e.length,c=null!=t;s-1&&(a[c]=!(i[c]=f))}}else m=Ee(m===i?m.splice(p,m.length):m),o?o(null,i,m,l):M.apply(i,m)}))}function Se(e){for(var t,n,o,a=e.length,i=r.relative[e[0].type],s=i||r.relative[" "],l=i?1:0,u=we((function(e){return e===t}),s,!0),f=we((function(e){return N(t,e)>-1}),s,!0),d=[function(e,n,r){var o=!i&&(r||n!==c)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,o}];l1&&Ae(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l0,o=e.length>0,a=function(a,i,s,l,u){var f,p,g,m=0,y="0",b=a&&[],w=[],A=c,_=a||o&&r.find.TAG("*",u),S=E+=null==A?1:Math.random()||.1,O=_.length;for(u&&(c=i==h||i||u);y!==O&&null!=(f=_[y]);y++){if(o&&f){for(p=0,i||f.ownerDocument==h||(d(f),s=!v);g=e[p++];)if(g(f,i||h,s)){l.push(f);break}u&&(E=S)}n&&((f=!g&&f)&&m--,a&&b.push(f))}if(m+=y,n&&y!==m){for(p=0;g=t[p++];)g(b,w,i,s);if(a){if(m>0)for(;y--;)b[y]||w[y]||(w[y]=P.call(l));w=Ee(w)}M.apply(l,w),u&&!a&&w.length>0&&m+t.length>1&&se.uniqueSort(l)}return u&&(E=S,c=A),b};return n?ce(a):a}(a,o))).selector=e}return s},l=se.select=function(e,t,n,o){var a,l,c,u,f,d="function"===typeof e&&e,h=!o&&i(e=d.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=K.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((f=r.find[u])&&(o=f(c.matches[0].replace(te,ne),ee.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(a,1),!(e=o.length&&be(l)))return M.apply(n,o),n;break}}return(d||s(e,h))(o,t,!v,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);_.find=O,(_.expr=O.selectors)[":"]=_.expr.pseudos,_.uniqueSort=_.unique=O.uniqueSort,_.text=O.getText,_.isXMLDoc=O.isXML,_.contains=O.contains,_.escapeSelector=O.escape;var x=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&_(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=_.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return m(t)?_.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?_.grep(e,(function(e){return u.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!==typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"===typeof e&&k.test(e)?_(e):e||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||I,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),D.test(r[1])&&_.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,I=_(b);var B=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&_.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?_.uniqueSort(a):a)},index:function(e){return e?"string"===typeof e?u.call(_(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,r){var o=_.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(o=_.filter(r,o)),this.length>1&&(N[e]||_.uniqueSort(o),B.test(e)&&o.reverse()),this.pushStack(o)}}));var j=/[^\x20\t\r\n\f]+/g;function F(e){return e}function L(e){throw e}function U(e,t,n,r){var o;try{e&&m(o=e.promise)?o.call(e).done(t).fail(n):e&&m(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return _.each(e.match(j)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,r,o,a=[],i=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;i.length;s=-1)for(n=i.shift();++s-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?_.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=i=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=i=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,r){var o=m(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var a=0;function i(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e=a&&(r!==L&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),n.setTimeout(u))}}return _.Deferred((function(n){t[0][3].add(i(0,n,m(o)?o:F,n.notifyWith)),t[1][3].add(i(0,n,m(e)?e:F)),t[2][3].add(i(0,n,m(r)?r:L))})).promise()},promise:function(e){return null!=e?_.extend(e,o):o}},a={};return _.each(t,(function(e,n){var i=n[2],s=n[5];o[n[1]]=i.add,s&&i.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=i.fireWith})),o.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),a=_.Deferred(),i=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(U(e,a.done(i(n)).resolve,a.reject,!t),"pending"===a.state()||m(o[n]&&o[n].then)))return a.then();for(;n--;)U(o[n],i(n),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&H.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){n.setTimeout((function(){throw e}))};var W=_.Deferred();function z(){b.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),_.ready()}_.fn.ready=function(e){return W.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||W.resolveWith(b,[_]))}}),_.ready.then=W.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(_.ready):(b.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var V=function e(t,n,r,o,a,i,s){var l=0,c=t.length,u=null==r;if("object"===E(r))for(l in a=!0,r)e(t,n,l,r[l],!0,i,s);else if(void 0!==o&&(a=!0,m(o)||(s=!0),u&&(s?(n.call(t,o),n=null):(u=n,n=function(e,t,n){return u.call(_(e),n)})),n))for(;l1,null,!0)},removeData:function(e){return this.each((function(){$.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=_.queue(e,t=t||"fx"),r=n.length,o=n.shift(),a=_._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,(function(){_.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:_.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",g.option=!!e.lastChild}();var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function me(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?_.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var be=/<|&#?\w+;/;function we(e,t,n,r,o){for(var a,i,s,l,c,u,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h-1)o&&o.push(a);else if(c=ie(a),i=me(f.appendChild(a),"script"),c&&ye(i),n)for(u=0;a=i[u++];)ve.test(a.type||"")&&n.push(a);return f}var Ae=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function _e(){return!1}function Se(e,t){return e===function(){try{return b.activeElement}catch(e){}}()===("focus"===t)}function Oe(e,t,n,r,o,a){var i,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],a);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"===typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=_e;else if(!o)return e;return 1===a&&(i=o,(o=function(e){return _().off(e),i.apply(this,arguments)}).guid=i.guid||(i.guid=_.guid++)),e.each((function(){_.event.add(this,t,o,r,n)}))}function xe(e,t,n){n?(Z.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var r,o,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),Z.set(this,t,a),r=n(this,t),this[t](),a!==(o=Z.get(this,t))||r?Z.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(Z.set(this,t,{value:_.event.trigger(_.extend(a[0],_.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&_.event.add(e,t,Ee)}_.event={global:{},add:function(e,t,n,r,o){var a,i,s,l,c,u,f,d,h,p,v,g=Z.get(e);if(X(e))for(n.handler&&(n=(a=n).handler,o=a.selector),o&&_.find.matchesSelector(ae,o),n.guid||(n.guid=_.guid++),(l=g.events)||(l=g.events=Object.create(null)),(i=g.handle)||(i=g.handle=function(t){return _.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)h=v=(s=Ae.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=_.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=_.event.special[h]||{},u=_.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&_.expr.match.needsContext.test(o),namespace:p.join(".")},a),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,i)||e.addEventListener&&e.addEventListener(h,i)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),_.event.global[h]=!0)},remove:function(e,t,n,r,o){var a,i,s,l,c,u,f,d,h,p,v,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(h=v=(s=Ae.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},d=l[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=a=d.length;a--;)u=d[a],!o&&v!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(e,u));i&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,g.handle)||_.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)_.event.remove(e,h+t[c],n,r,!0);_.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,i,s=new Array(arguments.length),l=_.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],i={},n=0;n-1:_.find(o,this,null,[c]).length),i[o]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l\s*$/g;function De(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,o,a,i,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(o in Z.remove(t,"handle events"),s)for(n=0,r=s[o].length;n1&&"string"===typeof p&&!g.checkClone&&ke.test(p))return e.each((function(o){var a=e.eq(o);v&&(t[0]=p.call(this,o,a.html())),Ne(a,t,n,r)}));if(d&&(a=(o=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(s=(i=_.map(me(o,"script"),Pe)).length;f0&&ye(i,!l&&me(e,"script")),s},cleanData:function(e){for(var t,n,r,o=_.event.special,a=0;void 0!==(n=e[a]);a++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)o[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[$.expando]&&(n[$.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return V(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ne(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Ne(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ne(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ne(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Ce.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function Je(e,t,n){var r=Fe(e),o=(!g.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,r),a=o,i=He(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(je.test(i)){if(!n)return i;i="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&T(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===_.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===_.css(e,"boxSizing",!1,r),(a=s in e)&&(i=e[s])),(i=parseFloat(i)||0)+$e(e,t,n||(o?"border":"content"),a,r,i)+"px"}function et(e,t,n,r,o){return new et.prototype.init(e,t,n,r,o)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,i,s=K(t),l=Ke.test(t),c=e.style;if(l||(t=Ye(s)),i=_.cssHooks[t]||_.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(o=i.get(e,!1,r))?o:c[t];"string"===(a=typeof n)&&(o=re.exec(n))&&o[1]&&(n=ce(e,t,o),a="number"),null!=n&&n===n&&("number"!==a||l||(n+=o&&o[3]||(_.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,a,i,s=K(t);return Ke.test(t)||(t=Ye(s)),(i=_.cssHooks[t]||_.cssHooks[s])&&"get"in i&&(o=i.get(e,!0,n)),void 0===o&&(o=He(e,t,r)),"normal"===o&&t in Qe&&(o=Qe[t]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,r){if(n)return!qe.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,t,r):Le(e,Xe,(function(){return Je(e,t,r)}))},set:function(e,n,r){var o,a=Fe(e),i=!g.scrollboxSize()&&"absolute"===a.position,s=(i||r)&&"border-box"===_.css(e,"boxSizing",!1,a),l=r?$e(e,t,r,s,a):0;return s&&i&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-$e(e,t,"border",!1,a)-.5)),l&&(o=re.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),Ze(0,n,l)}}})),_.cssHooks.marginLeft=We(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Le(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a="string"===typeof n?n.split(" "):[n];r<4;r++)o[e+oe[r]+t]=a[r]||a[r-2]||a[0];return o}},"margin"!==e&&(_.cssHooks[e+t].set=Ze)})),_.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,o,a={},i=0;if(Array.isArray(t)){for(r=Fe(e),o=t.length;i1)}}),_.Tween=et,et.prototype={constructor:et,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(_.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(_.fx=et.prototype.init).step={};var tt,nt,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){nt&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,_.fx.interval),_.fx.tick())}function it(){return n.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=oe[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function lt(e,t,n){for(var r,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),a=0,i=o.length;a1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"===typeof e.getAttribute?_.prop(e,t,n):(1===a&&_.isXMLDoc(e)||(o=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(j);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||_.find.attr;ft[t]=function(e,t,r){var o,a,i=t.toLowerCase();return r||(a=ft[i],ft[i]=o,o=null!=n(e,t,r)?i:null,ft[i]=a),o}}));var dt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function pt(e){return(e.match(j)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(j)||[]}_.fn.extend({prop:function(e,t){return V(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&_.isXMLDoc(e)||(t=_.propFix[t]||t,o=_.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,r,o,a,i,s,l=0;if(m(e))return this.each((function(t){_(this).addClass(e.call(this,t,vt(this)))}));if((t=gt(e)).length)for(;n=this[l++];)if(o=vt(n),r=1===n.nodeType&&" "+pt(o)+" "){for(i=0;a=t[i++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");o!==(s=pt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,a,i,s,l=0;if(m(e))return this.each((function(t){_(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[l++];)if(o=vt(n),r=1===n.nodeType&&" "+pt(o)+" "){for(i=0;a=t[i++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");o!==(s=pt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"===typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,o,a,i;if(r)for(o=0,a=_(this),i=gt(e);t=i[o++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+pt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var mt=/\r/g;_.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=m(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,_(this).val()):e)?o="":"number"===typeof o?o+="":Array.isArray(o)&&(o=_.map(o,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=_.valHooks[o.type]||_.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"===typeof(n=o.value)?n.replace(mt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:pt(_.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?a+1:o.length;for(r=a<0?l:i?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},g.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,r,o){var a,i,s,l,c,u,f,d,p=[r||b],v=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(i=d=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!yt.test(v+_.event.triggered)&&(v.indexOf(".")>-1&&(g=v.split("."),v=g.shift(),g.sort()),c=v.indexOf(":")<0&&"on"+v,(e=e[_.expando]?e:new _.Event(v,"object"===typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:_.makeArray(t,[e]),f=_.event.special[v]||{},o||!f.trigger||!1!==f.trigger.apply(r,t))){if(!o&&!f.noBubble&&!y(r)){for(l=f.delegateType||v,yt.test(l+v)||(i=i.parentNode);i;i=i.parentNode)p.push(i),s=i;s===(r.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(a=0;(i=p[a++])&&!e.isPropagationStopped();)d=i,e.type=a>1?l:f.bindType||v,(u=(Z.get(i,"events")||Object.create(null))[e.type]&&Z.get(i,"handle"))&&u.apply(i,t),(u=c&&i[c])&&u.apply&&X(i)&&(e.result=u.apply(i,t),!1===e.result&&e.preventDefault());return e.type=v,o||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),t)||!X(r)||c&&m(r[v])&&!y(r)&&((s=r[c])&&(r[c]=null),_.event.triggered=v,e.isPropagationStopped()&&d.addEventListener(v,bt),r[v](),e.isPropagationStopped()&&d.removeEventListener(v,bt),_.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(r,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}}),g.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,n,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var wt=n.location,At={guid:Date.now()},Et=/\?/;_.parseXML=function(e){var t,r;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(o){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||_.error("Invalid XML: "+(r?_.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var _t=/\[\]$/,St=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,xt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var o;if(Array.isArray(t))_.each(t,(function(t,o){n||_t.test(e)?r(e,o):Ct(e+"["+("object"===typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==E(t))r(e,t);else for(o in t)Ct(e+"["+o+"]",t[o],n,r)}_.param=function(e,t){var n,r=[],o=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){o(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,o);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&xt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var kt=/%20/g,Tt=/#.*$/,Dt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Mt=/^\/\//,Bt={},Nt={},Rt="*/".concat("*"),jt=b.createElement("a");function Ft(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(j)||[];if(m(n))for(;r=a[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Lt(e,t,n,r){var o={},a=e===Nt;function i(s){var l;return o[s]=!0,_.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!==typeof c||a||o[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)})),l}return i(t.dataTypes[0])||!o["*"]&&i("*")}function Ut(e,t){var n,r,o=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&_.extend(!0,e,r),e}jt.href=wt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,_.ajaxSettings),t):Ut(_.ajaxSettings,e)},ajaxPrefilter:Ft(Bt),ajaxTransport:Ft(Nt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0);var r,o,a,i,s,l,c,u,f,d,h=_.ajaxSetup({},t=t||{}),p=h.context||h,v=h.context&&(p.nodeType||p.jquery)?_(p):_.event,g=_.Deferred(),m=_.Callbacks("once memory"),y=h.statusCode||{},w={},A={},E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!i)for(i={};t=Pt.exec(a);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),O(0,t),this}};if(g.promise(S),h.url=((e||h.url||wt.href)+"").replace(Mt,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(j)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=jt.protocol+"//"+jt.host!==l.protocol+"//"+l.host}catch(x){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=_.param(h.data,h.traditional)),Lt(Bt,h,t,S),c)return S;for(f in(u=_.event&&h.global)&&0===_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!It.test(h.type),o=h.url.replace(Tt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(kt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"===typeof h.data)&&(o+=(Et.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Dt,"$1"),d=(Et.test(o)?"&":"?")+"_="+At.guid+++d),h.url=o+d),h.ifModified&&(_.lastModified[o]&&S.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&S.setRequestHeader("If-None-Match",_.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,S,h)||c))return S.abort();if(E="abort",m.add(h.complete),S.done(h.success),S.fail(h.error),r=Lt(Nt,h,t,S)){if(S.readyState=1,u&&v.trigger("ajaxSend",[S,h]),c)return S;h.async&&h.timeout>0&&(s=n.setTimeout((function(){S.abort("timeout")}),h.timeout));try{c=!1,r.send(w,O)}catch(x){if(c)throw x;O(-1,x)}}else O(-1,"No Transport");function O(e,t,i,l){var f,d,b,w,A,E=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,a=l||"",S.readyState=e>0?4:0,f=e>=200&&e<300||304===e,i&&(w=function(e,t,n){for(var r,o,a,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}i||(i=o)}a=a||i}if(a)return a!==l[0]&&l.unshift(a),n[a]}(h,S,i)),!f&&_.inArray("script",h.dataTypes)>-1&&_.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,r){var o,a,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(i=c[l+" "+a]||c["* "+a]))for(o in c)if((s=o.split(" "))[1]===a&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[o]:!0!==c[o]&&(a=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(x){return{state:"parsererror",error:i?x:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(h,w,S,f),f?(h.ifModified&&((A=S.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=A),(A=S.getResponseHeader("etag"))&&(_.etag[o]=A)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=w.state,d=w.data,f=!(b=w.error))):(b=E,!e&&E||(E="error",e<0&&(e=0))),S.status=e,S.statusText=(t||E)+"",f?g.resolveWith(p,[d,E,S]):g.rejectWith(p,[S,E,b]),S.statusCode(y),y=void 0,u&&v.trigger(f?"ajaxSuccess":"ajaxError",[S,h,f?d:b]),m.fireWith(p,[S,E]),u&&(v.trigger("ajaxComplete",[S,h]),--_.active||_.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,r,o){return m(n)&&(o=o||r,r=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:o,data:n,success:r},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Wt=_.ajaxSettings.xhr();g.cors=!!Wt&&"withCredentials"in Wt,g.ajax=Wt=!!Wt,_.ajaxTransport((function(e){var t,r;if(g.cors||Wt&&!e.crossDomain)return{send:function(o,a){var i,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];for(i in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(i,o[i]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Ht[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=_("