=d&&h<=p}else{for(;h>d;)h-=360;for(;h=p&&h<=d}return u?l(l({},t),{},{radius:i,angle:y(h,t)}):null}},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"g",(function(){return j})),n.d(t,"d",(function(){return E})),n.d(t,"f",(function(){return M}));var r=n(410),o=n.n(r),i=n(22),a=n.n(i),s=n(124),l=n.n(s),c=n(48),u=n.n(c),f=n(33),d=n.n(f),p=n(1),h=n.n(p),m=n(7),v=n(125);function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},b=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},x=function(e,t){var n=[],r=[];return r=d()(t)?t.map((function(e){return b(e)})):[b(t)],h.a.Children.forEach(e,(function(e){var t=u()(e,"type.displayName")||u()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},w=function(e,t){var n=x(e,t);return n&&n[0]},O=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Object(m.g)(n)||n<=0||!Object(m.g)(r)||r<=0)},S=["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"],_=function(e){return e&&e.type&&l()(e.type)&&S.indexOf(e.type)>=0},k=function e(t,n){if(t===n)return!0;if(p.Children.count(t)!==p.Children.count(n))return!1;var r=p.Children.count(t);if(0===r)return!0;if(1===r)return C(d()(t)?t[0]:t,d()(n)?n[0]:n);for(var o=0;ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(h[0],h[e-1])),r=e>2?d:f,u=p=null,b}function b(t){return isNaN(t=+t)?n:(u||(u=r(h.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((p||(p=r(m,h.map(e),i.a)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,s.a),y()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.a,y()},b.clamp=function(e){return arguments.length?(g=!!e||c,y()):g!==c},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return h()(c,c)}},function(e,t,n){var r=n(307);function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(386)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(146);function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},function(e,t,n){var r=n(242);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(391);var o=n(213),i=n(392);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),o=n(1),i=n.n(o),a=n(452);function s(e,t){var n=function(t,n){return i.a.createElement(a.a,Object(r.a)({ref:n},t),e)};return n.muiName=a.a.muiName,i.a.memo(i.a.forwardRef(n))}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return k})),n.d(t,"g",(function(){return A}));var r=n(51),o=n(1),i=n.n(o),a=(n(8),n(71)),s=n(281),l=n(79),c=n(4),u=n(282),f=n.n(u),d=(n(208),n(50)),p=n(105),h=n.n(p),m=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),v=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),g=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;var y=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var b={},x=0;function w(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(b[e])return b[e];var t=f.a.compile(e);return x<1e4&&(b[e]=t,x++),t}(e)(t,{pretty:!0})}function O(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(v.Consumer,null,(function(e){e||Object(l.a)(!1);var r=e.history,s=e.staticContext,u=o?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?w(n,t.params):Object(c.a)({},n,{pathname:w(n.pathname,t.params)}):n);return s?(u(f),null):i.a.createElement(y,{onMount:function(){u(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(c.a)({},f,{key:n.key}))||u(f)},to:n})}))}var S={},_=0;function k(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return _<1e4&&(r[e]=i,_++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(v.Consumer,null,(function(t){t||Object(l.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?k(n.pathname,e.props):t.match,o=Object(c.a)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),i.a.createElement(v.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.a.createElement(u,o):f?f(o):null:"function"===typeof s?s(o):null)}))},t}(i.a.Component);function j(e){return"/"===e.charAt(0)?e:"/"+e}function E(e,t){if(!e)return t;var n=j(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function M(e){return"string"===typeof e?e:Object(a.e)(e)}function P(e){return function(){Object(l.a)(!1)}}function T(){}i.a.Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(v.Consumer,null,(function(t){t||Object(l.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?k(o.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);function A(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(d.a)(t,["wrappedComponentRef"]);return i.a.createElement(v.Consumer,null,(function(t){return t||Object(l.a)(!1),i.a.createElement(e,Object(c.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}i.a.useContext},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(450),o=(n(1),n(118));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(9),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,l=t.easing,c=void 0===l?o.easeInOut:l,u=t.delay,f=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(1),o=(n(8),Object(r.createContext)(null)),i=function(e){var t=e.utils,n=e.children,i=e.locale,a=e.libInstance,s=Object(r.useMemo)((function(){return new t({locale:i,instance:a})}),[t,a,i]);return Object(r.createElement)(o.Provider,{value:s,children:n})};function a(){var e=Object(r.useContext)(o);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(e),e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(455),o=n(44),i=n(36),a=n(209);function s(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.a)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Object(a.a)(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var o,i,a=t(),s=0,l=a.length-1,c=a[s],u=a[l],f=10;for(u0;){if((i=Object(r.b)(c,u,n))===o)return a[s]=c,a[l]=u,t(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}o=i}return e},e}function l(){var e=Object(o.b)();return e.copy=function(){return Object(o.a)(e,l())},i.b.apply(e,arguments),s(e)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1;"insideStart"===i?(r=b+k*s,o=w):"insideEnd"===i?(r=x-k*s,o=!w):"end"===i&&(r=x+k*s,o=w),o=_<=0?o:!o;var C=Object(v.e)(p,h,O,r),j=Object(v.e)(p,h,O,r+359*(o?1:-1)),E="M".concat(C.x,",").concat(C.y,"\n A").concat(O,",").concat(O,",0,1,").concat(o?0:1,",\n ").concat(j.x,",").concat(j.y),M=l()(e.id)?Object(m.j)("recharts-radial-line-"):e.id;return u.a.createElement("text",S({},n,{dominantBaseline:"central",className:d()("recharts-radial-bar-label",c)}),u.a.createElement("defs",null,u.a.createElement("path",{id:M,d:E})),u.a.createElement("textPath",{xlinkHref:"#".concat(M)},t))};function k(e){var t,n=e.viewBox,r=e.position,i=e.value,s=e.children,f=e.content,h=e.className,y=void 0===h?"":h,b=e.textBreakAll;if(!n||l()(i)&&l()(s)&&!Object(c.isValidElement)(f)&&!a()(f))return null;if(Object(c.isValidElement)(f))return Object(c.cloneElement)(f,e);if(a()(f)){if(t=Object(c.createElement)(f,e),Object(c.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=l()(e.children)?t:e.children;return a()(n)?n(r):r}(e);var x=function(e){return Object(m.g)(e.cx)}(n),O=Object(g.c)(e,!0);if(x&&("insideStart"===r||"insideEnd"===r||"end"===r))return _(e,t,O);var k=x?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=Object(v.e)(i,a,l+n,c),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=(s+l)/2,p=Object(v.e)(i,a,d,c);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,s=a.x,l=a.y,c=a.width,u=a.height,f=u>=0?1:-1,d=f*r,p=f>0?"end":"start",h=f>0?"start":"end",v=c>=0?1:-1,g=v*r,y=v>0?"end":"start",b=v>0?"start":"end";if("top"===i)return w(w({},{x:s+c/2,y:l-f*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(l-n.y,0),width:c}:{});if("bottom"===i)return w(w({},{x:s+c/2,y:l+u+d,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{});if("left"===i){var x={x:s-g,y:l+u/2,textAnchor:y,verticalAnchor:"middle"};return w(w({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===i){var O={x:s+c+g,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return w(w({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:u}:{})}var S=n?{width:c,height:u}:{};return"insideLeft"===i?w({x:s+g,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},S):"insideRight"===i?w({x:s+c-g,y:l+u/2,textAnchor:y,verticalAnchor:"middle"},S):"insideTop"===i?w({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:h},S):"insideBottom"===i?w({x:s+c/2,y:l+u-d,textAnchor:"middle",verticalAnchor:p},S):"insideTopLeft"===i?w({x:s+g,y:l+d,textAnchor:b,verticalAnchor:h},S):"insideTopRight"===i?w({x:s+c-g,y:l+d,textAnchor:y,verticalAnchor:h},S):"insideBottomLeft"===i?w({x:s+g,y:l+u-d,textAnchor:b,verticalAnchor:p},S):"insideBottomRight"===i?w({x:s+c-g,y:l+u-d,textAnchor:y,verticalAnchor:p},S):o()(i)&&(Object(m.g)(i.x)||Object(m.h)(i.x))&&(Object(m.g)(i.y)||Object(m.h)(i.y))?w({x:s+Object(m.c)(i.x,c),y:l+Object(m.c)(i.y,u),textAnchor:"end",verticalAnchor:"end"},S):w({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},S)}(e);return u.a.createElement(p.a,S({className:d()("recharts-label",y)},O,k,{breakAll:b}),t)}k.displayName="Label",k.defaultProps={offset:5};var C=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,v=e.height,g=e.clockWise,y=e.labelViewBox;if(y)return y;if(Object(m.g)(h)&&Object(m.g)(v)){if(Object(m.g)(u)&&Object(m.g)(f))return{x:u,y:f,width:h,height:v};if(Object(m.g)(d)&&Object(m.g)(p))return{x:d,y:p,width:h,height:v}}return Object(m.g)(u)&&Object(m.g)(f)?{x:u,y:f,width:0,height:0}:Object(m.g)(t)&&Object(m.g)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:l||0,outerRadius:c||s||a||0,clockWise:g}:e.viewBox?e.viewBox:{}},j=function(e,t){return e?!0===e?u.a.createElement(k,{key:"label-implicit",viewBox:t}):Object(m.f)(e)?u.a.createElement(k,{key:"label-implicit",viewBox:t,value:e}):Object(c.isValidElement)(e)?e.type===k?Object(c.cloneElement)(e,{key:"label-implicit",viewBox:t}):u.a.createElement(k,{key:"label-implicit",content:e,viewBox:t}):a()(e)?u.a.createElement(k,{key:"label-implicit",content:e,viewBox:t}):o()(e)?u.a.createElement(k,S({viewBox:t},e,{key:"label-implicit"})):null:null};k.parseViewBox=C,k.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=C(e),i=Object(h.a)(r,k.displayName).map((function(e,n){return Object(c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var a=j(e.label,t||o);return[a].concat(y(i))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},,function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"===typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){r[t]=e[t]}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return M})),n.d(t,"d",(function(){return T})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var r=n(4);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(79);function u(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,d(),x.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(x.entries[x.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=x.index+e;return t>=0&&t1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;ie.length)&&-1!==e.indexOf(t)}function l(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+y(C(t).sort(),(function(e){return e+":"+t[e]})).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function u(e,t,i){var a,s,f,d=t.useToLocaleString,p=t.useGrouping,h=p&&t.grouping.slice(),m=t.maximumSignificantDigits,v=t.minimumIntegerDigits||1,g=t.fractionDigits||0,y=t.groupingSeparator,b=t.decimalSeparator;if(d&&i){var x,w={minimumIntegerDigits:v,useGrouping:p};return g&&(w.maximumFractionDigits=g,w.minimumFractionDigits=g),m&&e>0&&(w.maximumSignificantDigits=m),r?(o||((x=k({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(u(e,x),10)),c(i,w).format(e)):(n||((x=k({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(u(e,x),10)),e.toLocaleString(i,w))}var O=(m?e.toPrecision(m+1):e.toFixed(g+1)).split("e");f=O[1]||"",s=(O=O[0].split("."))[1]||"";var S=(a=O[0]||"").length,_=s.length,C=S+_,j=a+s;(m&&C===m+1||!m&&_===g+1)&&((j=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?s.length<=E?(a+=s+=l(E-s.length),s=""):(a+=s.slice(0,E),s=s.slice(E)):E<0&&(s=l(Math.abs(E)-a.length)+a+s,a="0"),m||((s=s.slice(0,g)).lengtht.label.length?-1:e.label.length0,K=q?o.precision:0,X=K,Q=o.minValue,Z=!1,J=o.maxValue,ee=!1,te=o.useToLocaleString,ne=o.groupingSeparator,re=o.decimalSeparator,oe=o.grouping;te=te&&(t||r);var ie=o.trim;h(ie)&&(ie=ie.join(" ")),null===ie&&(z||J||q)&&(ie="all"),null!==ie&&!0!==ie&&"left"!==ie&&"right"!==ie||(ie="large"),!1===ie&&(ie="");var ae=function(e){return e.test(ie)},se=/small/,le=/both/,ce=/mid/,ue=/^all|[^sm]all/,fe=/final/,de=z>0||j([/large/,le,ue],ae),pe=j([se,le,ue],ae),he=j([ce,ue],ae),me=j([fe,ue],ae),ve=y(I.match(R),(function(e,t){var n=A(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&F.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(D.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),ge={index:0,length:0,token:"",text:"",type:null},ye=[];B&&ve.reverse(),g(ve,(function(e){if(e.type)return(ge.type||ge.text)&&ye.push(ge),void(ge=e);B?ge.text=e.token+ge.text:ge.text+=e.token})),(ge.type||ge.text)&&ye.push(ge),B&&ye.reverse();var be=O(i,w(x(b(ye,"type"))));if(!be.length)return b(ye,"text").join("");be=y(be,(function(e,t){var n,r=t+1===be.length,i=!t;n="years"===e||"months"===e?P.as(e):M.as(e);var a=Math.floor(n),s=n-a,l=v(ye,(function(t){return e===t.type}));return i&&J&&n>J&&(ee=!0),r&&Q&&Math.abs(o.duration.as(e))1&&(G=!0),M.subtract(a,e),P.subtract(a,e),{rawValue:n,wholeValue:a,decimalValue:r?s:0,isSmallest:r,isLargest:i,type:e,tokenLength:l.length}}));var xe=$?Math.floor:Math.round,we=function(e,t){var n=Math.pow(10,t);return xe(e*n)/n},Oe=!1,Se=!1,_e=function(e,t){var n={useGrouping:Y,groupingSeparator:ne,decimalSeparator:re,grouping:oe,useToLocaleString:te};return q&&(K<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=K,e.significantDigits=K)),ee&&!Se&&(e.isLargest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Z&&!Se&&(e.isSmallest?(e.wholeValue=Q,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?U<0?e.value=we(e.wholeValue,U):0===U?e.value=xe(e.wholeValue+e.decimalValue):q?(e.value=$?we(e.rawValue,K-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(K-=e.wholeValue.toString().length)):(n.fractionDigits=U,e.value=$?e.wholeValue+we(e.decimalValue,U):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(we(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),K-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(G||Oe)&&(n.minimumIntegerDigits=e.tokenLength,Se&&n.maximumSignificantDigits0||""===ie||v(F,e.type)||v(N,e.type))&&(Oe=!0),e.formattedValue=u(e.value,n,H),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=u(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=u(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((be=x(be=y(be,_e))).length>1){var ke=function(e){return v(be,(function(t){return t.type===e}))},Ce=function(e){var t=ke(e.type);t&&g(e.targets,(function(e){var n=ke(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),Se=!0)}))};g(a,Ce)}return Se&&(Oe=!1,K=X,be=x(be=y(be,_e))),!N||ee&&!o.trim?(de&&(be=S(be,(function(e){return!e.isSmallest&&!e.wholeValue&&!v(F,e.type)}))),z&&be.length&&(be=be.slice(0,z)),pe&&be.length>1&&(be=_(be,(function(e){return!e.wholeValue&&!v(F,e.type)&&!e.isLargest}))),he&&(be=x(be=y(be,(function(e,t){return t>0&&t ",ee=!1,Z=!1),E&&(t.value>0||""===ie||v(F,t.type)||v(N,t.type))&&(n+="-",E=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,B||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function A(){var e=this.duration,t=function(t){return e._data[t]},n=v(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function R(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=T,e.duration.fn.format=D,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:A,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",p)}var I=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&P(I),n=t&&M(I);var N=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=P(N),o=r&&M(N),R(e),R},o=[n(1)],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i),a&&(a.momentDurationFormatSetup=a.moment?s(a.moment):s)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _}));var r=n(2),o=n.n(r),i=n(0),a=n.n(i),s=n(1),l=n.n(s);function c(e){return(c="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 u(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 f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:6e4;n.clearPooledTimer(),n.pooledTimer=setInterval((function(){n.pooledElements.forEach((function(e){0!==e.props.interval&&e.update()}))}),e)}},{key:"clearPooledTimer",value:function(){n.pooledTimer&&(clearInterval(n.pooledTimer),n.pooledTimer=null,n.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof n?-1===n.pooledElements.indexOf(e)&&n.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var t=n.pooledElements.indexOf(e);-1!==t&&n.pooledElements.splice(t,1)}},{key:"getDatetime",value:function(e){var t=e.utc,r=e.unix,o=e.date,i=e.locale,a=e.parse,s=e.tz,l=e.local;o=o||e.children,a=a||n.globalParse,l=l||n.globalLocal,s=s||n.globalTimezone,i=n.globalLocale?n.globalLocale:i||n.globalMoment.locale();var c=null;return c=t?n.globalMoment.utc(o,a,i):r?n.globalMoment(1e3*o,a,i):n.globalMoment(o,a,i),s?c=c.tz(s):l&&(c=c.local()),c}},{key:"getContent",value:function(e){var t=e.fromNow,r=e.fromNowDuring,o=e.from,i=e.add,a=e.subtract,s=e.toNow,c=e.to,u=e.ago,f=e.calendar,d=e.diff,p=e.duration,h=e.durationFromNow,m=e.unit,v=e.decimal,g=e.trim,y=e.format;y=y||n.globalFormat;var b=n.getDatetime(e);i&&b.add(i),a&&b.subtract(a);var x=Boolean(r)&&-b.diff(l()())=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n2?n-2:0),o=2;o1&&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 i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();v.EPS=1e-4;var g=function(e){var t=Object.keys(e).reduce((function(t,n){return f(f({},t),{},d({},n,v.create(e[n])))}),{});return f(f({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware;return a()(e,(function(e,n){return t[n].apply(e,{bandAware:r})}))},isInRange:function(e){return o()(e,(function(e,n){return t[n].isInRange(e)}))}})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _}));var r=n(413),o=n.n(r),i=n(1),a=n.n(i),s=n(8),l=n.n(s),c=n(127),u=n.n(c);function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):u()(r)};u()(r)}function d(e){return(d="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 p(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=p(r),i=o[0],a=o.slice(1);return"number"===typeof i?void f(n.bind(null,a),i):(n(i),void f(n.bind(null,a)))}"object"===d(r)&&e(r),"function"===typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var m=n(414),v=n.n(m);function g(e){for(var t=1;t=0&&e<=1}));var u=T(r,i),f=T(o,a),d=D(r,i),p=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=u(n)-t,i=d(n);if(Math.abs(o-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,d=c||Object.keys(l);if("function"===typeof s||"spring"===s)return $(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:s}),i]);var p=k(d,i,s),h=q({},f.style,l,{transition:p});return $(e).concat([h,i,u]).filter(O)}),[a,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var f=r?K({},r,o):o,d=k(Object.keys(f),n,i);u.start([a,t,q({},f,{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,Y(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=i.Children.count(t),s=_(this.state.style);if("function"===typeof t)return t(s);if(!n||0===o)return t;var l=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(i.cloneElement)(e,q({},r,{style:q({},o,s),className:a}))};return 1===o?l(i.Children.only(t)):a.a.createElement("div",null,i.Children.map(t,(function(e){return l(e)})))}}])&&X(n.prototype,r),s&&X(n,s),t}(i.PureComponent);te.displayName="Animate",te.propTypes={from:l.a.oneOfType([l.a.object,l.a.string]),to:l.a.oneOfType([l.a.object,l.a.string]),attributeName:l.a.string,duration:l.a.number,begin:l.a.number,easing:l.a.oneOfType([l.a.string,l.a.func]),steps:l.a.arrayOf(l.a.shape({duration:l.a.number.isRequired,style:l.a.object.isRequired,easing:l.a.oneOfType([l.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),l.a.func]),properties:l.a.arrayOf("string"),onAnimationEnd:l.a.func})),children:l.a.oneOfType([l.a.node,l.a.func]),isActive:l.a.bool,canBegin:l.a.bool,onAnimationEnd:l.a.func,shouldReAnimate:l.a.bool,onAnimationStart:l.a.func,onAnimationReStart:l.a.func},te.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var ne=te,re=n(223),oe=n(287),ie=n.n(oe);function ae(e){return(ae="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 se(){return(se=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(ie()(t.duration)&&t.duration>0?t.duration:0)}),0):ie()(n)?n:0},ve=function(e){function t(){var e,n;ue(this,t);for(var r=arguments.length,o=new Array(r),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||r.a.isSsr)return{width:0,height:0};var n="".concat(e),o=p(t),a="".concat(n,"-").concat(o);if(c.widthCache[a])return c.widthCache[a];try{var s=document.getElementById(d);s||((s=document.createElement("span")).setAttribute("id",d),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=i(i({},u),t);Object.keys(l).map((function(e){return s.style[e]=l[e],e})),s.textContent=n;var f=s.getBoundingClientRect(),h={width:f.width,height:f.height};return c.widthCache[a]=h,++c.cacheCount>2e3&&(c.cacheCount=0,c.widthCache={}),h}catch(m){return{width:0,height:0}}},m=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}},v=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return oe})),n.d(t,"c",(function(){return Oe})),n.d(t,"d",(function(){return ut})),n.d(t,"b",(function(){return st}));var r=n(29),o=n.n(r),i=n(32),a=n.n(i),s=n(39),l=n.n(s),c=n(40),u=n.n(c),f=n(14),d=n.n(f),p=n(41),h=n.n(p),m=n(10),v=n.n(m),g=n(1),y=n(80),b=n(63),x=n.n(b),w=n(5);function O(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!==typeof n&&"number"!==typeof a||n===a)||(r(o),l>=0&&l===s&&c())}var S=n(139),_=n.n(S),k=(n(8),function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;o()(this,e),v()(this,"_cellSizeAndPositionData",{}),v()(this,"_lastMeasuredIndex",-1),v()(this,"_lastBatchedIndex",-1),v()(this,"_cellCount",void 0),v()(this,"_cellSizeGetter",void 0),v()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(o));null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a,s=this.getSizeAndPositionOfCell(i),l=s.offset,c=l-r+s.size;switch(n){case"start":a=l;break;case"end":a=c;break;case"center":a=l-(r-s.size)/2;break;default:a=Math.max(c,Math.min(l,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var a=o;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}()),C=function(){return"undefined"!==typeof window&&window.chrome?16777100:15e5},j=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?C():n,i=_()(t,["maxScrollSize"]);o()(this,e),v()(this,"_cellSizeAndPositionManager",void 0),v()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new k(i),this._maxScrollSize=r}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),s=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&s&&r(o)}}function M(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u0&&(fn.getTotalSize()-f&&p(h-1)}var P,T,D=!("undefined"===typeof window||!window.document||!window.document.createElement);function A(e){if((!P&&0!==P||e)&&D){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),P=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return P}var R,I,N=(T="undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).requestAnimationFrame||T.webkitRequestAnimationFrame||T.mozRequestAnimationFrame||T.oRequestAnimationFrame||T.msRequestAnimationFrame||function(e){return T.setTimeout(e,1e3/60)},L=T.cancelAnimationFrame||T.webkitCancelAnimationFrame||T.mozCancelAnimationFrame||T.oCancelAnimationFrame||T.msCancelAnimationFrame||function(e){T.clearTimeout(e)},z=N,F=L,W=function(e){return F(e.id)},H=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:z((function o(){Date.now()-n>=t?e.call():r.id=z(o)}))};return r};function B(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 V(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),a()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,s=V({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,l=i.height,c=i.width,u=this.state.instanceProps,f=u.scrollbarSize,d=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+f),n),m=Math.min(Math.max(0,d-l+f),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var v={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:U};a||(v.scrollTop=m),s||(v.scrollLeft=h),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:d})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?o<=s:o>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(V({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(V({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,s=e.scrollToRow,l=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=V({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"===typeof o&&o>=0||"number"===typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=r>0&&l>0;i>=0&&f&&this._updateScrollLeftForScrollToColumn(),s>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,f=r.scrollToRow,d=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,v=p.scrollTop,g=p.instanceProps;this._handleInvalidatedGridSize();var y=a>0&&0===e.columnCount||l>0&&0===e.rowCount;m===G&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!o&&v>=0&&(v!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=v));var b=(0===e.width||0===e.height)&&s>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):M({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:d,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):M({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var x=g.rowSizeAndPositionManager.getTotalSize(),w=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:x})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&W(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,l=e.height,c=e.id,u=e.noContentRenderer,f=e.role,d=e.style,p=e.tabIndex,h=e.width,m=this.state,v=m.instanceProps,y=m.needToResetStyleCache,b=this._isScrolling(),O={boxSizing:"border-box",direction:"ltr",height:n?"auto":l,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=v.columnSizeAndPositionManager.getTotalSize(),_=v.rowSizeAndPositionManager.getTotalSize(),k=_>l?v.scrollbarSize:0,C=S>h?v.scrollbarSize:0;C===this._horizontalScrollBarSize&&k===this._verticalScrollBarSize||(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=k,this._scrollbarPresenceChanged=!0),O.overflowX=S+k<=h?"hidden":"auto",O.overflowY=_+C<=l?"hidden":"auto";var j=this._childrenToDisplay,E=0===j.length&&l>0&&h>0;return g.createElement("div",x()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Object(w.a)("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:f,style:V({},O,{},d),tabIndex:p}),j.length>0&&g.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:V({width:t?"auto":S,height:_,maxWidth:S,maxHeight:_,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},s)},j),E&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,f=e.width,d=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:g}),x=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),w=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:g}),O=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=x.start,this._renderedRowStopIndex=x.stop;var S=l({direction:"horizontal",cellCount:o,overscanCellsCount:s,scrollDirection:p,startIndex:"number"===typeof b.start?b.start:0,stopIndex:"number"===typeof b.stop?b.stop:-1}),_=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"===typeof x.start?x.start:0,stopIndex:"number"===typeof x.stop?x.stop:-1}),k=S.overscanStartIndex,C=S.overscanStopIndex,j=_.overscanStartIndex,E=_.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=j;M<=E;M++)if(!i.has(M,0)){k=0,C=o-1;break}if(!i.hasFixedWidth())for(var P=k;P<=C;P++)if(!i.has(0,P)){j=0,E=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:k,columnStopIndex:C,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:y,isScrollingOptOut:d,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:j,rowStopIndex:E,scrollLeft:g,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:O,visibleColumnIndices:b,visibleRowIndices:x}),this._columnStartIndex=k,this._columnStopIndex=C,this._rowStartIndex=j,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&W(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=H(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"===typeof this._deferredInvalidateColumnIndex&&"number"===typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(r.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),O({cellCount:a.prevColumnCount,cellSize:"number"===typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"===typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),O({cellCount:a.prevRowCount,cellSize:"number"===typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"===typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,r.instanceProps=a,V({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"===typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"===typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:G};return"number"===typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,o.scrollLeft=n),"number"===typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?1:-1,o.scrollTop=r),"number"===typeof n&&n>=0&&n!==t.scrollLeft||"number"===typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"===typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),f=l.rowSizeAndPositionManager.getTotalSize(),d=l.scrollbarSizeMeasured&&f>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-d,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),f=l.columnSizeAndPositionManager.getTotalSize(),d=l.scrollbarSizeMeasured&&f>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-d,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"===typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(g.PureComponent),v()(R,"propTypes",null),I);v()(Y,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,g=e.visibleRowIndices,y=[],b=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),x=!l&&!b,w=d;w<=p;w++)for(var O=f.getSizeAndPositionOfCell(w),S=o;S<=i;S++){var _=r.getSizeAndPositionOfCell(S),k=S>=v.start&&S<=v.stop&&w>=g.start&&w<=g.stop,C="".concat(w,"-").concat(S),j=void 0;x&&h[C]?j=h[C]:a&&!a.has(w,S)?j={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(j={height:O.size,left:_.offset+s,position:"absolute",top:O.offset+m,width:_.size},h[C]=j);var E={columnIndex:S,isScrolling:l,isVisible:k,key:C,parent:u,rowIndex:w,style:j},M=void 0;!c&&!l||s||m?M=n(E):(t[C]||(t[C]=n(E)),M=t[C]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:A,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(y.polyfill)(Y);var $=Y;function q(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}var K,X;function Q(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}var Z=(X=K=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:l,scrollTop:c,width:a});u.scrollLeft===l&&u.scrollTop===c||n._setScrollPosition(u)}})),v()(d()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,a=t.width,s=n._scrollbarSize,l=r.getTotalSize(),c=l.height,u=l.width,f=Math.max(0,Math.min(u-a+s,e.target.scrollLeft)),d=Math.max(0,Math.min(c-o+s,e.target.scrollTop));if(n.state.scrollLeft!==f||n.state.scrollTop!==d){var p=e.cancelable?fe:de;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:f,scrollPositionChangeReason:p,scrollTop:d})}n._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:d,totalWidth:u,totalHeight:c})}})),n._scrollbarSize=A(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),a()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=A(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,a=n.width,s=this.state,l=s.scrollLeft,c=s.scrollPositionChangeReason,u=s.scrollTop;c===de&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,i=e.height,a=e.horizontalOverscanSize,s=e.id,l=e.noContentRenderer,c=e.style,u=e.verticalOverscanSize,f=e.width,d=this.state,p=d.isScrolling,h=d.scrollLeft,m=d.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),y=v.height,b=v.width,x=Math.max(0,h-a),O=Math.max(0,m-u),S=Math.min(b,h+f+a),_=Math.min(y,m+i+u),k=i>0&&f>0?r.cellRenderers({height:_-O,isScrolling:p,width:S-x,x:x,y:O}):[],C={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},j=y>i?this._scrollbarSize:0,E=b>f?this._scrollbarSize:0;return C.overflowX=b+j<=f?"hidden":"auto",C.overflowY=y+E<=i?"hidden":"auto",g.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(w.a)("ReactVirtualized__Collection",o),id:s,onScroll:this._onScroll,role:"grid",style:ue({},C,{},c),tabIndex:0},n>0&&g.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:p?"none":"",width:b}},k),0===n&&l())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:de};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:de}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:de}}}]),t}(g.PureComponent);v()(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},Object(y.polyfill)(pe);var he=pe,me=function(){function e(t){var n=t.height,r=t.width,i=t.x,a=t.y;o()(this,e),this.height=n,this.width=r,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;o()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return a()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),a=Math.floor((r+n-1)/this._sectionSize),s=Math.floor(o/this._sectionSize),l=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var f=s;f<=l;f++){var d="".concat(u,".").concat(f);this._sections[d]||(this._sections[d]=new me({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:f*this._sectionSize})),c.push(this._sections[d])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ge(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,s=r,l=s-i+o;switch(n){case"start":return s;case"end":return l;case"center":return s-(i-o)/2;default:return Math.max(l,Math.min(s,a))}}var ye=function(e){function t(e,n){var r;return o()(this,t),(r=l()(this,u()(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(d()(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=x()({},this.props);return g.createElement(he,x()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,o=[],i=new ve(r),a=0,s=0,l=0;l=0&&nn||o1&&void 0!==arguments[1]?arguments[1]:0,n="function"===typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,s=o.rowCount,l=o.threshold,c=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++){t({index:c})?null!==l&&(a.push({startIndex:s,stopIndex:l}),s=l=null):(l=c,null===s&&(s=c))}if(null!==l){for(var u=Math.min(Math.max(l,s+n-1),r-1),f=l+1;f<=u&&!t({index:f});f++)l=f;a.push({startIndex:s,stopIndex:l})}if(a.length)for(var d=a[0];d.stopIndex-d.startIndex+10;){var p=d.startIndex-1;if(t({index:p}))break;d.startIndex=p}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-l),stopIndex:Math.min(s-1,t+l)}),u=(n=[]).concat.apply(n,we()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(g.PureComponent);v()(Oe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Oe.propTypes={};var Se,_e,ke=(_e=Se=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=Object(w.a)("ReactVirtualized__List",t);return g.createElement($,x()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(g.PureComponent),v()(Se,"propTypes",null),_e);v()(ke,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:q,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Ce=n(395),je=n.n(Ce);var Ee={ge:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var a=t+n>>>1;o(e[a],r)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(var i=t-1;t<=n;){var a=t+n>>>1;o(e[a],r)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]>>1;o(e[a],r)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(o=i,t=i+1):n=i-1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,o){return"function"===typeof n?function(e,t,n,r,o){for(;t<=n;){var i=t+n>>>1,a=o(e[i],r);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(;t<=n;){var o=t+n>>>1,i=e[o];if(i===r)return o;i<=r?t=o+1:n=o-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function Me(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Pe=Me.prototype;function Te(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function De(e,t){var n=He(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Ae(e,t){var n=e.intervals([]);n.push(t),De(e,n)}function Re(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),De(e,n),1)}function Ie(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function Le(e,t){for(var n=0;n>1],o=[],i=[],a=[];for(n=0;n3*(t+1)?Ae(this,e):this.left.insert(e):this.left=He([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ae(this,e):this.right.insert(e):this.right=He([e]);else{var n=Ee.ge(this.leftPoints,e,Fe),r=Ee.ge(this.rightPoints,e,We);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Pe.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?Re(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Re(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}Te(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Te(this,this.left):Te(this,this.right);return 1}for(o=Ee.ge(this.leftPoints,e,Fe);othis.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Ne(this.rightPoints,e,t)}return Le(this.leftPoints,t)},Pe.queryInterval=function(e,t,n){var r;if(ethis.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return tthis.mid?Ne(this.rightPoints,e,n):Le(this.leftPoints,n)};var Ve=Be.prototype;Ve.insert=function(e){this.root?this.root.insert(e):this.root=new Me(e[0],null,null,[e],[e])},Ve.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ve.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ve.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ve,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ve,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ue,Ge,Ye=function(){function e(){var t;o()(this,e),v()(this,"_columnSizeMap",{}),v()(this,"_intervalTree",t&&0!==t.length?new Be(He(t)):new Be(null)),v()(this,"_leftMap",{})}return a()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=je()(e,3),o=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function $e(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 qe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};o()(this,e),v()(this,"_cellMeasurerCache",void 0),v()(this,"_columnIndexOffset",void 0),v()(this,"_rowIndexOffset",void 0),v()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),v()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,i=n.columnIndexOffset,a=void 0===i?0:i,s=n.rowIndexOffset,l=void 0===s?0:s;this._cellMeasurerCache=r,this._columnIndexOffset=a,this._rowIndexOffset=l}return a()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ze(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 Je(e){for(var t=1;t0?new Qe({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,r._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Qe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,r._deferredMeasurementCacheTopRightGrid=a>0?new Qe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),r}return h()(t,e),a()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,l=Math.max(0,n-a),c=Math.max(0,o-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),i=_()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,l=a.scrollTop;return g.createElement("div",{style:this._containerOuterStyle},g.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Je({},i,{onScroll:t,scrollLeft:s}))),g.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Je({},i,{onScroll:t,scrollTop:l})),this._renderBottomRightGrid(Je({},i,{onScroll:t,onSectionRendered:n,scrollLeft:s,scrollToColumn:r,scrollToRow:o,scrollTop:l}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"===typeof n){for(var r=0,o=0;o=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(g.PureComponent);v()(et,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),et.propTypes={},Object(y.polyfill)(et);var tt=function(e){function t(e,n){var r;return o()(this,t),(r=l()(this,u()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(d()(r)),r}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:a})}}]),t}(g.PureComponent);tt.propTypes={};function nt(e){var t=e.className,n=e.columns,r=e.style;return g.createElement("div",{className:t,role:"row",style:r},n)}nt.propTypes=null;var rt={ASC:"ASC",DESC:"DESC"};function ot(e){var t=e.sortDirection,n=Object(w.a)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===rt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===rt.DESC});return g.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===rt.ASC?g.createElement("path",{d:"M7 14l5-5 5 5z"}):g.createElement("path",{d:"M7 10l5 5 5-5z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function it(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,a=[g.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"===typeof n?n:null},n)];return i&&a.push(g.createElement(ot,{key:"SortIndicator",sortDirection:o})),a}function at(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,l=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,f=e.style,d={"aria-rowindex":r+1};return(i||a||s||l||c)&&(d["aria-label"]="row",d.tabIndex=0,i&&(d.onClick=function(e){return i({event:e,index:r,rowData:u})}),a&&(d.onDoubleClick=function(e){return a({event:e,index:r,rowData:u})}),s&&(d.onMouseOut=function(e){return s({event:e,index:r,rowData:u})}),l&&(d.onMouseOver=function(e){return l({event:e,index:r,rowData:u})}),c&&(d.onContextMenu=function(e){return c({event:e,index:r,rowData:u})})),g.createElement("div",x()({},d,{className:t,key:o,role:"row",style:f}),n)}ot.propTypes={},it.propTypes=null,at.propTypes=null;var st=function(e){function t(){return o()(this,t),l()(this,u()(t).apply(this,arguments))}return h()(t,e),t}(g.Component);function lt(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 ct(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(se.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,l=t.headerRowRenderer,c=t.height,u=t.id,f=t.noRowsRenderer,d=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,v=t.width,y=this.state.scrollbarWidth,b=o?c:c-s,O="function"===typeof d?d({index:-1}):d,S="function"===typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],g.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=ct({overflow:"hidden"},r)})),g.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":g.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Object(w.a)("ReactVirtualized__Table",r),id:u,role:"grid",style:m},!o&&l({className:Object(w.a)("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:ct({height:s,overflow:"hidden",paddingRight:y,width:v},S)}),g.createElement($,x()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Object(w.a)("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:b,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:h,style:ct({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,l=t.props,c=l.cellDataGetter,u=l.cellRenderer,f=l.className,d=l.columnData,p=l.dataKey,h=l.id,m=u({cellData:c({columnData:d,dataKey:p,rowData:i}),columnData:d,columnIndex:n,dataKey:p,isScrolling:r,parent:o,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[n],y="string"===typeof m?m:null;return g.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:Object(w.a)("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+n,onClick:function(e){s&&s({columnData:d,dataKey:p,event:e})},role:"gridcell",style:v,title:y},m)}},{key:"_createHeader",value:function(e){var t,n,r,o,i,a=e.column,s=e.index,l=this.props,c=l.headerClassName,u=l.headerStyle,f=l.onHeaderClick,d=l.sort,p=l.sortBy,h=l.sortDirection,m=a.props,v=m.columnData,y=m.dataKey,b=m.defaultSortDirection,x=m.disableSort,O=m.headerRenderer,S=m.id,_=m.label,k=!x&&d,C=Object(w.a)("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),j=this._getFlexStyleForColumn(a,ct({},u,{},a.props.headerStyle)),E=O({columnData:v,dataKey:y,disableSort:x,label:_,sortBy:p,sortDirection:h});if(k||f){var M=p!==y?b:h===rt.DESC?rt.ASC:rt.DESC,P=function(e){k&&d({defaultSortDirection:b,event:e,sortBy:y,sortDirection:M}),f&&f({columnData:v,dataKey:y,event:e})};i=a.props["aria-label"]||_||y,o="none",r=0,t=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return p===y&&(o=h===rt.ASC?"ascending":"descending"),g.createElement("div",{"aria-label":i,"aria-sort":o,className:C,id:S,key:"Header-Col"+s,onClick:t,onKeyDown:n,role:"columnheader",style:j,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,i=e.parent,a=e.style,s=this.props,l=s.children,c=s.onRowClick,u=s.onRowDoubleClick,f=s.onRowRightClick,d=s.onRowMouseOver,p=s.onRowMouseOut,h=s.rowClassName,m=s.rowGetter,v=s.rowRenderer,y=s.rowStyle,b=this.state.scrollbarWidth,x="function"===typeof h?h({index:n}):h,O="function"===typeof y?y({index:n}):y,S=m({index:n}),_=g.Children.toArray(l).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:i,rowData:S,rowIndex:n,scrollbarWidth:b})})),k=Object(w.a)("ReactVirtualized__Table__row",x),C=ct({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},O);return v({className:k,columns:_,index:n,isScrolling:r,key:o,onRowClick:c,onRowDoubleClick:u,onRowRightClick:f,onRowMouseOver:d,onRowMouseOut:p,rowData:S,style:C})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=ct({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:g.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"===typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(g.PureComponent);v()(ut,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:q,overscanRowCount:10,rowRenderer:at,headerRowRenderer:nt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ut.propTypes={};var ft=[],dt=null,pt=null;function ht(){pt&&(pt=null,document.body&&null!=dt&&(document.body.style.pointerEvents=dt),dt=null)}function mt(){ht(),ft.forEach((function(e){return e.__resetIsScrolling()}))}function vt(e){e.currentTarget===window&&null==dt&&document.body&&(dt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&W(pt);var e=0;ft.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),pt=H(mt,e)}(),ft.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function gt(e,t){ft.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",vt),ft.push(e)}function yt(e,t){(ft=ft.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",vt),pt&&(W(pt),ht()))}var bt,xt,wt=function(e){return e===window},Ot=function(e){return e.getBoundingClientRect()};function St(e,t){if(e){if(wt(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"===typeof r?r:0,width:"number"===typeof o?o:0}}return Ot(e)}return{height:t.serverHeight,width:t.serverWidth}}function _t(e,t){if(wt(t)&&document.documentElement){var n=document.documentElement,r=Ot(e),o=Ot(n);return{top:r.top-o.top,left:r.left-o.left}}var i=kt(t),a=Ot(e),s=Ot(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}function kt(e){return wt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Ct(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 jt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||se.findDOMNode(this);if(i instanceof Element&&e){var a=_t(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=St(e,this.props);r===s.height&&o===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(te.a)(),this.updatePosition(e),e&&(gt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),yt(this,r),gt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(yt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:a})}}]),t}(g.PureComponent),v()(bt,"propTypes",null),xt);v()(Mt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Et(),serverHeight:0,serverWidth:0})},,function(e,t,n){var r=n(319),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(616),o=n(640),i=n(143),a=n(33),s=n(644);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},function(e,t,n){var r;try{r=n(803)}catch(s){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(804);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(168);var o=n(390),i=n(213);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(1),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(1),o=r.createContext({});t.a=o},function(e,t,n){"use strict";var r=n(107);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){var r=n(195),o=n(345),i=n(143);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},,function(e,t,n){var r=n(353),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(374),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(208),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),v=0;v1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return te}));var r=n(33),o=n.n(r),i=n(136),a=n.n(i),s=n(20),l=n.n(s),c=n(1),u=n.n(c),f=function(){};function d(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function p(e){this._context=e}p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:d(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h(e){this._context=e}h.prototype={areaStart:f,areaEnd:f,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m(e){this._context=e}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:d(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function v(e){this._context=e}v.prototype={areaStart:f,areaEnd:f,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function g(e){this._context=e}g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var y=function(e){return new g(e)};function b(e){return e<0?-1:1}function x(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(b(i)+b(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function w(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function O(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function S(e){this._context=e}function _(e){this._context=new k(e)}function k(e){this._context=e}function C(e){this._context=e}function j(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[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}};var M=n(983),P=n(151),T=n(42);function D(e){return e[0]}function A(e){return e[1]}var R=function(e,t){var n=Object(T.a)(!0),r=null,o=y,i=null;function a(a){var s,l,c,u=(a=Object(P.a)(a)).length,f=!1;for(null==r&&(i=o(c=Object(M.a)())),s=0;s<=u;++s)!(s=u;--f)s.point(v[f],g[f]);s.lineEnd(),s.areaEnd()}m&&(v[c]=+e(d,c,l),g[c]=+t(d,c,l),s.point(r?+r(d,c,l):v[c],n?+n(d,c,l):g[c]))}if(p)return s=null,p+""||null}function c(){return R().defined(o).curve(a).context(i)}return e="function"===typeof e?e:void 0===e?D:Object(T.a)(+e),t="function"===typeof t?t:void 0===t?Object(T.a)(0):Object(T.a)(+t),n="function"===typeof n?n:void 0===n?A:Object(T.a)(+n),l.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(T.a)(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"===typeof t?t:Object(T.a)(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Object(T.a)(+e),l):r},l.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(T.a)(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"===typeof e?e:Object(T.a)(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:Object(T.a)(+e),l):n},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(n)},l.lineX1=function(){return c().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"===typeof e?e:Object(T.a)(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l},N=n(25),L=n.n(N),z=n(16),F=n(7);function W(e){return(W="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 H(){return(H=Object.assign||function(e){for(var t=1;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},F={};function W(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(N);for(t=0,n=r.length;t=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var G={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"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function q(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var Z={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var o=this._relativeTime[n];return M(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={};function ae(e,t){ie[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return M(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=se(e=oe(e));for(n=0;n68?1900:2e3)};var vt=fe("FullYear",!0);function gt(){return le(this.year())}function yt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+xt(e,r,o);return s<=0?a=mt(i=e-1)+s:s>mt(e)?(i=e+1,a=s-mt(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Ot(e,t,n){var r,o,i=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+St(o=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function St(e,t,n){var r=xt(e,t,n),o=xt(e+1,t,n);return(mt(e)-r+o)/7}function _t(e){return Ot(e,this._week.dow,this._week.doy).week}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Re("w",Oe),Re("ww",Oe,ye),Re("W",Oe),Re("WW",Oe,ye),We(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var kt={dow:0,doy:6};function Ct(){return this._week.dow}function jt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Mt(e){var t=Ot(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Tt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Re("d",Oe),Re("e",Oe),Re("E",Oe),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),We(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:v(n).invalidWeekday=e})),We(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=Ae,Lt=Ae,zt=Ae;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Dt(n,this._week.dow):e?n[e.day()]:n}function Wt(e){return!0===e?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Be.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Be.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._shortWeekdaysParse,a))||-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Be.call(this._shortWeekdaysParse,a))||-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Be.call(this._minWeekdaysParse,a))||-1!==(o=Be.call(this._weekdaysParse,a))||-1!==(o=Be.call(this._shortWeekdaysParse,a))?o:null}function Vt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([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]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.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}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(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")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Tt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),o=Le(this.weekdaysShort(n,"")),i=Le(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),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("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Qt),W("k",["kk",2],0,Zt),W("hmm",0,0,(function(){return""+Qt.apply(this)+I(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Qt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),ne("hour","h"),ae("hour",13),Re("a",en),Re("A",en),Re("H",Oe),Re("h",Oe),Re("k",Oe),Re("HH",Oe,ye),Re("hh",Oe,ye),Re("kk",Oe,ye),Re("hmm",Se),Re("hmmss",_e),Re("Hmm",Se),Re("Hmmss",_e),Fe(["H","HH"],Ye),Fe(["k","kk"],(function(e,t,n){var r=ue(e);t[Ye]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ye]=ue(e),v(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r)),v(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r,2)),t[qe]=ue(e.substr(o)),v(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ye]=ue(e.substr(0,r)),t[$e]=ue(e.substr(r,2)),t[qe]=ue(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:A,longDateFormat:G,invalidDate:$,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:Z,months:et,monthsShort:tt,week:kt,weekdays:At,weekdaysMin:It,weekdaysShort:Rt,meridiemParse:nn},ln={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=pn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(o,n)>=t-1)break;t--}i++}return an}function pn(t){var n=null;if(void 0===ln[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=an._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),hn(n)}catch(r){ln[t]=null}return ln[t]}function hn(e,t){var n;return e&&((n=c(t)?gn(e):mn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function mn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])E("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=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new D(T(r,t)),cn[e]&&cn[e].forEach((function(e){mn(e.name,e.config)})),hn(e),ln[e]}return delete ln[e],null}function vn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(T(ln[e]._config,t)):(null!=(r=pn(e))&&(o=r._config),t=T(o,t),null==r&&(t.abbr=e),(n=new D(t)).parentLocale=ln[e],ln[e]=n),hn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===hn()&&hn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=pn(e))return t;e=[e]}return dn(e)}function yn(){return C(ln)}function bn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ge]<1||n[Ge]>Je(n[Ve],n[Ue])?Ge:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[$e]||0!==n[qe]||0!==n[Ke])?Ye:n[$e]<0||n[$e]>59?$e:n[qe]<0||n[qe]>59?qe:n[Ke]<0||n[Ke]>999?Ke:-1,v(e)._overflowDayOfYear&&(tGe)&&(t=Ge),v(e)._overflowWeeks&&-1===t&&(t=Xe),v(e)._overflowWeekday&&-1===t&&(t=Qe),v(e).overflow=t),e}var xn=/^\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)?)?$/,wn=/^\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)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["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/]],kn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function En(e){var t,n,r,o,i,a,s=e._i,l=xn.exec(s)||wn.exec(s);if(l){for(v(e).iso=!0,t=0,n=Sn.length;tmt(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[$e]&&0===e._a[qe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?bt:yt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,n,r,o,i,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Nn(t.GG,e._a[Ve],Ot(qn(),1,4).year),r=Nn(t.W,1),((o=Nn(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Ot(qn(),i,a),n=Nn(t.gg,e._a[Ve],c.year),r=Nn(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>St(n,i,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=wt(n,r,o,i,a),e._a[Ve]=s.year,e._dayOfYear=s.dayOfYear)}function Wn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,o,i,a,s,l=""+e._i,c=l.length,u=0;for(o=U(e._f,e._locale).match(N)||[],t=0;t0&&v(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),F[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),He(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ye]<=12&&!0===v(e).bigHour&&e._a[Ye]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ye]=Hn(e._locale,e._a[Ye],e._meridiem),null!==(s=v(e).era)&&(e._a[Ve]=e._locale.erasConvertYear(s,e._a[Ve])),zn(e),bn(e)}else Rn(e);else En(e)}function Hn(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}function Bn(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:y()}));function Qn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return qn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Gn(t))._a?(e=t._isUTC?h(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Or(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var kr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,o,i=e,a=null;return ar(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=kr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:ue(a[Ge])*n,h:ue(a[Ye])*n,m:ue(a[$e])*n,s:ue(a[qe])*n,ms:ue(sr(1e3*a[Ke]))*n}):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,i={y:Er(a[2],n),M:Er(a[3],n),w:Er(a[4],n),d:Er(a[5],n),h:Er(a[6],n),m:Er(a[7],n),s:Er(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Pr(qn(i.from),qn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ir(i),ar(e)&&s(e,"_locale")&&(r._locale=e._locale),ar(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Dr(this,jr(n,r),e),this}}function Dr(e,t,n,o){var i=t._milliseconds,a=sr(t._days),s=sr(t._months);e.isValid()&&(o=null==o||o,s&&ct(e,de(e,"Month")+s*n),a&&pe(e,"Date",de(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}jr.fn=ir.prototype,jr.invalid=or;var Ar=Tr(1,"add"),Rr=Tr(-1,"subtract");function Ir(e){return"string"===typeof e||e instanceof String}function Nr(e){return S(e)||f(e)||Ir(e)||u(e)||zr(e)||Lr(e)||null===e||void 0===e}function Lr(e){var t,n,r=a(e)&&!l(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(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")}function Jr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function eo(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function to(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function no(e){return this.from(qn(),e)}function ro(e,t){return this.isValid()&&(S(e)&&e.isValid()||qn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oo(e){return this.to(qn(),e)}function io(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ao=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function so(){return this._locale}var lo=1e3,co=60*lo,uo=60*co,fo=3506328*uo;function po(e,t){return(e%t+t)%t}function ho(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fo:new Date(e,t,n).valueOf()}function mo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fo:Date.UTC(e,t,n)}function vo(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mo:ho,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=po(t+(this._isUTC?0:this.utcOffset()*co),uo);break;case"minute":t=this._d.valueOf(),t-=po(t,co);break;case"second":t=this._d.valueOf(),t-=po(t,lo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function go(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mo:ho,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+=uo-po(t+(this._isUTC?0:this.utcOffset()*co),uo)-1;break;case"minute":t=this._d.valueOf(),t+=co-po(t,co)-1;break;case"second":t=this._d.valueOf(),t+=lo-po(t,lo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function bo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function wo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Oo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function So(){return this.isValid()?this.toISOString():null}function _o(){return g(this)}function ko(){return p({},v(this))}function Co(){return v(this).overflow}function jo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Eo(e,t){var n,o,i,a=this._eras||gn("en")._eras;for(n=0,o=a.length;n=0)return l[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(i=St(e,r,o))&&(t=i),Qo.call(this,e,t,n,r,o))}function Qo(e,t,n,r,o){var i=wt(e,t,n,r,o),a=bt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}W("N",0,0,"eraAbbr"),W("NN",0,0,"eraAbbr"),W("NNN",0,0,"eraAbbr"),W("NNNN",0,0,"eraName"),W("NNNNN",0,0,"eraNarrow"),W("y",["y",1],"yo","eraYear"),W("y",["yy",2],0,"eraYear"),W("y",["yyy",3],0,"eraYear"),W("y",["yyyy",4],0,"eraYear"),Re("N",zo),Re("NN",zo),Re("NNN",zo),Re("NNNN",Fo),Re("NNNNN",Wo),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?v(n).era=o:v(n).invalidEra=e})),Re("y",Ee),Re("yy",Ee),Re("yyy",Ee),Re("yyyy",Ee),Re("yo",Ho),Fe(["y","yy","yyy","yyyy"],Ve),Fe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,o):t[Ve]=parseInt(e,10)})),W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vo("gggg","weekYear"),Vo("ggggg","weekYear"),Vo("GGGG","isoWeekYear"),Vo("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Re("G",Me),Re("g",Me),Re("GG",Oe,ye),Re("gg",Oe,ye),Re("GGGG",Ce,xe),Re("gggg",Ce,xe),Re("GGGGG",je,we),Re("ggggg",je,we),We(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),We(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Re("Q",ge),Fe("Q",(function(e,t){t[Ue]=3*(ue(e)-1)})),W("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Re("D",Oe),Re("DD",Oe,ye),Re("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ge),Fe("Do",(function(e,t){t[Ge]=ue(e.match(Oe)[0])}));var Jo=fe("Date",!0);function ei(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}W("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Re("DDD",ke),Re("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),W("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Re("m",Oe),Re("mm",Oe,ye),Fe(["m","mm"],$e);var ti=fe("Minutes",!1);W("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Re("s",Oe),Re("ss",Oe,ye),Fe(["s","ss"],qe);var ni,ri,oi=fe("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Re("S",ke,ge),Re("SS",ke,ye),Re("SSS",ke,be),ni="SSSS";ni.length<=9;ni+="S")Re(ni,Ee);function ii(e,t){t[Ke]=ue(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Fe(ni,ii);function ai(){return this._isUTC?"UTC":""}function si(){return this._isUTC?"Coordinated Universal Time":""}ri=fe("Milliseconds",!1),W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var li=O.prototype;function ci(e){return qn(1e3*e)}function ui(){return qn.apply(null,arguments).parseZone()}function fi(e){return e}li.add=Ar,li.calendar=Hr,li.clone=Br,li.diff=Kr,li.endOf=go,li.format=eo,li.from=to,li.fromNow=no,li.to=ro,li.toNow=oo,li.get=he,li.invalidAt=Co,li.isAfter=Vr,li.isBefore=Ur,li.isBetween=Gr,li.isSame=Yr,li.isSameOrAfter=$r,li.isSameOrBefore=qr,li.isValid=_o,li.lang=ao,li.locale=io,li.localeData=so,li.max=Xn,li.min=Kn,li.parsingFlags=ko,li.set=me,li.startOf=vo,li.subtract=Rr,li.toArray=wo,li.toObject=Oo,li.toDate=xo,li.toISOString=Zr,li.inspect=Jr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=So,li.toString=Qr,li.unix=bo,li.valueOf=yo,li.creationData=jo,li.eraName=To,li.eraNarrow=Do,li.eraAbbr=Ao,li.eraYear=Ro,li.year=vt,li.isLeapYear=gt,li.weekYear=Uo,li.isoWeekYear=Go,li.quarter=li.quarters=Zo,li.month=ut,li.daysInMonth=ft,li.week=li.weeks=Et,li.isoWeek=li.isoWeeks=Mt,li.weeksInYear=qo,li.weeksInWeekYear=Ko,li.isoWeeksInYear=Yo,li.isoWeeksInISOWeekYear=$o,li.date=Jo,li.day=li.days=Ut,li.weekday=Gt,li.isoWeekday=Yt,li.dayOfYear=ei,li.hour=li.hours=rn,li.minute=li.minutes=ti,li.second=li.seconds=oi,li.millisecond=li.milliseconds=ri,li.utcOffset=hr,li.utc=vr,li.local=gr,li.parseZone=yr,li.hasAlignedHourOffset=br,li.isDST=xr,li.isLocal=Or,li.isUtcOffset=Sr,li.isUtc=_r,li.isUTC=_r,li.zoneAbbr=ai,li.zoneName=si,li.dates=k("dates accessor is deprecated. Use date instead.",Jo),li.months=k("months accessor is deprecated. Use month instead",ut),li.years=k("years accessor is deprecated. Use year instead",vt),li.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),li.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wr);var di=D.prototype;function pi(e,t,n,r){var o=gn(),i=h().set(r,t);return o[n](i,e)}function hi(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=pi(e,r,n,"month");return o}function mi(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=gn(),a=e?i._week.dow:0,s=[];if(null!=n)return pi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=pi(t,(o+a)%7,r,"day");return s}function vi(e,t){return hi(e,t,"months")}function gi(e,t){return hi(e,t,"monthsShort")}function yi(e,t,n){return mi(e,t,n,"weekdays")}function bi(e,t,n){return mi(e,t,n,"weekdaysShort")}function xi(e,t,n){return mi(e,t,n,"weekdaysMin")}di.calendar=R,di.longDateFormat=Y,di.invalidDate=q,di.ordinal=Q,di.preparse=fi,di.postformat=fi,di.relativeTime=J,di.pastFuture=ee,di.set=P,di.eras=Eo,di.erasParse=Mo,di.erasConvertYear=Po,di.erasAbbrRegex=No,di.erasNameRegex=Io,di.erasNarrowRegex=Lo,di.months=it,di.monthsShort=at,di.monthsParse=lt,di.monthsRegex=pt,di.monthsShortRegex=dt,di.week=_t,di.firstDayOfYear=jt,di.firstDayOfWeek=Ct,di.weekdays=Ft,di.weekdaysMin=Ht,di.weekdaysShort=Wt,di.weekdaysParse=Vt,di.weekdaysRegex=$t,di.weekdaysShortRegex=qt,di.weekdaysMinRegex=Kt,di.isPM=tn,di.meridiem=on,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",hn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",gn);var wi=Math.abs;function Oi(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function Si(e,t,n,r){var o=jr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function _i(e,t){return Si(this,e,t,1)}function ki(e,t){return Si(this,e,t,-1)}function Ci(e){return e<0?Math.floor(e):Math.ceil(e)}function ji(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Ci(Mi(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=ce(i/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,a+=ce(n/24),s+=o=ce(Ei(a)),a-=Ci(Mi(o)),r=ce(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Ei(e){return 4800*e/146097}function Mi(e){return 146097*e/4800}function Pi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ei(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mi(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)}}function Ti(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Di(e){return function(){return this.as(e)}}var Ai=Di("ms"),Ri=Di("s"),Ii=Di("m"),Ni=Di("h"),Li=Di("d"),zi=Di("w"),Fi=Di("M"),Wi=Di("Q"),Hi=Di("y");function Bi(){return jr(this)}function Vi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Ui(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gi=Ui("milliseconds"),Yi=Ui("seconds"),$i=Ui("minutes"),qi=Ui("hours"),Ki=Ui("days"),Xi=Ui("months"),Qi=Ui("years");function Zi(){return ce(this.days()/7)}var Ji=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var o=jr(e).abs(),i=Ji(o.as("s")),a=Ji(o.as("m")),s=Ji(o.as("h")),l=Ji(o.as("d")),c=Ji(o.as("M")),u=Ji(o.as("w")),f=Ji(o.as("y")),d=i<=n.ss&&["s",i]||i0,d[4]=r,ta.apply(null,d)}function ra(e){return void 0===e?Ji:"function"===typeof e&&(Ji=e,!0)}function oa(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function ia(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=na(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function sa(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=aa(this._milliseconds)/1e3,c=aa(this._days),u=aa(this._months),f=this.asSeconds();return f?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=sa(this._months)!==sa(f)?"-":"",a=sa(this._days)!==sa(f)?"-":"",s=sa(this._milliseconds)!==sa(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ca=ir.prototype;return ca.isValid=rr,ca.abs=Oi,ca.add=_i,ca.subtract=ki,ca.as=Pi,ca.asMilliseconds=Ai,ca.asSeconds=Ri,ca.asMinutes=Ii,ca.asHours=Ni,ca.asDays=Li,ca.asWeeks=zi,ca.asMonths=Fi,ca.asQuarters=Wi,ca.asYears=Hi,ca.valueOf=Ti,ca._bubble=ji,ca.clone=Bi,ca.get=Vi,ca.milliseconds=Gi,ca.seconds=Yi,ca.minutes=$i,ca.hours=qi,ca.days=Ki,ca.weeks=Zi,ca.months=Xi,ca.years=Qi,ca.humanize=ia,ca.toISOString=la,ca.toString=la,ca.toJSON=la,ca.locale=io,ca.localeData=so,ca.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),ca.lang=ao,W("X",0,0,"unix"),W("x",0,0,"valueOf"),Re("x",Me),Re("X",De),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.1",o(qn),r.fn=li,r.min=Zn,r.max=Jn,r.now=er,r.utc=h,r.unix=ci,r.months=vi,r.isDate=f,r.locale=hn,r.invalid=y,r.duration=jr,r.isMoment=S,r.weekdays=yi,r.parseZone=ui,r.localeData=gn,r.isDuration=ar,r.monthsShort=gi,r.weekdaysMin=xi,r.defineLocale=mn,r.updateLocale=vn,r.locales=yn,r.weekdaysShort=bi,r.normalizeUnits=re,r.relativeTimeRounding=ra,r.relativeTimeThreshold=oa,r.calendarFormat=Wr,r.prototype=li,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(112)(e))},function(e,t,n){"use strict";var r=n(445),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";var r=n(910);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),s=n(16);function l(e){return(l="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 c(){return(c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(664)("toUpperCase");e.exports=r},function(e,t,n){"use strict";function r(e){return+e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return s}));var r=n(280),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var o;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var l=e,c=t,u=[],f=u,d=!1;function p(){f===u&&(f=u.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function m(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),u=null}}}function v(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=l(c,e)}finally{d=!1}for(var t=u=f,n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=c,t.cloneLayout=function(e){for(var t=Array(e.length),n=0,r=e.length;nn&&(n=t);return n}function u(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}var f=n(556);function d(e,t){return e.i!==t.i&&(!(e.x+e.w<=t.x)&&(!(e.x>=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function p(e,t,n){for(var r=w(e),o=_(e,t),i=Array(e.length),a=0,s=o.length;at.y+t.h)break;d(t,a)&&m(e,a,n+t[o],r)}}t[r]=n}function v(e,t,n,r,o){var i,a="horizontal"===n;if("vertical"===n)for(t.y=Math.min(c(e),t.y);t.y>0&&!b(e,t);)t.y--;else if(a)for(t.y=Math.min(c(e),t.y);t.x>0&&!b(e,t);)t.x--;for(;i=b(e,t);)a?m(o,t,i.x+i.w,"x"):m(o,t,i.y+i.h,"y"),a&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t}function g(e,t){for(var n=w(e),r=0,o=e.length;rt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;b(n,i);)i.y++;else n.push(i)}return e}function y(e,t){for(var n=0,r=e.length;n=r:"horizontal"===a&&"number"===typeof n&&l>=n)&&(u=u.reverse());var f=x(u,t);if(i&&f.length)return E("Collision prevented on ".concat(t.i,", reverting.")),t.x=l,t.y=c,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1}))}function C(e){return e.slice(0).sort((function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1}))}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,o=e.length;r=t||n<0||v&&e-h>=u}function w(){var e=o();if(x(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-p);return v?s(n,u-(e-h)):n}(e))}function O(e){return d=void 0,g&&l?y(e):(l=c=void 0,f)}function S(){var e=o(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(v)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=c=d=void 0},S.flush=function(){return void 0===d?f:O(o())},S}},function(e,t,n){var r=n(255),o=n(651),i=n(655),a=n(194),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},function(e,t,n){"use strict";t.a=function(e,t){return et?1:e>=t?0:NaN}},function(e,t,n){"use strict";Array.prototype.slice;t.a=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),s=n(84),l=n(16);function c(e){return(c="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 u(){return(u=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(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="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 i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},y=function(e){!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&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){var e;f(this,c);for(var t=arguments.length,n=new Array(t),r=0;r0,from:{width:i,height:c,x:n,y:r},to:{width:i,height:c,x:n,y:r},duration:v,animationEasing:m,isActive:x},(function(t){var n=t.width,r=t.height,i=t.x,a=t.y;return o.a.createElement(s.a,{canBegin:p>0,from:"0px ".concat(-1===p?1:p,"px"),to:"".concat(p,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:b,easing:m},o.a.createElement("path",u({},Object(l.c)(e.props,!0),{className:w,d:g(i,a,n,r,f),ref:function(t){e.node=t}})))})):o.a.createElement("path",u({},Object(l.c)(this.props,!0),{className:w,d:g(n,r,i,c,f)}))}}])&&d(t.prototype,n),r&&d(t,r),c}(r.PureComponent);y.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(61),o=n.n(r),i=n(20),a=n.n(i),s=n(22),l=n.n(s),c=n(418),u=n.n(c),f=n(33),d=n.n(f),p=n(1),h=n.n(p),m=n(66),v=n(28),g=n(37),y=n(21),b=n(16);function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var j={valueAccessor:function(e){return d()(e.value)?u()(e.value):e.value}};function E(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,s=C(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?h.a.createElement(v.a,{className:"recharts-label-list"},t.map((function(e,t){var c=l()(r)?n(e,t):Object(y.v)(e&&e.payload,r),u=l()(i)?{}:{id:"".concat(i,"-").concat(t)};return h.a.createElement(m.a,O({},Object(b.c)(e,!0),s,u,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:a,viewBox:m.a.parseViewBox(l()(o)?e:_(_({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function M(e,t){return e?!0===e?h.a.createElement(E,{key:"labelList-implicit",data:t}):h.a.isValidElement(e)||a()(e)?h.a.createElement(E,{key:"labelList-implicit",data:t,content:e}):o()(e)?h.a.createElement(E,O({data:t},e,{key:"labelList-implicit"})):null:null}E.displayName="LabelList",E.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=Object(g.a)(r,E.displayName).map((function(e,n){return Object(p.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=M(e.label,t);return[i].concat(x(o))},E.defaultProps=j},function(e,t,n){"use strict";var r=n(43),o=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(46)).default)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ot}));var r=n(222),o=n.n(r),i=n(407),a=n.n(i),s=n(20),l=n.n(s),c=n(408),u=n.n(c),f=n(149),d=n.n(f),p=n(48),h=n.n(p),m=n(22),v=n.n(m),g=n(157),y=n.n(g),b=n(1),x=n.n(b),w=n(25),O=n.n(w),S=n(169),_=n(28),k=n(232),C=n(173),j=n(108),E=n(7),M=n(16);function P(e){return(P="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 T(){return(T=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n=2?Object(E.i)(v[1].coordinate-v[0].coordinate):1;if(1===b?(n="width"===m?f:d,r="width"===m?f+p:d+h):(n="width"===m?f+p:d+h,r="width"===m?f:d),t){var x=o[y-1],w=l()(i)?i(x.value,y-1):x.value,O=Object(U.c)(w)[m]+g,S=b*(x.coordinate+b*O/2-r);v[y-1]=x=Q(Q({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate}),b*(x.tickCoord-b*O/2-n)>=0&&b*(x.tickCoord+b*O/2-r)<=0&&(r=x.tickCoord-b*(O/2+c),v[y-1]=Q(Q({},x),{},{isShow:!0}))}for(var _=t?y-1:y,k=0;k<_;k++){var C=v[k],j=l()(i)?i(C.value,k):C.value,M=Object(U.c)(j)[m]+g;if(0===k){var P=b*(C.coordinate-b*M/2-n);v[k]=C=Q(Q({},C),{},{tickCoord:P<0?C.coordinate-P*b:C.coordinate})}else v[k]=C=Q(Q({},C),{},{tickCoord:C.coordinate});b*(C.tickCoord-b*M/2-n)>=0&&b*(C.tickCoord+b*M/2-r)<=0&&(n=C.tickCoord+b*(M/2+c),v[k]=Q(Q({},C),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=i.x,f=i.y,d=i.width,p=i.height,h="top"===a||"bottom"===a?"width":"height",m=c&&"width"===h?Object(U.c)(c)[h]:0,v=(r||[]).slice(),g=v.length,y=g>=2?Object(E.i)(v[1].coordinate-v[0].coordinate):1;1===y?(t="width"===h?u:f,n="width"===h?u+d:f+p):(t="width"===h?u+d:f+p,n="width"===h?u:f);for(var b=g-1;b>=0;b--){var x=v[b],w=l()(o)?o(x.value,g-b-1):x.value,O=Object(U.c)(w)[h]+m;if(b===g-1){var S=y*(x.coordinate+y*O/2-n);v[b]=x=Q(Q({},x),{},{tickCoord:S>0?x.coordinate-S*y:x.coordinate})}else v[b]=x=Q(Q({},x),{},{tickCoord:x.coordinate});y*(x.tickCoord-y*O/2-t)>=0&&y*(x.tickCoord+y*O/2-n)<=0&&(n=x.tickCoord-y*(O/2+s),v[b]=Q(Q({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return x.a.isValidElement(e)?x.a.cloneElement(e,t):l()(e)?e(t):x.a.createElement(G.a,K({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,n=J(e,["viewBox"]),r=this.props,o=r.viewBox,i=J(r,["viewBox"]);return!Object(V.a)(t,o)||!Object(V.a)(n,i)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,l=s.x,c=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,m=s.tickMargin,v=h?-1:1,g=e.tickSize||p,y=Object(E.g)(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-v*g)-v*m,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=l+ +!h*u)-v*g)-v*m,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=l+ +h*u)+v*g)+v*m,a=y;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+v*g)+v*m,i=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{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,i=e.orientation,a=e.mirror,s=e.axisLine,l=Q(Q(Q({},Object(M.c)(this.props)),Object(M.c)(s)),{},{fill:"none"});if("top"===i||"bottom"===i){var c=+("top"===i&&!a||"bottom"===i&&a);l=Q(Q({},l),{},{x1:t,y1:n+c*o,x2:t+r,y2:n+c*o})}else{var u=+("left"===i&&!a||"right"===i&&a);l=Q(Q({},l),{},{x1:t+u*r,y1:n,x2:t+u*r,y2:n+o})}return x.a.createElement("line",K({},l,{className:O()("recharts-cartesian-axis-line",h()(s,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,n=this.props,r=n.tickLine,o=n.stroke,a=n.tick,s=n.tickFormatter,c=n.unit,u=i.getTicks(Q(Q({},this.props),{},{ticks:e})),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),p=Object(M.c)(this.props),m=Object(M.c)(a),v=Q(Q({},p),{},{fill:"none"},Object(M.c)(r)),g=u.map((function(e,n){var g=t.getTickLineCoord(e),y=g.line,b=g.tick,w=Q(Q(Q(Q({textAnchor:f,verticalAnchor:d},p),{},{stroke:"none",fill:o},m),b),{},{index:n,payload:e,visibleTicksCount:u.length,tickFormatter:s});return x.a.createElement(_.a,K({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Object(M.b)(t.props,e,n)),r&&x.a.createElement("line",K({},v,y,{className:O()("recharts-cartesian-axis-tick-line",h()(r,"className"))})),a&&i.renderTickItem(a,w,"".concat(l()(s)?s(e.value,n):e.value).concat(c||"")))}));return x.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var a=this.props,s=a.ticks,c=J(a,["ticks"]),u=s;return l()(o)&&(u=s&&s.length>0?o(this.props):o(c)),n<=0||r<=0||!u||!u.length?null:x.a.createElement(_.a,{className:O()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(u),Y.a.renderCallByParent(this.props))}}])&&te(t.prototype,n),r&&te(t,r),i}(b.Component);ae.displayName="CartesianAxis",ae.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 se=n(276),le=n(21);function ce(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){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=_e(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Oe(t),"startX"),endX:t.handleTravellerDragStart.bind(Oe(t),"endX")},t.state={},t}return t=i,r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return x.a.createElement(x.a.Fragment,null,x.a.createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),x.a.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),x.a.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return x.a.isValidElement(e)?x.a.cloneElement(e,t):l()(e)?e(t):i.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return ve({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=Object(se.b)().domain(y()(0,s)).range([o,o+i-a]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{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}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,a=o.gap,s=o.data.length-1,l=Math.min(t,n),c=Math.max(t,n),u=i.getIndexInRange(r,l),f=i.getIndexInRange(r,c);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=Object(le.v)(n[e],o,e);return l()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-l-o,a+s-l-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=_e(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],l=this.props,c=l.x,u=l.width,f=l.travellerWidth,d=l.onChange,p=l.gap,h=l.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,c+u-f-s):v<0&&(v=Math.max(v,c-s)),m[o]=s+v;var g=this.getIndex(m),y=g.startIndex,b=g.endIndex;this.setState((ge(t={},o,s+v),ge(t,"brushMoveStartX",e.pageX),t),(function(){d&&function(){var e=h.length-1;return"startX"===o&&(i>a?y%p===0:b%p===0)||ia?b%p===0:y%p===0)||i>a&&b===e}()&&d(g)}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return x.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,s=e.padding,l=b.Children.only(a);return l?x.a.cloneElement(l,{x:t,y:n,width:r,height:o,margin:s,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,a=n.height,s=n.traveller,l=Math.max(e,this.props.x),c=ve(ve({},Object(M.c)(this.props)),{},{x:l,y:r,width:o,height:a});return x.a.createElement(_.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},i.renderTraveller(s,c))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,s=Math.min(e,t)+a,l=Math.max(Math.abs(t-e)-a,0);return x.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:s,y:r,width:l,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,s=this.state,l=s.startX,c=s.endX,u={pointerEvents:"none",fill:a};return x.a.createElement(_.a,{className:"recharts-brush-texts"},x.a.createElement(G.a,he({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+o/2},u),this.getTextOfTick(t)),x.a.createElement(G.a,he({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+i+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,s=e.height,l=e.alwaysShowText,c=this.state,u=c.startX,f=c.endX,d=c.isTextActive,p=c.isSlideMoving,h=c.isTravellerMoving;if(!t||!t.length||!Object(E.g)(o)||!Object(E.g)(i)||!Object(E.g)(a)||!Object(E.g)(s)||a<=0||s<=0)return null;var m=O()("recharts-brush",n),v=1===x.a.Children.count(r),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=de.reduce((function(e,r){return ue(ue({},e),{},fe({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return x.a.createElement(_.a,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(u,f),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(f,"endX"),(d||p||h||l)&&this.renderText())}}])&&ye(t.prototype,n),r&&ye(t,r),i}(b.PureComponent);ke.displayName="Brush",ke.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 Ce=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},je=n(83),Ee=n(78);function Me(){return(Me=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Object(E.g)(o)&&Object(E.g)(i)?e.slice(o,i+1):[]},gt=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=vt(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props,l=s.dataKey,c=s.name,u=s.unit,f=s.formatter,d=s.data,p=s.tooltipType;if(i.dataKey&&!i.allowDuplicatedCategory){var h=void 0===d?a:d;o=Object(E.a)(h,i.dataKey,r)}else o=d&&d[n]||a[n];return o?[].concat(lt(e),[ft(ft({},Object(M.c)(t)),{},{dataKey:l,unit:u,formatter:f,name:c||l,color:Object(le.q)(t),value:Object(le.v)(o,l),type:p,payload:o})]):e}),[])},yt=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=Object(le.b)(i,a,l,s);if(c>=0&&l){var u=l[c]&&l[c].value;return{activeTooltipIndex:c,activeLabel:u,activePayload:gt(e,t,c,u),activeCoordinate:function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return ft(ft(ft({},r),Object(Ke.e)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,l=r.angle;return ft(ft(ft({},r),Object(Ke.e)(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return ht}(n,a,c,o)}}return null},bt=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),f=Object(B.a)(c,o),d={};return f&&f.length?d=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,f=e.stackOffset,d=Object(le.w)(c,o);return n.reduce((function(t,n){var p=n.props,h=p.type,m=p.dataKey,g=p.allowDataOverflow,b=p.allowDuplicatedCategory,x=p.scale,w=p.ticks,O=n.props[i],S=vt(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===O})),dataStartIndex:s,dataEndIndex:l}),_=S.length;if(!t[O]){var k,C,j;if(m){if(k=Object(le.m)(S,m,h),"category"===h&&d){var M=Object(E.d)(k);b&&M?(C=k,k=y()(0,_)):b||(k=Object(le.x)(n.props.domain,k,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(lt(e),[t])}),[]))}else if("category"===h)k=b?k.filter((function(e){return""!==e&&!v()(e)})):Object(le.x)(n.props.domain,k,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||v()(t)?e:[].concat(lt(e),[t])}),[]);else if("number"===h){var P=Object(le.y)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),m,o);P&&(k=P)}!d||"number"!==h&&"auto"===x||(j=Object(le.m)(S,m,"category"))}else k=d?y()(0,_):a&&a[O]&&a[O].hasStack&&"number"===h?"expand"===f?[0,1]:Object(le.o)(a[O].stackGroups,s,l):Object(le.n)(S,r.filter((function(e){return e.props[i]===O&&!e.props.hide})),h,!0);if("number"===h)k=qe(u,k,O,o,w),n.props.domain&&(k=Object(le.A)(n.props.domain,k,g));else if("category"===h&&n.props.domain){var T=n.props.domain;k.every((function(e){return T.indexOf(e)>=0}))&&(k=T)}return ft(ft({},t),{},dt({},O,ft(ft({},n.props),{},{axisType:o,domain:k,categoricalDomain:j,duplicateDomain:C,originalDomain:n.props.domain,isCategorical:d,layout:c})))}return t}),{})}(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,f=vt(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),d=f.length,p=Object(le.w)(c,o),m=-1;return n.reduce((function(e,t){var v,g=t.props[i];return e[g]?e:(m++,p?v=y()(0,d):a&&a[g]&&a[g].hasStack?(v=Object(le.o)(a[g].stackGroups,s,l),v=qe(u,v,g,o)):(v=Object(le.A)(r.defaultProps.domain,Object(le.n)(f,n.filter((function(e){return e.props[i]===g&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),v=qe(u,v,g,o)),ft(ft({},e),{},dt({},g,ft(ft({axisType:o},r.defaultProps),{},{hide:!0,orientation:h()(pt,"".concat(o,".").concat(m%2),null),domain:v,originalDomain:r.defaultProps.domain,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),d},xt=function(e){var t=e.children,n=e.defaultShowTooltip,r=Object(B.b)(t,ke.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!v()(n)&&n}},wt=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"}},Ot=function(e){var t,n,r=e.chartName,i=e.GraphicalChild,s=e.eventType,c=void 0===s?"axis":s,f=e.axisComponents,p=e.legendContent,m=e.formatAxisMap,g=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,c=e.layout,u=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=wt(c),m=h.numericAxisName,g=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Object(B.c)(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n)&&Object(le.h)({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var h=vt(e.data,{dataStartIndex:a,dataEndIndex:s},n),x=n.props,w=x.dataKey,O=x.maxBarSize,S=n.props["".concat(m,"Id")],_=n.props["".concat(g,"Id")],k=f.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return ft(ft({},e),{},(dt(o={},r.axisType,s),dt(o,"".concat(r.axisType,"Ticks"),Object(le.t)(s)),o))}),{}),C=k[g],j=k["".concat(g,"Ticks")],E=r&&r[S]&&r[S].hasStack&&Object(le.s)(n,r[S].stackGroups),M=Object(B.c)(n.type).indexOf("Bar")>=0,P=Object(le.f)(C,j),T=[];if(M){var D=Object(le.f)(C,j,!0),A=v()(O)?p:O;T=Object(le.g)({barGap:u,barCategoryGap:d,bandSize:D!==P?D:P,sizeList:y[_],maxBarSize:A}),D!==P&&(T=T.map((function(e){return ft(ft({},e),{},{position:ft(ft({},e.position),{},{offset:e.position.offset-D/2})})})))}var R,I=n&&n.type&&n.type.getComposedData;I&&b.push({props:ft(ft({},I(ft(ft({},k),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:P,barPosition:T,offset:o,stackedData:E,layout:c,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(l)},dt(R,m,k[m]),dt(R,g,k[g]),dt(R,"animationId",i),R)),childIndex:Object(B.f)(n,e.children),item:n})})),b},w=function(e,t){var n=e.props,o=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Object(B.h)({props:n}))return null;var l=n.children,c=n.layout,u=n.stackOffset,p=n.data,v=n.reverseStackOrder,g=wt(c),b=g.numericAxisName,x=g.cateAxisName,w=Object(B.a)(l,i),O=Object(le.r)(p,w,"".concat(b,"Id"),"".concat(x,"Id"),u,v),S=f.reduce((function(e,t){var r="".concat(t.axisType,"Map");return ft(ft({},e),{},dt({},r,bt(n,ft(ft({},t),{},{graphicalItems:w,stackGroups:t.axisType===b&&O,dataStartIndex:o,dataEndIndex:a}))))}),{}),_=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,s=void 0===a?{}:a,l=n.width,c=n.height,u=n.children,f=n.margin||{},d=Object(B.b)(u,ke.displayName),p=Object(B.b)(u,C.a.displayName),m=Object.keys(s).reduce((function(e,t){var n=s[t],r=n.orientation;return n.mirror||n.hide?e:ft(ft({},e),{},dt({},r,e[r]+n.width))}),{left:f.left||0,right:f.right||0}),v=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:ft(ft({},e),{},dt({},r,h()(e,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),g=ft(ft({},v),m),y=g.bottom;return d&&(g.bottom+=d.props.height||ke.defaultProps.height),p&&t&&(g=Object(le.a)(g,r,n,t)),ft(ft({brushBottom:y},g),{},{width:l-g.left-g.right,height:c-g.top-g.bottom})}(ft(ft({},S),{},{props:n,graphicalItems:w}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(S).forEach((function(e){S[e]=m(n,S[e],_,e.replace("Map",""),r)}));var k=function(e){var t=Object(E.b)(e),n=Object(le.t)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:d()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Object(le.f)(t)}}(S["".concat(x,"Map")]),j=y(n,ft(ft({},S),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:w,stackGroups:O,offset:_}));return ft(ft({formatedGraphicalItems:j,graphicalItems:w,offset:_,stackGroups:O},k),S)};return n=t=function(e){!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&&rt(e,t)}(f,e);var t,n,i,s=ot(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.container=void 0,t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var n=t.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;t.setState(ft({legendBBox:e},w({props:t.props,dataStartIndex:r,dataEndIndex:o,updateId:i},ft(ft({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,n,r){var o=t.props,i=o.syncId,a=o.layout,s=t.state.updateId;if(i===e&&n!==t.uniqueChartId){var l=r.dataStartIndex,c=r.dataEndIndex;if(v()(r.dataStartIndex)&&v()(r.dataEndIndex))if(v()(r.activeTooltipIndex))t.setState(r);else{var u=r.chartX,f=r.chartY,d=r.activeTooltipIndex,p=t.state,h=p.offset,m=p.tooltipTicks;if(!h)return;var g=ft(ft({},h),{},{x:h.left,y:h.top}),y=Math.min(u,g.x+g.width),b=Math.min(f,g.y+g.height),x=m[d]&&m[d].value,O=gt(t.state,t.props.data,d),S=m[d]?{x:"horizontal"===a?m[d].coordinate:y,y:"horizontal"===a?b:m[d].coordinate}:ht;t.setState(ft(ft({},r),{},{activeLabel:x,activeCoordinate:S,activePayload:O}))}else t.setState(ft({dataStartIndex:l,dataEndIndex:c},w({props:t.props,dataStartIndex:l,dataEndIndex:c,updateId:s},t.state)))}},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var o=t.state.updateId;t.setState((function(){return ft({dataStartIndex:n,dataEndIndex:r},w({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:o},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},t.handleMouseEnter=function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var o=ft(ft({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),l()(n)&&n(o,e)}},t.triggeredAfterMouseMove=function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),o=r?ft(ft({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),l()(n)&&n(o,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&l()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),l()(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var n=Object(B.d)(e),r=h()(t.props,"".concat(n));n&&l()(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var o=ft(ft({},r),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),l()(n)&&n(o,e)}},t.handleMouseDown=function(e){var n=t.props.onMouseDown;l()(n)&&n(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var n=t.props.onMouseUp;l()(n)&&n(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Object(le.l)(ae.getTicks(ft(ft(ft({},ae.defaultProps),t),{},{ticks:Object(le.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Object(le.l)(ae.getTicks(ft(ft(ft({},ae.defaultProps),t),{},{ticks:Object(le.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return Object(le.t)(e,!0)},t.renderCursor=function(e){var n=t.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,s=n.offset,l=n.activeTooltipIndex;if(!e||!e.props.cursor||!o||!i)return null;var c,u=t.props.layout,f=j.a;if("ScatterChart"===r)c=i,f=z;else if("BarChart"===r)c=t.getCursorRectangle(),f=H.a;else if("radial"===u){var d=t.getCursorPoints(),p=d.cx,h=d.cy,m=d.radius;c={cx:p,cy:h,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:m,outerRadius:m},f=F.a}else c={points:t.getCursorPoints()},f=j.a;var v=e.key||"_recharts-cursor",g=ft(ft(ft(ft({stroke:"#ccc",pointerEvents:"none"},s),c),Object(M.c)(e.props.cursor)),{},{payload:a,payloadIndex:l,key:v,className:"recharts-tooltip-cursor"});return Object(b.isValidElement)(e.props.cursor)?Object(b.cloneElement)(e.props.cursor,g):Object(b.createElement)(f,g)},t.renderPolarAxis=function(e,n,r){var o=h()(e,"type.axisType"),i=h()(t.state,"".concat(o,"Map"))[e.props["".concat(o,"Id")]];return Object(b.cloneElement)(e,ft(ft({},i),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:Object(le.t)(i,!0)}))},t.renderXAxis=function(e,n,r){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,n,r)},t.renderYAxis=function(e,n,r){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,n,r)},t.renderGrid=function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,l=t.props,c=l.width,u=l.height,f=Object(E.b)(r),d=a()(i,(function(e){return o()(e.domain,mt)}))||Object(E.b)(i),p=e.props||{};return Object(b.cloneElement)(e,{key:e.key||"grid",x:Object(E.g)(p.x)?p.x:s.left,y:Object(E.g)(p.y)?p.y:s.top,width:Object(E.g)(p.width)?p.width:s.width,height:Object(E.g)(p.height)?p.height:s.height,xAxis:f,yAxis:d,offset:s,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var n=e.props.radialLines,r=t.state,o=r.radiusAxisMap,i=r.angleAxisMap,a=Object(E.b)(o),s=Object(E.b)(i),l=s.cx,c=s.cy,u=s.innerRadius,f=s.outerRadius;return Object(b.cloneElement)(e,{polarAngles:Object(le.t)(s,!0).map((function(e){return e.coordinate})),polarRadius:Object(le.t)(a,!0).map((function(e){return e.coordinate})),cx:l,cy:c,innerRadius:u,outerRadius:f,key:e.key||"polar-grid",radialLines:n})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,n=t.props,r=n.children,o=n.width,i=n.height,a=t.props.margin||{},s=o-(a.left||0)-(a.right||0),l=Object(le.p)({children:r,formatedGraphicalItems:e,legendWidth:s,legendContent:p});if(!l)return null;var c=l.item,u=tt(l,["item"]);return Object(b.cloneElement)(c,ft(ft({},u),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,n=Object(B.b)(e,k.a.displayName);if(!n)return null;var r=t.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,l=r.offset;return Object(b.cloneElement)(n,{viewBox:ft(ft({},l),{},{x:l.left,y:l.top}),active:o,label:s,payload:o?a:[],coordinate:i})},t.renderBrush=function(e){var n=t.props,r=n.margin,o=n.data,i=t.state,a=i.offset,s=i.dataStartIndex,l=i.dataEndIndex,c=i.updateId;return Object(b.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(le.d)(t.handleBrushChange,null,e.props.onChange),data:o,x:Object(E.g)(e.props.x)?e.props.x:a.left,y:Object(E.g)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(E.g)(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})},t.renderReferenceElement=function(e,n,r){if(!e)return null;var o=at(t).clipPathId,i=t.state,a=i.xAxisMap,s=i.yAxisMap,l=i.offset,c=e.props,u=c.xAxisId,f=c.yAxisId;return Object(b.cloneElement)(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:s[f],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})},t.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,l=t.item.props,c=l.activeDot,u=ft(ft({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Object(le.q)(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Object(M.c)(c)),Object(M.a)(c));return a.push(f.renderActiveDot(c,u)),r?a.push(f.renderActiveDot(c,ft(ft({},u),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a},t.renderGraphicChild=function(e,n,r){var o=t.filterFormatItem(e,n,r);if(!o)return null;var i=t.state,a=i.isTooltipActive,s=i.tooltipAxis,l=i.activeTooltipIndex,c=i.activeLabel,u=t.props.children,f=Object(B.b)(u,k.a.displayName),d=o.props,p=d.points,h=d.isRange,m=d.baseLine,g=o.item.props,y=g.activeDot,x=!g.hide&&a&&f&&y&&l>=0,w=f&&"click"===f.props.trigger?{onClick:Object(le.d)(t.handleItemMouseEnter,null,o.props.onCLick)}:{onMouseLeave:Object(le.d)(t.handleItemMouseLeave,null,o.props.onMouseLeave),onMouseEnter:Object(le.d)(t.handleItemMouseEnter,null,o.props.onMouseEnter)},O=Object(b.cloneElement)(e,ft(ft({},o.props),w));if(x){var S,_;if(s.dataKey&&!s.allowDuplicatedCategory){var C="function"===typeof s.dataKey?function(e){return"function"===typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());S=Object(E.a)(p,C,c),_=h&&m&&Object(E.a)(m,C,c)}else S=p[l],_=h&&m&&m[l];if(!v()(S))return[O].concat(lt(t.renderActivePoints({item:o,activePoint:S,basePoint:_,childIndex:l,isRange:h})))}return h?[O,null,null]:[O,null]},t.renderCustomized=function(e){return Object(b.cloneElement)(e,ft(ft({},t.props),t.state))},t.uniqueChartId=v()(e.id)?Object(E.j)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=u()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=f,(n=[{key:"componentDidMount",value:function(){v()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){v()(e.syncId)&&!v()(this.props.syncId)&&this.addListener(),!v()(this.props.syncId)&&v()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){v()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(U.b)(this.container),n=Object(U.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==c&&i&&a){var s=Object(E.b)(i).scale,l=Object(E.b)(a).scale,u=s&&s.invert?s.invert(n.chartX):null,f=l&&l.invert?l.invert(n.chartY):null;return ft(ft({},n),{},{xValue:u,yValue:f})}var d=yt(this.state,this.props.data,this.props.layout,r);return d?ft(ft({},n),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,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,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!v()(a.cx)||!v()(a.cy)){if("centric"!==o){var l=a.cx,c=a.cy,u=a.radius,f=a.startAngle,d=a.endAngle;return{points:[Object(Ke.e)(l,c,u,f),Object(Ke.e)(l,c,u,d)],cx:l,cy:c,radius:u,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,m=a.innerRadius,g=a.outerRadius,y=a.angle,b=Object(Ke.e)(p,h,m,y),x=Object(Ke.e)(p,h,g,y);e=b.x,t=b.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{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,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=Object(E.b)(i);return Object(Ke.d)({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Object(B.b)(e,k.a.displayName),n={};return t&&"axis"===c&&(n="click"===t.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),ft(ft({},Object(M.a)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){Qe.on(Ze,this.handleReceiveSyncEvent),Qe.setMaxListeners&&Qe._maxListeners&&Qe.setMaxListeners(Qe._maxListeners+1)}},{key:"removeListener",value:function(){Qe.removeListener(Ze,this.handleReceiveSyncEvent),Qe.setMaxListeners&&Qe._maxListeners&&Qe.setMaxListeners(Qe._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;v()(t)||Qe.emit(Ze,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,u=e.className,f=e.style,d=c(e,["children","width","height","viewBox","className","style"]),p=i||{width:n,height:r,x:0,y:0},h=a()("recharts-surface",u);return o.a.createElement("svg",l({},Object(s.c)(d,!0,!0),{className:h,width:n,height:r,style:f,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),version:"1.1"}),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(286),o=n.n(r),i=n(47),a=o.a.mark(s);function s(e,t){var n,r,s,l,c,u,f;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0!==t){o.next=21;break}n=Object(i.a)(e),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=11;break}if(!(null!=(s=r.value)&&(s=+s)>=s)){o.next=9;break}return o.next=9,s;case 9:o.next=4;break;case 11:o.next=16;break;case 13:o.prev=13,o.t0=o.catch(2),n.e(o.t0);case 16:return o.prev=16,n.f(),o.finish(16);case 19:o.next=40;break;case 21:l=-1,c=Object(i.a)(e),o.prev=23,c.s();case 25:if((u=c.n()).done){o.next=32;break}if(f=u.value,!(null!=(f=t(f,++l,e))&&(f=+f)>=f)){o.next=30;break}return o.next=30,f;case 30:o.next=25;break;case 32:o.next=37;break;case 34:o.prev=34,o.t1=o.catch(23),c.e(o.t1);case 37:return o.prev=37,c.f(),o.finish(37);case 40:case"end":return o.stop()}}),a,null,[[2,13,16,19],[23,34,37,40]])}t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(1),o=n.n(r),i=n(25),a=n.n(i),s=n(16),l=n(35),c=n(7);function u(e){return(u="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;t180),",").concat(+(i>s),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var p=Object(l.e)(t,n,r,i),h=Object(l.e)(t,n,r,s);d+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},x=function(e){!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&&h(e,t)}(l,e);var t,n,r,i=m(l);function l(){return d(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,l=e.cornerRadius,u=e.forceCornerRadius,d=e.cornerIsExternal,p=e.startAngle,h=e.endAngle,m=e.className;if(i0&&Math.abs(p-h)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=Object(c.i)(u-l),d=y({cx:t,cy:n,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:s}),p=d.circleTangency,h=d.lineTangency,m=d.theta,v=y({cx:t,cy:n,radius:o,angle:u,sign:-f,cornerRadius:i,cornerIsExternal:s}),g=v.circleTangency,x=v.lineTangency,w=v.theta,O=s?Math.abs(l-u):Math.abs(l-u)-m-w;if(O<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):b({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:u});var S="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var _=y({cx:t,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=_.circleTangency,C=_.lineTangency,j=_.theta,E=y({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),M=E.circleTangency,P=E.lineTangency,T=E.theta,D=s?Math.abs(l-u):Math.abs(l-u)-j-T;if(D<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(w,x/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:p,endAngle:h}):b({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:p,endAngle:h}),o.a.createElement("path",f({},Object(s.c)(this.props,!0),{className:g,d:v}))}}])&&p(t.prototype,n),r&&p(t,r),l}(r.PureComponent);x.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return be}));var r=n(20),o=n.n(r),i=n(158),a=n.n(i),s=n(1),l=n.n(s),c=n(25),u=n.n(c),f=n(169),d=n(136),p=n.n(d),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),m=2*h;var v={draw:function(e,t){var n=Math.sqrt(t/h);e.moveTo(n,0),e.arc(0,0,n,0,m)}},g={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()}},y=Math.sqrt(1/3),b=2*y,x={draw:function(e,t){var n=Math.sqrt(t/b),r=n*y;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},w={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},O=Math.sin(h/10)/Math.sin(7*h/10),S=Math.sin(m/10)*O,_=-Math.cos(m/10)*O,k={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=S*n,o=_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=m*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},C=Math.sqrt(3),j={draw:function(e,t){var n=-Math.sqrt(t/(3*C));e.moveTo(0,2*n),e.lineTo(-C*n,-n),e.lineTo(C*n,-n),e.closePath()}},E=-.5,M=Math.sqrt(3)/2,P=1/Math.sqrt(12),T=3*(P/2+1),D={draw:function(e,t){var n=Math.sqrt(t/T),r=n/2,o=n*P,i=r,a=n*P+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(E*r-M*o,M*r+E*o),e.lineTo(E*i-M*a,M*i+E*a),e.lineTo(E*s-M*l,M*s+E*l),e.lineTo(E*r+M*o,E*o-M*r),e.lineTo(E*i+M*a,E*a-M*i),e.lineTo(E*s+M*l,E*l-M*s),e.closePath()}},A=n(983),R=n(42),I=n(16);function N(e){return(N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(){return(L=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ge(e){return e.value}function ye(e,t){return!0===e?a()(t,ge):o()(e)?a()(t,e):t}var be=function(e){!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&&de(e,t)}(a,e);var t,n,r,i=pe(a);function a(){var e;ue(this,a);for(var t=arguments.length,n=new Array(t),r=0;r=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=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"===i&&"vertical"===o?{left:((l||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{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"===a?{top:((c||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),le(le({},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,i=t.height,a=t.wrapperStyle,s=t.payloadUniqBy,c=t.payload,u=le(le({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return l.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){if(l.a.isValidElement(e))return l.a.cloneElement(e,t);if(o()(e))return l.a.createElement(e,t);t.ref;var n=ve(t,["ref"]);return l.a.createElement(oe,n)}(n,le(le({},this.props),{},{payload:ye(s,c)})))}}])&&fe(t.prototype,n),r&&fe(t,r),a}(s.PureComponent);be.displayName="Legend",be.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},function(e,t,n){var r=n(195),o=n(346),i=n(143);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){"use strict";var r=n(50),o=n(51),i=(n(8),n(1)),a=n.n(i),s=n(27),l=n.n(s),c=!1,u=n(156),f="unmounted",d="exited",p="entering",h="entered",m="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(u.a.Provider,{value:null},"function"===typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function g(){}v.contextType=u.a,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},v.UNMOUNTED=f,v.EXITED=d,v.ENTERING=p,v.ENTERED=h,v.EXITING=m;t.a=v},,function(e,t,n){var r=n(178),o=n(180);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(237),o=n(502),i=n(503),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(501),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(304)(Object,"create");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(524);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(530);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";e.exports=n(540)},function(e,t,n){"use strict";function r(e,t,n,r,o){return null}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=y,i(b.prototype),s(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},b.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"===typeof btoa?"basic":"auto"});var o=function(e){if("function"===typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},b.prototype.query=function(e){return"string"!==typeof e&&(e=h(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},b.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(o){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(s){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(l){return this.callback(l)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!==typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&g(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send("undefined"===typeof n?null:n)},d.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),u.prototype.del=u.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"===typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=x,d.delete=x,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"===typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryStorage=t.CookieStorage=t.isSupported=t.storage=void 0;var r=a(n(537)),o=a(n(306)),i=a(n(539));function a(e){return e&&e.__esModule?e:{default:e}}var s=null;(0,r.default)("localStorage")?t.storage=s=window.localStorage:(0,r.default)("sessionStorage")?t.storage=s=window.sessionStorage:(0,r.default)("cookieStorage")?t.storage=s=new o.default:t.storage=s=new i.default,t.default=s,t.storage=s,t.isSupported=r.default,t.CookieStorage=o.default,t.MemoryStorage=i.default},function(e,t,n){"use strict";var r=n(1),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(168);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(92),n(4);var r=n(103),o=(n(8),n(119),{xs:0,sm:600,md:960,lg:1280,xl:1920}),i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){function r(t,n){var r,o="undefined"!==typeof(r="undefined"!==typeof n?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:e).document&&r.document.attachEvent;if(!o){var i=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),a=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){if(!(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,u="",f="animationstart",d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=r.document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var m=0;m div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],o=e.createElement("style");o.id="detectElementResize",o.type="text/css",null!=t&&o.setAttribute("nonce",t),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),r.appendChild(o)}}(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='';if(window.trustedTypes){var u=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});e.__resizeTriggers__.innerHTML=u.createHTML("")}else e.__resizeTriggers__.innerHTML=c;e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",l,!0),f&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&s(e)},e.__resizeTriggers__.addEventListener(f,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(f,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(72))},function(e,t,n){"use strict";var r=n(43),o=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(46)).default)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.default=a},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){"use strict";var r=n(1),o=r.createContext();t.a=o},function(e,t,n){var r=n(602),o=n(603),i=n(89),a=n(33),s=n(194);e.exports=function(e,t,n){var l=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},function(e,t,n){"use strict";var r=s(n(791)),o=s(n(795)),i=s(n(370)),a=s(n(368));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return null};r.displayName="Cell"},function(e,t,n){"use strict";var r=n(43),o=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(46)).default)(i.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return r.a})),n.d(t,"scalePoint",(function(){return r.b})),n.d(t,"scaleIdentity",(function(){return a})),n.d(t,"scaleLinear",(function(){return o.a})),n.d(t,"scaleLog",(function(){return b})),n.d(t,"scaleSymlog",(function(){return S})),n.d(t,"scaleOrdinal",(function(){return _.a})),n.d(t,"scaleImplicit",(function(){return _.b})),n.d(t,"scalePow",(function(){return M})),n.d(t,"scaleSqrt",(function(){return P})),n.d(t,"scaleRadial",(function(){return A})),n.d(t,"scaleQuantile",(function(){return U})),n.d(t,"scaleQuantize",(function(){return Y})),n.d(t,"scaleThreshold",(function(){return $})),n.d(t,"scaleTime",(function(){return vn})),n.d(t,"scaleUtc",(function(){return Sn})),n.d(t,"scaleSequential",(function(){return En})),n.d(t,"scaleSequentialLog",(function(){return Mn})),n.d(t,"scaleSequentialPow",(function(){return Tn})),n.d(t,"scaleSequentialSqrt",(function(){return Dn})),n.d(t,"scaleSequentialSymlog",(function(){return Pn})),n.d(t,"scaleSequentialQuantile",(function(){return An})),n.d(t,"scaleDiverging",(function(){return Nn})),n.d(t,"scaleDivergingLog",(function(){return Ln})),n.d(t,"scaleDivergingPow",(function(){return Fn})),n.d(t,"scaleDivergingSqrt",(function(){return Wn})),n.d(t,"scaleDivergingSymlog",(function(){return zn})),n.d(t,"tickFormat",(function(){return Hn.a}));var r=n(276),o=n(62),i=n(137);function a(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=Array.from(t,i.a),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return a(e).unknown(t)},e=arguments.length?Array.from(e,i.a):[0,1],Object(o.b)(n)}var s=n(455),l=n(997);function c(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;p<=h;++p)for(f=1,u=n(p);fc)break;v.push(d)}}else for(;p<=h;++p)for(f=i-1,u=n(p);f>=1;--f)if(!((d=u*f)c)break;v.push(d)}2*v.length=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,s=-1,l=Object(R.a)(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n=c)&&(n=c)}}catch(u){l.e(u)}finally{l.f()}}return n}function N(e,t){var n;if(void 0===t){var r,o=Object(R.a)(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;null!=i&&(n>i||void 0===n&&i>=i)&&(n=i)}}catch(u){o.e(u)}finally{o.f()}}else{var a,s=-1,l=Object(R.a)(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(u){l.e(u)}finally{l.f()}}return n}var L=n(150);function z(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:L.a;r>n;){if(r-n>600){var i=r-n+1,a=t-n+1,s=Math.log(i),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(i-l)/i)*(a-i/2<0?-1:1),u=Math.max(n,Math.floor(t-a*l/i+c)),f=Math.min(r,Math.floor(t+(i-a)*l/i+c));z(e,t,u,f,o)}var d=e[t],p=n,h=r;for(F(e,n,t),o(e[r],d)>0&&F(e,n,r);p0;)--h}0===o(e[n],d)?F(e,n,h):F(e,++h,r),h<=t&&(n=h+1),t<=h&&(r=h-1)}return e}function F(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}var W=n(170);function H(e,t,n){if(r=(e=Float64Array.from(Object(W.b)(e,n))).length){if((t=+t)<=0||r<2)return N(e);if(t>=1)return I(e);var r,o=(r-1)*t,i=Math.floor(o),a=I(z(e,i).subarray(0,i+1));return a+(N(e.subarray(i+1))-a)*(o-i)}}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.a;if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}var V=n(984);function U(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e0?r[o-1]:t[0],o=r?[i[r-1],n]:[i[o-1],i[o]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return Y().domain([t,n]).range(a).unknown(e)},f.b.apply(Object(o.b)(s),arguments)}function $(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Object(V.a)(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(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 $().domain(t).range(n).unknown(e)},f.b.apply(o,arguments)}var q=n(285),K=new Date,X=new Date;function Q(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(a=new Date(+n)),t(n,i),e(n)}while(a=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 K.setTime(+t),X.setTime(+r),e(K),e(X),Math.floor(n(K,X))},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 Z=Q((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()}));Z.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Q((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 J=Z,ee=(Z.range,Q((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()}))),te=ee,ne=(ee.range,1e3),re=6e4,oe=36e5,ie=864e5,ae=6048e5;function se(e){return Q((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-(t.getTimezoneOffset()-e.getTimezoneOffset())*re)/ae}))}var le=se(0),ce=se(1),ue=se(2),fe=se(3),de=se(4),pe=se(5),he=se(6),me=(le.range,ce.range,ue.range,fe.range,de.range,pe.range,he.range,Q((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*re)/ie}),(function(e){return e.getDate()-1}))),ve=me,ge=(me.range,Q((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne-e.getMinutes()*re)}),(function(e,t){e.setTime(+e+t*oe)}),(function(e,t){return(t-e)/oe}),(function(e){return e.getHours()}))),ye=ge,be=(ge.range,Q((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne)}),(function(e,t){e.setTime(+e+t*re)}),(function(e,t){return(t-e)/re}),(function(e){return e.getMinutes()}))),xe=be,we=(be.range,Q((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*ne)}),(function(e,t){return(t-e)/ne}),(function(e){return e.getUTCSeconds()}))),Oe=we,Se=(we.range,Q((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));Se.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Q((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Se:null};var _e=Se;Se.range;function ke(e){return Q((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)/ae}))}var Ce=ke(0),je=ke(1),Ee=ke(2),Me=ke(3),Pe=ke(4),Te=ke(5),De=ke(6),Ae=(Ce.range,je.range,Ee.range,Me.range,Pe.range,Te.range,De.range,Q((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ie}),(function(e){return e.getUTCDate()-1}))),Re=Ae,Ie=(Ae.range,Q((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()})));Ie.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Q((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 Ne=Ie;Ie.range;function Le(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 ze(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 Fe(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var We,He,Be,Ve={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,Ge=/^%/,Ye=/[\\^$*+?|[\]().{}]/g;function $e(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function ot(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 it(e,t,n){var r=Ue.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function at(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function st(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lt(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ct(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ut(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ft(e,t,n){var r=Ue.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dt(e,t,n){var r=Ue.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pt(e,t,n){var r=Ue.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ht(e,t,n){var r=Ge.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function mt(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vt(e,t,n){var r=Ue.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gt(e,t){return $e(e.getDate(),t,2)}function yt(e,t){return $e(e.getHours(),t,2)}function bt(e,t){return $e(e.getHours()%12||12,t,2)}function xt(e,t){return $e(1+ve.count(J(e),e),t,3)}function wt(e,t){return $e(e.getMilliseconds(),t,3)}function Ot(e,t){return wt(e,t)+"000"}function St(e,t){return $e(e.getMonth()+1,t,2)}function _t(e,t){return $e(e.getMinutes(),t,2)}function kt(e,t){return $e(e.getSeconds(),t,2)}function Ct(e){var t=e.getDay();return 0===t?7:t}function jt(e,t){return $e(le.count(J(e)-1,e),t,2)}function Et(e){var t=e.getDay();return t>=4||0===t?de(e):de.ceil(e)}function Mt(e,t){return e=Et(e),$e(de.count(J(e),e)+(4===J(e).getDay()),t,2)}function Pt(e){return e.getDay()}function Tt(e,t){return $e(ce.count(J(e)-1,e),t,2)}function Dt(e,t){return $e(e.getFullYear()%100,t,2)}function At(e,t){return $e((e=Et(e)).getFullYear()%100,t,2)}function Rt(e,t){return $e(e.getFullYear()%1e4,t,4)}function It(e,t){var n=e.getDay();return $e((e=n>=4||0===n?de(e):de.ceil(e)).getFullYear()%1e4,t,4)}function Nt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$e(t/60|0,"0",2)+$e(t%60,"0",2)}function Lt(e,t){return $e(e.getUTCDate(),t,2)}function zt(e,t){return $e(e.getUTCHours(),t,2)}function Ft(e,t){return $e(e.getUTCHours()%12||12,t,2)}function Wt(e,t){return $e(1+Re.count(Ne(e),e),t,3)}function Ht(e,t){return $e(e.getUTCMilliseconds(),t,3)}function Bt(e,t){return Ht(e,t)+"000"}function Vt(e,t){return $e(e.getUTCMonth()+1,t,2)}function Ut(e,t){return $e(e.getUTCMinutes(),t,2)}function Gt(e,t){return $e(e.getUTCSeconds(),t,2)}function Yt(e){var t=e.getUTCDay();return 0===t?7:t}function $t(e,t){return $e(Ce.count(Ne(e)-1,e),t,2)}function qt(e){var t=e.getUTCDay();return t>=4||0===t?Pe(e):Pe.ceil(e)}function Kt(e,t){return e=qt(e),$e(Pe.count(Ne(e),e)+(4===Ne(e).getUTCDay()),t,2)}function Xt(e){return e.getUTCDay()}function Qt(e,t){return $e(je.count(Ne(e)-1,e),t,2)}function Zt(e,t){return $e(e.getUTCFullYear()%100,t,2)}function Jt(e,t){return $e((e=qt(e)).getUTCFullYear()%100,t,2)}function en(e,t){return $e(e.getUTCFullYear()%1e4,t,4)}function tn(e,t){var n=e.getUTCDay();return $e((e=n>=4||0===n?Pe(e):Pe.ceil(e)).getUTCFullYear()%1e4,t,4)}function nn(){return"+0000"}function rn(){return"%"}function on(e){return+e}function an(e){return Math.floor(+e/1e3)}We=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ke(o),u=Xe(o),f=Ke(i),d=Xe(i),p=Ke(a),h=Xe(a),m=Ke(s),v=Xe(s),g=Ke(l),y=Xe(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gt,e:gt,f:Ot,g:At,G:It,H:yt,I:bt,j:xt,L:wt,m:St,M:_t,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:on,s:an,S:kt,u:Ct,U:jt,V:Mt,w:Pt,W:Tt,x:null,X:null,y:Dt,Y:Rt,Z:Nt,"%":rn},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Lt,e:Lt,f:Bt,g:Jt,G:tn,H:zt,I:Ft,j:Wt,L:Ht,m:Vt,M:Ut,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:on,s:an,S:Gt,u:Yt,U:$t,V:Kt,w:Xt,W:Qt,x:null,X:null,y:Zt,Y:en,Z:nn,"%":rn},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(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.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:st,e:st,f:pt,g:rt,G:nt,H:ct,I:ct,j:lt,L:dt,m:at,M:ut,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:it,Q:mt,s:vt,S:ft,u:Ze,U:Je,V:et,w:Qe,W:tt,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:rt,Y:nt,Z:ot,"%":ht};function O(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=ze(Fe(i.y,0,1))).getUTCDay(),r=o>4||0===o?je.ceil(r):je(r),r=Re.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Le(Fe(i.y,0,1))).getDay(),r=o>4||0===o?ce.ceil(r):ce(r),r=ve.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?ze(Fe(i.y,0,1)).getUTCDay():Le(Fe(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ze(i)):Le(i)}}function _(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Ve?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),He=We.format,We.parse,Be=We.utcFormat,We.utcParse;var sn=1e3,ln=6e4,cn=36e5,un=864e5,fn=2592e6,dn=31536e6;function pn(e){return new Date(e)}function hn(e){return e instanceof Date?+e:+new Date(+e)}function mn(e,t,n,r,o,i,a,l,f){var d=Object(u.b)(),p=d.invert,h=d.domain,m=f(".%L"),v=f(":%S"),g=f("%I:%M"),y=f("%I %p"),b=f("%a %d"),x=f("%b %d"),w=f("%B"),O=f("%Y"),S=[[a,1,sn],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,ln],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,cn],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,un],[r,2,1728e5],[n,1,6048e5],[t,1,fn],[t,3,7776e6],[e,1,dn]];function _(s){return(a(s)1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(e).walk((function(e){if("function"===e.type&&l.test(e.value)){var n=r.default.stringify(e.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var s=o.parser.parse(n),c=(0,i.default)(s,t);e.type="word",e.value=(0,a.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default},function(e,t,n){"use strict";var r=n(43),o=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(1)),a=(0,r(n(46)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n(22),o=n.n(r),i=n(20),a=n.n(i),s=n(158),l=n.n(s),c=n(1),u=n.n(c),f=n(84),d=n(25),p=n.n(d),h=n(149),m=n.n(h),v=n(33),g=n.n(v),y=n(7);function b(e){return(b="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 x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nu[n]+o?Math.max(f,u[n]):Math.max(d,u[n])},e}return t=s,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,s=i.payload,c=i.isAnimationActive,d=i.animationDuration,h=i.animationEasing,m=i.filterNull,v=function(e,t){return!0===e?l()(t,G):a()(e)?l()(t,e):t}(i.payloadUniqBy,m&&s&&s.length?s.filter((function(e){return!o()(e.value)})):s),g=v&&v.length,b=this.props,x=b.content,w=b.viewBox,O=b.coordinate,S=b.position,_=b.active,k=N({pointerEvents:"none",visibility:_&&g?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(S&&Object(y.g)(S.x)&&Object(y.g)(S.y))t=S.x,n=S.y;else{var C=this.state,j=C.boxWidth,E=C.boxHeight;j>0&&E>0&&O?(t=this.getTranslate({key:"x",tooltipDimension:j,viewBoxDimension:w.width}),n=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:w.height})):k.visibility="hidden"}k=N(N({},Object(f.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),k),c&&_&&(k=N(N({},Object(f.b)({transition:"transform ".concat(d,"ms ").concat(h)})),k));var M=p()(U,(L(e={},"".concat(U,"-right"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t>=O.x),L(e,"".concat(U,"-left"),Object(y.g)(t)&&O&&Object(y.g)(O.x)&&t=O.y),L(e,"".concat(U,"-top"),Object(y.g)(n)&&O&&Object(y.g)(O.y)&&n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var u,f,d,p=c?null:O.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),f=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,g=m.clientY;u=Math.round(v-h.left),f=Math.round(g-h.top)}if(s)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,_=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(_,2))}e.touches?null===w.current&&(w.current=function(){S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})},x.current=setTimeout((function(){w.current&&(w.current(),w.current=null)}),80)):S({pulsate:o,rippleX:u,rippleY:f,rippleSize:d,cb:n})}}),[a,S]),k=i.useCallback((function(){_({},{pulsate:!0})}),[_]),C=i.useCallback((function(e,t){if(clearTimeout(x.current),"touchend"===e.type&&w.current)return e.persist(),w.current(),w.current=null,void(x.current=setTimeout((function(){C(e,t)})));w.current=null,v((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:k,start:_,stop:C}}),[k,_,C]),i.createElement("span",Object(r.a)({className:Object(s.a)(l.root,c),ref:O},u),i.createElement(p.a,{component:null,exit:!0},h))})),g=Object(u.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(v)),y=i.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,d=e.centerRipple,p=void 0!==d&&d,h=e.children,m=e.classes,v=e.className,y=e.component,b=void 0===y?"button":y,x=e.disabled,w=void 0!==x&&x,O=e.disableRipple,S=void 0!==O&&O,_=e.disableTouchRipple,k=void 0!==_&&_,C=e.focusRipple,j=void 0!==C&&C,E=e.focusVisibleClassName,M=e.onBlur,P=e.onClick,T=e.onFocus,D=e.onFocusVisible,A=e.onKeyDown,R=e.onKeyUp,I=e.onMouseDown,N=e.onMouseLeave,L=e.onMouseUp,z=e.onTouchEnd,F=e.onTouchMove,W=e.onTouchStart,H=e.onDragLeave,B=e.tabIndex,V=void 0===B?0:B,U=e.TouchRippleProps,G=e.type,Y=void 0===G?"button":G,$=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=i.useRef(null);var K=i.useRef(null),X=i.useState(!1),Q=X[0],Z=X[1];w&&Q&&Z(!1);var J=Object(f.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return Object(c.a)((function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),q.current.focus()}}}),[]),i.useEffect((function(){Q&&j&&!S&&K.current.pulsate()}),[S,j,Q]);var oe=re("start",I),ie=re("stop",H),ae=re("stop",L),se=re("stop",(function(e){Q&&e.preventDefault(),N&&N(e)})),le=re("start",W),ce=re("stop",z),ue=re("stop",F),fe=re("stop",(function(e){Q&&(te(e),Z(!1)),M&&M(e)}),!1),de=Object(c.a)((function(e){q.current||(q.current=e.currentTarget),ee(e)&&(Z(!0),D&&D(e)),T&&T(e)})),pe=function(){var e=a.findDOMNode(q.current);return b&&"button"!==b&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),me=Object(c.a)((function(e){j&&!he.current&&Q&&K.current&&" "===e.key&&(he.current=!0,e.persist(),K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),ve=Object(c.a)((function(e){j&&" "===e.key&&K.current&&Q&&!e.defaultPrevented&&(he.current=!1,e.persist(),K.current.stop(e,(function(){K.current.pulsate(e)}))),R&&R(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ge=b;"button"===ge&&$.href&&(ge="a");var ye={};"button"===ge?(ye.type=Y,ye.disabled=w):("a"===ge&&$.href||(ye.role="button"),ye["aria-disabled"]=w);var be=Object(l.a)(u,t),xe=Object(l.a)(ne,q),we=Object(l.a)(be,xe),Oe=i.useState(!1),Se=Oe[0],_e=Oe[1];i.useEffect((function(){_e(!0)}),[]);var ke=Se&&!S&&!w;return i.createElement(ge,Object(r.a)({className:Object(s.a)(m.root,v,Q&&[m.focusVisible,E],w&&m.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:me,onKeyUp:ve,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:ue,onTouchStart:le,ref:we,tabIndex:w?-1:V},ye,$),h,ke?i.createElement(g,Object(r.a)({ref:K,center:p},U)):null)}));t.a=Object(u.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(y)},,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;cs))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,f=!0,d=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u-1},ge.prototype.set=function(e,t){var n=this.__data__,r=Oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(oe||ge),string:new ve}},ye.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Pe(this,e).get(e)},ye.prototype.has=function(e){return Pe(this,e).has(e)},ye.prototype.set=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ge,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var De=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=o}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ue=A?function(e){return function(t){return e(t)}}(A):function(e){return Ve(e)&&He(e.length)&&!!_[Se(e)]};function Ge(e){return null!=(t=e)&&He(t.length)&&!We(t)?we(e):je(e);var t}n.exports=function(e,t){return ke(e,t)}}).call(this,n(72),n(112)(e))},function(e,t,n){"use strict";var r=n(558),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return c({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=p,t.removeClassName=h;var o=n(187),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(559));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(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 l(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(623),o=n(114);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(336),o=n(650);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var r=n(693),o=n(132);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(131)(n(98),"Map");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(710),o=n(717),i=n(719),a=n(720),s=n(721);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(352),o=n(261);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f1)for(var n=1;n-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(101),o=n(275),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(164),o=n(165);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(3),o=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)),i=new Array(o);++r=t||n<0||v&&e-h>=u}function w(){var e=o();if(x(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-p);return v?s(n,u-(e-h)):n}(e))}function O(e){return d=void 0,g&&l?y(e):(l=c=void 0,f)}function S(){var e=o(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(v)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=c=d=void 0},S.flush=function(){return void 0===d?f:O(o())},S}},function(e,t,n){var r=n(113),o=n(114);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){var r=n(248),o=n(594),i=n(596),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,f,d,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),m?y(e):f}function x(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=u}function w(){var e=o();if(x(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-p);return v?s(n,u-(e-h)):n}(e))}function O(e){return d=void 0,g&&l?y(e):(l=c=void 0,f)}function S(){var e=o(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(v)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=c=d=void 0},S.flush=function(){return void 0===d?f:O(o())},S}},function(e,t,n){"use strict";(function(e,r){var o,i=n(387);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(72),n(492)(e))},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(51),a=n(8),s=n.n(a),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var f=o.a.createContext||function(e,t){var n,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):l,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[a]=s.a.object,o),{Provider:f,Consumer:d}};t.a=f}).call(this,n(72))},function(e,t,n){var r=n(549);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,d)s+=d[1];else{var h=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,O="+"===b||"*"===b,S="?"===b||"*"===b,_=n[2]||u,k=g||y;r.push({name:v||i++,prefix:m||"",delimiter:_,optional:S,repeat:O,partial:w,asterisk:!!x,pattern:k?c(k):x?".*":"[^"+l(_)+"]+?"})}}return a=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";var r=n(150);t.a=function(e){var t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=function(t,n){return e(t)-n},n=function(e){return function(t,n){return Object(r.a)(e(t),n)}}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);var a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},function(e,t,n){e.exports=n(681)},function(e,t,n){var r=n(144),o=n(132);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){var r=n(161),o=n(500),i=n(504),a=n(534);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(511),o=n(516);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(177);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cookieOptions=Object.assign({path:"/"},t),l=void 0===t.prefix?l:t.prefix}return r(e,[{key:"getItem",value:function(e){var t=a.default.parse(document.cookie);return t&&t.hasOwnProperty(l+e)?t[l+e]:null}},{key:"setItem",value:function(e,t){return document.cookie=a.default.serialize(l+e,t,this.cookieOptions),t}},{key:"removeItem",value:function(e){var t=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=a.default.serialize(l+e,"",t),null}},{key:"clear",value:function(){var e=a.default.parse(document.cookie);for(var t in e)0===t.indexOf(l)&&this.removeItem(t.substr(l.length));return null}}]),e}();t.default=c},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var O=y&&(c||f&&(null==w||w<12.11)),S=n||a&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,C=function(e,t){var n=e.className,r=_(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return j(e).appendChild(t)}function M(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}m?I=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(I=function(e){try{e.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var $=[""];function q(e){for(;$.length<=e;)$.push(K($)+" ");return $[e]}function K(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var oe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&oe.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return null!=r?r:ce}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,f=[],d=0;d-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ge(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function we(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Oe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){Oe(e),Se(e)}function Ce(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Me,Pe=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Ee){var t=M("span","\u200b");E(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ee?M("span","\u200b"):M("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Me)return Me;var t=E(e,document.createTextNode("A\u062eA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Me=r.right-n.right<3)}var Ae=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Re=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie=function(){var e=M("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ne=null;function Le(e){if(null!=Ne)return Ne;var t=E(e,M("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}var ze={},Fe={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function He(e,t){Fe[e]=t}function Be(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Be(t);var n=ze[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var o=Ue[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Ge(e,t){L(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function $e(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?ot(n,Xe(e,n).text.length):dt(t,Xe(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function pt(e,t){for(var n=[],r=0;r=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,r){var o=[e.state.modeGen],i={};kt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,c=0;n.state=!0,kt(e,t.text,s.mode,n,(function(e,t){for(var n=l;ce&&o.splice(l,1,e,o[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ye(e.doc.mode,r.state),i=vt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new mt(r,!0,t);var i=Ct(e,t,n),a=i>r.first&&Xe(r,i-1).stateAfter,s=a?mt.fromSaved(r,a,i):new mt(r,qe(r.mode),i);return r.iter(i,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ye(e.mode,t.state),n,t.lookAhead):new mt(e,Ye(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Ot=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var o,i,a=e.doc,s=a.mode,l=Xe(a,(t=ft(a,t)).line),c=yt(e,t.line,n),u=new Ke(l.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pose.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,f.pos),f.pos=t.length,l=null):l=_t(wt(n,f,r.state,d),i),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;ca;--s){if(s<=i.first)return i.first;var l=Xe(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ht?c.lookAhead:0)<=i.modeFrontier))return s;var u=z(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}function jt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=Xe(e,r).stateAfter;if(o&&(!(o instanceof ht)||r+o.lookAhead=t:i.to>t);(r||(r=[])).push(new Dt(a,i.from,s?null:i.to))}}return r}function Lt(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var b=0;b0)){var u=[l,1],f=it(c.from,s.from),d=it(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker)}return n}function Xt(e,t,n,r,o){var i=Xe(e,t),a=Mt&&i.markedSpans;if(a)for(var s=0;s=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?it(c.to,n)>=0:it(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?it(c.from,r)<=0:it(c.from,r)<0)))return!0}}}function Qt(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=qt(e);)e=t.find(1,!0).line;return e}function Jt(e){for(var t,n;t=qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Xe(e,t),r=Qt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!nn(e,r))return t;for(;n=qt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Bt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Bt(e,n);var o=r?r(e):1;o!=e.height&&Je(e,o)}function un(e){e.parent=null,Ht(e)}ln.prototype.lineNo=function(){return et(this)},we(ln);var fn={},dn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,De(e.display.measure)&&(a=de(i,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],xn(i,r,gt(e,i,t!=e.display.externalMeasured&&et(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=R(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=R(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function mn(e){var t=M("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,o,i,l){if(t){var c,u=e.splitSpaces?gn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){c=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var v=document.createTextNode(u.slice(p,p+m));a&&s<9?c.appendChild(M("span",[v])):c.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=c.appendChild(M("span",q(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=c.appendChild(M("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(M("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||d||i||l){var x=n||"";r&&(x+=r),o&&(x+=o);var w=M("span",[c],x,i);if(l)for(var O in l)l.hasOwnProperty(O)&&"style"!=O&&"class"!=O&&w.setAttribute(O,l[O]);return e.content.appendChild(w)}e.content.appendChild(c)}}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;oc&&f.from<=c);d++);if(f.to>=u)return e(n,r,o,i,a,s,l);e(n,r.slice(0,f.to-c),o,i,null,s,l),i=null,r=r.slice(f.to-c),c=f.to}}}function bn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,c,u,f,d,p=o.length,h=0,m=1,v="",g=0;;){if(g==h){l=c=u=s="",d=null,f=null,g=1/0;for(var y=[],b=void 0,x=0;xh||O.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,c=""),O.className&&(l+=" "+O.className),O.css&&(s=(s?s+";":"")+O.css),O.startStyle&&w.from==h&&(u+=" "+O.startStyle),O.endStyle&&w.to==g&&(b||(b=[])).push(O.endStyle,w.to),O.title&&((d||(d={})).title=O.title),O.attributes)for(var S in O.attributes)(d||(d={}))[S]=O.attributes[S];O.collapsed&&(!f||Gt(f.marker,O)<0)&&(f=w)}else w.from>h&&g>w.from&&(g=w.from)}if(b)for(var _=0;_=p)break;for(var C=Math.min(p,g);;){if(v){var j=h+v.length;if(!f){var E=j>C?v.slice(0,C-h):v;t.addToken(t,E,a?a+l:l,u,h+E.length==g?c:"",s,d)}if(j>=C){v=v.slice(C-h),h=C;break}h=j,u=""}v=o.slice(i,i=n[m++]),a=pn(n[m++],t.cm.options)}}else for(var M=1;M2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Zn(e,t){var n=et(t=Qt(t)),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var o=r.built=hn(e,r);return r.text=o.pre,E(e.display.lineMeasure,o.pre),r}function Jn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function sr(e,t,n,r){var o,i=ir(t.map,n,r),l=i.node,c=i.start,u=i.end,f=i.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&ie(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u0&&(f=r="right"),o=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Mr(e.display),top:h.top,bottom:h.bottom}:or}for(var m=o.top-t.rect.top,v=o.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=ue(s,l,c),d=ce,p=u(l,f,"before"==c);return null!=d&&(p.other=u(l,d,"before"!=c)),p}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=Xe(e.doc,t.line),o=on(r)+Un(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function xr(e,t,n,r,o){var i=ot(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var o=tt(r,n),i=r.first+r.size-1;if(o>i)return xr(r.first+r.size-1,Xe(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,o);;){var s=kr(e,a,o,t,n),l=Kt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=Xe(r,o=c.line)}}function Or(e,t,n,r){r-=hr(t);var o=t.text.length,i=se((function(t){return nr(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=se((function(t){return nr(e,n,t).top>r}),i,o)}}function Sr(e,t,n,r){return n||(n=tr(e,t)),Or(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function _r(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function kr(e,t,n,r,o){o-=on(t);var i=tr(e,t),a=hr(t),s=0,l=t.text.length,c=!0,u=de(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?jr:Cr)(e,t,n,i,u,r,o);s=(c=1!=f.level)?f.from:f.to-1,l=c?f.to:f.from-1}var d,p,h=null,m=null,v=se((function(t){var n=nr(e,i,t);return n.top+=a,n.bottom+=a,!!_r(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left=x.bottom?1:0}return xr(n,v=ae(t.text,v,1),p,g,r-d)}function Cr(e,t,n,r,o,i,a){var s=se((function(s){var l=o[s],c=1!=l.level;return _r(yr(e,ot(n,c?l.to:l.from,c?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=yr(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,r);_r(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function jr(e,t,n,r,o,i,a){var s=Or(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,d=0;d=c||p.to<=l)){var h=nr(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(u=p,f=m)}}return u||(u=o[o.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Er(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(M("br"));rr.appendChild(document.createTextNode("x"))}E(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Pr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:Tr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Tr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dr(e){var t=Er(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(o){if(nn(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=z(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((i-Yn(e.display).left)/Mr(e.display))-u))}return c}function Ir(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Mt&&en(e.doc,t)o.viewFrom?zr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)zr(e);else if(t<=o.viewFrom){var i=Fr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):zr(e)}else if(n>=o.viewTo){var a=Fr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):zr(e)}else{var s=Fr(e,t,t,-1),l=Fr(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(On(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):zr(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[Ir(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,n)&&a.push(n)}}}function zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var o,i=Ir(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;en(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=On(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=On(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Qr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Xr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Qr(e))}),100)}function Xr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,A(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),$r(e))}function Qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Je(o.line,l),Jr(o.line),o.rest))for(var p=0;pe.display.sizerWidth){var h=Math.ceil(c/Mr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function Jr(e){if(e.widgets)for(var t=0;t=a&&(i=tt(t,on(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function to(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var i=M("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Un(e.display))+"px;\n height: "+(t.bottom-t.top+$n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function no(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=yr(e,t),l=n&&n!=t?yr(e,n):s,c=oo(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(fo(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(ho(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function ro(e,t){var n=oo(e,t);null!=n.scrollTop&&fo(e,n.scrollTop),null!=n.scrollLeft&&ho(e,n.scrollLeft)}function oo(e,t){var n=e.display,r=Er(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Kn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Gn(n),l=t.tops-r;if(t.topo+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=o&&(a.scrollTop=u)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function io(e,t){null!=t&&(co(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ao(e){co(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function so(e,t,n){null==t&&null==n||co(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function lo(e,t){co(e),e.curOp.scrollToPos=t}function co(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,uo(e,br(e,t.from),br(e,t.to),t.margin))}function uo(e,t,n,r){var o=oo(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});so(e,o.scrollLeft,o.scrollTop)}function fo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vo(e,{top:t}),po(e,t,!0),n&&Vo(e),Io(e,100))}function po(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ho(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,$o(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+$n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var vo=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},vo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vo.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},vo.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},vo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var go=function(){};function yo(e,t){t||(t=mo(e));var n=e.display.barWidth,r=e.display.barHeight;bo(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bo(e,mo(e)),n=e.display.barWidth,r=e.display.barHeight}function bo(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}go.prototype.update=function(){return{bottom:0,right:0}},go.prototype.setScrollLeft=function(){},go.prototype.setScrollTop=function(){},go.prototype.clear=function(){};var xo={native:vo,null:go};function wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xo[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?ho(e,t):fo(e,t)}),e),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)}var Oo=0;function So(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo},_n(e.curOp)}function _o(e){var t=e.curOp;t&&Cn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Lo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function jo(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function Eo(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=mo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Jn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+$n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Mo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Ye(t.mode,r.state):null,l=vt(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!f&&dn)return Io(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&To(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;qo(e)&&(zr(e),t.dims=Pr(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Mt&&(i=en(e.doc,i),a=tn(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,i,a),n.viewOffset=on(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Fo(e);return l>4&&(n.lineDiv.style.display="none"),Uo(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wo(c),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Io(e,400)),n.updateLineNumbers=null,!0}function Bo(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=qn(e))r&&(t.visible=eo(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-Kn(e),n.top)}),t.visible=eo(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ho(e,t))break;Zr(e);var o=mo(e);Br(e),yo(e,o),Yo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vo(e,t){var n=new Lo(e,t);if(Ho(e,n)){Zr(e),Bo(e,n);var r=mo(e);Br(e),yo(e,r),Yo(e,r),n.finish()}}function Uo(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,f=0;f-1&&(p=!1),Pn(e,d,u,n)),p&&(j(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=d.node.nextSibling}else{var h=zn(e,d,u,n);i.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}function Go(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Yo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+$n(e)+"px"}function $o(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Tr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(o&&c||i&&u){if(i&&y&&l)e:for(var d=t.target,p=a.view;d!=s;d=d.parentNode)for(var h=0;h=0&&it(e,r.to())<=0)return n}return-1};var ii=function(e,t){this.anchor=e,this.head=t};function ai(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return it(e.from(),t.from())})),n=W(t,o);for(var i=1;i0:l>=0){var c=ct(s.from(),a.from()),u=lt(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new ii(f?u:c,f?c:u))}}return new oi(t,n)}function si(e,t){return new oi([new ii(e,t||e)],0)}function li(e){return e.text?ot(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ci(e,t){if(it(e,t.from)<0)return e;if(it(e,t.to)<=0)return li(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=li(t).ch-t.to.ch),ot(n,r)}function ui(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}En(e,"change",e,t)}function gi(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function ki(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=_i(o,o.lastOp==r)))a=K(i.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=li(t):i.changes.push(Oi(e,t));else{var l=K(o.done);for(l&&l.ranges||Ei(e.sel,o.done),i={changes:[Oi(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function Ci(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ji(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Ci(e,i,K(o.done),t))?o.done[o.done.length-1]=t:Ei(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Si(o.undone)}function Ei(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Mi(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Pi(e){if(!e)return null;for(var t,n=0;n-1&&(K(s)[f]=c[f],delete c[f])}}}return r}function Ri(e,t,n,r){if(r){var o=e.anchor;if(n){var i=it(t,o)<0;i!=it(n,o)<0?(o=t,t=n):i!=it(t,n)<0&&(t=n)}return new ii(o,t)}return new ii(n||t,t)}function Ii(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new oi([Ri(e.sel.primary(),t,n,o)],0),r)}function Ni(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(ge(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(f=qi(e,f,-r,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=it(f,n))&&(r<0?d<0:d>0))return Yi(e,f,t,r,o)}var p=l.find(r<0?-1:1);return(r<0?c:u)&&(p=qi(e,p,r,p.line==t.line?i:null)),p?Yi(e,p,t,r,o):null}}return t}function $i(e,t,n,r,o){var i=r||1,a=Yi(e,t,n,i,o)||!o&&Yi(e,t,n,i,!0)||Yi(e,t,n,-i,o)||!o&&Yi(e,t,n,-i,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function qi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line=0;--o)Zi(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Zi(e,t)}}function Zi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var n=ui(e,t);ki(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,zt(e,t));var r=[];gi(e,(function(e,n){n||-1!=W(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,zt(e,t))}))}}function Ji(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c=0;--p){var h=d(p);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new oi(X(e.sel.ranges,(function(e){return new ii(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:ot(i,Xe(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=ui(e,t)),e.cm?na(e.cm,t,r):vi(e,t,r),Bi(e,n,V),e.cantEdit&&$i(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=et(Qt(Xe(r,i.line))),r.iter(l,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vi(r,t,n,Dr(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,(function(e){var t=an(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),jt(r,i.line),Io(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?Nr(e):i.line!=a.line||1!=t.text.length||mi(e.doc,t)?Nr(e,i.line,a.line+1,c):Lr(e,i.line,"text");var u=xe(e,"changes"),f=xe(e,"change");if(f||u){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&En(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,r,o){var i;r||(r=n),it(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),Qi(e,{from:n,to:r,text:t,origin:o})}function oa(e,t,n,r){n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=P("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Xt(e,t.line,t,n,i)||t.line!=n.line&&Xt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt()}i.addToHistory&&ki(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&i.collapsed&&!c.options.lineWrapping&&Qt(e)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&Je(e,0),It(e,new Dt(i,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Je(t,0)})),i.clearOnEnter&&he(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++pa,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)Nr(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)Lr(c,u,"text");i.atomic&&Ui(c.doc),En(c,"markerAdded",c,i)}return i}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&So(e),xe(this,"clear")){var n=this.find();n&&En(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Nr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ui(e.doc)),e&&En(e,"markerCleared",e,this,r,o),t&&_o(e),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;l--)Qi(this,r[l]);s?Wi(this,s):this.cm&&ao(this.cm)})),undo:Ro((function(){Ji(this,"undo")})),redo:Ro((function(){Ji(this,"redo")})),undoSelection:Ro((function(){Ji(this,"undo",!0)})),redoSelection:Ro((function(){Ji(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Bi(t.doc,si(n,n)),d)for(var p=0;p=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ao(e)}))}function Ya(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function $a(e,t,n){var r=Ya(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function qa(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=de(n,t.doc.direction);if(i){var a,s=o<0?K(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=tr(t,n);a=o<0?n.text.length-1:0;var u=nr(t,c,a).top;a=se((function(e){return nr(t,c,e).top==u}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=o<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,o<0?n.text.length:0,o<0?"before":"after")}function Ka(e,t,n,r){var o=de(t,e.doc.direction);if(!o)return $a(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ue(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from