pulse-dashboard
Version:
A Next.js Dashboard application for real-time monitoring and historical analysis of Playwright test executions, based on playwright-pulse-report. This component provides the UI for visualizing Playwright test results and can be run as a standalone CLI too
1 lines • 457 kB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15288,t=>{"use strict";var e=t.i(43476),r=t.i(71645),n=t.i(75157);let o=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",t),...r}));o.displayName="Card";let i=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...r}));i.displayName="CardHeader";let a=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",t),...r}));a.displayName="CardTitle";let u=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("text-sm text-muted-foreground",t),...r}));u.displayName="CardDescription";let l=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("p-6 pt-0",t),...r}));l.displayName="CardContent",r.forwardRef(({className:t,...r},o)=>(0,e.jsx)("div",{ref:o,className:(0,n.cn)("flex items-center p-6 pt-0",t),...r})).displayName="CardFooter",t.s(["Card",()=>o,"CardContent",()=>l,"CardDescription",()=>u,"CardHeader",()=>i,"CardTitle",()=>a])},19455,t=>{"use strict";var e=t.i(43476),r=t.i(71645),n=t.i(91918),o=t.i(25913),i=t.i(75157);let a=(0,o.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),u=r.forwardRef(({className:t,variant:r,size:o,asChild:u=!1,...l},c)=>{let s=u?n.Slot:"button";return(0,e.jsx)(s,{className:(0,i.cn)(a({variant:r,size:o,className:t})),ref:c,...l})});u.displayName="Button",t.s(["Button",()=>u])},70152,t=>{"use strict";function e(t,[e,r]){return Math.min(r,Math.max(e,t))}t.s(["clamp",()=>e])},86318,t=>{"use strict";var e=t.i(71645);t.i(43476);var r=e.createContext(void 0);function n(t){let n=e.useContext(r);return t||n||"ltr"}t.s(["useDirection",()=>n])},3536,65491,t=>{"use strict";let e;var r=t.i(71645),n=0;function o(){r.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??i()),document.body.insertAdjacentElement("beforeend",t[1]??i()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),n--}},[])}function i(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}t.s(["useFocusGuards",()=>o],3536);var a=t.i(20783),u=t.i(48425),l=t.i(30207),c=t.i(43476),s="focusScope.autoFocusOnMount",f="focusScope.autoFocusOnUnmount",p={bubbles:!1,cancelable:!0},d=r.forwardRef((t,e)=>{let{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:d,...b}=t,[g,x]=r.useState(null),w=(0,l.useCallbackRef)(i),O=(0,l.useCallbackRef)(d),S=r.useRef(null),j=(0,a.useComposedRefs)(e,t=>x(t)),E=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(o){let t=function(t){if(E.paused||!g)return;let e=t.target;g.contains(e)?S.current=e:v(S.current,{select:!0})},e=function(t){if(E.paused||!g)return;let e=t.relatedTarget;null!==e&&(g.contains(e)||v(S.current,{select:!0}))};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let r=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&v(g)});return g&&r.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),r.disconnect()}}},[o,g,E.paused]),r.useEffect(()=>{if(g){m.add(E);let t=document.activeElement;if(!g.contains(t)){let e=new CustomEvent(s,p);g.addEventListener(s,w),g.dispatchEvent(e),e.defaultPrevented||(function(t,{select:e=!1}={}){let r=document.activeElement;for(let n of t)if(v(n,{select:e}),document.activeElement!==r)return}(h(g).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&v(g))}return()=>{g.removeEventListener(s,w),setTimeout(()=>{let e=new CustomEvent(f,p);g.addEventListener(f,O),g.dispatchEvent(e),e.defaultPrevented||v(t??document.body,{select:!0}),g.removeEventListener(f,O),m.remove(E)},0)}}},[g,w,O,E]);let P=r.useCallback(t=>{if(!n&&!o||E.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,r=document.activeElement;if(e&&r){var i;let e,o=t.currentTarget,[a,u]=[y(e=h(i=o),i),y(e.reverse(),i)];a&&u?t.shiftKey||r!==u?t.shiftKey&&r===a&&(t.preventDefault(),n&&v(u,{select:!0})):(t.preventDefault(),n&&v(a,{select:!0})):r===o&&t.preventDefault()}},[n,o,E.paused]);return(0,c.jsx)(u.Primitive.div,{tabIndex:-1,...b,ref:j,onKeyDown:P})});function h(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function y(t,e){for(let r of t)if(!function(t,{upTo:e}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===e||t!==e);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(r,{upTo:e}))return r}function v(t,{select:e=!1}={}){if(t&&t.focus){var r;let n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&(r=t)instanceof HTMLInputElement&&"select"in r&&e&&t.select()}}d.displayName="FocusScope";var m=(e=[],{add(t){let r=e[0];t!==r&&r?.pause(),(e=b(e,t)).unshift(t)},remove(t){e=b(e,t),e[0]?.resume()}});function b(t,e){let r=[...t],n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}t.s(["FocusScope",()=>d],65491)},10772,t=>{"use strict";var e=t.i(71645),r=t.i(34620),n=e["useId".toString()]||(()=>void 0),o=0;function i(t){let[i,a]=e.useState(n());return(0,r.useLayoutEffect)(()=>{t||a(t=>t??String(o++))},[t]),t||(i?`radix-${i}`:"")}t.s(["useId",()=>i])},29402,35804,53660,99682,86312,85369,43531,t=>{"use strict";var e,r,n,o,i,a,u,l=t.i(71645),c=t.i(74080),s=t.i(70152),f=t.i(81140),p=t.i(75830),d=t.i(20783),h=t.i(30030),y=t.i(86318),v=t.i(26330),m=t.i(3536),b=t.i(65491),g=t.i(10772);let x=["top","right","bottom","left"],w=Math.min,O=Math.max,S=Math.round,j=Math.floor,E=t=>({x:t,y:t}),P={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function k(t,e){return"function"==typeof t?t(e):t}function T(t){return t.split("-")[0]}function M(t){return t.split("-")[1]}function C(t){return"x"===t?"y":"x"}function _(t){return"y"===t?"height":"width"}function N(t){return["top","bottom"].includes(T(t))?"y":"x"}function D(t){return t.replace(/start|end/g,t=>A[t])}function I(t){return t.replace(/left|right|bottom|top/g,t=>P[t])}function R(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function B(t){let{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function L(t,e,r){let n,{reference:o,floating:i}=t,a=N(e),u=C(N(e)),l=_(u),c=T(e),s="y"===a,f=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;switch(c){case"top":n={x:f,y:o.y-i.height};break;case"bottom":n={x:f,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:p};break;case"left":n={x:o.x-i.width,y:p};break;default:n={x:o.x,y:o.y}}switch(M(e)){case"start":n[u]-=d*(r&&s?-1:1);break;case"end":n[u]+=d*(r&&s?-1:1)}return n}let z=async(t,e,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,u=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(e)),c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:s,y:f}=L(c,n,l),p=n,d={},h=0;for(let r=0;r<u.length;r++){let{name:i,fn:y}=u[r],{x:v,y:m,data:b,reset:g}=await y({x:s,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});s=null!=v?v:s,f=null!=m?m:f,d={...d,[i]:{...d[i],...b}},g&&h<=50&&(h++,"object"==typeof g&&(g.placement&&(p=g.placement),g.rects&&(c=!0===g.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):g.rects),{x:s,y:f}=L(c,p,l)),r=-1)}return{x:s,y:f,placement:p,strategy:o,middlewareData:d}};async function F(t,e){var r;void 0===e&&(e={});let{x:n,y:o,platform:i,rects:a,elements:u,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=k(e,t),h=R(d),y=u[p?"floating"===f?"reference":"floating":f],v=B(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(y)))||r?y:y.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:s,strategy:l})),m="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),g=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=B(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:m,offsetParent:b,strategy:l}):m);return{top:(v.top-x.top+h.top)/g.y,bottom:(x.bottom-v.bottom+h.bottom)/g.y,left:(v.left-x.left+h.left)/g.x,right:(x.right-v.right+h.right)/g.x}}function U(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function $(t){return x.some(e=>t[e]>=0)}async function H(t,e){let{placement:r,platform:n,elements:o}=t,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=T(r),u=M(r),l="y"===N(r),c=["left","top"].includes(a)?-1:1,s=i&&l?-1:1,f=k(e,t),{mainAxis:p,crossAxis:d,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof h&&(d="end"===u?-1*h:h),l?{x:d*s,y:p*c}:{x:p*c,y:d*s}}function W(){return"undefined"!=typeof window}function q(t){return G(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function X(t){var e;return null==(e=(G(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function G(t){return!!W()&&(t instanceof Node||t instanceof V(t).Node)}function K(t){return!!W()&&(t instanceof Element||t instanceof V(t).Element)}function Y(t){return!!W()&&(t instanceof HTMLElement||t instanceof V(t).HTMLElement)}function Z(t){return!!W()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof V(t).ShadowRoot)}function J(t){let{overflow:e,overflowX:r,overflowY:n,display:o}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function Q(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function tt(t){let e=te(),r=K(t)?tn(t):t;return["transform","translate","scale","rotate","perspective"].some(t=>!!r[t]&&"none"!==r[t])||!!r.containerType&&"normal"!==r.containerType||!e&&!!r.backdropFilter&&"none"!==r.backdropFilter||!e&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(t=>(r.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(r.contain||"").includes(t))}function te(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function tr(t){return["html","body","#document"].includes(q(t))}function tn(t){return V(t).getComputedStyle(t)}function to(t){return K(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ti(t){if("html"===q(t))return t;let e=t.assignedSlot||t.parentNode||Z(t)&&t.host||X(t);return Z(e)?e.host:e}function ta(t,e,r){var n;void 0===e&&(e=[]),void 0===r&&(r=!0);let o=function t(e){let r=ti(e);return tr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Y(r)&&J(r)?r:t(r)}(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),a=V(o);if(i){let t=tu(a);return e.concat(a,a.visualViewport||[],J(o)?o:[],t&&r?ta(t):[])}return e.concat(o,ta(o,[],r))}function tu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tl(t){let e=tn(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=Y(t),i=o?t.offsetWidth:r,a=o?t.offsetHeight:n,u=S(r)!==i||S(n)!==a;return u&&(r=i,n=a),{width:r,height:n,$:u}}function tc(t){return K(t)?t:t.contextElement}function ts(t){let e=tc(t);if(!Y(e))return E(1);let r=e.getBoundingClientRect(),{width:n,height:o,$:i}=tl(e),a=(i?S(r.width):r.width)/n,u=(i?S(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let tf=E(0);function tp(t){let e=V(t);return te()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tf}function td(t,e,r,n){var o;void 0===e&&(e=!1),void 0===r&&(r=!1);let i=t.getBoundingClientRect(),a=tc(t),u=E(1);e&&(n?K(n)&&(u=ts(n)):u=ts(t));let l=(void 0===(o=r)&&(o=!1),n&&(!o||n===V(a))&&o)?tp(a):E(0),c=(i.left+l.x)/u.x,s=(i.top+l.y)/u.y,f=i.width/u.x,p=i.height/u.y;if(a){let t=V(a),e=n&&K(n)?V(n):n,r=t,o=tu(r);for(;o&&n&&e!==r;){let t=ts(o),e=o.getBoundingClientRect(),n=tn(o),i=e.left+(o.clientLeft+parseFloat(n.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(n.paddingTop))*t.y;c*=t.x,s*=t.y,f*=t.x,p*=t.y,c+=i,s+=a,o=tu(r=V(o))}}return B({width:f,height:p,x:c,y:s})}function th(t,e){let r=to(t).scrollLeft;return e?e.left+r:td(X(t)).left+r}function ty(t,e,r){void 0===r&&(r=!1);let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-(r?0:th(t,n)),y:n.top+e.scrollTop}}function tv(t,e,r){var n;let o;if("viewport"===e)o=function(t,e){let r=V(t),n=X(t),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,u=0,l=0;if(o){i=o.width,a=o.height;let t=te();(!t||t&&"fixed"===e)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:u,y:l}}(t,r);else if("document"===e){let e,r,i,a,u,l,c;n=X(t),e=X(n),r=to(n),i=n.ownerDocument.body,a=O(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),u=O(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),l=-r.scrollLeft+th(n),c=-r.scrollTop,"rtl"===tn(i).direction&&(l+=O(e.clientWidth,i.clientWidth)-a),o={width:a,height:u,x:l,y:c}}else if(K(e)){let t,n,i,a,u,l;n=(t=td(e,!0,"fixed"===r)).top+e.clientTop,i=t.left+e.clientLeft,a=Y(e)?ts(e):E(1),u=e.clientWidth*a.x,l=e.clientHeight*a.y,o={width:u,height:l,x:i*a.x,y:n*a.y}}else{let r=tp(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return B(o)}function tm(t){return"static"===tn(t).position}function tb(t,e){if(!Y(t)||"fixed"===tn(t).position)return null;if(e)return e(t);let r=t.offsetParent;return X(t)===r&&(r=r.ownerDocument.body),r}function tg(t,e){let r=V(t);if(Q(t))return r;if(!Y(t)){let e=ti(t);for(;e&&!tr(e);){if(K(e)&&!tm(e))return e;e=ti(e)}return r}let n=tb(t,e);for(;n&&["table","td","th"].includes(q(n))&&tm(n);)n=tb(n,e);return n&&tr(n)&&tm(n)&&!tt(n)?r:n||function(t){let e=ti(t);for(;Y(e)&&!tr(e);){if(tt(e))return e;if(Q(e))break;e=ti(e)}return null}(t)||r}let tx=async function(t){let e=this.getOffsetParent||tg,r=this.getDimensions,n=await r(t.floating);return{reference:function(t,e,r){let n=Y(e),o=X(e),i="fixed"===r,a=td(t,!0,i,e),u={scrollLeft:0,scrollTop:0},l=E(0);if(n||!n&&!i)if(("body"!==q(e)||J(o))&&(u=to(e)),n){let t=td(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=th(o));let c=!o||n||i?E(0):ty(o,u);return{x:a.left+u.scrollLeft-l.x-c.x,y:a.top+u.scrollTop-l.y-c.y,width:a.width,height:a.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tw={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t,i="fixed"===o,a=X(n),u=!!e&&Q(e.floating);if(n===a||u&&i)return r;let l={scrollLeft:0,scrollTop:0},c=E(1),s=E(0),f=Y(n);if((f||!f&&!i)&&(("body"!==q(n)||J(a))&&(l=to(n)),Y(n))){let t=td(n);c=ts(n),s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}let p=!a||f||i?E(0):ty(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+s.x+p.x,y:r.y*c.y-l.scrollTop*c.y+s.y+p.y}},getDocumentElement:X,getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t,i=[..."clippingAncestors"===r?Q(e)?[]:function(t,e){let r=e.get(t);if(r)return r;let n=ta(t,[],!1).filter(t=>K(t)&&"body"!==q(t)),o=null,i="fixed"===tn(t).position,a=i?ti(t):t;for(;K(a)&&!tr(a);){let e=tn(a),r=tt(a);r||"fixed"!==e.position||(o=null),(i?!r&&!o:!r&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||J(a)&&!r&&function t(e,r){let n=ti(e);return!(n===r||!K(n)||tr(n))&&("fixed"===tn(n).position||t(n,r))}(t,a))?n=n.filter(t=>t!==a):o=e,a=ti(a)}return e.set(t,n),n}(e,this._c):[].concat(r),n],a=i[0],u=i.reduce((t,r)=>{let n=tv(e,r,o);return t.top=O(n.top,t.top),t.right=w(n.right,t.right),t.bottom=w(n.bottom,t.bottom),t.left=O(n.left,t.left),t},tv(e,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:tg,getElementRects:tx,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:r}=tl(t);return{width:e,height:r}},getScale:ts,isElement:K,isRTL:function(t){return"rtl"===tn(t).direction}};function tO(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let tS=t=>({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:o,rects:i,platform:a,elements:u,middlewareData:l}=e,{element:c,padding:s=0}=k(t,e)||{};if(null==c)return{};let f=R(s),p={x:r,y:n},d=C(N(o)),h=_(d),y=await a.getDimensions(c),v="y"===d,m=v?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[d]-p[d]-i.floating[h],g=p[d]-i.reference[d],x=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),S=x?x[m]:0;S&&await (null==a.isElement?void 0:a.isElement(x))||(S=u.floating[m]||i.floating[h]);let j=S/2-y[h]/2-1,E=w(f[v?"top":"left"],j),P=w(f[v?"bottom":"right"],j),A=S-y[h]-P,T=S/2-y[h]/2+(b/2-g/2),D=O(E,w(T,A)),I=!l.arrow&&null!=M(o)&&T!==D&&i.reference[h]/2-(T<E?E:P)-y[h]/2<0,B=I?T<E?T-E:T-A:0;return{[d]:p[d]+B,data:{[d]:D,centerOffset:T-D-B,...I&&{alignmentOffset:B}},reset:I}}});var tj="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function tE(t,e){let r,n,o;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!==e.length)return!1;for(n=r;0!=n--;)if(!tE(t[n],e[n]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(e,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!t.$$typeof)&&!tE(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}function tP(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tA(t,e){let r=tP(t);return Math.round(e*r)/r}function tk(t){let e=l.useRef(t);return tj(()=>{e.current=t}),e}var tT=t.i(48425),tM=t.i(43476),tC=l.forwardRef((t,e)=>{let{children:r,width:n=10,height:o=5,...i}=t;return(0,tM.jsx)(tT.Primitive.svg,{...i,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,tM.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tC.displayName="Arrow";var t_=t.i(30207),tN=t.i(34620);function tD(t){let[e,r]=l.useState(void 0);return(0,tN.useLayoutEffect)(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let n,o;if(!Array.isArray(e)||!e.length)return;let i=e[0];if("borderBoxSize"in i){let t=i.borderBoxSize,e=Array.isArray(t)?t[0]:t;n=e.inlineSize,o=e.blockSize}else n=t.offsetWidth,o=t.offsetHeight;r({width:n,height:o})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),e}t.s(["useSize",()=>tD],35804);var tI="Popper",[tR,tB]=(0,h.createContextScope)(tI),[tL,tz]=tR(tI),tF=t=>{let{__scopePopper:e,children:r}=t,[n,o]=l.useState(null);return(0,tM.jsx)(tL,{scope:e,anchor:n,onAnchorChange:o,children:r})};tF.displayName=tI;var tU="PopperAnchor",t$=l.forwardRef((t,e)=>{let{__scopePopper:r,virtualRef:n,...o}=t,i=tz(tU,r),a=l.useRef(null),u=(0,d.useComposedRefs)(e,a);return l.useEffect(()=>{i.onAnchorChange(n?.current||a.current)}),n?null:(0,tM.jsx)(tT.Primitive.div,{...o,ref:u})});t$.displayName=tU;var tH="PopperContent",[tW,tq]=tR(tH),tV=l.forwardRef((t,e)=>{var r,n,o,i,a,u,s,f,p,h,y,v,m,b,g,x,S,E,P,A,R;let{__scopePopper:B,side:L="bottom",sideOffset:W=0,align:q="center",alignOffset:V=0,arrowPadding:G=0,avoidCollisions:K=!0,collisionBoundary:Y=[],collisionPadding:Z=0,sticky:J="partial",hideWhenDetached:Q=!1,updatePositionStrategy:tt="optimized",onPlaced:te,...tr}=t,tn=tz(tH,B),[to,ti]=l.useState(null),tu=(0,d.useComposedRefs)(e,t=>ti(t)),[tl,ts]=l.useState(null),tf=tD(tl),tp=tf?.width??0,th=tf?.height??0,ty="number"==typeof Z?Z:{top:0,right:0,bottom:0,left:0,...Z},tv=Array.isArray(Y)?Y:[Y],tm=tv.length>0,tb={padding:ty,boundary:tv.filter(tY),altBoundary:tm},{refs:tg,floatingStyles:tx,placement:tC,isPositioned:tI,middlewareData:tR}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:s,open:f}=t,[p,d]=l.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,y]=l.useState(n);tE(h,n)||y(n);let[v,m]=l.useState(null),[b,g]=l.useState(null),x=l.useCallback(t=>{t!==j.current&&(j.current=t,m(t))},[]),w=l.useCallback(t=>{t!==E.current&&(E.current=t,g(t))},[]),O=i||v,S=a||b,j=l.useRef(null),E=l.useRef(null),P=l.useRef(p),A=null!=s,k=tk(s),T=tk(o),M=tk(f),C=l.useCallback(()=>{var t,n;let o,i,a;if(!j.current||!E.current)return;let u={placement:e,strategy:r,middleware:h};T.current&&(u.platform=T.current),(t=j.current,n=E.current,o=new Map,a={...(i={platform:tw,...u}).platform,_c:o},z(t,n,{...i,platform:a})).then(t=>{let e={...t,isPositioned:!1!==M.current};_.current&&!tE(P.current,e)&&(P.current=e,c.flushSync(()=>{d(e)}))})},[h,e,r,T,M]);tj(()=>{!1===f&&P.current.isPositioned&&(P.current.isPositioned=!1,d(t=>({...t,isPositioned:!1})))},[f]);let _=l.useRef(!1);tj(()=>(_.current=!0,()=>{_.current=!1}),[]),tj(()=>{if(O&&(j.current=O),S&&(E.current=S),O&&S){if(k.current)return k.current(O,S,C);C()}},[O,S,C,k,A]);let N=l.useMemo(()=>({reference:j,floating:E,setReference:x,setFloating:w}),[x,w]),D=l.useMemo(()=>({reference:O,floating:S}),[O,S]),I=l.useMemo(()=>{let t={position:r,left:0,top:0};if(!D.floating)return t;let e=tA(D.floating,p.x),n=tA(D.floating,p.y);return u?{...t,transform:"translate("+e+"px, "+n+"px)",...tP(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:e,top:n}},[r,u,D.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:C,refs:N,elements:D,floatingStyles:I}),[p,C,N,D,I])}({strategy:"fixed",placement:L+("center"!==q?"-"+q:""),whileElementsMounted:(...t)=>(function(t,e,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,s=tc(t),f=i||a?[...s?ta(s):[],...ta(e)]:[];f.forEach(t=>{i&&t.addEventListener("scroll",r,{passive:!0}),a&&t.addEventListener("resize",r)});let p=s&&l?function(t,e){let r,n=null,o=X(t);function i(){var t;clearTimeout(r),null==(t=n)||t.disconnect(),n=null}return!function a(u,l){void 0===u&&(u=!1),void 0===l&&(l=1),i();let c=t.getBoundingClientRect(),{left:s,top:f,width:p,height:d}=c;if(u||e(),!p||!d)return;let h={rootMargin:-j(f)+"px "+-j(o.clientWidth-(s+p))+"px "+-j(o.clientHeight-(f+d))+"px "+-j(s)+"px",threshold:O(0,w(1,l))||1},y=!0;function v(e){let n=e[0].intersectionRatio;if(n!==l){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||tO(c,t.getBoundingClientRect())||a(),y=!1}try{n=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(t){n=new IntersectionObserver(v,h)}n.observe(t)}(!0),i}(s,r):null,d=-1,h=null;u&&(h=new ResizeObserver(t=>{let[n]=t;n&&n.target===s&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var t;null==(t=h)||t.observe(e)})),r()}),s&&!c&&h.observe(s),h.observe(e));let y=c?td(t):null;return c&&function e(){let n=td(t);y&&!tO(y,n)&&r(),y=n,o=requestAnimationFrame(e)}(),r(),()=>{var t;f.forEach(t=>{i&&t.removeEventListener("scroll",r),a&&t.removeEventListener("resize",r)}),null==p||p(),null==(t=h)||t.disconnect(),h=null,c&&cancelAnimationFrame(o)}})(...t,{animationFrame:"always"===tt}),elements:{reference:tn.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:W+th,alignmentAxis:V},async fn(t){var e,r;let{x:n,y:i,placement:a,middlewareData:u}=t,l=await H(t,o);return a===(null==(e=u.offset)?void 0:e.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}},options:[r,n]},K&&{...{name:"shift",options:p=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===J?{...(void 0===(u=i)&&(u={}),{options:u,fn(t){let{x:e,y:r,placement:n,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=k(u,t),s={x:e,y:r},f=N(n),p=C(f),d=s[p],h=s[f],y=k(a,t),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let t="y"===p?"height":"width",e=o.reference[p]-o.floating[t]+v.mainAxis,r=o.reference[p]+o.reference[t]-v.mainAxis;d<e?d=e:d>r&&(d=r)}if(c){var m,b;let t="y"===p?"width":"height",e=["top","left"].includes(T(n)),r=o.reference[f]-o.floating[t]+(e&&(null==(m=i.offset)?void 0:m[f])||0)+(e?0:v.crossAxis),a=o.reference[f]+o.reference[t]+(e?0:(null==(b=i.offset)?void 0:b[f])||0)-(e?v.crossAxis:0);h<r?h=r:h>a&&(h=a)}return{[p]:d,[f]:h}}}),options:[i,a]}:void 0,...tb},async fn(t){let{x:e,y:r,placement:n}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:t=>{let{x:e,y:r}=t;return{x:e,y:r}}},...u}=k(p,t),l={x:e,y:r},c=await F(t,u),s=N(T(n)),f=C(s),d=l[f],h=l[s];if(o){let t="y"===f?"top":"left",e="y"===f?"bottom":"right",r=d+c[t],n=d-c[e];d=O(r,w(d,n))}if(i){let t="y"===s?"top":"left",e="y"===s?"bottom":"right",r=h+c[t],n=h-c[e];h=O(r,w(h,n))}let y=a.fn({...t,[f]:d,[s]:h});return{...y,data:{x:y.x-e,y:y.y-r,enabled:{[f]:o,[s]:i}}}}},options:[s,f]},K&&{...{name:"flip",options:v=h={...tb},async fn(t){var e,r,n,o,i,a,u,l;let c,s,f,{placement:p,middlewareData:d,rects:h,initialPlacement:y,platform:m,elements:b}=t,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:j=!0,...E}=k(v,t);if(null!=(e=d.arrow)&&e.alignmentOffset)return{};let P=T(p),A=N(y),R=T(y)===y,B=await (null==m.isRTL?void 0:m.isRTL(b.floating)),L=w||(R||!j?[I(y)]:(c=I(y),[D(y),c,D(c)])),z="none"!==S;!w&&z&&L.push(...(s=M(y),f=function(t,e,r){let n=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":if(r)return e?o:n;return e?n:o;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(T(y),"start"===S,B),s&&(f=f.map(t=>t+"-"+s),j&&(f=f.concat(f.map(D)))),f));let U=[y,...L],$=await F(t,E),H=[],W=(null==(r=d.flip)?void 0:r.overflows)||[];if(g&&H.push($[P]),x){let t,e,r,n,o=(a=p,u=h,void 0===(l=B)&&(l=!1),t=M(a),r=_(e=C(N(a))),n="x"===e?t===(l?"end":"start")?"right":"left":"start"===t?"bottom":"top",u.reference[r]>u.floating[r]&&(n=I(n)),[n,I(n)]);H.push($[o[0]],$[o[1]])}if(W=[...W,{placement:p,overflows:H}],!H.every(t=>t<=0)){let t=((null==(n=d.flip)?void 0:n.index)||0)+1,e=U[t];if(e)return{data:{index:t,overflows:W},reset:{placement:e}};let r=null==(o=W.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!r)switch(O){case"bestFit":{let t=null==(i=W.filter(t=>{if(z){let e=N(t.placement);return e===A||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:i[0];t&&(r=t);break}case"initialPlacement":r=y}if(p!==r)return{reset:{placement:r}}}return{}}},options:[h,y]},{...{name:"size",options:g=m={...tb,apply:({elements:t,rects:e,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(t){var e,r;let n,o,{placement:i,rects:a,platform:u,elements:l}=t,{apply:c=()=>{},...s}=k(g,t),f=await F(t,s),p=T(i),d=M(i),h="y"===N(i),{width:y,height:v}=a.floating;"top"===p||"bottom"===p?(n=p,o=d===(await (null==u.isRTL?void 0:u.isRTL(l.floating))?"start":"end")?"left":"right"):(o=p,n="end"===d?"top":"bottom");let m=v-f.top-f.bottom,b=y-f.left-f.right,x=w(v-f[n],m),S=w(y-f[o],b),j=!t.middlewareData.shift,E=x,P=S;if(null!=(e=t.middlewareData.shift)&&e.enabled.x&&(P=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=m),j&&!d){let t=O(f.left,0),e=O(f.right,0),r=O(f.top,0),n=O(f.bottom,0);h?P=y-2*(0!==t||0!==e?t+e:O(f.left,f.right)):E=v-2*(0!==r||0!==n?r+n:O(f.top,f.bottom))}await c({...t,availableWidth:P,availableHeight:E});let A=await u.getDimensions(l.floating);return y!==A.width||v!==A.height?{reset:{rects:!0}}:{}}},options:[m,b]},tl&&{...{name:"arrow",options:E=x={element:tl,padding:G},fn(t){let{element:e,padding:r}="function"==typeof E?E(t):E;return e&&({}).hasOwnProperty.call(e,"current")?null!=e.current?tS({element:e.current,padding:r}).fn(t):{}:e?tS({element:e,padding:r}).fn(t):{}}},options:[x,S]},tZ({arrowWidth:tp,arrowHeight:th}),Q&&{...{name:"hide",options:R=P={strategy:"referenceHidden",...tb},async fn(t){let{rects:e}=t,{strategy:r="referenceHidden",...n}=k(R,t);switch(r){case"referenceHidden":{let r=U(await F(t,{...n,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:$(r)}}}case"escaped":{let r=U(await F(t,{...n,altBoundary:!0}),e.floating);return{data:{escapedOffsets:r,escaped:$(r)}}}default:return{}}}},options:[P,A]}]}),[tB,tL]=tJ(tC),tF=(0,t_.useCallbackRef)(te);(0,tN.useLayoutEffect)(()=>{tI&&tF?.()},[tI,tF]);let tU=tR.arrow?.x,t$=tR.arrow?.y,tq=tR.arrow?.centerOffset!==0,[tV,tX]=l.useState();return(0,tN.useLayoutEffect)(()=>{to&&tX(window.getComputedStyle(to).zIndex)},[to]),(0,tM.jsx)("div",{ref:tg.setFloating,"data-radix-popper-content-wrapper":"",style:{...tx,transform:tI?tx.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tV,"--radix-popper-transform-origin":[tR.transformOrigin?.x,tR.transformOrigin?.y].join(" "),...tR.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,tM.jsx)(tW,{scope:B,placedSide:tB,onArrowChange:ts,arrowX:tU,arrowY:t$,shouldHideArrow:tq,children:(0,tM.jsx)(tT.Primitive.div,{"data-side":tB,"data-align":tL,...tr,ref:tu,style:{...tr.style,animation:tI?void 0:"none"}})})})});tV.displayName=tH;var tX="PopperArrow",tG={top:"bottom",right:"left",bottom:"top",left:"right"},tK=l.forwardRef(function(t,e){let{__scopePopper:r,...n}=t,o=tq(tX,r),i=tG[o.placedSide];return(0,tM.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,tM.jsx)(tC,{...n,ref:e,style:{...n.style,display:"block"}})})});function tY(t){return null!==t}tK.displayName=tX;var tZ=t=>({name:"transformOrigin",options:t,fn(e){let{placement:r,rects:n,middlewareData:o}=e,i=o.arrow?.centerOffset!==0,a=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=tJ(r),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,p=(o.arrow?.y??0)+u/2,d="",h="";return"bottom"===l?(d=i?s:`${f}px`,h=`${-u}px`):"top"===l?(d=i?s:`${f}px`,h=`${n.floating.height+u}px`):"right"===l?(d=`${-u}px`,h=i?s:`${p}px`):"left"===l&&(d=`${n.floating.width+u}px`,h=i?s:`${p}px`),{data:{x:d,y:h}}}});function tJ(t){let[e,r="center"]=t.split("-");return[e,r]}t.s(["Anchor",()=>t$,"Arrow",()=>tK,"Content",()=>tV,"Root",()=>tF,"createPopperScope",()=>tB],53660);var tQ=t.i(74606),t0=t.i(91918),t1=t.i(69340);function t2(t){let e=l.useRef({value:t,previous:t});return l.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}t.s(["usePrevious",()=>t2],99682);var t3=t.i(59411),t5=new WeakMap,t4=new WeakMap,t6={},t7=0,t8=function(t){return t&&(t.host||t8(t.parentNode))},t9=function(t,e,r,n){var o=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var r=t8(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});t6[r]||(t6[r]=new WeakMap);var i=t6[r],a=[],u=new Set,l=new Set(o),c=function(t){!t||u.has(t)||(u.add(t),c(t.parentNode))};o.forEach(c);var s=function(t){!t||l.has(t)||Array.prototype.forEach.call(t.children,function(t){if(u.has(t))s(t);else try{var e=t.getAttribute(n),o=null!==e&&"false"!==e,l=(t5.get(t)||0)+1,c=(i.get(t)||0)+1;t5.set(t,l),i.set(t,c),a.push(t),1===l&&o&&t4.set(t,!0),1===c&&t.setAttribute(r,"true"),o||t.setAttribute(n,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return s(e),u.clear(),t7++,function(){a.forEach(function(t){var e=t5.get(t)-1,o=i.get(t)-1;t5.set(t,e),i.set(t,o),e||(t4.has(t)||t.removeAttribute(n),t4.delete(t)),o||t.removeAttribute(r)}),--t7||(t5=new WeakMap,t5=new WeakMap,t4=new WeakMap,t6={})}},et=function(t,e,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),o=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),t9(n,o,r,"aria-hidden")):function(){return null}};t.s(["hideOthers",()=>et],86312);var ee=function(){return(ee=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function er(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}var en=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),eo="width-before-scroll-bar";function ei(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var ea="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,eu=new WeakMap,el=(void 0===e&&(e={}),(void 0===r&&(r=function(t){return t}),n=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(t){var e=r(t,o);return n.push(e),function(){n=n.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(o=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){o=!0;var e=[];if(n.length){var r=n;n=[],r.forEach(t),e=n}var i=function(){var r=e;e=[],r.forEach(t)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(t){e.push(t),a()},filter:function(t){return e=e.filter(t),n}}}}).options=ee({async:!0,ssr:!1},e),i),ec=function(){},es=l.forwardRef(function(t,e){var r,n,o,i,a=l.useRef(null),u=l.useState({onScrollCapture:ec,onWheelCapture:ec,onTouchMoveCapture:ec}),c=u[0],s=u[1],f=t.forwardProps,p=t.children,d=t.className,h=t.removeScrollBar,y=t.enabled,v=t.shards,m=t.sideCar,b=t.noIsolation,g=t.inert,x=t.allowPinchZoom,w=t.as,O=t.gapMode,S=er(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(r=[a,e],n=function(t){return r.forEach(function(e){return ei(e,t)})},(o=(0,l.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var t=o.value;t!==value&&(o.value=value,o.callback(value,t))}}}})[0]).callback=n,i=o.facade,ea(function(){var t=eu.get(i);if(t){var e=new Set(t),n=new Set(r),o=i.current;e.forEach(function(t){n.has(t)||ei(t,null)}),n.forEach(function(t){e.has(t)||ei(t,o)})}eu.set(i,r)},[r]),i),E=ee(ee({},S),c);return l.createElement(l.Fragment,null,y&&l.createElement(m,{sideCar:el,removeScrollBar:h,shards:v,noIsolation:b,inert:g,setCallbacks:s,allowPinchZoom:!!x,lockRef:a,gapMode:O}),f?l.cloneElement(l.Children.only(p),ee(ee({},E),{ref:j})):l.createElement(void 0===w?"div":w,ee({},E,{className:d,ref:j}),p))});es.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},es.classNames={fullWidth:eo,zeroRight:en};var ef=function(t){var e=t.sideCar,r=er(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw Error("Sidecar medium not found");return l.createElement(n,ee({},r))};ef.isSideCarExport=!0;var ep=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=u||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return e&&t.setAttribute("nonce",e),t}())){var n,o;(n=e).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),o=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},ed=function(){var t=ep();return function(e,r){l.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},eh=function(){var t=ed();return function(e){return t(e.styles,e.dynamic),null}},ey={left:0,top:0,right:0,gap:0},ev=function(t){return parseInt(t||"",10)||0},em=function(t){var e=window.getComputedStyle(document.body),r=e["padding"===t?"paddingLeft":"marginLeft"],n=e["padding"===t?"paddingTop":"marginTop"],o=e["padding"===t?"paddingRight":"marginRight"];return[ev(r),ev(n),ev(o)]},eb=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return ey;var e=em(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},eg=eh(),ex="data-scroll-locked",ew=function(t,e,r,n){var o=t.left,i=t.top,a=t.right,u=t.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(ex,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(en," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(eo," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(en," .").concat(en," {\n right: 0 ").concat(n,";\n }\n \n .").concat(eo," .").concat(eo," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(ex,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},eO=function(){var t=parseInt(document.body.getAttribute(ex)||"0",10);return isFinite(t)?t:0},eS=function(){l.useEffect(function(){return document.body.setAttribute(ex,(eO()+1).toString()),function(){var t=eO()-1;t<=0?document.body.removeAttribute(ex):document.body.setAttribute(ex,t.toString())}},[])},ej=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,o=void 0===n?"margin":n;eS();var i=l.useMemo(function(){return eb(o)},[o]);return l.createElement(eg,{styles:ew(i,!e,o,r?"":"!important")})},eE=!1;if("undefined"!=typeof window)try{var eP=Object.defineProperty({},"passive",{get:function(){return eE=!0,!0}});window.addEventListener("test",eP,eP),window.removeEventListener("test",eP,eP)}catch(t){eE=!1}var eA=!!eE&&{passive:!1},ek=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return"hidden"!==r[e]&&(r.overflowY!==r.overflowX||"TEXTAREA"===t.tagName||"visible"!==r[e])},eT=function(t,e){var r=e.ownerDocument,n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eM(t,n)){var o=eC(t,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},eM=function(t,e){return"v"===t?ek(e,"overflowY"):ek(e,"overflowX")},eC=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},e_=function(t,e,r,n,o){var i,a=(i=window.getComputedStyle(e).direction,"h"===t&&"rtl"===i?-1:1),u=a*n,l=r.target,c=e.contains(l),s=!1,f=u>0,p=0,d=0;do{var h=eC(t,l),y=h[0],v=h[1]-h[2]-a*y;(y||v)&&eM(t,l)&&(p+=v,d+=y),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!c&&l!==document.body||c&&(e.contains(l)||e===l))return f&&(o&&1>Math.abs(p)||!o&&u>p)?s=!0:!f&&(o&&1>Math.abs(d)||!o&&-u>d)&&(s=!0),s},eN=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},eD=function(t){return[t.deltaX,t.deltaY]},eI=function(t){return t&&"current"in t?t.current:t},eR=0,eB=[];let eL=(a=function(t){var e=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(eR++)[0],i=l.useState(eh)[0],a=l.useRef(t);l.useEffect(function(){a.current=t},[t]),l.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var e=(function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))})([t.lockRef.current],(t.shards||[]).map(eI),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var u=l.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!a.current.allowPinchZoom;var o,i=eN(t),u=r.current,l="deltaX"in t?t.deltaX:u[0]-i[0],c="deltaY"in t?t.deltaY:u[1]-i[1],s=t.target,f=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in t&&"h"===f&&"range"===s.type)return!1;var p=eT(f,s);if(!p)return!0;if(p?o=f:(o="v"===f?"h":"v",p=eT(f,s)),!p)return!1;if(!n.current&&"changedTouches"in t&&(l||c)&&(n.current=o),!o)return!0;var d=n.current||o;return e_(d,e,t,"h"===d?l:c,!0)},[]),c=l.useCallback(function(t){if(eB.length&&eB[eB.length-1]===i){var r="deltaY"in t?eD(t):eN(t),n=e.current.filter(function(e){var n;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){t.cancelable&&t.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(eI).filter(Boolean).filter(function(e){return e.contains(t.target)});(o.length>0?u(t,o[0]):!a.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),s=l.useCallback(function(t,r,n,o){var i={name:t,delta:r,target:n,should:o,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(n)};e.current.push(i),setTimeout(function(){e.current=e.current.filter(function(t){return t!==i})},1)},[]),f=l.useCallback(function(t){r.current=eN(t),n.current=void 0},[]),p=l.useCallback(function(e){s(e.type,eD(e),e.target,u(e,t.lockRef.current))},[]),d=l.useCallback(function(e){s(e.type,eN(e),e.target,u(e,t.lockRef.current))},[]);l.useEffect(function(){return eB.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:d}),document.addEventListener("wheel",c,eA),document.addEventListener("touchmove",c,eA),document.addEventListener("touchstart",f,eA),function(){eB=eB.filter(function(t){return t!==i}),document.removeEventListener("wheel",c,eA),document.removeEventListener("touchmove",c,eA),document.removeEventListener("touchstart",f,eA)}},[]);var h=t.removeScrollBar,y=t.inert;return l.createElement(l.Fragment,null,y?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?l.createElement(ej,{gapMode:t.gapMode}):null)},el.useMedium(a),ef);var ez=l.forwardRef(function(t,e){return l.createElement(es,ee({},t,{ref:e,sideCar:eL}))});ez.classNames=es.classNames,t.s(["RemoveScroll",0,ez],85369);var eF=[" ","Enter","ArrowUp","ArrowDown"],eU=[" ","Enter"],e$="Select",[eH,eW,eq]=(0,p.createCollection)(e$),[eV,eX]=(0,h.createContextScope)(e$,[eq,tB]),eG=tB(),[eK,eY]=eV(e$),[eZ,eJ]=eV(e$),eQ=t=>{let{__scopeSelect:e,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:c,dir:s,name:f,autoComplete:p,disabled:d,required:h,form:v}=t,m=eG(e),[b,x]=l.useState(null),[w,O]=l.useState(null),[S,j]=l.useState(!1),E=(0,y.useDirection)(s),[P=!1,A]=(0,t1.useControllableState)({prop:n,defaultProp:o,onChange:i}),[k,T]=(0,t1.useControllableState)({prop:a,defaultProp:u,onChange:c}),M=l.useRef(null),C=!b||v||!!b.closest("form"),[_,N]=l.useState(new Set),D=Array.from(_).map(t=>t.props.value).join(";");return(0,tM.jsx)(tF,{...m,children:(0,tM.jsxs)(eK,{required:h,scope:e,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:O,valueNodeHasChildren:S,onValueNodeHasChildrenChange:j,contentId:(0,g.useId)(),value:k,onValueChange:T,open:P,onOpenChange:A,dir:E,triggerPointerDownPosRef:M,disabled:d,children:[(0,tM.jsx)(eH.Provider,{scope:e,children:(0,tM.jsx)(eZ,{scope:t.__scopeSelect,onNativeOptionAdd:l.useCallback(t=>{N(e=>new Set(e).add(t))},[]),onNativeOptionRemove:l.useCallback(t=>{N(e=>{let r=new Set(e);return r.delete(t),r})},[]),children:r})}),C?(0,tM.jsxs)(rT,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:t=>T(t.target.value),disabled:d,form:v,children:[void 0===k?(0,tM.jsx)("option",{value:""}):null,Array.from(_)]},D):null]})})};eQ.displayName=e$;var e0="SelectTrigger",e1=l.forwardRef((t,e)=>{let{__scopeSelect:r,disabled:n=!1,...o}=t,i=eG(r),a=eY(e0,r),u=a.disabled||n,c=(0,d.useComposedRefs)(e,a.onTriggerChange),s=eW(r),p=l.useRef("touch"),[h,y,v]=rM(t=>{let e=s().filter(t=>!t.disabled),r=e.find(t=>t.value===a.value),n=rC(e,t,r);void 0!==n&&a.onValueChange(n.value)}),m=t=>{u||(a.onOpenChange(!0),v()),t&&(a.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)})};return(0,tM.jsx)(t$,{asChild:!0,...i,children:(0,tM.jsx)(tT.Primitive.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":rk(a.value)?"":void 0,...o,ref:c,onClick:(0,f.composeEventHandlers)(o.onClick,t=>{t.currentTarget.focus(),"mouse"!==p.current&&m(t)}),onPointerDown:(0,f.composeEventHandlers)(o.onPointerDown,t=>{p.current=t.pointerType;let e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&"mouse"===t.pointerType&&(m(t),t.preventDefault())}),onKeyDown:(0,f.composeEventHandlers)(o.onKeyDown,t=>{let e=""!==h.current;t.ctrlKey||t.altKey||t.metaKey||1!==t.key.length||y(t.key),(!e||" "!==t.key)&&eF.includes(t.key)&&(m(),t.preventDefault())})})})});e1.displayName=e0;var e2="SelectValue",e3=l.forwardRef((t,e)=>{let{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...u}=t,l=eY(e2,r),{onValueNodeHasChildrenChange:c}=l,s=void 0!==i,f=(0,d.useComposedRefs)(e,l.onValueNodeChange);return(0,tN.useLayoutEffect)(()=>{c(s)},[c,s]),(0,tM.jsx)(tT.Primitive.span,{...u,ref:f,style:{pointerEvents:"none"},children:rk(l.value)?(0,tM.jsx)(tM.Fragment,{children:a}):i})});e3.displayName=e2;var e5=l.forwardRef((t,e)=>{let{__scopeSelect:r,children:n,...o}=t;return(0,tM.jsx)(tT.Primitive.span,{"aria-hidden":!0,...o,ref:e,children:n||"▼"})});e5.displayName="SelectIcon";var e4=t=>(0,tM.jsx)(tQ.Portal,{asChild:!0,...t});e4.displayName="SelectPortal";var e6="SelectContent",e7=l.forwardRef((t,e)=>{let r=eY(e6,t.__scopeSelect),[n,o]=l.useState();return((0,tN.useLayoutEffect)(()=>{o(new DocumentFragment)},[]),r.open)?(0,tM.jsx)(rt,{...t,ref:e}):n?c.createPortal((0,tM.jsx)(e8,{scope:t.__scopeSelect,children:(0,tM.jsx)(eH.Slot,{scope:t.__scopeSelect,children:(0,tM.jsx)("div",{children:t.children})})}),n):null});e7.displayName=e6;var[e8,e9]=eV(e6),rt=l.forwardRef((t,e)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:c,align:s,alignOffset:p,arrowPadding:h,collisionBoundary:y,collisionPadding:g,sticky:x,hideWhenDetached:w,avoidCollisions:O,...S}=t,j=eY(e6,r),[E,P]=l.useState(null),[A,k]=l.useState(null),T=(0,d.useComposedRefs)(e,t=>P(t)),[M,C]=l.useState(null),[_,N]=l.useState(null),D=eW(r),[I,R]=l.useState(!1),B=l.useRef(!1);l.useEffect(()=>{if(E)return et(E)},[E]),(0,m.useFocusGuards)();let L=l.useCallback(t=>{let[e,...r]=D().map(t=>t.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of t)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===e&&A&&(A.scrollTop=0),r===n&&A&&(A.scrollTop=A.scrollHeight),r?.focus(),document.activeElement!==o))return},[D,A]),z=l.useCallback(()=>L([M,E]),[L,M,E]);l.useEffect(()=>{I&&z()},[I,z]);let{onOpenChange:F,triggerPointerDownPosRef:U}=j;l.useEffect(()=>{if(E){let t={x:0,y:0},e=e=>{t={x:Math.abs(Math.round(e.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(e.pageY)-(U.current?.y??0))}},r=r=>{t.x<=10&&t.y<=10?r.preventDefault():E.contains(r.target)||F(!1),document.removeEventListener("pointermove",e),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",r,{capture:!0})}}},[E,F,U]),l.useEffect(()=>{let t=()=>F(!1);return window.addEventListener("blur",t),window.addEventListener("resize",t),()=>{window.removeEventListener("blur",t),window.removeEventListener("resize",t)}},[F]);let[$,H]=rM(t=>{let e=D().filter(t=>!t.disabled),r=e.find(t=>t.ref.current===document.activeElement),n=rC(e,t,r);n&&setTimeout(()=>n.ref.current.focus())}),W=l.useCallback((t,e,r)=>{let n=!B.current&&!r;(void 0!==j.value&&j.value===e||n)&&(C(t),n&&(B.current=!0))},[j.value]),q=l.useCallback(()=>E?.focus(),[E]),V=l.useCallback((t,e,r)=>{let n=!B.current&&!r;(void 0!==j.value&&j.value===e||n)&&N(t)},[j.value]),X="popper"===n?rr:re,G=X===rr?{side:u,sideOffset:c,align:s,alignOffset:p,arrowPadding:h,collisionBoundary:y,collisionPadding:g,sticky:x,hideWhenDetached:w,avoidCollisions:O}:{};return(0,tM.jsx)(e8,{scope:r,content:E,viewport:A,onViewportChange:k,itemRefCallback:W,selectedItem:M,onItemLeave:q,itemTextRefCallback:V,focusSelectedItem:z,selectedItemText:_,position:n,isPositioned:I,searchRef:$,children:(0,tM.jsx)(ez,{as:t0.Slot,allowPinchZoom:!0,children:(0,tM.jsx)(b.FocusScope,{asChild:!0,trapped:j.open,onMountAutoFocus:t=>{t.preventDefault()},onUnmountAutoFocus:(0,f.composeEventHandlers)(o,t=>{j.trigger?.focus({preventScroll:!0}),t.preventDefault()}),children:(0,tM.jsx)(v.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:t=>t.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,tM.jsx)(X,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:t=>t.preventDefault(),...S,...G,onPlaced:()=>R(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,f.composeEventHandlers)(S.onKeyDown,t=>{let e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),e||1!==t.key.length||H(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=D().filter(t=>!t.disabled).map(t=>t.ref.current);if(["ArrowUp","End"].includes(t.key)&&(e=e.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){let r=t.target,n=e.indexOf(r);e=e.slice(n+1)}setTimeout(()=>L(e)),t.preventDefault()}})})})})})})});rt.displayName="SelectContentImpl";var re=l.forwardRef((t,e)=>{let{__scopeSelect:r,onPlaced:n,...o}=t,i=eY(e6,r),a=e9(e6,r),[u,c]=l.useState(null),[f,p]=l.useState(null),h=(0,d.useComposedRefs)(e,t=>p(t)),y=eW(r),v=l.useRef(!1),m=l.useRef(!0),{viewport:b,selectedItem:g,selectedItemText:x,focusSelectedItem:w}=a,O=l.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&f&&b&&g&&x){let t=i.trigger.getBoundingClientRect(),e=f.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==i.dir){let n=o.left-e.left,i=r.left-n,a=t.left-i,l=t.width+a,c=Math.max(l,e.width),f=window.innerWidth-10,p=(0,s.clamp)(i,[10,Math.max(10,f-c)]);u.style.minWidth=l+"px",u.style.left=p+"px"}else{let n=e.right-o.right,i=window.innerWidth-r.right-n,a=window.innerWidth-t.right-i,l=t.width+a,c=Math.max(l,e.width),f=window.innerWidth-10,p=(0,s.clamp)(i,[10,Math.max(10,f-c)]);u.style.minWidth=l+"px",u.style.right=p+"px"}let a=y(),l=window.innerHeight-20,c=b.scrollHeight,p=window.getComputedStyle(f),d=parseInt(p.borderTopWidth,10),h=parseInt(p.paddingTop,10),m=parseInt(p.borderBottomWidth,10),w=d+h+c+parseInt(p.paddingBottom,10)+m,O=Math.min(5*g.offsetHeight,w),S=window.getComputedStyle(b),j=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),P=t.top+t.height/2-10,A=g.offsetHeight/2,k=d+h+(g.offsetTop+A);if(k<=P){let t=a.length>0&&g===a[a.length-1].ref.current;u.style.bottom="0px";let e=Math.max(l-P,A+(t?E:0)+(f.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=k+e+"px"}else{let t=a.length>0&&g===a[0].ref.current;u.style.top="0px";let e=Math.max(P,d+b.offsetTop+(t?j:0)+A);u.style.height=e+(w-k)+"px",b.scrollTop=k-P+b.offsetTop}u.style.margin="10px 0",u.style.minHeight=O+"px",u.style.maxHeight=l+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[y,i.trigger,i.valueNode,u,f,b,g,x,i.dir,n]);(0,tN.useLayoutEffect)(()=>O(),[O]);let[S,j]=l.useState();(0,tN.useLayoutEffect)(()=>{f&&j(window.getComputedStyle(f).zIndex)},[f]);let E=l.useCallback(t=>{t&&!0===m.current&&(O(),w?.(),m.current=!1)},[O,w]);return(0,tM.jsx)(rn,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:E,children:(0,tM.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,tM.jsx)(tT.Primitive.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});re.displayName="SelectItemAlignedPosition";var rr=l.forwardRef((t,e)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...i}=t,a=eG(r);return(0,tM.jsx)(tV,{...a,...i,ref:e,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});rr.displayName="SelectPopperPosition";var[rn,ro]=eV(e6,{}),ri="SelectViewport",ra=l.forwardRef((t,e)=>{let{__scopeSelect:r,nonce:n,...o}=t,i=e9(ri,r),a=ro(ri,r),u=(0,d.useComposedRefs)(e,i.onViewportChange),c=l.useRef(0);return(0,tM.jsxs)(tM.Fragment,{children:[(0,tM.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,tM.jsx)(eH.Slot,{scope:r,children:(0,tM.jsx)(tT.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,f.composeEventHandlers)(o.onScroll,t=>{let e=t.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=a;if(n?.current&&r){let t=Math.abs(c.current-e.scrollTop);if(t>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let i=o+t,a=Math.min(n,i),u=i-a;r.style.height=a+"px","0px"===r.style.bottom&&(e.scrollTop=u>0?u:0,r.style.justifyContent="flex-end")}}}c.current=e.scrollTop})})})]})});ra.displayName=ri;var ru="SelectGroup",[rl,rc]=eV(ru),rs=l.forwardRef((t,e)=>{let{__scopeSelect:r,...n}=t,o=(0,g.useId)();return(0,tM.jsx)(rl,{scope:r,id:o,children:(0,tM.jsx)(tT.Primitive.div,{role:"group","aria-labelledby":o,...n,ref:e})})});rs.displayName=ru;var rf="SelectLabel",rp=l.forwardRef((t,e)=>{let{__scopeSelect:r,...n}=t,o=rc(rf,r);return(0,tM.jsx)(tT.Primitive.div,{id:o.id,...n,ref:e})});rp.displayName=rf;var rd="SelectItem",[rh,ry]=eV(rd),rv=l.forwardRef((t,e)=>{let{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=t,u=eY(rd,r),c=e9(rd,r),s=u.value===n,[p,h]=l.useState(i??""),[y,v]=l.useState(!1),m=(0,d.useComposedRefs)(e,t=>c.itemRefCallback?.(t,n,o)),b=(0,g.useId)(),x=l.useRef("touch"),w=()=>{o||(u.onValueChange(n),u.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,tM.jsx)(rh,{scope:r,value:n,disabled:o,textId:b,isSelected:s,onItemTextChange:l.useCallback(t=>{h(e=>e||(t?.textContent??"").trim())},[]),children:(0,tM.jsx)(eH.ItemSlot,{scope:r,value:n,disabled:o,textValue:p,children:(0,tM.jsx)(tT.Primitive.div,{role:"option","aria-labelledby":b,"data-highlighted":y?"":void 0,"aria-selected":s&&y,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:m,onFocus:(0,f.composeEventHandlers)(a.onFocus,()=>v(!0)),onBlur:(0,f.composeEventHandlers)(a.onBlur,()=>v(!1)),onClick:(0,f.composeEventHandlers)(a.onClick,()=>{"mouse"!==x.current&&w()}),onPointerUp:(0,f.composeEventHandlers)(a.onPointerUp,()=>{"mouse"===x.current&&w()}),onPointerDown:(0,f.composeEventHandlers)(a.onPointerDown,t=>{x.current=t.pointerType}),onPointerMove:(0,f.composeEventHandlers)(a.onPointerMove,t=>{x.current=t.pointerType,o?c.onItemLeave?.():"mouse"===x.current&&t.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,f.composeEventHandlers)(a.onPointerLeave,t=>{t.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:(0,f.composeEventHandlers)(a.onKeyDown,t=>{(c.searchRef?.current===""||" "!==t.key)&&(eU.includes(t.key)&&w()," "===t.key&&t.preventDefault())})})})})});rv.displayName=rd;var rm="SelectItemText",rb=l.forwardRef((t,e)=>{let{__scopeSelect:r,className:n,style:o,...i}=t,a=eY(rm,r),u=e9(rm,r),s=ry(rm,r),f=eJ(rm,r),[p,h]=l.useState(null),y=(0,d.useComposedRefs)(e,t=>h(t),s.onItemTextChange,t=>u.itemTextRefCallback?.(t,s.value,s.disabled)),v=p?.textContent,m=l.useMemo(()=>(0,tM.jsx)("option",{value:s.value,disabled:s.disabled,children:v},s.value),[s.disabled,s.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:g}=f;return(0,tN.useLayoutEffect)(()=>(b(m),()=>g(m)),[b,g,m]),(0,tM.jsxs)(tM.Fragment,{children:[(0,tM.jsx)(tT.Primitive.span,{id:s.textId,...i,ref:y}),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?c.createPortal(i.children,a.valueNode):null]})});rb.displayName=rm;var rg="SelectItemIndicator",rx=l.forwardRef((t,e)=>{let{__scopeSelect:r,...n}=t;return ry(rg,r).isSelected?(0,tM.jsx)(tT.Primitive.span,{"aria-hidden":!0,...n,ref:e}):null});rx.displayName=rg;var rw="SelectScrollUpButton",rO=l.forwardRef((t,e)=>{let r=e9(rw,t.__scopeSelect),n=ro(rw,t.__scopeSelect),[o,i]=l.useState(!1),a=(0,d.useComposedRefs)(e,n.onScrollButtonChange);return(0,tN.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let t=function(){i(e.scrollTop>0)},e=r.viewport;return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[r.viewport,r.isPositioned]),o?(0,tM.jsx)(rE,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=r;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}}):null});rO.displayName=rw;var rS="SelectScrollDownButton",rj=l.forwardRef((t,e)=>{let r=e9(rS,t.__scopeSelect),n=ro(rS,t.__scopeSelect),[o,i]=l.useState(!1),a=(0,d.useComposedRefs)(e,n.onScrollButtonChange);return(0,tN.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let t=function(){let t=e.scrollHeight-e.clientHeight;i(Math.ceil(e.scrollTop)<t)},e=r.viewport;return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[r.viewport,r.isPositioned]),o?(0,tM.jsx)(rE,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=r;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}}):null});rj.displayName=rS;var rE=l.forwardRef((t,e)=>{let{__scopeSelect:r,onAutoScroll:n,...o}=t,i=e9("SelectScrollButton",r),a=l.useRef(null),u=eW(r),c=l.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),(0,tN.useLayoutEffect)(()=>{let t=u().find(t=>t.ref.current===document.activeElement);t?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,tM.jsx)(tT.Primitive.div,{"aria-hidden":!0,...o,ref:e,style:{flexShrink:0,...o.style},onPointerDown:(0,f.composeEventHandlers)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(n,50))}),onPointerMove:(0,f.composeEventHandlers)(o.onPointerMove,()=>{i.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(n,50))}),onPointerLeave:(0,f.composeEventHandlers)(o.onPointerLeave,()=>{c()})})}),rP=l.forwardRef((t,e)=>{let{__scopeSelect:r,...n}=t;return(0,tM.jsx)(tT.Primitive.div,{"aria-hidden":!0,...n,ref:e})});rP.displayName="SelectSeparator";var rA="SelectArrow";function rk(t){return""===t||void 0===t}l.forwardRef((t,e)=>{let{__scopeSelect:r,...n}=t,o=eG(r),i=eY(rA,r),a=e9(rA,r);return i.open&&"popper"===a.position?(0,tM.jsx)(tK,{...o,...n,ref:e}):null}).displayName=rA;var rT=l.forwardRef((t,e)=>{let{value:r,...n}=t,o=l.useRef(null),i=(0,d.useComposedRefs)(e,o),a=t2(r);return l.useEffect(()=>{let t=o.current,e=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==r&&e){let n=new Event("change",{bubbles:!0});e.call(t,r),t.dispatchEvent(n)}},[a,r]),(0,tM.jsx)(t3.VisuallyHidden,{asChild:!0,children:(0,tM.jsx)("select",{...n,ref:i,defaultValue:r})})});function rM(t){let e=(0,t_.useCallbackRef)(t),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(t=>{let o=r.current+t;e(o),function t(e){r.current=e,window.clearTimeout(n.current),""!==e&&(n.current=window.setTimeout(()=>t(""),1e3))}(o)},[e]),i=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function rC(t,e,r){var n,o;let i=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,a=r?t.indexOf(r):-1,u=(n=t,o=Math.max(a,0),n.map((t,e)=>n[(o+e)%n.length]));1===i.length&&(u=u.filter(t=>t!==r));let l=u.find(t=>t.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}rT.displayName="BubbleSelect",t.s(["Content",()=>e7,"Group",()=>rs,"Icon",()=>e5,"Item",()=>rv,"ItemIndicator",()=>rx,"ItemText",()=>rb,"Label",()=>rp,"Portal",()=>e4,"Root",()=>eQ,"ScrollDownButton",()=>rj,"ScrollUpButton",()=>rO,"Separator",()=>rP,"Trigger",()=>e1,"Value",()=>e3,"Viewport",()=>ra],29402);let r_=(0,t.i(75254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["Check",()=>r_],43531)},64659,t=>{"use strict";let e=(0,t.i(75254).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);t.s(["ChevronDown",()=>e],64659)},67489,t=>{"use strict";var e=t.i(43476),r=t.i(71645),n=t.i(29402),o=t.i(43531),i=t.i(64659);let a=(0,t.i(75254).default)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var u=t.i(75157);let l=n.Root;n.Group;let c=n.Value,s=r.forwardRef(({className:t,children:r,...o},a)=>(0,e.jsxs)(n.Trigger,{ref:a,className:(0,u.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...o,children:[r,(0,e.jsx)(n.Icon,{asChild:!0,children:(0,e.jsx)(i.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));s.displayName=n.Trigger.displayName;let f=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)(n.ScrollUpButton,{ref:o,className:(0,u.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,e.jsx)(a,{className:"h-4 w-4"})}));f.displayName=n.ScrollUpButton.displayName;let p=r.forwardRef(({className:t,...r},o)=>(0,e.jsx)(n.ScrollDownButton,{ref:o,className:(0,u.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,e.jsx)(i.ChevronDown,{className:"h-4 w-4"})}));p.displayName=n.ScrollDownButton.displayName;let d=r.forwardRef(({className:t,children:r,position:o="popper",...i},a)=>(0,e.jsx)(n.Portal,{children:(0,e.jsxs)(n.Content,{ref:a,className:(0,u.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,...i,children:[(0,e.jsx)(f,{}),(0,e.jsx)(n.Viewport,{className:(0,u.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,e.jsx)(p,{})]})}));d.displayName=n.Content.displayName,r.forwardRef(({className:t,...r},o)=>(0,e.jsx)(n.Label,{ref:o,className:(0,u.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...r})).displayName=n.Label.displayName;let h=r.forwardRef(({className:t,children:r,...i},a)=>(0,e.jsxs)(n.Item,{ref:a,className:(0,u.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,e.jsx)(n.ItemIndicator,{children:(0,e.jsx)(o.Check,{className:"h-4 w-4"})})}),(0,e.jsx)(n.ItemText,{children:r})]}));h.displayName=n.Item.displayName,r.forwardRef(({className:t,...r},o)=>(0,e.jsx)(n.Separator,{ref:o,className:(0,u.cn)("-mx-1 my-1 h-px bg-muted",t),...r})).displayName=n.Separator.displayName,t.s(["Select",()=>l,"SelectContent",()=>d,"SelectItem",()=>h,"SelectTrigger",()=>s,"SelectValue",()=>c],67489)},2747,29592,t=>{"use strict";var e=t.i(43476),r=t.i(75157);function n({className:t,...n}){return(0,e.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-muted",t),...n})}t.s(["Skeleton",()=>n],2747);var o=t.i(71645);let i=(0,t.i(25913).cva)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),a=o.forwardRef(({className:t,variant:n,...o},a)=>(0,e.jsx)("div",{ref:a,role:"alert",className:(0,r.cn)(i({variant:n}),t),...o}));a.displayName="Alert";let u=o.forwardRef(({className:t,...n},o)=>(0,e.jsx)("h5",{ref:o,className:(0,r.cn)("mb-1 font-medium leading-none tracking-tight",t),...n}));u.displayName="AlertTitle";let l=o.forwardRef(({className:t,...n},o)=>(0,e.jsx)("div",{ref:o,className:(0,r.cn)("text-sm [&_p]:leading-relaxed",t),...n}));l.displayName="AlertDescription",t.s(["Alert",()=>a,"AlertDescription",()=>l,"AlertTitle",()=>u],29592)},52571,t=>{"use strict";let e=(0,t.i(75254).default)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);t.s(["Info",()=>e],52571)},68054,t=>{"use strict";let e=(0,t.i(75254).default)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);t.s(["Terminal",()=>e],68054)},12447,(t,e,r)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},236,(t,e,r)=>{e.exports=t.g&&t.g.Object===Object&&t.g},39088,(t,e,r)=>{var n=t.r(236),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},31926,(t,e,r)=>{var n=t.r(39088);e.exports=function(){return n.Date.now()}},48891,(t,e,r)=>{var n=/\s/;e.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},30364,(t,e,r)=>{var n=t.r(48891),o=/^\s+/;e.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},30353,(t,e,r)=>{e.exports=t.r(39088).Symbol},43436,(t,e,r)=>{var n=t.r(30353),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;e.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},23243,(t,e,r)=>{var n=Object.prototype.toString;e.exports=function(t){return n.call(t)}},77684,(t,e,r)=>{var n=t.r(30353),o=t.r(43436),i=t.r(23243),a=n?n.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},77289,(t,e,r)=>{e.exports=function(t){return null!=t&&"object"==typeof t}},61884,(t,e,r)=>{var n=t.r(77684),o=t.r(77289);e.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},73759,(t,e,r)=>{var n=t.r(30364),o=t.r(12447),i=t.r(61884),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=l.test(t);return r||c.test(t)?s(t.slice(2),r?2:8):u.test(t)?a:+t}},74009,(t,e,r)=>{var n=t.r(12447),o=t.r(31926),i=t.r(73759),a=Math.max,u=Math.min;e.exports=function(t,e,r){var l,c,s,f,p,d,h=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var r=l,n=c;return l=c=void 0,h=e,f=t.apply(n,r)}function g(t){var r=t-d,n=t-h;return void 0===d||r>=e||r<0||v&&n>=s}function x(){var t,r,n,i=o();if(g(i))return w(i);p=setTimeout(x,(t=i-d,r=i-h,n=e-t,v?u(n,s-r):n))}function w(t){return(p=void 0,m&&l)?b(t):(l=c=void 0,f)}function O(){var t,r=o(),n=g(r);if(l=arguments,c=this,d=r,n){if(void 0===p)return h=t=d,p=setTimeout(x,e),y?b(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),b(d)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=c=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},24283,(t,e,r)=>{var n=t.r(74009),o=t.r(12447);e.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},45350,(t,e,r)=>{e.exports=Array.isArray},85845,(t,e,r)=>{var n=t.r(77684),o=t.r(45350),i=t.r(77289);e.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},94241,(t,e,r)=>{var n=t.r(77684),o=t.r(77289);e.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},78948,(t,e,r)=>{var n=t.r(94241);e.exports=function(t){return n(t)&&t!=+t}},9903,(t,e,r)=>{var n=t.r(45350),o=t.r(61884),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},71223,(t,e,r)=>{var n=t.r(77684),o=t.r(12447);e.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},53789,(t,e,r)=>{e.exports=t.r(39088)["__core-js_shared__"]},69553,(t,e,r)=>{var n,o=t.r(53789),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(t){return!!i&&i in t}},76366,(t,e,r)=>{var n=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},54368,(t,e,r)=>{var n=t.r(71223),o=t.r(69553),i=t.r(12447),a=t.r(76366),u=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,s=l.hasOwnProperty,f=RegExp("^"+c.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:u).test(a(t))}},63958,(t,e,r)=>{e.exports=function(t,e){return null==t?void 0:t[e]}},41920,(t,e,r)=>{var n=t.r(54368),o=t.r(63958);e.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},32760,(t,e,r)=>{e.exports=t.r(41920)(Object,"create")},50514,(t,e,r)=>{var n=t.r(32760);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},97617,(t,e,r)=>{e.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},57412,(t,e,r)=>{var n=t.r(32760),o=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},23592,(t,e,r)=>{var n=t.r(32760),o=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},39004,(t,e,r)=>{var n=t.r(32760);e.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},34421,(t,e,r)=>{var n=t.r(50514),o=t.r(97617),i=t.r(57412),a=t.r(23592),u=t.r(39004);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},65742,(t,e,r)=>{e.exports=function(){this.__data__=[],this.size=0}},25172,(t,e,r)=>{e.exports=function(t,e){return t===e||t!=t&&e!=e}},34314,(t,e,r)=>{var n=t.r(25172);e.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},19206,(t,e,r)=>{var n=t.r(34314),o=Array.prototype.splice;e.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},67763,(t,e,r)=>{var n=t.r(34314);e.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},23407,(t,e,r)=>{var n=t.r(34314);e.exports=function(t){return n(this.__data__,t)>-1}},53833,(t,e,r)=>{var n=t.r(34314);e.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},29039,(t,e,r)=>{var n=t.r(65742),o=t.r(19206),i=t.r(67763),a=t.r(23407),u=t.r(53833);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},87362,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Map")},48994,(t,e,r)=>{var n=t.r(34421),o=t.r(29039),i=t.r(87362);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},24053,(t,e,r)=>{e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},87994,(t,e,r)=>{var n=t.r(24053);e.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},96768,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},29932,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){return n(this,t).get(t)}},92647,(t,e,r)=>{var n=t.r(87994);e.exports=function(t){return n(this,t).has(t)}},46644,(t,e,r)=>{var n=t.r(87994);e.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},87547,(t,e,r)=>{var n=t.r(48994),o=t.r(96768),i=t.r(29932),a=t.r(92647),u=t.r(46644);function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},57588,(t,e,r)=>{var n=t.r(87547);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},88832,(t,e,r)=>{var n=t.r(57588);e.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},2677,(t,e,r)=>{var n=t.r(88832),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},92708,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},72537,(t,e,r)=>{var n=t.r(30353),o=t.r(92708),i=t.r(45350),a=t.r(61884),u=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},2922,(t,e,r)=>{var n=t.r(72537);e.exports=function(t){return null==t?"":n(t)}},86287,(t,e,r)=>{var n=t.r(45350),o=t.r(9903),i=t.r(2677),a=t.r(2922);e.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},2054,(t,e,r)=>{var n=t.r(61884),o=1/0;e.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},33141,(t,e,r)=>{var n=t.r(86287),o=t.r(2054);e.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},82820,(t,e,r)=>{var n=t.r(33141);e.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},94395,t=>{"use strict";var e=t.i(85845),r=t.i(78948),n=t.i(82820),o=t.i(94241),i=function(t){return 0===t?0:t>0?1:-1},a=function(t){return(0,e.default)(t)&&t.indexOf("%")===t.length-1},u=function(t){return(0,o.default)(t)&&!(0,r.default)(t)},l=function(t){return u(t)||(0,e.default)(t)},c=0,s=function(t){var e=++c;return"".concat(t||"").concat(e)},f=function(t,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!u(t)&&!(0,e.default)(t))return i;if(a(t)){var c=t.indexOf("%");o=n*parseFloat(t.slice(0,c))/100}else o=+t;return(0,r.default)(o)&&(o=i),l&&o>n&&(o=n),o},p=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},d=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++)if(r[t[n]])return!0;else r[t[n]]=!0;return!1},h=function(t,e){return u(t)&&u(e)?function(r){return t+r*(e-t)}:function(){return e}};function y(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):(0,n.default)(t,e))===r}):null}t.s(["findEntryInArray",()=>y,"getAnyElementOfObject",()=>p,"getPercentValue",()=>f,"hasDuplicate",()=>d,"interpolateNumber",()=>h,"isNumOrStr",()=>l,"isNumber",()=>u,"isPercent",()=>a,"mathSign",()=>i,"uniqueId",()=>s])},29071,t=>{"use strict";var e=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]};t.s(["warn",()=>e])},29873,(t,e,r)=>{e.exports=function(t){return null==t}},52210,(t,e,r)=>{"use strict";var n,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case a:case l:case u:case d:case h:return t;default:switch(t=t&&t.$$typeof){case f:case s:case p:case v:case y:case c:return t;default:return e}}case i:return e}}}n=Symbol.for("react.module.reference"),r.ContextConsumer=s,r.ContextProvider=c,r.Element=o,r.ForwardRef=p,r.Fragment=a,r.Lazy=v,r.Memo=y,r.Portal=i,r.Profiler=l,r.StrictMode=u,r.Suspense=d,r.SuspenseList=h,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(t){return b(t)===s},r.isContextProvider=function(t){return b(t)===c},r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},r.isForwardRef=function(t){return b(t)===p},r.isFragment=function(t){return b(t)===a},r.isLazy=function(t){return b(t)===v},r.isMemo=function(t){return b(t)===y},r.isPortal=function(t){return b(t)===i},r.isProfiler=function(t){return b(t)===l},r.isStrictMode=function(t){return b(t)===u},r.isSuspense=function(t){return b(t)===d},r.isSuspenseList=function(t){return b(t)===h},r.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===l||t===u||t===d||t===h||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===c||t.$$typeof===s||t.$$typeof===p||t.$$typeof===n||void 0!==t.getModuleId)||!1},r.typeOf=b},79684,(t,e,r)=>{"use strict";e.exports=t.r(52210)},81977,24573,73393,t=>{"use strict";var e=t.i(82820),r=t.i(29873),n=t.i(85845),o=t.i(71223),i=t.i(12447),a=t.i(71645),u=t.i(79684),l=t.i(94395);function c(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.s(["shallowEqual",()=>c],24573);var f=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],p=["points","pathLength"],d={svg:["viewBox","children"],polygon:p,polyline:p},h=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],y=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,a.isValidElement)(t)&&(r=t.props),!(0,i.default)(r))return null;var n={};return Object.keys(r).forEach(function(t){h.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})}),n},v=function(t,e,r){if(!(0,i.default)(t)||"object"!==s(t))return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];h.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t){return i(e,r,t),null})}),n};t.s(["EventKeys",()=>h,"FilteredElementKeyMap",()=>d,"SVGElementPropKeys",()=>f,"adaptEventHandlers",()=>y,"adaptEventsOfChild",()=>v],73393);var m=["children"],b=["children"];function g(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},O=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,j=null,E=function t(e){if(e===S&&Array.isArray(j))return j;var n=[];return a.Children.forEach(e,function(e){(0,r.default)(e)||((0,u.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),j=n,S=e,n};function P(t,r){var n=[],o=[];return o=Array.isArray(r)?r.map(function(t){return O(t)}):[O(r)],E(t).forEach(function(t){var r=(0,e.default)(t,"type.displayName")||(0,e.default)(t,"type.name");-1!==o.indexOf(r)&&n.push(t)}),n}function A(t,e){var r=P(t,e);return r&&r[0]}var k=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,l.isNumber)(r)&&!(r<=0)&&!!(0,l.isNumber)(n)&&!(n<=0)},T=["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"],M=function(t){return t&&"object"===x(t)&&"clipDot"in t},C=function(t,e,r,n){var i,a=null!=(i=null==d?void 0:d[n])?i:[];return!(0,o.default)(t)&&(n&&a.includes(e)||f.includes(e))||r&&h.includes(e)},_=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,a.isValidElement)(t)&&(n=t.props),!(0,i.default)(n))return null;var o={};return Object.keys(n).forEach(function(t){var i;C(null==(i=n)?void 0:i[t],t,e,r)&&(o[t]=n[t])}),o},N=function t(e,r){if(e===r)return!0;var n=a.Children.count(e);if(n!==a.Children.count(r))return!1;if(0===n)return!0;if(1===n)return D(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],u=r[o];if(Array.isArray(i)||Array.isArray(u)){if(!t(i,u))return!1}else if(!D(i,u))return!1}return!0},D=function(t,e){if((0,r.default)(t)&&(0,r.default)(e))return!0;if(!(0,r.default)(t)&&!(0,r.default)(e)){var n=t.props||{},o=n.children,i=g(n,m),a=e.props||{},u=a.children,l=g(a,b);if(o&&u)return c(i,l)&&N(o,u);if(!o&&!u)return c(i,l)}return!1},I=function(t,e){var r=[],o={};return E(t).forEach(function(t,i){if(t&&t.type&&(0,n.default)(t.type)&&T.indexOf(t.type)>=0)r.push(t);else if(t){var a=O(t.type),u=e[a]||{},l=u.handler,c=u.once;if(l&&(!c||!o[a])){var s=l(t,a,i);r.push(s),o[a]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},B=function(t,e){return E(e).indexOf(t)};t.s(["filterProps",()=>_,"findAllByType",()=>P,"findChildByType",()=>A,"getDisplayName",()=>O,"getReactEventByType",()=>R,"hasClipDot",()=>M,"isChildrenEqual",()=>N,"parseChildIndex",()=>B,"renderByOrder",()=>I,"validateWidthHeight",()=>k],81977)},44098,t=>{"use strict";var e=t.i(7670),r=t.i(71645),n=t.i(24283),o=t.i(94395),i=t.i(29071),a=t.i(81977);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var f=(0,r.forwardRef)(function(t,u){var l,f=t.aspect,p=t.initialDimension,d=void 0===p?{width:-1,height:-1}:p,h=t.width,y=void 0===h?"100%":h,v=t.height,m=void 0===v?"100%":v,b=t.minWidth,g=void 0===b?0:b,x=t.minHeight,w=t.maxHeight,O=t.children,S=t.debounce,j=void 0===S?0:S,E=t.id,P=t.className,A=t.onResize,k=t.style,T=(0,r.useRef)(null),M=(0,r.useRef)();M.current=A,(0,r.useImperativeHandle)(u,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var C=function(t){if(Array.isArray(t))return t}(l=(0,r.useState)({containerWidth:d.width,containerHeight:d.height}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(l,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=C[0],N=C[1],D=(0,r.useCallback)(function(t,e){N(function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);(0,r.useEffect)(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;D(n,o),null==(e=M.current)||e.call(M,n,o)};j>0&&(t=(0,n.default)(t,j,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=T.current.getBoundingClientRect();return D(r.width,r.height),e.observe(T.current),function(){e.disconnect()}},[D,j]);var I=(0,r.useMemo)(function(){var t=_.containerWidth,e=_.containerHeight;if(t<0||e<0)return null;(0,i.warn)((0,o.isPercent)(y)||(0,o.isPercent)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,m),(0,i.warn)(!f||f>0,"The aspect(%s) must be greater than zero.",f);var n=(0,o.isPercent)(y)?t:y,u=(0,o.isPercent)(m)?e:m;f&&f>0&&(n?u=n/f:u&&(n=u*f),w&&u>w&&(u=w)),(0,i.warn)(n>0||u>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,u,y,m,g,x,f);var l=!Array.isArray(O)&&(0,a.getDisplayName)(O.type).endsWith("Chart");return r.default.Children.map(O,function(t){return r.default.isValidElement(t)?(0,r.cloneElement)(t,c({width:n,height:u},l?{style:c({height:"100%",width:"100%",maxHeight:u,maxWidth:n},t.props.style)}:{})):t})},[f,O,m,w,x,g,_,y]);return r.default.createElement("div",{id:E?"".concat(E):void 0,className:(0,e.default)("recharts-responsive-container",P),style:c(c({},void 0===k?{}:k),{},{width:y,height:m,minWidth:g,minHeight:x,maxHeight:w}),ref:T},I)});t.s(["ResponsiveContainer",()=>f])},93440,(t,e,r)=>{var n=Math.ceil,o=Math.max;e.exports=function(t,e,r,i){for(var a=-1,u=o(n((e-t)/(r||1)),0),l=Array(u);u--;)l[i?u:++a]=t,t+=r;return l}},98376,(t,e,r)=>{e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},51095,(t,e,r)=>{var n=t.r(71223),o=t.r(98376);e.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},66397,(t,e,r)=>{var n=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},70237,(t,e,r)=>{var n=t.r(25172),o=t.r(51095),i=t.r(66397),a=t.r(12447);e.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return("number"==u?!!(o(r)&&i(e,r.length)):"string"==u&&e in r)&&n(r[e],t)}},82560,(t,e,r)=>{var n=t.r(73759),o=1/0;e.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},69523,(t,e,r)=>{var n=t.r(93440),o=t.r(70237),i=t.r(82560);e.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},44950,(t,e,r)=>{e.exports=t.r(69523)()},69102,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},66645,(t,e,r)=>{var n=t.r(77684),o=t.r(77289);e.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},73250,(t,e,r)=>{var n=t.r(66645),o=t.r(77289),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")}},33803,(t,e,r)=>{var n=t.r(30353),o=t.r(73250),i=t.r(45350),a=n?n.isConcatSpreadable:void 0;e.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},41891,(t,e,r)=>{var n=t.r(69102),o=t.r(33803);e.exports=function t(e,r,i,a,u){var l=-1,c=e.length;for(i||(i=o),u||(u=[]);++l<c;){var s=e[l];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},5400,(t,e,r)=>{var n=t.r(29039);e.exports=function(){this.__data__=new n,this.size=0}},86238,(t,e,r)=>{e.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},57831,(t,e,r)=>{e.exports=function(t){return this.__data__.get(t)}},77802,(t,e,r)=>{e.exports=function(t){return this.__data__.has(t)}},20517,(t,e,r)=>{var n=t.r(29039),o=t.r(87362),i=t.r(87547);e.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},1551,(t,e,r)=>{var n=t.r(29039),o=t.r(5400),i=t.r(86238),a=t.r(57831),u=t.r(77802),l=t.r(20517);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=l,e.exports=c},21274,(t,e,r)=>{e.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},39805,(t,e,r)=>{e.exports=function(t){return this.__data__.has(t)}},27493,(t,e,r)=>{var n=t.r(87547),o=t.r(21274),i=t.r(39805);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},51477,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},15262,(t,e,r)=>{e.exports=function(t,e){return t.has(e)}},6856,(t,e,r)=>{var n=t.r(27493),o=t.r(51477),i=t.r(15262);e.exports=function(t,e,r,a,u,l){var c=1&r,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var p=l.get(t),d=l.get(e);if(p&&d)return p==e&&d==t;var h=-1,y=!0,v=2&r?new n:void 0;for(l.set(t,e),l.set(e,t);++h<s;){var m=t[h],b=e[h];if(a)var g=c?a(b,m,h,e,t,l):a(m,b,h,t,e,l);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,function(t,e){if(!i(v,e)&&(m===t||u(m,t,r,a,l)))return v.push(e)})){y=!1;break}}else if(!(m===b||u(m,b,r,a,l))){y=!1;break}}return l.delete(t),l.delete(e),y}},63750,(t,e,r)=>{e.exports=t.r(39088).Uint8Array},75331,(t,e,r)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},99850,(t,e,r)=>{e.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},78012,(t,e,r)=>{var n=t.r(30353),o=t.r(63750),i=t.r(25172),a=t.r(6856),u=t.r(75331),l=t.r(99850),c=n?n.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(t,e,r,n,c,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=u;case"[object Set]":var h=1&n;if(d||(d=l),t.size!=e.size&&!h)break;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(d(t),d(e),n,c,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},23403,(t,e,r)=>{var n=t.r(69102),o=t.r(45350);e.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},36100,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},45159,(t,e,r)=>{e.exports=function(){return[]}},17332,(t,e,r)=>{var n=t.r(36100),o=t.r(45159),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return i.call(t,e)})}:o},55803,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},24013,(t,e,r)=>{e.exports=function(){return!1}},56956,(t,e,r)=>{var n=t.r(39088),o=t.r(24013),i=r&&!r.nodeType&&r,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?n.Buffer:void 0;e.exports=(u?u.isBuffer:void 0)||o},76602,(t,e,r)=>{var n=t.r(77684),o=t.r(98376),i=t.r(77289),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},33999,(t,e,r)=>{e.exports=function(t){return function(e){return t(e)}}},80156,(t,e,r)=>{var n=t.r(236),o=r&&!r.nodeType&&r,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process;e.exports=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}()},3023,(t,e,r)=>{var n=t.r(76602),o=t.r(33999),i=t.r(80156),a=i&&i.isTypedArray;e.exports=a?o(a):n},58877,(t,e,r)=>{var n=t.r(55803),o=t.r(73250),i=t.r(45350),a=t.r(56956),u=t.r(66397),l=t.r(3023),c=Object.prototype.hasOwnProperty;e.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&l(t),d=r||s||f||p,h=d?n(t.length,String):[],y=h.length;for(var v in t)(e||c.call(t,v))&&!(d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y)))&&h.push(v);return h}},63996,(t,e,r)=>{var n=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},25717,(t,e,r)=>{e.exports=function(t,e){return function(r){return t(e(r))}}},42369,(t,e,r)=>{e.exports=t.r(25717)(Object.keys,Object)},48477,(t,e,r)=>{var n=t.r(63996),o=t.r(42369),i=Object.prototype.hasOwnProperty;e.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},33679,(t,e,r)=>{var n=t.r(58877),o=t.r(48477),i=t.r(51095);e.exports=function(t){return i(t)?n(t):o(t)}},13370,(t,e,r)=>{var n=t.r(23403),o=t.r(17332),i=t.r(33679);e.exports=function(t){return n(t,i,o)}},30698,(t,e,r)=>{var n=t.r(13370),o=Object.prototype.hasOwnProperty;e.exports=function(t,e,r,i,a,u){var l=1&r,c=n(t),s=c.length;if(s!=n(e).length&&!l)return!1;for(var f=s;f--;){var p=c[f];if(!(l?p in e:o.call(e,p)))return!1}var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=l;++f<s;){var m=t[p=c[f]],b=e[p];if(i)var g=l?i(b,m,p,e,t,u):i(m,b,p,t,e,u);if(!(void 0===g?m===b||a(m,b,r,i,u):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(y=!1)}return u.delete(t),u.delete(e),y}},1419,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"DataView")},17074,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Promise")},6966,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"Set")},73895,(t,e,r)=>{e.exports=t.r(41920)(t.r(39088),"WeakMap")},67426,(t,e,r)=>{var n=t.r(1419),o=t.r(87362),i=t.r(17074),a=t.r(6966),u=t.r(73895),l=t.r(77684),c=t.r(76366),s="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",y=c(n),v=c(o),m=c(i),b=c(a),g=c(u),x=l;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=d)&&(x=function(t){var e=l(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case y:return h;case v:return s;case m:return f;case b:return p;case g:return d}return e}),e.exports=x},78353,(t,e,r)=>{var n=t.r(1551),o=t.r(6856),i=t.r(78012),a=t.r(30698),u=t.r(67426),l=t.r(45350),c=t.r(56956),s=t.r(3023),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(t,e,r,y,v,m){var b=l(t),g=l(e),x=b?p:u(t),w=g?p:u(e);x=x==f?d:x,w=w==f?d:w;var O=x==d,S=w==d,j=x==w;if(j&&c(t)){if(!c(e))return!1;b=!0,O=!1}if(j&&!O)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&h.call(t,"__wrapped__"),P=S&&h.call(e,"__wrapped__");if(E||P){var A=E?t.value():t,k=P?e.value():e;return m||(m=new n),v(A,k,r,y,m)}}return!!j&&(m||(m=new n),a(t,e,r,y,v,m))}},21885,(t,e,r)=>{var n=t.r(78353),o=t.r(77289);e.exports=function t(e,r,i,a,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,a,t,u):e!=e&&r!=r)}},48299,(t,e,r)=>{var n=t.r(1551),o=t.r(21885);e.exports=function(t,e,r,i){var a=r.length,u=a,l=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=r[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var s=(c=r[a])[0],f=t[s],p=c[1];if(l&&c[2]){if(void 0===f&&!(s in t))return!1}else{var d=new n;if(i)var h=i(f,p,s,t,e,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},15782,(t,e,r)=>{var n=t.r(12447);e.exports=function(t){return t==t&&!n(t)}},41903,(t,e,r)=>{var n=t.r(15782),o=t.r(33679);e.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},65570,(t,e,r)=>{e.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},23426,(t,e,r)=>{var n=t.r(48299),o=t.r(41903),i=t.r(65570);e.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},40688,(t,e,r)=>{e.exports=function(t,e){return null!=t&&e in Object(t)}},15359,(t,e,r)=>{var n=t.r(86287),o=t.r(73250),i=t.r(45350),a=t.r(66397),u=t.r(98376),l=t.r(2054);e.exports=function(t,e,r){e=n(e,t);for(var c=-1,s=e.length,f=!1;++c<s;){var p=l(e[c]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++c!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},76590,(t,e,r)=>{var n=t.r(40688),o=t.r(15359);e.exports=function(t,e){return null!=t&&o(t,e,n)}},72298,(t,e,r)=>{var n=t.r(21885),o=t.r(82820),i=t.r(76590),a=t.r(9903),u=t.r(15782),l=t.r(65570),c=t.r(2054);e.exports=function(t,e){return a(t)&&u(e)?l(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},53336,(t,e,r)=>{e.exports=function(t){return t}},1079,(t,e,r)=>{e.exports=function(t){return function(e){return null==e?void 0:e[t]}}},30970,(t,e,r)=>{var n=t.r(33141);e.exports=function(t){return function(e){return n(e,t)}}},33906,(t,e,r)=>{var n=t.r(1079),o=t.r(30970),i=t.r(9903),a=t.r(2054);e.exports=function(t){return i(t)?n(a(t)):o(t)}},66305,(t,e,r)=>{var n=t.r(23426),o=t.r(72298),i=t.r(53336),a=t.r(45350),u=t.r(33906);e.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},36755,(t,e,r)=>{e.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var l=a[t?u:++o];if(!1===r(i[l],l,i))break}return e}}},98728,(t,e,r)=>{e.exports=t.r(36755)()},63799,(t,e,r)=>{var n=t.r(98728),o=t.r(33679);e.exports=function(t,e){return t&&n(t,e,o)}},73554,(t,e,r)=>{var n=t.r(51095);e.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},53587,(t,e,r)=>{var n=t.r(63799);e.exports=t.r(73554)(n)},7073,(t,e,r)=>{var n=t.r(53587),o=t.r(51095);e.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,function(t,n,o){i[++r]=e(t,n,o)}),i}},83629,(t,e,r)=>{e.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},4886,(t,e,r)=>{var n=t.r(61884);e.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,l=null===e,c=e==e,s=n(e);if(!l&&!s&&!a&&t>e||a&&u&&c&&!l&&!s||o&&u&&c||!r&&c||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||l&&r&&i||!u&&i||!c)return -1}return 0}},58322,(t,e,r)=>{var n=t.r(4886);e.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,l=r.length;++o<u;){var c=n(i[o],a[o]);if(c){if(o>=l)return c;return c*("desc"==r[o]?-1:1)}}return t.index-e.index}},28138,(t,e,r)=>{var n=t.r(92708),o=t.r(33141),i=t.r(66305),a=t.r(7073),u=t.r(83629),l=t.r(33999),c=t.r(58322),s=t.r(53336),f=t.r(45350);e.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t}):[s];var p=-1;return e=n(e,l(i)),u(a(t,function(t,r,o){return{criteria:n(e,function(e){return e(t)}),index:++p,value:t}}),function(t,e){return c(t,e,r)})}},87160,(t,e,r)=>{e.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},72953,(t,e,r)=>{var n=t.r(87160),o=Math.max;e.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),l=Array(u);++a<u;)l[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(l),n(t,this,c)}}},56751,(t,e,r)=>{e.exports=function(t){return function(){return t}}},24251,(t,e,r)=>{var n=t.r(41920);e.exports=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},1647,(t,e,r)=>{var n=t.r(56751),o=t.r(24251),i=t.r(53336);e.exports=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i},51994,(t,e,r)=>{var n=Date.now;e.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},84665,(t,e,r)=>{var n=t.r(1647);e.exports=t.r(51994)(n)},95059,(t,e,r)=>{var n=t.r(53336),o=t.r(72953),i=t.r(84665);e.exports=function(t,e){return i(o(t,e,n),t+"")}},31195,(t,e,r)=>{var n=t.r(41891),o=t.r(28138),i=t.r(95059),a=t.r(70237);e.exports=i(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])})},40992,t=>{"use strict";function e(t,e){if(!t)throw Error("Invariant failed")}t.s(["default",()=>e])},56445,(t,e,r)=>{e.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},4078,(t,e,r)=>{e.exports=function(t){return t!=t}},1987,(t,e,r)=>{e.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}},49719,(t,e,r)=>{var n=t.r(56445),o=t.r(4078),i=t.r(1987);e.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},46515,(t,e,r)=>{var n=t.r(49719);e.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},29584,(t,e,r)=>{e.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},91692,(t,e,r)=>{e.exports=function(){}},8484,(t,e,r)=>{var n=t.r(6966),o=t.r(91692),i=t.r(99850);e.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},10339,(t,e,r)=>{var n=t.r(27493),o=t.r(46515),i=t.r(29584),a=t.r(15262),u=t.r(8484),l=t.r(99850);e.exports=function(t,e,r){var c=-1,s=o,f=t.length,p=!0,d=[],h=d;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return l(y);p=!1,s=a,h=new n}else h=e?[]:d;t:for(;++c<f;){var v=t[c],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var b=h.length;b--;)if(h[b]===m)continue t;e&&h.push(m),d.push(v)}else s(h,m,r)||(h!==d&&h.push(m),d.push(v))}return d}},74010,(t,e,r)=>{var n=t.r(66305),o=t.r(10339);e.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},48337,97865,62728,51587,34239,t=>{"use strict";var e=t.i(71645),r=t.i(7670),n=t.i(81977),o=["children","width","height","viewBox","className","style","title","desc"];function i(){return(i=Object.assign.bind()).apply(this,arguments)}function a(t){var a=t.children,u=t.width,l=t.height,c=t.viewBox,s=t.className,f=t.style,p=t.title,d=t.desc,h=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,o),y=c||{width:u,height:l,x:0,y:0},v=(0,r.default)("recharts-surface",s);return e.default.createElement("svg",i({},(0,n.filterProps)(h,!0,"svg"),{className:v,width:u,height:l,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),e.default.createElement("title",null,p),e.default.createElement("desc",null,d),a)}t.s(["Surface",()=>a],48337);var u=["children","className"];function l(){return(l=Object.assign.bind()).apply(this,arguments)}var c=e.default.forwardRef(function(t,o){var i=t.children,a=t.className,c=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),s=(0,r.default)("recharts-layer",a);return e.default.createElement("g",l({className:s},(0,n.filterProps)(c,!0),{ref:o}),i)});t.s(["Layer",()=>c],97865);var s=t.i(31195),f=t.i(29873),p=t.i(94395);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(){return(h=Object.assign.bind()).apply(this,arguments)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t){return Array.isArray(t)&&(0,p.isNumOrStr)(t[0])&&(0,p.isNumOrStr)(t[1])?t.join(" ~ "):t}var g=function(t){var n=t.separator,o=void 0===n?" : ":n,i=t.contentStyle,a=t.itemStyle,u=void 0===a?{}:a,l=t.labelStyle,c=t.payload,d=t.formatter,v=t.itemSorter,g=t.wrapperClassName,x=t.labelClassName,w=t.label,O=t.labelFormatter,S=t.accessibilityLayer,j=m({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===i?{}:i),E=m({margin:0},void 0===l?{}:l),P=!(0,f.default)(w),A=P?w:"",k=(0,r.default)("recharts-default-tooltip",g),T=(0,r.default)("recharts-tooltip-label",x);return P&&O&&null!=c&&(A=O(w,c)),e.default.createElement("div",h({className:k,style:j},void 0!==S&&S?{role:"status","aria-live":"assertive"}:{}),e.default.createElement("p",{className:T,style:E},e.default.isValidElement(A)?A:"".concat(A)),function(){if(c&&c.length){var t=(v?(0,s.default)(c,v):c).map(function(t,r){if("none"===t.type)return null;var n=m({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},u),i=t.formatter||d||b,a=t.value,l=t.name,s=a,f=l;if(i&&null!=s&&null!=f){var h=i(a,l,t,r,c);if(Array.isArray(h)){var v=function(t){if(Array.isArray(t))return t}(h)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(h,2)||function(t,e){if(t){if("string"==typeof t)return y(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,2)}}(h,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();s=v[0],f=v[1]}else s=h}return e.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:n},(0,p.isNumOrStr)(f)?e.default.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,p.isNumOrStr)(f)?e.default.createElement("span",{className:"recharts-tooltip-item-separator"},o):null,e.default.createElement("span",{className:"recharts-tooltip-item-value"},s),e.default.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return e.default.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e,r){var n;return(n=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==x(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O="recharts-tooltip-wrapper",S={visibility:"hidden"};function j(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,u=t.tooltipDimension,l=t.viewBox,c=t.viewBoxDimension;if(i&&(0,p.isNumber)(i[n]))return i[n];var s=r[n]-u-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<l[n]?Math.max(f,l[n]):Math.max(s,l[n]):f+u>l[n]+c?Math.max(s,l[n]):Math.max(f,l[n])}function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){C(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(t,e){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function C(t,e,r){return(e=_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=E(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}var N=function(t){var n;function o(){var t,e,r;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return e=o,r=[].concat(i),e=T(e),C(t=function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,k()?Reflect.construct(e,r||[],T(this).constructor):e.apply(this,r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),C(t,"handleKeyDown",function(e){if("Escape"===e.key){var r,n,o,i;t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=t.props.coordinate)?void 0:n.x)?r:0,y:null!=(o=null==(i=t.props.coordinate)?void 0:i.y)?o:0}})}}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&M(o,t),n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(t=this.props.coordinate)?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null==(e=this.props.coordinate)?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,n,o,i,a,u,l,c,s,f,d,h,y,v,m,b,g,x,E,P=this,k=this.props,T=k.active,M=k.allowEscapeViewBox,C=k.animationDuration,_=k.animationEasing,N=k.children,D=k.coordinate,I=k.hasPayload,R=k.isAnimationActive,B=k.offset,L=k.position,z=k.reverseDirection,F=k.useTranslate3d,U=k.viewBox,$=k.wrapperStyle,H=(h=(t={allowEscapeViewBox:M,coordinate:D,offsetTopLeft:B,position:L,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:F,viewBox:U}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,m=t.position,b=t.reverseDirection,g=t.tooltipBox,x=t.useTranslate3d,E=t.viewBox,g.height>0&&g.width>0&&y?(o=(n={translateX:f=j({allowEscapeViewBox:h,coordinate:y,key:"x",offsetTopLeft:v,position:m,reverseDirection:b,tooltipDimension:g.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=j({allowEscapeViewBox:h,coordinate:y,key:"y",offsetTopLeft:v,position:m,reverseDirection:b,tooltipDimension:g.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:x}).translateX,i=n.translateY,s={transform:n.useTranslate3d?"translate3d(".concat(o,"px, ").concat(i,"px, 0)"):"translate(".concat(o,"px, ").concat(i,"px)")}):s=S,{cssProperties:s,cssClasses:(u=(a={translateX:f,translateY:d,coordinate:y}).coordinate,l=a.translateX,c=a.translateY,(0,r.default)(O,w(w(w(w({},"".concat(O,"-right"),(0,p.isNumber)(l)&&u&&(0,p.isNumber)(u.x)&&l>=u.x),"".concat(O,"-left"),(0,p.isNumber)(l)&&u&&(0,p.isNumber)(u.x)&&l<u.x),"".concat(O,"-bottom"),(0,p.isNumber)(c)&&u&&(0,p.isNumber)(u.y)&&c>=u.y),"".concat(O,"-top"),(0,p.isNumber)(c)&&u&&(0,p.isNumber)(u.y)&&c<u.y)))}),W=H.cssClasses,q=H.cssProperties,V=A(A({transition:R&&T?"transform ".concat(C,"ms ").concat(_):void 0},q),{},{pointerEvents:"none",visibility:!this.state.dismissed&&T&&I?"visible":"hidden",position:"absolute",top:0,left:0},$);return e.default.createElement("div",{tabIndex:-1,className:W,style:V,ref:function(t){P.wrapperNode=t}},N)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_(n.key),n)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e.PureComponent),D={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return D[t]},set:function(t,e){if("string"==typeof t)D[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){D[e]=t[e]})}}};t.s(["Global",()=>D],62728);var I=t.i(74010),R=t.i(71223);function B(t,e,r){return!0===e?(0,I.default)(t,r):(0,R.default)(e)?(0,I.default)(t,e):t}function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach(function(e){W(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}t.s(["getUniqPayload",()=>B],51587);function U(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(U=function(){return!!t})()}function $(t){return($=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function H(t,e){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function W(t,e,r){return(e=q(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function q(t){var e=function(t,e){if("object"!=L(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=L(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==L(e)?e:e+""}function V(t){return t.dataKey}var X=function(t){var r;function n(){var t,e;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return t=n,e=arguments,t=$(t),function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,U()?Reflect.construct(t,e||[],$(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&H(n,t),r=[{key:"render",value:function(){var t,r=this,n=this.props,o=n.active,i=n.allowEscapeViewBox,a=n.animationDuration,u=n.animationEasing,l=n.content,c=n.coordinate,s=n.filterNull,f=n.isAnimationActive,p=n.offset,d=n.payload,h=n.payloadUniqBy,y=n.position,v=n.reverseDirection,m=n.useTranslate3d,b=n.viewBox,x=n.wrapperStyle,w=null!=d?d:[];s&&w.length&&(w=B(d.filter(function(t){return null!=t.value&&(!0!==t.hide||r.props.includeHidden)}),h,V));var O=w.length>0;return e.default.createElement(N,{allowEscapeViewBox:i,animationDuration:a,animationEasing:u,isAnimationActive:f,active:o,coordinate:c,hasPayload:O,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:b,wrapperStyle:x},(t=F(F({},this.props),{},{payload:w}),e.default.isValidElement(l)?e.default.cloneElement(l,t):"function"==typeof l?e.default.createElement(l,t):e.default.createElement(g,t)))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,q(n.key),n)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(e.PureComponent);W(X,"displayName","Tooltip"),W(X,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!D.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}}),t.s(["Tooltip",()=>X],34239)},95014,(t,e,r)=>{e.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},84357,(t,e,r)=>{var n=t.r(95014);e.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},79589,(t,e,r)=>{var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return n.test(t)}},58672,(t,e,r)=>{e.exports=function(t){return t.split("")}},95365,(t,e,r)=>{var n="\\ud800-\\udfff",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+o+"|"+i+")?",s="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[a,u,l].join("|")+")"+s+c+")*",p=RegExp(i+"(?="+i+")|"+("(?:"+[a+o+"?",o,u,l,"["+n+"]"].join("|"))+")"+(s+c+f),"g");e.exports=function(t){return t.match(p)||[]}},34170,(t,e,r)=>{var n=t.r(58672),o=t.r(79589),i=t.r(95365);e.exports=function(t){return o(t)?i(t):n(t)}},29821,(t,e,r)=>{var n=t.r(84357),o=t.r(79589),i=t.r(34170),a=t.r(2922);e.exports=function(t){return function(e){var r=o(e=a(e))?i(e):void 0,u=r?r[0]:e.charAt(0),l=r?n(r,1).join(""):e.slice(1);return u[t]()+l}}},32241,(t,e,r)=>{e.exports=t.r(29821)("toUpperCase")},32189,(t,e,r)=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},65156,(t,e,r)=>{"use strict";var n=t.r(32189);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},45009,(t,e,r)=>{e.exports=t.r(65156)()},41015,(t,e,r)=>{var n=t.r(61884);e.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===l?u==u&&!n(u):r(u,l)))var l=u,c=a}return c}},80957,(t,e,r)=>{e.exports=function(t,e){return t>e}},86966,(t,e,r)=>{var n=t.r(41015),o=t.r(80957),i=t.r(53336);e.exports=function(t){return t&&t.length?n(t,i,o):void 0}},98128,(t,e,r)=>{e.exports=function(t,e){return t<e}},37544,(t,e,r)=>{var n=t.r(41015),o=t.r(98128),i=t.r(53336);e.exports=function(t){return t&&t.length?n(t,i,o):void 0}},10632,(t,e,r)=>{var n=t.r(92708),o=t.r(66305),i=t.r(7073),a=t.r(45350);e.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},33303,(t,e,r)=>{var n=t.r(41891),o=t.r(10632);e.exports=function(t,e){return n(o(t,e),1)}},98892,(t,e,r)=>{var n=t.r(21885);e.exports=function(t,e){return n(t,e)}},51655,(t,e,r)=>{!function(r){"use strict";var n,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},i=!0,a="[DecimalError] ",u=a+"Invalid argument: ",l=a+"Exponent out of range: ",c=Math.floor,s=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=c(1286742750677284.5),d={};function h(t,e){var r,n,o,a,u,l,c,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),i?j(e,p):e;if(c=t.d,s=e.d,u=t.e,o=e.e,c=c.slice(),a=u-o){for(a<0?(n=c,a=-a,l=s.length):(n=s,o=u,l=c.length),a>(l=(u=Math.ceil(p/7))>l?u+1:l+1)&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((l=c.length)-(a=s.length)<0&&(a=l,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/1e7|0,c[a]%=1e7;for(r&&(c.unshift(r),++o),l=c.length;0==c[--l];)c.pop();return e.d=c,e.e=o,i?j(e,p):e}function y(t,e,r){if(t!==~~t||t<e||t>r)throw Error(u+t)}function v(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=w(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=w(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}d.absoluteValue=d.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},d.comparedTo=d.cmp=function(t){var e,r,n,o;if(t=new this.constructor(t),this.s!==t.s)return this.s||-t.s;if(this.e!==t.e)return this.e>t.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(o=t.d.length)?n:o;e<r;++e)if(this.d[e]!==t.d[e])return this.d[e]>t.d[e]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},d.decimalPlaces=d.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},d.dividedBy=d.div=function(t){return m(this,new this.constructor(t))},d.dividedToIntegerBy=d.idiv=function(t){var e=this.constructor;return j(m(this,new e(t),0,1),e.precision)},d.equals=d.eq=function(t){return!this.cmp(t)},d.exponent=function(){return g(this)},d.greaterThan=d.gt=function(t){return this.cmp(t)>0},d.greaterThanOrEqualTo=d.gte=function(t){return this.cmp(t)>=0},d.isInteger=d.isint=function(){return this.e>this.d.length-2},d.isNegative=d.isneg=function(){return this.s<0},d.isPositive=d.ispos=function(){return this.s>0},d.isZero=function(){return 0===this.s},d.lessThan=d.lt=function(t){return 0>this.cmp(t)},d.lessThanOrEqualTo=d.lte=function(t){return 1>this.cmp(t)},d.logarithm=d.log=function(t){var e,r=this.constructor,o=r.precision,u=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(n))throw Error(a+"NaN");if(this.s<1)throw Error(a+(this.s?"NaN":"-Infinity"));return this.eq(n)?new r(0):(i=!1,e=m(O(this,u),O(t,u),u),i=!0,j(e,o))},d.minus=d.sub=function(t){return t=new this.constructor(t),this.s==t.s?E(this,t):h(this,(t.s=-t.s,t))},d.modulo=d.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(a+"NaN");return this.s?(i=!1,e=m(this,t,0,1).times(t),i=!0,this.minus(e)):j(new r(this),n)},d.naturalExponential=d.exp=function(){return b(this)},d.naturalLogarithm=d.ln=function(){return O(this)},d.negated=d.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},d.plus=d.add=function(t){return t=new this.constructor(t),this.s==t.s?h(this,t):E(this,(t.s=-t.s,t))},d.precision=d.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(u+t);if(e=g(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},d.squareRoot=d.sqrt=function(){var t,e,r,n,o,u,l,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(a+"NaN")}for(t=g(this),i=!1,0==(o=Math.sqrt(+this))||o==1/0?(((e=v(this.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=c((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=l=(r=s.precision)+3;;)if(n=(u=n).plus(m(this,u,l+2)).times(.5),v(u.d).slice(0,l)===(e=v(n.d)).slice(0,l)){if(e=e.slice(l-3,l+1),o==l&&"4999"==e){if(j(u,r+1,0),u.times(u).eq(this)){n=u;break}}else if("9999"!=e)break;l+=4}return i=!0,j(n,r)},d.times=d.mul=function(t){var e,r,n,o,a,u,l,c,s,f=this.constructor,p=this.d,d=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(c=p.length)<(s=d.length)&&(a=p,p=d,d=a,u=c,c=s,s=u),a=[],n=u=c+s;n--;)a.push(0);for(n=s;--n>=0;){for(e=0,o=c+n;o>n;)l=a[o]+d[n]*p[o-n-1]+e,a[o--]=l%1e7|0,e=l/1e7|0;a[o]=(a[o]+e)%1e7|0}for(;!a[--u];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,i?j(t,f.precision):t},d.toDecimalPlaces=d.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(y(t,0,1e9),void 0===e?e=n.rounding:y(e,0,8),j(r,t+g(r)+1,e))},d.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=P(n,!0):(y(t,0,1e9),void 0===e?e=o.rounding:y(e,0,8),r=P(n=j(new o(n),t+1,e),!0,t+1)),r},d.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?P(this):(y(t,0,1e9),void 0===e?e=o.rounding:y(e,0,8),r=P((n=j(new o(this),t+g(this)+1,e)).abs(),!1,t+g(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},d.toInteger=d.toint=function(){var t=this.constructor;return j(new t(this),g(this)+1,t.rounding)},d.toNumber=function(){return+this},d.toPower=d.pow=function(t){var e,r,o,u,l,s,f=this,p=f.constructor,d=+(t=new p(t));if(!t.s)return new p(n);if(!(f=new p(f)).s){if(t.s<1)throw Error(a+"Infinity");return f}if(f.eq(n))return f;if(o=p.precision,t.eq(n))return j(f,o);if(s=(e=t.e)>=(r=t.d.length-1),l=f.s,s){if((r=d<0?-d:d)<=0x1fffffffffffff){for(u=new p(n),e=Math.ceil(o/7+4),i=!1;r%2&&A((u=u.times(f)).d,e),0!==(r=c(r/2));)A((f=f.times(f)).d,e);return i=!0,t.s<0?new p(n).div(u):j(u,o)}}else if(l<0)throw Error(a+"NaN");return l=l<0&&1&t.d[Math.max(e,r)]?-1:1,f.s=1,i=!1,u=t.times(O(f,o+12)),i=!0,(u=b(u)).s=l,u},d.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?(r=g(o),n=P(o,r<=i.toExpNeg||r>=i.toExpPos)):(y(t,1,1e9),void 0===e?e=i.rounding:y(e,0,8),r=g(o=j(new i(o),t,e)),n=P(o,t<=r||r<=i.toExpNeg,t)),n},d.toSignificantDigits=d.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(y(t,1,1e9),void 0===e?e=r.rounding:y(e,0,8)),j(new r(this),t,e)},d.toString=d.valueOf=d.val=d.toJSON=function(){var t=g(this),e=this.constructor;return P(this,t<=e.toExpNeg||t>=e.toExpPos)};var m=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=+(t[r]<e[r]),t[r]=1e7*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,u){var l,c,s,f,p,d,h,y,v,m,b,x,w,O,S,E,P,A,k=n.constructor,T=n.s==o.s?1:-1,M=n.d,C=o.d;if(!n.s)return new k(n);if(!o.s)throw Error(a+"Division by zero");for(s=0,c=n.e-o.e,P=C.length,S=M.length,y=(h=new k(T)).d=[];C[s]==(M[s]||0);)++s;if(C[s]>(M[s]||0)&&--c,(x=null==i?i=k.precision:u?i+(g(n)-g(o))+1:i)<0)return new k(0);if(x=x/7+2|0,s=0,1==P)for(f=0,C=C[0],x++;(s<S||f)&&x--;s++)w=1e7*f+(M[s]||0),y[s]=w/C|0,f=w%C|0;else{for((f=1e7/(C[0]+1)|0)>1&&(C=t(C,f),M=t(M,f),P=C.length,S=M.length),O=P,m=(v=M.slice(0,P)).length;m<P;)v[m++]=0;(A=C.slice()).unshift(0),E=C[0],C[1]>=1e7/2&&++E;do f=0,(l=e(C,v,P,m))<0?(b=v[0],P!=m&&(b=1e7*b+(v[1]||0)),(f=b/E|0)>1?(f>=1e7&&(f=1e7-1),d=(p=t(C,f)).length,m=v.length,1==(l=e(p,v,d,m))&&(f--,r(p,P<d?A:C,d))):(0==f&&(l=f=1),p=C.slice()),(d=p.length)<m&&p.unshift(0),r(v,p,m),-1==l&&(m=v.length,(l=e(C,v,P,m))<1&&(f++,r(v,P<m?A:C,m))),m=v.length):0===l&&(f++,v=[0]),y[s++]=f,l&&v[0]?v[m++]=M[O]||0:(v=[M[O]],m=1);while((O++<S||void 0!==v[0])&&x--)}return y[0]||y.shift(),h.e=c,j(h,u?i+g(h)+1:i)}}();function b(t,e){var r,o,a,u,c,f=0,p=0,d=t.constructor,h=d.precision;if(g(t)>16)throw Error(l+g(t));if(!t.s)return new d(n);for(null==e?(i=!1,c=h):c=e,u=new d(.03125);t.abs().gte(.1);)t=t.times(u),p+=5;for(c+=Math.log(s(2,p))/Math.LN10*2+5|0,r=o=a=new d(n),d.precision=c;;){if(o=j(o.times(t),c),r=r.times(++f),v((u=a.plus(m(o,r,c))).d).slice(0,c)===v(a.d).slice(0,c)){for(;p--;)a=j(a.times(a),c);return d.precision=h,null==e?(i=!0,j(a,h)):a}a=u}}function g(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function x(t,e,r){if(e>t.LN10.sd())throw i=!0,r&&(t.precision=r),Error(a+"LN10 precision limit exceeded");return j(new t(t.LN10),e)}function w(t){for(var e="";t--;)e+="0";return e}function O(t,e){var r,o,u,l,c,s,f,p,d,h=1,y=t,b=y.d,w=y.constructor,S=w.precision;if(y.s<1)throw Error(a+(y.s?"NaN":"-Infinity"));if(y.eq(n))return new w(0);if(null==e?(i=!1,p=S):p=e,y.eq(10))return null==e&&(i=!0),x(w,p);if(w.precision=p+=10,o=(r=v(b)).charAt(0),!(15e14>Math.abs(l=g(y))))return f=x(w,p+2,S).times(l+""),y=O(new w(o+"."+r.slice(1)),p-10).plus(f),w.precision=S,null==e?(i=!0,j(y,S)):y;for(;o<7&&1!=o||1==o&&r.charAt(1)>3;)o=(r=v((y=y.times(t)).d)).charAt(0),h++;for(l=g(y),o>1?(y=new w("0."+r),l++):y=new w(o+"."+r.slice(1)),s=c=y=m(y.minus(n),y.plus(n),p),d=j(y.times(y),p),u=3;;){if(c=j(c.times(d),p),v((f=s.plus(m(c,new w(u),p))).d).slice(0,p)===v(s.d).slice(0,p))return s=s.times(2),0!==l&&(s=s.plus(x(w,p+2,S).times(l+""))),s=m(s,new w(h),p),w.precision=S,null==e?(i=!0,j(s,S)):s;s=f,u+=2}}function S(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,t.e=c((r=r-n-1)/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),i&&(t.e>p||t.e<-p))throw Error(l+r)}else t.s=0,t.e=0,t.d=[0];return t}function j(t,e,r){var n,o,a,u,f,d,h,y,v=t.d;for(u=1,a=v[0];a>=10;a/=10)u++;if((n=e-u)<0)n+=7,o=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(a=v.length))return t;for(u=1,h=a=v[y];a>=10;a/=10)u++;n%=7,o=n-7+u}if(void 0!==r&&(f=h/(a=s(10,u-o-1))%10|0,d=e<0||void 0!==v[y+1]||h%a,d=r<4?(f||d)&&(0==r||r==(t.s<0?3:2)):f>5||5==f&&(4==r||d||6==r&&(n>0?o>0?h/s(10,u-o):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return d?(a=g(t),v.length=1,e=e-a-1,v[0]=s(10,(7-e%7)%7),t.e=c(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,a=1,y--):(v.length=y+1,a=s(10,7-n),v[y]=o>0?(h/s(10,u-o)%s(10,o)|0)*a:0),d)for(;;)if(0==y){1e7==(v[0]+=a)&&(v[0]=1,++t.e);break}else{if(v[y]+=a,1e7!=v[y])break;v[y--]=0,a=1}for(n=v.length;0===v[--n];)v.pop();if(i&&(t.e>p||t.e<-p))throw Error(l+g(t));return t}function E(t,e){var r,n,o,a,u,l,c,s,f,p,d=t.constructor,h=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),i?j(e,h):e;if(c=t.d,p=e.d,n=e.e,s=t.e,c=c.slice(),u=s-n){for((f=u<0)?(r=c,u=-u,l=p.length):(r=p,n=s,l=c.length),u>(o=Math.max(Math.ceil(h/7),l)+2)&&(u=o,r.length=1),r.reverse(),o=u;o--;)r.push(0);r.reverse()}else{for((f=(o=c.length)<(l=p.length))&&(l=o),o=0;o<l;o++)if(c[o]!=p[o]){f=c[o]<p[o];break}u=0}for(f&&(r=c,c=p,p=r,e.s=-e.s),l=c.length,o=p.length-l;o>0;--o)c[l++]=0;for(o=p.length;o>u;){if(c[--o]<p[o]){for(a=o;a&&0===c[--a];)c[a]=1e7-1;--c[a],c[o]+=1e7}c[o]-=p[o]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=n,i?j(e,h):e):new d(0)}function P(t,e,r){var n,o=g(t),i=v(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+w(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+w(-o-1)+i,r&&(n=r-a)>0&&(i+=w(n))):o>=a?(i+=w(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+w(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=w(n))),t.s<0?"-"+i:i}function A(t,e){if(t.length>e)return t.length=e,!0}function k(t){if(!t||"object"!=typeof t)throw Error(a+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]]))if(c(n)===n&&n>=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(u+r+": "+n);if(void 0!==(n=t[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(u+r+": "+n);return this}if((o=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(u+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return S(this,t.toString())}if("string"!=typeof t)throw Error(u+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,f.test(t))S(this,t);else throw Error(u+t)}if(i.prototype=d,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=k,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(o)).default=o.Decimal=o,n=new o(1),"function"==typeof define&&define.amd){let e;t.r,void 0!==(e=o)&&t.v(e)}else e.exports?e.exports=o:(r||(r="undefined"!=typeof self&&self&&self.self==self?self:Function("return this")()),r.Decimal=o)}(t.e)},74548,(t,e,r)=>{var n=t.r(24251);e.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},60793,(t,e,r)=>{var n=t.r(74548),o=t.r(63799),i=t.r(66305);e.exports=function(t,e){var r={};return e=i(e,3),o(t,function(t,o,i){n(r,o,e(t,o,i))}),r}},38199,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},8088,(t,e,r)=>{var n=t.r(53587);e.exports=function(t,e){var r=!0;return n(t,function(t,n,o){return r=!!e(t,n,o)}),r}},26063,(t,e,r)=>{var n=t.r(38199),o=t.r(8088),i=t.r(66305),a=t.r(45350),u=t.r(70237);e.exports=function(t,e,r){var l=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),l(t,i(e,3))}},4879,(t,e,r)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},62413,(t,e,r)=>{e.exports=t.r(25717)(Object.getPrototypeOf,Object)},1320,(t,e,r)=>{var n=t.r(77684),o=t.r(62413),i=t.r(77289),a=Object.prototype,u=Function.prototype.toString,l=a.hasOwnProperty,c=u.call(Object);e.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},20164,(t,e,r)=>{var n=t.r(77684),o=t.r(77289);e.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},49379,(t,e,r)=>{var n=t.r(53587);e.exports=function(t,e){var r;return n(t,function(t,n,o){return!(r=e(t,n,o))}),!!r}},88099,(t,e,r)=>{var n=t.r(51477),o=t.r(66305),i=t.r(49379),a=t.r(45350),u=t.r(70237);e.exports=function(t,e,r){var l=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),l(t,o(e,3))}},95200,(t,e,r)=>{var n=t.r(66305),o=t.r(51095),i=t.r(33679);e.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var l=n(r,3);e=i(e),r=function(t){return l(u[t],t,u)}}var c=t(e,r,a);return c>-1?u[l?e[c]:c]:void 0}}},4653,(t,e,r)=>{var n=t.r(82560);e.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},26965,(t,e,r)=>{var n=t.r(56445),o=t.r(66305),i=t.r(4653),a=Math.max;e.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var l=null==r?0:i(r);return l<0&&(l=a(u+l,0)),n(t,o(e,3),l)}},60191,(t,e,r)=>{e.exports=t.r(95200)(t.r(26965))},78492,(t,e,r)=>{"use strict";var n=Object.prototype.hasOwnProperty,o="~";function i(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function u(t,e,r,n,i){if("function"!=typeof r)throw TypeError("The listener must be a function");var u=new a(r,n||t,i),l=o?o+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],u]:t._events[l].push(u):(t._events[l]=u,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(o=!1)),c.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},c.prototype.listeners=function(t){var e=o?o+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,a=Array(i);n<i;n++)a[n]=r[n].fn;return a},c.prototype.listenerCount=function(t){var e=o?o+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,n,i,a){var u=o?o+t:t;if(!this._events[u])return!1;var l,c,s=this._events[u],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,n),!0;case 5:return s.fn.call(s.context,e,r,n,i),!0;case 6:return s.fn.call(s.context,e,r,n,i,a),!0}for(c=1,l=Array(f-1);c<f;c++)l[c-1]=arguments[c];s.fn.apply(s.context,l)}else{var p,d=s.length;for(c=0;c<d;c++)switch(s[c].once&&this.removeListener(t,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,e);break;case 3:s[c].fn.call(s[c].context,e,r);break;case 4:s[c].fn.call(s[c].context,e,r,n);break;default:if(!l)for(p=1,l=Array(f-1);p<f;p++)l[p-1]=arguments[p];s[c].fn.apply(s[c].context,l)}}return!0},c.prototype.on=function(t,e,r){return u(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return u(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,r,n){var i=o?o+t:t;if(!this._events[i])return this;if(!e)return l(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||l(this,i);else{for(var u=0,c=[],s=a.length;u<s;u++)(a[u].fn!==e||n&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[i]=1===c.length?c[0]:c:l(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&l(this,e)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=o,c.EventEmitter=c,e.exports=c},83966,59559,38279,73050,9516,34251,98770,68970,494,22787,69212,39425,18519,75225,44171,72733,85183,93230,72526,t=>{"use strict";t.i(47167);var e,r,n,o,i,a,u,l,c,s=t.i(71645),f=t.i(29873),p=t.i(71223),d=t.i(44950),h=t.i(82820),y=t.i(31195),v=t.i(24283),m=t.i(7670),b=t.i(40992),g=t.i(48337),x=t.i(97865),w=t.i(34239),O=t.i(29071),S=t.i(32241);function j(t){return function(){return t}}let E=Math.PI,P=2*E,A=P-1e-6;function k(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class T{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?k:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return k;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t*=1,e*=1,r*=1,n*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,u=r-t,l=n-e,c=i-t,s=a-e,f=c*c+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>1e-6)if(Math.abs(s*u-l*c)>1e-6&&o){let p=r-i,d=n-a,h=u*u+l*l,y=Math.sqrt(h),v=Math.sqrt(f),m=o*Math.tan((E-Math.acos((h+f-(p*p+d*d))/(2*y*v)))/2),b=m/v,g=m/y;Math.abs(b-1)>1e-6&&this._append`L${t+b*c},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>c*d)},${this._x1=t+g*u},${this._y1=e+g*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,o,i){if(t*=1,e*=1,r*=1,i=!!i,r<0)throw Error(`negative radius: ${r}`);let a=r*Math.cos(n),u=r*Math.sin(n),l=t+a,c=e+u,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,r&&(f<0&&(f=f%P+P),f>A?this._append`A${r},${r},0,1,${s},${t-a},${e-u}A${r},${r},0,1,${s},${this._x1=l},${this._y1=c}`:f>1e-6&&this._append`A${r},${r},0,${+(f>=E)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function M(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new T(e)}T.prototype;let C=Math.cos,_=Math.sin,N=Math.sqrt,D=Math.PI,I=2*D;N(3);let R={draw(t,e){let r=N(e/D);t.moveTo(r,0),t.arc(0,0,r,0,I)}},B=N(1/3),L=2*B,z=_(D/10)/_(7*D/10),F=_(I/10)*z,U=-C(I/10)*z,$=N(3);N(3);let H=N(3)/2,W=1/N(12),q=(W/2+1)*3;var V=t.i(81977);function X(t){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var G=["type","size","sizeType"];function K(){return(K=Object.assign.bind()).apply(this,arguments)}function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=X(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=X(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==X(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var J={symbolCircle:R,symbolCross:{draw(t,e){let r=N(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},symbolDiamond:{draw(t,e){let r=N(e/L),n=r*B;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},symbolSquare:{draw(t,e){let r=N(e),n=-r/2;t.rect(n,n,r,r)}},symbolStar:{draw(t,e){let r=N(.8908130915292852*e),n=F*r,o=U*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){let i=I*e/5,a=C(i),u=_(i);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}},symbolTriangle:{draw(t,e){let r=-N(e/(3*$));t.moveTo(0,2*r),t.lineTo(-$*r,-r),t.lineTo($*r,-r),t.closePath()}},symbolWye:{draw(t,e){let r=N(e/q),n=r/2,o=r*W,i=r*W+r,a=-n;t.moveTo(n,o),t.lineTo(n,i),t.lineTo(a,i),t.lineTo(-.5*n-H*o,H*n+-.5*o),t.lineTo(-.5*n-H*i,H*n+-.5*i),t.lineTo(-.5*a-H*i,H*a+-.5*i),t.lineTo(-.5*n+H*o,-.5*o-H*n),t.lineTo(-.5*n+H*i,-.5*i-H*n),t.lineTo(-.5*a+H*i,-.5*i-H*a),t.closePath()}}},Q=Math.PI/180,tt=function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Q;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},te=function(t){var e,r=t.type,n=void 0===r?"circle":r,o=t.size,i=void 0===o?64:o,a=t.sizeType,u=void 0===a?"area":a,l=Z(Z({},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,G)),{},{type:n,size:i,sizeType:u}),c=l.className,f=l.cx,p=l.cy,d=(0,V.filterProps)(l,!0);return f===+f&&p===+p&&i===+i?s.default.createElement("path",K({},d,{className:(0,m.default)("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=J["symbol".concat((0,S.default)(n))]||R,(function(t,e){let r=null,n=M(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:j(t||R),e="function"==typeof e?e:j(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:j(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:j(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(tt(i,u,n))())})):null};te.registerSymbol=function(t,e){J["symbol".concat((0,S.default)(t))]=e};var tr=t.i(73393);function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function to(){return(to=Object.assign.bind()).apply(this,arguments)}function ti(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ta=function(){return!!t})()}function tu(t){return(tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tl(t,e){return(tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tc(t,e,r){return(e=ts(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ts(t){var e=function(t,e){if("object"!=tn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tn(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tn(e)?e:e+""}var tf=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=tu(t),function(t,e){if(e&&("object"===tn(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,ta()?Reflect.construct(t,e||[],tu(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&tl(r,t),e=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=32/6,n=32/3,o=t.inactive?e:t.color;if("plainline"===t.type)return s.default.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===t.type)return s.default.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(16,"h").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*n,",").concat(16,"\n H").concat(32,"M").concat(2*n,",").concat(16,"\n A").concat(r,",").concat(r,",0,1,1,").concat(n,",").concat(16),className:"recharts-legend-icon"});if("rect"===t.type)return s.default.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(s.default.isValidElement(t.legendIcon)){var i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach(function(e){tc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete i.legendIcon,s.default.cloneElement(t.legendIcon,i)}return s.default.createElement(te,{fill:o,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,a=e.inactiveColor,u={x:0,y:0,width:32,height:32},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map(function(e,r){var o=e.formatter||i,f=(0,m.default)(tc(tc({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var d=(0,p.default)(e.value)?null:e.value;(0,O.warn)(!(0,p.default)(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var h=e.inactive?a:e.color;return s.default.createElement("li",to({className:f,style:l,key:"legend-item-".concat(r)},(0,tr.adaptEventsOfChild)(t.props,e,r)),s.default.createElement(g.Surface,{width:n,height:n,viewBox:u,style:c},t.renderIcon(e)),s.default.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},o?o(d,e,r):d))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;return e&&e.length?s.default.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?n:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ts(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.PureComponent);tc(tf,"displayName","Legend"),tc(tf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var tp=t.i(94395),td=t.i(51587);function th(t){return(th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ty=["ref"];function tv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tv(Object(r),!0).forEach(function(e){tO(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tS(n.key),n)}}function tg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(tg=function(){return!!t})()}function tx(t){return(tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tw(t,e){return(tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tO(t,e,r){return(e=tS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tS(t){var e=function(t,e){if("object"!=th(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=th(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==th(e)?e:e+""}function tj(t){return t.value}var tE=function(t){var e,r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=n,r=[].concat(i),e=tx(e),tO(t=function(t,e){if(e&&("object"===th(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,tg()?Reflect.construct(e,r||[],tx(this).constructor):e.apply(this,r)),"lastBoundingBox",{width:-1,height:-1}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&tw(n,t),e=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?tm({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,l=n.chartWidth,c=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),tm(tm({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,l=tm(tm({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return s.default.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(s.default.isValidElement(t))return s.default.cloneElement(t,e);if("function"==typeof t)return s.default.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,ty);return s.default.createElement(tf,r)}(r,tm(tm({},this.props),{},{payload:(0,td.getUniqPayload)(u,a,tj)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=tm(tm({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,tp.isNumber)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&tb(n.prototype,e),r&&tb(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.PureComponent);function tP(){return(tP=Object.assign.bind()).apply(this,arguments)}tO(tE,"displayName","Legend"),tO(tE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}),t.s(["Legend",()=>tE],59559);var tA=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=(0,m.default)("recharts-dot",o);return e===+e&&r===+r&&n===+n?s.default.createElement("circle",tP({},(0,V.filterProps)(t,!1),(0,tr.adaptEventHandlers)(t),{className:i,cx:e,cy:r,r:n})):null};t.s(["Dot",()=>tA],38279);var tk=t.i(45009),tT=Object.getOwnPropertyNames,tM=Object.getOwnPropertySymbols,tC=Object.prototype.hasOwnProperty;function t_(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function tN(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function tD(t){return tT(t).concat(tM(t))}var tI=Object.hasOwn||function(t,e){return tC.call(t,e)};function tR(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var tB=Object.getOwnPropertyDescriptor,tL=Object.keys;function tz(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function tF(t,e){return tR(t.getTime(),e.getTime())}function tU(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function t$(t,e){return t===e}function tH(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.entries(),l=0;(n=u.next())&&!n.done;){for(var c=e.entries(),s=!1,f=0;(o=c.next())&&!o.done;){if(a[f]){f++;continue}var p=n.value,d=o.value;if(r.equals(p[0],d[0],l,f,t,e,r)&&r.equals(p[1],d[1],p[0],d[0],t,e,r)){s=a[f]=!0;break}f++}if(!s)return!1;l++}return!0}function tW(t,e,r){var n=tL(t),o=n.length;if(tL(e).length!==o)return!1;for(;o-- >0;)if(!tZ(t,e,r,n[o]))return!1;return!0}function tq(t,e,r){var n,o,i,a=tD(t),u=a.length;if(tD(e).length!==u)return!1;for(;u-- >0;)if(!tZ(t,e,r,n=a[u])||(o=tB(t,n),i=tB(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function tV(t,e){return tR(t.valueOf(),e.valueOf())}function tX(t,e){return t.source===e.source&&t.flags===e.flags}function tG(t,e,r){var n,o,i=t.size;if(i!==e.size)return!1;if(!i)return!0;for(var a=Array(i),u=t.values();(n=u.next())&&!n.done;){for(var l=e.values(),c=!1,s=0;(o=l.next())&&!o.done;){if(!a[s]&&r.equals(n.value,o.value,n.value,o.value,t,e,r)){c=a[s]=!0;break}s++}if(!c)return!1}return!0}function tK(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function tY(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function tZ(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||tI(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var tJ=Array.isArray,tQ="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,t0=Object.assign,t1=Object.prototype.toString.call.bind(Object.prototype.toString),t2=t3();function t3(t){void 0===t&&(t={});var e,r,n,o,i,a,u,l,c,s,f,p,d,h=t.circular,y=t.createInternalComparator,v=t.createState,m=t.strict,b=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?tq:tz,areDatesEqual:tF,areErrorsEqual:tU,areFunctionsEqual:t$,areMapsEqual:n?t_(tH,tq):tH,areNumbersEqual:tR,areObjectsEqual:n?tq:tW,arePrimitiveWrappersEqual:tV,areRegExpsEqual:tX,areSetsEqual:n?t_(tG,tq):tG,areTypedArraysEqual:n?tq:tK,areUrlsEqual:tY};if(r&&(o=t0({},o,r(o))),e){var i=tN(o.areArraysEqual),a=tN(o.areMapsEqual),u=tN(o.areObjectsEqual),l=tN(o.areSetsEqual);o=t0({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:l})}return o}(t)).areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,u=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,p=e.areTypedArraysEqual,d=e.areUrlsEqual,function(t,e,h){if(t===e)return!0;if(null==t||null==e)return!1;var y=typeof t;if(y!==typeof e)return!1;if("object"!==y)return"number"===y?u(t,e,h):"function"===y&&i(t,e,h);var v=t.constructor;if(v!==e.constructor)return!1;if(v===Object)return l(t,e,h);if(tJ(t))return r(t,e,h);if(null!=tQ&&tQ(t))return p(t,e,h);if(v===Date)return n(t,e,h);if(v===RegExp)return s(t,e,h);if(v===Map)return a(t,e,h);if(v===Set)return f(t,e,h);var m=t1(t);return"[object Date]"===m?n(t,e,h):"[object RegExp]"===m?s(t,e,h):"[object Map]"===m?a(t,e,h):"[object Set]"===m?f(t,e,h):"[object Object]"===m?"function"!=typeof t.then&&"function"!=typeof e.then&&l(t,e,h):"[object URL]"===m?d(t,e,h):"[object Error]"===m?o(t,e,h):"[object Arguments]"===m?l(t,e,h):("[object Boolean]"===m||"[object Number]"===m||"[object String]"===m)&&c(t,e,h)}),g=y?y(b):function(t,e,r,n,o,i,a){return b(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),l=u.cache;return r(t,a,{cache:void 0===l?e?new WeakMap:void 0:l,equals:o,meta:u.meta,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:void 0!==h&&h,comparator:b,createState:v,equals:g,strict:void 0!==m&&m})}function t5(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>e)t(o),r=-1;else{var i;i=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function t4(t){return(t4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t6(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function t7(t){return(t7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t8(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t9(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t8(Object(r),!0).forEach(function(e){et(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t8(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function et(t,e,r){var n;return(n=function(t,e){if("object"!==t7(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==t7(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===t7(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t3({strict:!0}),t3({circular:!0}),t3({circular:!0,strict:!0}),t3({createInternalComparator:function(){return tR}}),t3({strict:!0,createInternalComparator:function(){return tR}}),t3({circular:!0,createInternalComparator:function(){return tR}}),t3({circular:!0,createInternalComparator:function(){return tR},strict:!0});var ee=function(t){return t},er=function(t,e){return Object.keys(e).reduce(function(r,n){return t9(t9({},r),{},et({},n,t(n,e[n])))},{})},en=function(t,e,r){return t.map(function(t){return"".concat(t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})," ").concat(e,"ms ").concat(r)}).join(",")},eo=function(t,e,r,n,o,i,a,u){};function ei(t,e){if(t){if("string"==typeof t)return ea(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ea(t,e)}}function ea(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var eu=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},el=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},ec=function(t,e){return function(r){return el(eu(t,e),r)}},es=function(){for(var t,e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=n[0],a=n[1],u=n[2],l=n[3];if(1===n.length)switch(n[0]){case"linear":i=0,a=0,u=1,l=1;break;case"ease":i=.25,a=.1,u=.25,l=1;break;case"ease-in":i=.42,a=0,u=1,l=1;break;case"ease-out":i=.42,a=0,u=.58,l=1;break;case"ease-in-out":i=0,a=0,u=.58,l=1;break;default:var c=n[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var s,f=function(t){if(Array.isArray(t))return t}(s=c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),4!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(s,4)||ei(s,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=f[0],a=f[1],u=f[2],l=f[3]}else eo(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}eo([i,u,a,l].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=ec(i,u),d=ec(a,l),h=(t=i,e=u,function(r){var n;return el([].concat(function(t){if(Array.isArray(t))return ea(t)}(n=eu(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||ei(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o,i=p(r)-e,a=h(r);if(1e-4>Math.abs(i-e)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return d(r)};return y.isStepper=!1,y},ef=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(i)?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},ep=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return es(n);case"spring":return ef();default:if("cubic-bezier"===n.split("(")[0])return es(n);eo(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(eo(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function ed(t){return(ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eh(t){return function(t){if(Array.isArray(t))return eg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||eb(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ey(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ev(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ey(Object(r),!0).forEach(function(e){em(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function em(t,e,r){var n;return(n=function(t,e){if("object"!==ed(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ed(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===ed(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t,e){if(t){if("string"==typeof t)return eg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eg(t,e)}}function eg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var ex=function(t,e,r){return t+(e-t)*r},ew=function(t){return t.from!==t.to},eO=function t(e,r,n){var o=er(function(t,r){if(ew(r)){var n,o=function(t){if(Array.isArray(t))return t}(n=e(r.from,r.to,r.velocity))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(n,2)||eb(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return ev(ev({},r),{},{from:i,velocity:a})}return r},r);return n<1?er(function(t,e){return ew(e)?ev(ev({},e),{},{velocity:ex(e.velocity,o[t].velocity,n),from:ex(e.from,o[t].from,n)}):e},r):t(e,o,n-1)};let eS=function(t,e,r,n,o){var i,a,u=[Object.keys(t),Object.keys(e)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})}),l=u.reduce(function(r,n){return ev(ev({},r),{},em({},n,[t[n],e[n]]))},{}),c=u.reduce(function(r,n){return ev(ev({},r),{},em({},n,{from:t[n],velocity:0,to:e[n]}))},{}),s=-1,f=function(){return null};return f=r.isStepper?function(n){i||(i=n);var a=(n-i)/r.dt;c=eO(r,c,a),o(ev(ev(ev({},t),e),er(function(t,e){return e.from},c))),i=n,Object.values(c).filter(ew).length&&(s=requestAnimationFrame(f))}:function(i){a||(a=i);var u=(i-a)/n,c=er(function(t,e){return ex.apply(void 0,eh(e).concat([r(u)]))},l);if(o(ev(ev(ev({},t),e),c)),u<1)s=requestAnimationFrame(f);else{var p=er(function(t,e){return ex.apply(void 0,eh(e).concat([r(1)]))},l);o(ev(ev(ev({},t),e),p))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function ej(t){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var eE=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eP(t){return function(t){if(Array.isArray(t))return eA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return eA(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eA(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ek(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function eT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ek(Object(r),!0).forEach(function(e){eM(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ek(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function eM(t,e,r){return(e=eC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eC(t){var e=function(t,e){if("object"!==ej(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ej(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ej(e)?e:String(e)}function e_(t,e){return(e_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function eN(t,e){if(e&&("object"===ej(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return eD(t)}function eD(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eI(t){return(eI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var eR=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&e_(o,t);var e,r,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=eI(o);return t=e?Reflect.construct(r,arguments,eI(this).constructor):r.apply(this,arguments),eN(this,t)});function o(t,e){if(!(this instanceof o))throw TypeError("Cannot call a class as a function");var r=n.call(this,t,e),i=r.props,a=i.isActive,u=i.attributeName,l=i.from,c=i.to,s=i.steps,f=i.children,p=i.duration;if(r.handleStyleChange=r.handleStyleChange.bind(eD(r)),r.changeStyle=r.changeStyle.bind(eD(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}),eN(r);if(s&&s.length)r.state={style:s[0].style};else if(l){if("function"==typeof f)return r.state={style:l},eN(r);r.state={style:u?eM({},u,l):l}}else r.state={style:{}};return r}return r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,u=e.from,l=this.state.style;if(n){if(!r){var c={style:o?eM({},o,a):a};this.state&&l&&(o&&l[o]!==a||!o&&l!==a)&&this.setState(c);return}if(!t2(t.to,a)||!t.canBegin||!t.isActive){var s=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=s||i?u:t.to;if(this.state&&l){var p={style:o?eM({},o,f):f};(o&&l[o]!==f||!o&&l!==f)&&this.setState(p)}this.runAnimation(eT(eT({},this.props),{},{from:f,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,u=t.onAnimationEnd,l=t.onAnimationStart,c=eS(r,n,ep(i),o,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=c()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration;return this.manager.start([o].concat(eP(r.reduce(function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,l=n.style,c=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=c||Object.keys(l);if("function"==typeof u||"spring"===u)return[].concat(eP(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:i,easing:u}),i]);var d=en(p,i,u),h=eT(eT(eT({},f.style),l),{},{transition:d});return[].concat(eP(t),[h,i,s]).filter(ee)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return t6(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t6(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void t5(t.bind(null,a),i):(t(i),void t5(t.bind(null,a)))}"object"===t4(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}));var e,r,n,o=t.begin,i=t.duration,a=t.attributeName,u=t.to,l=t.easing,c=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof l||"function"==typeof p||"spring"===l)return void this.runJSAnimation(t);if(f.length>1)return void this.runStepAnimation(t);var h=a?eM({},a,u):u,y=en(Object.keys(h),i,l);d.start([c,o,eT(eT({},h),{},{transition:y}),i,s])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,eE)),i=s.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=e.className;return(0,s.cloneElement)(t,eT(eT({},o),{},{style:eT(eT({},void 0===r?{}:r),a),className:n}))};return 1===i?u(s.Children.only(e)):s.default.createElement("div",null,s.Children.map(e,function(t){return u(t)}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eC(n.key),n)}}(o.prototype,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(s.PureComponent);function eB(t,e){if(null==t)return{};var r={};for(var n in t)if(({}).hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}function eL(){return(eL=Object.assign.bind()).apply(null,arguments)}function ez(t,e){return(ez=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function eF(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ez(t,e)}eR.displayName="Animate",eR.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},eR.propTypes={from:tk.default.oneOfType([tk.default.object,tk.default.string]),to:tk.default.oneOfType([tk.default.object,tk.default.string]),attributeName:tk.default.string,duration:tk.default.number,begin:tk.default.number,easing:tk.default.oneOfType([tk.default.string,tk.default.func]),steps:tk.default.arrayOf(tk.default.shape({duration:tk.default.number.isRequired,style:tk.default.object.isRequired,easing:tk.default.oneOfType([tk.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),tk.default.func]),properties:tk.default.arrayOf("string"),onAnimationEnd:tk.default.func})),children:tk.default.oneOfType([tk.default.node,tk.default.func]),isActive:tk.default.bool,canBegin:tk.default.bool,onAnimationEnd:tk.default.func,shouldReAnimate:tk.default.bool,onAnimationStart:tk.default.func,onAnimationReStart:tk.default.func};let eU=s.default.createContext(null);function e$(t,e){var r=Object.create(null);return t&&s.Children.map(t,function(t){return t}).forEach(function(t){r[t.key]=e&&(0,s.isValidElement)(t)?e(t):t}),r}function eH(t,e,r){return null!=r[e]?r[e]:t.props[e]}var eW=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},eq=function(t){function e(e,r){var n=t.call(this,e,r)||this,o=n.handleExited.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}eF(e,t);var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var r,n,o=e.children,i=e.handleExited;return{children:e.firstRender?e$(t.children,function(e){return(0,s.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:eH(e,"appear",t),enter:eH(e,"enter",t),exit:eH(e,"exit",t)})}):(Object.keys(n=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var l in e){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];u[o[l][n]]=r(c)}u[l]=r(l)}for(n=0;n<i.length;n++)u[i[n]]=r(i[n]);return u}(o,r=e$(t.children))).forEach(function(e){var a=n[e];if((0,s.isValidElement)(a)){var u=e in o,l=e in r,c=o[e],f=(0,s.isValidElement)(c)&&!c.props.in;l&&(!u||f)?n[e]=(0,s.cloneElement)(a,{onExited:i.bind(null,a),in:!0,exit:eH(a,"exit",t),enter:eH(a,"enter",t)}):l||!u||f?l&&u&&(0,s.isValidElement)(c)&&(n[e]=(0,s.cloneElement)(a,{onExited:i.bind(null,a),in:c.props.in,exit:eH(a,"exit",t),enter:eH(a,"enter",t)})):n[e]=(0,s.cloneElement)(a,{in:!1})}}),n),firstRender:!1}},r.handleExited=function(t,e){var r=e$(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(e){var r=eL({},e.children);return delete r[t.key],{children:r}}))},r.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=eB(t,["component","childFactory"]),o=this.state.contextValue,i=eW(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===e)?s.default.createElement(eU.Provider,{value:o},i):s.default.createElement(eU.Provider,{value:o},s.default.createElement(e,n,i))},e}(s.default.Component);eq.propTypes={},eq.defaultProps={component:"div",childFactory:function(t){return t}};var eV=t.i(74080),eX="unmounted",eG="exited",eK="entering",eY="entered",eZ="exiting",eJ=function(t){function e(e,r){var n,o=t.call(this,e,r)||this,i=r&&!r.isMounting?e.enter:e.appear;return o.appearStatus=null,e.in?i?(n=eG,o.appearStatus=eK):n=eY:n=e.unmountOnExit||e.mountOnEnter?eX:eG,o.state={status:n},o.nextCallback=null,o}eF(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===eX?{status:eG}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==eK&&r!==eY&&(e=eK):(r===eK||r===eY)&&(e=eZ)}this.updateStatus(!1,e)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},r.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===eK){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:eV.default.findDOMNode(this);r&&r.scrollTop}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eG&&this.setState({status:eX})},r.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,o=this.props.nodeRef?[n]:[eV.default.findDOMNode(this),n],i=o[0],a=o[1],u=this.getTimeouts(),l=n?u.appear:u.enter;(t||r)&&1?(this.props.onEnter(i,a),this.safeSetState({status:eK},function(){e.props.onEntering(i,a),e.onTransitionEnd(l,function(){e.safeSetState({status:eY},function(){e.props.onEntered(i,a)})})})):this.safeSetState({status:eY},function(){e.props.onEntered(i)})},r.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:eV.default.findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:eZ},function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:eG},function(){t.props.onExited(n)})})})):this.safeSetState({status:eG},function(){t.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},r.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:eV.default.findDOMNode(this),n=null==t&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)},r.render=function(){var t=this.state.status;if(t===eX)return null;var e=this.props,r=e.children,n=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,eB(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.default.createElement(eU.Provider,{value:null},"function"==typeof r?r(t,n):s.default.cloneElement(s.default.Children.only(r),n))},e}(s.default.Component);function eQ(){}eJ.contextType=eU,eJ.propTypes={},eJ.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eQ,onEntering:eQ,onEntered:eQ,onExit:eQ,onExiting:eQ,onExited:eQ},eJ.UNMOUNTED=eX,eJ.EXITED=eG,eJ.ENTERING=eK,eJ.ENTERED=eY,eJ.EXITING=eZ;var e0=["children","appearOptions","enterOptions","leaveOptions"];function e1(t){return(e1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e2(){return(e2=Object.assign.bind()).apply(this,arguments)}function e3(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function e5(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?e3(Object(r),!0).forEach(function(e){e8(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e3(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function e4(t,e){return(e4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e6(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e7(t){return(e7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e8(t,e,r){return(e=e9(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e9(t){var e=function(t,e){if("object"!==e1(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==e1(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===e1(e)?e:String(e)}var rt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},re=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&e4(o,t);var e,r,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=e7(o);return t=e?Reflect.construct(r,arguments,e7(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===e1(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return e6(t)}(this,t)});function o(){var t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e8(e6(t=n.call(this)),"handleEnter",function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)}),e8(e6(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(e5(e5({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return rt(e)+rt(r)+rt(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,e0));return s.default.createElement(eJ,e2({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return s.default.createElement(eR,t.state,s.Children.only(r))})}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,e9(n.key),n)}}(o.prototype,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(s.Component);function rr(t){var e=t.component,r=t.children,n=t.appear,o=t.enter,i=t.leave;return s.default.createElement(eq,{component:e},s.Children.map(r,function(t,e){return s.default.createElement(re,{appearOptions:n,enterOptions:o,leaveOptions:i,key:"child-".concat(e)},t)}))}function rn(t){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ro(){return(ro=Object.assign.bind()).apply(this,arguments)}function ri(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ra(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ru(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ra(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=rn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rn(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rn(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}re.propTypes={appearOptions:tk.default.object,enterOptions:tk.default.object,leaveOptions:tk.default.object,children:tk.default.element},rr.propTypes={appear:tk.default.object,enter:tk.default.object,leave:tk.default.object,children:tk.default.oneOfType([tk.default.array,tk.default.element]),component:tk.default.any},rr.defaultProps={component:"span"},t.s(["default",0,eR],73050);var rl=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,l=r>=0?1:-1,c=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(c,",").concat(t+l*s[0],",").concat(e)),i+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(c,",\n ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(c,",\n ").concat(t+r-l*s[2],",").concat(e+n)),i+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},rc=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var l=Math.min(o,o+a),c=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=l&&r<=c&&n>=s&&n<=f}return!1},rs={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rf=function(t){var e,r=ru(ru({},rs),t),n=(0,s.useRef)(),o=function(t){if(Array.isArray(t))return t}(e=(0,s.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return ri(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ri(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];(0,s.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&a(t)}catch(t){}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,p=r.radius,d=r.className,h=r.animationEasing,y=r.animationDuration,v=r.animationBegin,b=r.isAnimationActive,g=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||0===c||0===f)return null;var x=(0,m.default)("recharts-rectangle",d);return g?s.default.createElement(eR,{canBegin:i>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:y,animationEasing:h,isActive:g},function(t){var e=t.width,o=t.height,a=t.x,u=t.y;return s.default.createElement(eR,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:b,easing:h},s.default.createElement("path",ro({},(0,V.filterProps)(r,!0),{className:x,d:rl(a,u,e,o,p),ref:n})))}):s.default.createElement("path",ro({},(0,V.filterProps)(r,!0),{className:x,d:rl(u,l,c,f,p)}))};function rp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function rd(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}t.s([],25212);class rh extends Map{constructor(t,e=rv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(ry(this,t))}has(t){return super.has(ry(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function ry({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function rv(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rm=Symbol("implicit");function rb(){var t=new rh,e=[],r=[],n=rm;function o(o){let i=t.get(o);if(void 0===i){if(n!==rm)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();for(let n of(e=[],t=new rh,r))t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return rb(e,r).unknown(n)},rp.apply(o,arguments),o}function rg(){var t,e,r=rb().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,l=0,c=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,r-l+2*c),u&&(t=Math.floor(t)),p+=(d-p-t*(r-l))*s,e=t*(1-l),u&&(p=Math.round(p),e=Math.round(e));var h=(function(t,e,r){t*=1,e*=1,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=Array(o);++n<o;)i[n]=t+n*r;return i})(r).map(function(e){return p+t*e});return o(f?h.reverse():h)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i*=1,a*=1,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i*=1,a*=1,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),f()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),f()):l},r.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return rg(n(),[i,a]).round(u).paddingInner(l).paddingOuter(c).align(s)},rp.apply(f(),arguments)}function rx(){return function t(e){var r=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(r())},e}(rg.apply(null,arguments).paddingInner(1))}var rw=t.i(62728);function rO(t){return(rO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function rj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rS(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=rO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rO(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rO(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var rE={widthCache:{},cacheCount:0},rP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rA="recharts_measurement_span",rk=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||rw.Global.isSsr)return{width:0,height:0};var n=(Object.keys(e=rj({},r)).forEach(function(t){e[t]||delete e[t]}),e),o=JSON.stringify({text:t,copyStyle:n});if(rE.widthCache[o])return rE.widthCache[o];try{var i=document.getElementById(rA);i||((i=document.createElement("span")).setAttribute("id",rA),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=rj(rj({},rP),n);Object.assign(i.style,a),i.textContent="".concat(t);var u=i.getBoundingClientRect(),l={width:u.width,height:u.height};return rE.widthCache[o]=l,++rE.cacheCount>2e3&&(rE.cacheCount=0,rE.widthCache={}),l}catch(t){return{width:0,height:0}}};function rT(t){return(rT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rC(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rC(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function r_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=rT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rT(e)?e:e+""}(n.key),n)}}var rN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rI=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rR=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,rB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},rL=Object.keys(rB),rz=function(){var t,e;function r(t,e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.num=t,this.unit=e,this.num=t,this.unit=e,Number.isNaN(t)&&(this.unit=""),""===e||rI.test(e)||(this.num=NaN,this.unit=""),rL.includes(e)&&(this.num=t*rB[e],this.unit="px")}return t=[{key:"add",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],e=[{key:"parse",value:function(t){var e,n=rM(null!=(e=rR.exec(t))?e:[],3),o=n[1],i=n[2];return new r(parseFloat(o),null!=i?i:"")}}],t&&r_(r.prototype,t),e&&r_(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();function rF(t){if(t.includes("NaN"))return"NaN";for(var e=t;e.includes("*")||e.includes("/");){var r,n=rM(null!=(r=rN.exec(e))?r:[],4),o=n[1],i=n[2],a=n[3],u=rz.parse(null!=o?o:""),l=rz.parse(null!=a?a:""),c="*"===i?u.multiply(l):u.divide(l);if(c.isNaN())return"NaN";e=e.replace(rN,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=rM(null!=(s=rD.exec(e))?s:[],4),p=f[1],d=f[2],h=f[3],y=rz.parse(null!=p?p:""),v=rz.parse(null!=h?h:""),m="+"===d?y.add(v):y.subtract(v);if(m.isNaN())return"NaN";e=e.replace(rD,m.toString())}return e}var rU=/\(([^()]*)\)/;function r$(t){var e=function(t){try{var e;return e=t.replace(/\s+/g,""),e=function(t){for(var e=t;e.includes("(");){var r=rM(rU.exec(e),2)[1];e=e.replace(rU,rF(r))}return e}(e),e=rF(e)}catch(t){return"NaN"}}(t.slice(5,-1));return"NaN"===e?"":e}var rH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rW=["dx","dy","angle","className","breakAll"];function rq(){return(rq=Object.assign.bind()).apply(this,arguments)}function rV(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rX(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rG(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rG(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rG(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var rK=/[ \f\n\r\t\v\u2028\u2029]+/,rY=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];(0,f.default)(e)||(o=r?e.toString().split(""):e.toString().split(rK));var i=o.map(function(t){return{word:t,width:rk(t,n).width}}),a=r?0:rk(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch(t){return null}},rZ=function(t,e,r,n,o){var i,a=t.maxLines,u=t.children,l=t.style,c=t.breakAll,s=(0,tp.isNumber)(a),f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+r<Number(n))?(u.words.push(i),u.width+=a+r):t.push({words:[i],width:a}),t},[])},p=f(e);if(!s)return p;for(var d=function(t){var e=f(rY({breakAll:c,style:l,children:u.slice(0,t)+"…"}).wordsWithComputedWidth);return[e.length>a||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},h=0,y=u.length-1,v=0;h<=y&&v<=u.length-1;){var m=Math.floor((h+y)/2),b=rX(d(m-1),2),g=b[0],x=b[1],w=rX(d(m),1)[0];if(g||w||(h=m+1),g&&w&&(y=m-1),!g&&w){i=x;break}v++}return i||p},rJ=function(t){return[{words:(0,f.default)(t)?[]:t.toString().split(rK)}]},rQ=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!rw.Global.isSsr){var u=rY({breakAll:i,children:n,style:o});if(!u)return rJ(n);var l=u.wordsWithComputedWidth,c=u.spaceWidth;return rZ({breakAll:i,children:n,maxLines:a,style:o},l,c,e,r)}return rJ(n)},r0="#808080",r1=function(t){var e,r=t.x,n=void 0===r?0:r,o=t.y,i=void 0===o?0:o,a=t.lineHeight,u=void 0===a?"1em":a,l=t.capHeight,c=void 0===l?"0.71em":l,f=t.scaleToFit,p=void 0!==f&&f,d=t.textAnchor,h=t.verticalAnchor,y=t.fill,v=void 0===y?r0:y,b=rV(t,rH),g=(0,s.useMemo)(function(){return rQ({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:p,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,p,b.style,b.width]),x=b.dx,w=b.dy,O=b.angle,S=b.className,j=b.breakAll,E=rV(b,rW);if(!(0,tp.isNumOrStr)(n)||!(0,tp.isNumOrStr)(i))return null;var P=n+((0,tp.isNumber)(x)?x:0),A=i+((0,tp.isNumber)(w)?w:0);switch(void 0===h?"end":h){case"start":e=r$("calc(".concat(c,")"));break;case"middle":e=r$("calc(".concat((g.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:e=r$("calc(".concat(g.length-1," * -").concat(u,")"))}var k=[];if(p){var T=g[0].width,M=b.width;k.push("scale(".concat(((0,tp.isNumber)(M)?M/T:1)/T,")"))}return O&&k.push("rotate(".concat(O,", ").concat(P,", ").concat(A,")")),k.length&&(E.transform=k.join(" ")),s.default.createElement("text",rq({},(0,V.filterProps)(E,!0),{x:P,y:A,className:(0,m.default)("recharts-text",S),textAnchor:void 0===d?"start":d,fill:v.includes("url")?r0:v}),g.map(function(t,r){var n=t.words.join(j?"":" ");return s.default.createElement("tspan",{x:P,dy:0===r?e:u,key:"".concat(n,"-").concat(r)},n)}))};t.s(["Text",()=>r1],9516),t.s(["appendOffsetOfLegend",()=>uR,"calculateActiveTickIndex",()=>u_,"checkDomainOfScale",()=>uV,"combineEventHandlers",()=>uW,"findPositionOfBar",()=>uX,"getBandSizeOfAxis",()=>u7,"getBarPosition",()=>uI,"getBarSizeList",()=>uD,"getBaseValueOfBar",()=>u1,"getCateCoordinateOfBar",()=>u0,"getCateCoordinateOfLine",()=>uQ,"getCoordinatesOfGrid",()=>uU,"getDomainOfDataByKey",()=>uC,"getDomainOfItemsWithSameAxis",()=>uz,"getDomainOfStackGroups",()=>u3,"getMainColorOfGraphicItem",()=>uN,"getStackGroupsByAxisId",()=>uZ,"getStackedDataOfItem",()=>u2,"getTicksOfAxis",()=>u$,"getTicksOfScale",()=>uJ,"getTooltipItem",()=>u9,"getValueByDataKey",()=>uM,"isCategoricalAxis",()=>uF,"parseDomainOfCategoryAxis",()=>u8,"parseErrorBarsOfAxis",()=>uL,"parseScale",()=>uq,"parseSpecifiedDomain",()=>u6,"truncateByDomain",()=>uG],98770),t.i(25212),t.s([],67155),t.i(67155);let r2=Math.sqrt(50),r3=Math.sqrt(10),r5=Math.sqrt(2);function r4(t,e,r){let n,o,i,a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),l=a/Math.pow(10,u),c=l>=r2?10:l>=r3?5:l>=r5?2:1;return(u<0?(n=Math.round(t*(i=Math.pow(10,-u)/c)),o=Math.round(e*i),n/i<t&&++n,o/i>e&&--o,i=-i):(n=Math.round(t/(i=Math.pow(10,u)*c)),o=Math.round(e/i),n*i<t&&++n,o*i>e&&--o),o<n&&.5<=r&&r<2)?r4(t,e,2*r):[n,o,i]}function r6(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[o,i,a]=n?r4(e,t,r):r4(t,e,r);if(!(i>=o))return[];let u=i-o+1,l=Array(u);if(n)if(a<0)for(let t=0;t<u;++t)l[t]=-((i-t)/a);else for(let t=0;t<u;++t)l[t]=(i-t)*a;else if(a<0)for(let t=0;t<u;++t)l[t]=-((o+t)/a);else for(let t=0;t<u;++t)l[t]=(o+t)*a;return l}function r7(t,e,r){return r4(t*=1,e*=1,r*=1)[2]}function r8(t,e,r){e*=1,t*=1,r*=1;let n=e<t,o=n?r7(e,t,r):r7(t,e,r);return(n?-1:1)*(o<0?-(1/o):o)}function r9(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nt(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ne(t){let e,r,n;function o(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{let e=i+a>>>1;0>r(t[e],n)?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=r9,r=(e,r)=>r9(t(e),r),n=(e,r)=>t(e)-r):(e=t===r9||t===nt?t:nr,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){let a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{let e=o+i>>>1;0>=r(t[e],n)?o=e+1:i=e}while(o<i)}return o}}}function nr(){return 0}function nn(t){return null===t?NaN:+t}let no=ne(r9),ni=no.right;function na(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function nu(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function nl(){}no.left,ne(nn).center;var nc="\\s*([+-]?\\d+)\\s*",ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",np=/^#([0-9a-f]{3,8})$/,nd=RegExp(`^rgb\\(${nc},${nc},${nc}\\)$`),nh=RegExp(`^rgb\\(${nf},${nf},${nf}\\)$`),ny=RegExp(`^rgba\\(${nc},${nc},${nc},${ns}\\)$`),nv=RegExp(`^rgba\\(${nf},${nf},${nf},${ns}\\)$`),nm=RegExp(`^hsl\\(${ns},${nf},${nf}\\)$`),nb=RegExp(`^hsla\\(${ns},${nf},${nf},${ns}\\)$`),ng={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function nx(){return this.rgb().formatHex()}function nw(){return this.rgb().formatRgb()}function nO(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=np.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?nS(e):3===r?new nP(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?nj(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?nj(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=nd.exec(t))?new nP(e[1],e[2],e[3],1):(e=nh.exec(t))?new nP(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ny.exec(t))?nj(e[1],e[2],e[3],e[4]):(e=nv.exec(t))?nj(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=nm.exec(t))?n_(e[1],e[2]/100,e[3]/100,1):(e=nb.exec(t))?n_(e[1],e[2]/100,e[3]/100,e[4]):ng.hasOwnProperty(t)?nS(ng[t]):"transparent"===t?new nP(NaN,NaN,NaN,0):null}function nS(t){return new nP(t>>16&255,t>>8&255,255&t,1)}function nj(t,e,r,n){return n<=0&&(t=e=r=NaN),new nP(t,e,r,n)}function nE(t,e,r,n){var o;return 1==arguments.length?((o=t)instanceof nl||(o=nO(o)),o)?new nP((o=o.rgb()).r,o.g,o.b,o.opacity):new nP:new nP(t,e,r,null==n?1:n)}function nP(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function nA(){return`#${nC(this.r)}${nC(this.g)}${nC(this.b)}`}function nk(){let t=nT(this.opacity);return`${1===t?"rgb(":"rgba("}${nM(this.r)}, ${nM(this.g)}, ${nM(this.b)}${1===t?")":`, ${t})`}`}function nT(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function nM(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nC(t){return((t=nM(t))<16?"0":"")+t.toString(16)}function n_(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new nD(t,e,r,n)}function nN(t){if(t instanceof nD)return new nD(t.h,t.s,t.l,t.opacity);if(t instanceof nl||(t=nO(t)),!t)return new nD;if(t instanceof nD)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,l=(i+o)/2;return u?(a=e===i?(r-n)/u+(r<n)*6:r===i?(n-e)/u+2:(e-r)/u+4,u/=l<.5?i+o:2-i-o,a*=60):u=l>0&&l<1?0:a,new nD(a,u,l,t.opacity)}function nD(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function nI(t){return(t=(t||0)%360)<0?t+360:t}function nR(t){return Math.max(0,Math.min(1,t||0))}function nB(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function nL(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}na(nl,nO,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:nx,formatHex:nx,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nN(this).formatHsl()},formatRgb:nw,toString:nw}),na(nP,nE,nu(nl,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new nP(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new nP(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nP(nM(this.r),nM(this.g),nM(this.b),nT(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nA,formatHex:nA,formatHex8:function(){return`#${nC(this.r)}${nC(this.g)}${nC(this.b)}${nC((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:nk,toString:nk})),na(nD,function(t,e,r,n){return 1==arguments.length?nN(t):new nD(t,e,r,null==n?1:n)},nu(nl,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new nD(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new nD(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new nP(nB(t>=240?t-240:t+120,o,n),nB(t,o,n),nB(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new nD(nI(this.h),nR(this.s),nR(this.l),nT(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=nT(this.opacity);return`${1===t?"hsl(":"hsla("}${nI(this.h)}, ${100*nR(this.s)}%, ${100*nR(this.l)}%${1===t?")":`, ${t})`}`}}));let nz=t=>()=>t;function nF(t,e){var r=e-t;return r?function(e){return t+e*r}:nz(isNaN(t)?e:t)}let nU=function t(e){var r,n=1==(r=+e)?nF:function(t,e){var n,o,i;return e-t?(n=t,o=e,n=Math.pow(n,i=r),o=Math.pow(o,i)-n,i=1/i,function(t){return Math.pow(n+t*o,i)}):nz(isNaN(t)?e:t)};function o(t,e){var r=n((t=nE(t)).r,(e=nE(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=nF(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return o.gamma=t,o}(1);function n$(t){return function(e){var r,n,o=e.length,i=Array(o),a=Array(o),u=Array(o);for(r=0;r<o;++r)n=nE(e[r]),i[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return i=t(i),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=u(t),n+""}}}function nH(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}n$(function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=n<e-1?t[n+2]:2*i-o;return nL((r-n/e)*e,a,o,i,u)}}),n$(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],u=t[(n+2)%e];return nL((r-n/e)*e,o,i,a,u)}});var nW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nq=RegExp(nW.source,"g");function nV(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?nz(e):("number"===o?nH:"string"===o?(n=nO(e))?(e=n,nU):function(t,e){var r,n,o,i,a,u=nW.lastIndex=nq.lastIndex=0,l=-1,c=[],s=[];for(t+="",e+="";(o=nW.exec(t))&&(i=nq.exec(e));)(a=i.index)>u&&(a=e.slice(u,a),c[l]?c[l]+=a:c[++l]=a),(o=o[0])===(i=i[0])?c[l]?c[l]+=i:c[++l]=i:(c[++l]=null,s.push({i:l,x:nH(o,i)})),u=nq.lastIndex;return u<e.length&&(a=e.slice(u),c[l]?c[l]+=a:c[++l]=a),c.length<2?s[0]?(r=s[0].x,function(t){return r(t)+""}):(n=e,function(){return n}):(e=s.length,function(t){for(var r,n=0;n<e;++n)c[(r=s[n]).i]=r.x(t);return c.join("")})}:e instanceof nO?nU:e instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(r=e)||r instanceof DataView?Array.isArray(e)?function(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=Array(o),a=Array(n);for(r=0;r<o;++r)i[r]=nV(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var r,n={},o={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)r in t?n[r]=nV(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}:nH:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}})(t,e)}function nX(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function nG(t){return+t}var nK=[0,1];function nY(t){return t}function nZ(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function nJ(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=nZ(o,n),i=r(a,i)):(n=nZ(n,o),i=r(i,a)),function(t){return i(n(t))}}function nQ(t,e,r){var n=Math.min(t.length,e.length)-1,o=Array(n),i=Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=nZ(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=ni(t,e,1,n)-1;return i[r](o[r](e))}}function n0(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function n1(){var t,e,r,n,o,i,a=nK,u=nK,l=nV,c=nY;function s(){var t,e,r,l=Math.min(a.length,u.length);return c!==nY&&(t=a[0],e=a[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?nQ:nJ,o=i=null,f}function f(e){return null==e||isNaN(e*=1)?r:(o||(o=n(a.map(t),u,l)))(t(c(e)))}return f.invert=function(r){return c(e((i||(i=n(u,a.map(t),nH)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,nG),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),l=nX,s()},f.clamp=function(t){return arguments.length?(c=!!t||nY,s()):c!==nY},f.interpolate=function(t){return arguments.length?(l=t,s()):l},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function n2(){return n1()(nY,nY)}function n3(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function n5(t){return(t=n3(Math.abs(t)))?t[1]:NaN}var n4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function n6(t){var e;if(!(e=n4.exec(t)))throw Error("invalid format: "+t);return new n7({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function n7(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function n8(t,e){var r=n3(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}n6.prototype=n7.prototype,n7.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};let n9={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>n8(100*t,e),r:n8,s:function(t,e){var r=n3(t,e);if(!r)return t+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return a===u?o:a>u?o+Array(a-u+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+n3(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ot(t){return t}var oe=Array.prototype.map,or=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function on(t,e,r,n){var o,u,l=r8(t,e,r);switch((n=n6(null==n?",f":n)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n5(c)/3)))-n5(Math.abs(l))))||(n.precision=u),a(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,n5(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(o=Math.abs(o=l)))-n5(o))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-n5(Math.abs(l))))||(n.precision=u-("%"===n.type)*2)}return i(n)}function oo(t){var e=t.domain;return t.ticks=function(t){var r=e();return r6(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return on(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,l=i[a],c=i[u],s=10;for(c<l&&(o=l,l=c,c=o,o=a,a=u,u=o);s-- >0;){if((o=r7(l,c,r))===n)return i[a]=l,i[u]=c,e(i);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else if(o<0)l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o;else break;n=o}return t},t}function oi(){var t=n2();return t.copy=function(){return n0(t,oi())},rp.apply(t,arguments),oo(t)}function oa(t){var e;function r(t){return null==t||isNaN(t*=1)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,nG),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return oa(t).unknown(e)},t=arguments.length?Array.from(t,nG):[0,1],oo(r)}function ou(t,e){t=t.slice();var r,n=0,o=t.length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function ol(t){return Math.log(t)}function oc(t){return Math.exp(t)}function os(t){return-Math.log(-t)}function of(t){return-Math.exp(-t)}function op(t){return isFinite(t)?+("1e"+t):t<0?0:t}function od(t){return(e,r)=>-t(-e,r)}function oh(t){let e,r,n=t(ol,oc),o=n.domain,a=10;function u(){var i,u;return e=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),t=>Math.log(t)/i),r=10===(u=a)?op:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=od(e),r=od(r),t(os,of)):t(ol,oc),n}return n.base=function(t){return arguments.length?(a=+t,u()):a},n.domain=function(t){return arguments.length?(o(t),u()):o()},n.ticks=t=>{let n,i,u=o(),l=u[0],c=u[u.length-1],s=c<l;s&&([l,c]=[c,l]);let f=e(l),p=e(c),d=null==t?10:+t,h=[];if(!(a%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(n=1;n<a;++n)if(!((i=f<0?n/r(-f):n*r(f))<l)){if(i>c)break;h.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))<l)){if(i>c)break;h.push(i)}2*h.length<d&&(h=r6(l,c,d))}else h=r6(f,p,Math.min(p-f,d)).map(r);return s?h.reverse():h},n.tickFormat=(t,o)=>{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=n6(o)).precision||(o.trim=!0),o=i(o)),t===1/0)return o;let u=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*a<a-.5&&(n*=a),n<=u?o(t):""}},n.nice=()=>o(ou(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function oy(){let t=oh(n1()).domain([1,10]);return t.copy=()=>n0(t,oy()).base(t.base()),rp.apply(t,arguments),t}function ov(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function om(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ob(t){var e=1,r=t(ov(1),om(e));return r.constant=function(r){return arguments.length?t(ov(e=+r),om(e)):e},oo(r)}function og(){var t=ob(n1());return t.copy=function(){return n0(t,og()).constant(t.constant())},rp.apply(t,arguments)}function ox(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ow(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function oO(t){return t<0?-t*t:t*t}function oS(t){var e=t(nY,nY),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(nY,nY):.5===r?t(ow,oO):t(ox(r),ox(1/r)):r},oo(e)}function oj(){var t=oS(n1());return t.copy=function(){return n0(t,oj()).exponent(t.exponent())},rp.apply(t,arguments),t}function oE(){return oj.apply(null,arguments).exponent(.5)}function oP(t){return Math.sign(t)*t*t}function oA(){var t,e=n2(),r=[0,1],n=!1;function o(r){var o,i=Math.sign(o=e(r))*Math.sqrt(Math.abs(o));return isNaN(i)?t:n?Math.round(i):i}return o.invert=function(t){return e.invert(oP(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,nG)).map(oP)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return oA(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},rp.apply(o,arguments),oo(o)}function ok(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function oT(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function oM(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:+(t>e))}function oC(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function o_(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=Array(o-1);++t<o;)n[t-1]=function(t,e,r=nn){if(!(!(n=t.length)||isNaN(e*=1))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(r(t[i+1],i+1,t)-a)*(o-i)}}(e,t/o);return i}function i(e){return null==e||isNaN(e*=1)?t:r[ni(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(r9),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return o_().domain(e).range(r).unknown(t)},rp.apply(i,arguments)}function oN(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[ni(o,e,0,n)]:t}function u(){var t=-1;for(o=Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e*=1,r*=1,u()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length&&(t=e),a},a.thresholds=function(){return o.slice()},a.copy=function(){return oN().domain([e,r]).range(i).unknown(t)},rp.apply(oo(a),arguments)}function oD(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[ni(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(n=Math.min((e=Array.from(t)).length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return oD().domain(e).range(r).unknown(t)},rp.apply(o,arguments)}i=(o=function(t){var e,r,o,i=void 0===t.grouping||void 0===t.thousands?ot:(e=oe.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),i.push(t.substring(o-=u,o+u)),!((l+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",l=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?ot:(o=oe.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return o[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=n6(t)).fill,r=t.align,o=t.sign,d=t.symbol,h=t.zero,y=t.width,v=t.comma,m=t.precision,b=t.trim,g=t.type;"n"===g?(v=!0,g="g"):n9[g]||(void 0===m&&(m=12),b=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var x="$"===d?a:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===d?u:/[%p]/.test(g)?s:"",O=n9[g],S=/[defgprs%]/.test(g);function j(t){var a,u,s,d=x,j=w;if("c"===g)j=O(t)+j,t="";else{var E=(t*=1)<0||1/t<0;if(t=isNaN(t)?p:O(Math.abs(t),m),b&&(t=function(t){e:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break e;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==o&&(E=!1),d=(E?"("===o?o:f:"-"===o||"("===o?"":o)+d,j=("s"===g?or[8+n/3]:"")+j+(E&&"("===o?")":""),S){for(a=-1,u=t.length;++a<u;)if(48>(s=t.charCodeAt(a))||s>57){j=(46===s?l+t.slice(a+1):t.slice(a))+j,t=t.slice(0,a);break}}}v&&!h&&(t=i(t,1/0));var P=d.length+t.length+j.length,A=P<y?Array(y-P+1).join(e):"";switch(v&&h&&(t=i(A+t,A.length?y-j.length:1/0),A=""),r){case"<":t=d+t+j+A;break;case"=":t=d+A+t+j;break;case"^":t=A.slice(0,P=A.length>>1)+d+t+j+A.slice(P);break;default:t=A+d+t+j}return c(t)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),j.toString=function(){return t+""},j}return{format:d,formatPrefix:function(t,e){var r=d(((t=n6(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(n5(e)/3))),o=Math.pow(10,-n),i=or[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;let oI=new Date,oR=new Date;function oB(t,e,r,n){function o(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{let e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{let a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n)||!(i>0))return u;do u.push(a=new Date(+r)),e(r,i),t(r);while(a<r&&r<n)return u},o.filter=r=>oB(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(o.count=(e,n)=>(oI.setTime(+e),oR.setTime(+n),t(oI),t(oR),Math.floor(r(oI,oR))),o.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null),o}let oL=oB(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());oL.every=t=>isFinite(t=Math.floor(t))&&t>0?oB(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,oL.range;let oz=oB(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());oz.every=t=>isFinite(t=Math.floor(t))&&t>0?oB(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,oz.range;let oF=oB(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());oF.range;let oU=oB(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());oU.range;function o$(t){return oB(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}let oH=o$(0),oW=o$(1),oq=o$(2),oV=o$(3),oX=o$(4),oG=o$(5),oK=o$(6);function oY(t){return oB(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}oH.range,oW.range,oq.range,oV.range,oX.range,oG.range,oK.range;let oZ=oY(0),oJ=oY(1),oQ=oY(2),o0=oY(3),o1=oY(4),o2=oY(5),o3=oY(6);oZ.range,oJ.range,oQ.range,o0.range,o1.range,o2.range,o3.range;let o5=oB(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);o5.range;let o4=oB(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);o4.range;let o6=oB(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));o6.range;let o7=oB(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());o7.range;let o8=oB(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());o8.range;let o9=oB(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());o9.range;let it=oB(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());it.range;let ie=oB(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());ie.range;let ir=oB(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);function io(t,e,r,n,o,i){let a=[[ie,1,1e3],[ie,5,5e3],[ie,15,15e3],[ie,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let o=Math.abs(r-e)/n,i=ne(([,,t])=>t).right(a,o);if(i===a.length)return t.every(r8(e/31536e6,r/31536e6,n));if(0===i)return ir.every(Math.max(r8(e,r,n),1));let[u,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(l)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}ir.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?oB(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ir:null,ir.range;let[ii,ia]=io(oz,oU,oZ,o6,o8,it),[iu,il]=io(oL,oF,oH,o5,o7,o9);function ic(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function is(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ip(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var id={"-":"",_:" ",0:"0"},ih=/^\s*\d+/,iy=/^%/,iv=/[\\^$*+?|[\]().{}]/g;function im(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?Array(r-i+1).join(e)+o:o)}function ib(t){return t.replace(iv,"\\$&")}function ig(t){return RegExp("^(?:"+t.map(ib).join("|")+")","i")}function ix(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function iw(t,e,r){var n=ih.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function iO(t,e,r){var n=ih.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function iS(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function ij(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function iE(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function iP(t,e,r){var n=ih.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function iA(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ik(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iT(t,e,r){var n=ih.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function iM(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function iC(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function i_(t,e,r){var n=ih.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function iN(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function iD(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function iI(t,e,r){var n=ih.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function iR(t,e,r){var n=ih.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function iB(t,e,r){var n=ih.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function iL(t,e,r){var n=iy.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function iz(t,e,r){var n=ih.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function iF(t,e,r){var n=ih.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function iU(t,e){return im(t.getDate(),e,2)}function i$(t,e){return im(t.getHours(),e,2)}function iH(t,e){return im(t.getHours()%12||12,e,2)}function iW(t,e){return im(1+o5.count(oL(t),t),e,3)}function iq(t,e){return im(t.getMilliseconds(),e,3)}function iV(t,e){return iq(t,e)+"000"}function iX(t,e){return im(t.getMonth()+1,e,2)}function iG(t,e){return im(t.getMinutes(),e,2)}function iK(t,e){return im(t.getSeconds(),e,2)}function iY(t){var e=t.getDay();return 0===e?7:e}function iZ(t,e){return im(oH.count(oL(t)-1,t),e,2)}function iJ(t){var e=t.getDay();return e>=4||0===e?oX(t):oX.ceil(t)}function iQ(t,e){return t=iJ(t),im(oX.count(oL(t),t)+(4===oL(t).getDay()),e,2)}function i0(t){return t.getDay()}function i1(t,e){return im(oW.count(oL(t)-1,t),e,2)}function i2(t,e){return im(t.getFullYear()%100,e,2)}function i3(t,e){return im((t=iJ(t)).getFullYear()%100,e,2)}function i5(t,e){return im(t.getFullYear()%1e4,e,4)}function i4(t,e){var r=t.getDay();return im((t=r>=4||0===r?oX(t):oX.ceil(t)).getFullYear()%1e4,e,4)}function i6(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+im(e/60|0,"0",2)+im(e%60,"0",2)}function i7(t,e){return im(t.getUTCDate(),e,2)}function i8(t,e){return im(t.getUTCHours(),e,2)}function i9(t,e){return im(t.getUTCHours()%12||12,e,2)}function at(t,e){return im(1+o4.count(oz(t),t),e,3)}function ae(t,e){return im(t.getUTCMilliseconds(),e,3)}function ar(t,e){return ae(t,e)+"000"}function an(t,e){return im(t.getUTCMonth()+1,e,2)}function ao(t,e){return im(t.getUTCMinutes(),e,2)}function ai(t,e){return im(t.getUTCSeconds(),e,2)}function aa(t){var e=t.getUTCDay();return 0===e?7:e}function au(t,e){return im(oZ.count(oz(t)-1,t),e,2)}function al(t){var e=t.getUTCDay();return e>=4||0===e?o1(t):o1.ceil(t)}function ac(t,e){return t=al(t),im(o1.count(oz(t),t)+(4===oz(t).getUTCDay()),e,2)}function as(t){return t.getUTCDay()}function af(t,e){return im(oJ.count(oz(t)-1,t),e,2)}function ap(t,e){return im(t.getUTCFullYear()%100,e,2)}function ad(t,e){return im((t=al(t)).getUTCFullYear()%100,e,2)}function ah(t,e){return im(t.getUTCFullYear()%1e4,e,4)}function ay(t,e){var r=t.getUTCDay();return im((t=r>=4||0===r?o1(t):o1.ceil(t)).getUTCFullYear()%1e4,e,4)}function av(){return"+0000"}function am(){return"%"}function ab(t){return+t}function ag(t){return Math.floor(t/1e3)}function ax(t){return new Date(t)}function aw(t){return t instanceof Date?+t:+new Date(+t)}function aO(t,e,r,n,o,i,a,u,l,c){var s=n2(),f=s.invert,p=s.domain,d=c(".%L"),h=c(":%S"),y=c("%I:%M"),v=c("%I %p"),m=c("%a %d"),b=c("%b %d"),g=c("%B"),x=c("%Y");function w(t){return(l(t)<t?d:u(t)<t?h:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,aw)):p().map(ax)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:c(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(ou(r,t)):s},s.copy=function(){return n0(s,aO(t,e,r,n,o,i,a,u,l,c))},s}function aS(){return rp.apply(aO(iu,il,oL,oF,oH,o5,o7,o9,ie,l).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function aj(){return rp.apply(aO(ii,ia,oz,oU,oZ,o4,o8,it,ie,c).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function aE(){var t,e,r,n,o,i=0,a=1,u=nY,l=!1;function c(e){return null==e||isNaN(e*=1)?o:u(0===r?.5:(e=(n(e)-t)*r,l?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),c):[u(0),u(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=n(i*=1),e=n(a*=1),r=t===e?0:1/(e-t),c):[i,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=s(nV),c.rangeRound=s(nX),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),c}}function aP(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function aA(){var t=oo(aE()(nY));return t.copy=function(){return aP(t,aA())},rd.apply(t,arguments)}function ak(){var t=oh(aE()).domain([1,10]);return t.copy=function(){return aP(t,ak()).base(t.base())},rd.apply(t,arguments)}function aT(){var t=ob(aE());return t.copy=function(){return aP(t,aT()).constant(t.constant())},rd.apply(t,arguments)}function aM(){var t=oS(aE());return t.copy=function(){return aP(t,aM()).exponent(t.exponent())},rd.apply(t,arguments)}function aC(){return aM.apply(null,arguments).exponent(.5)}function a_(){var t=[],e=nY;function r(r){if(null!=r&&!isNaN(r*=1))return e((ni(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(r9),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map((r,n)=>e(n/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n*=1)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e*=1))){if(e<=0||n<2)return oT(t);if(e>=1)return ok(t);var n,o=(n-1)*e,i=Math.floor(o),a=ok((function t(e,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(e.length-1,o)),!(n<=r&&r<=o))return e;for(i=void 0===i?oM:function(t=r9){if(t===r9)return oM;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);o>n;){if(o-n>600){let a=o-n+1,u=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*c/a+s)),p=Math.min(o,Math.floor(r+(a-u)*c/a+s));t(e,r,f,p,i)}let a=e[r],u=n,l=o;for(oC(e,n,r),i(e[o],a)>0&&oC(e,n,o);u<l;){for(oC(e,u,l),++u,--l;0>i(e[u],a);)++u;for(;i(e[l],a)>0;)--l}0===i(e[n],a)?oC(e,n,l):oC(e,++l,o),l<=r&&(n=l+1),r<=l&&(o=l-1)}return e})(t,i).subarray(0,i+1));return a+(oT(t.subarray(i+1))-a)*(o-i)}})(t,n/e))},r.copy=function(){return a_(e).domain(t)},rd.apply(r,arguments)}function aN(){var t,e,r,n,o,i,a,u=0,l=.5,c=1,s=1,f=nY,p=!1;function d(t){return isNaN(t*=1)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=nV);for(var r=0,n=e.length-1,o=e[0],i=Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,l,c]=a,t=i(u*=1),e=i(l*=1),r=i(c*=1),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d):[u,l,c]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(nV),d.rangeRound=h(nX),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),e=a(l),r=a(c),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d}}function aD(){var t=oo(aN()(nY));return t.copy=function(){return aP(t,aD())},rd.apply(t,arguments)}function aI(){var t=oh(aN()).domain([.1,1,10]);return t.copy=function(){return aP(t,aI()).base(t.base())},rd.apply(t,arguments)}function aR(){var t=ob(aN());return t.copy=function(){return aP(t,aR()).constant(t.constant())},rd.apply(t,arguments)}function aB(){var t=oS(aN());return t.copy=function(){return aP(t,aB()).exponent(t.exponent())},rd.apply(t,arguments)}function aL(){return aB.apply(null,arguments).exponent(.5)}l=(u=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,l=t.shortMonths,c=ig(o),s=ix(o),f=ig(i),p=ix(i),d=ig(a),h=ix(a),y=ig(u),v=ix(u),m=ig(l),b=ix(l),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:iU,e:iU,f:iV,g:i3,G:i4,H:i$,I:iH,j:iW,L:iq,m:iX,M:iG,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ab,s:ag,S:iK,u:iY,U:iZ,V:iQ,w:i0,W:i1,x:null,X:null,y:i2,Y:i5,Z:i6,"%":am},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:i7,e:i7,f:ar,g:ad,G:ay,H:i8,I:i9,j:at,L:ae,m:an,M:ao,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ab,s:ag,S:ai,u:aa,U:au,V:ac,w:as,W:af,x:null,X:null,y:ap,Y:ah,Z:av,"%":am},w={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:iC,e:iC,f:iB,g:iA,G:iP,H:iN,I:iN,j:i_,L:iR,m:iM,M:iD,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:iT,Q:iz,s:iF,S:iI,u:iO,U:iS,V:ij,w:iw,W:iE,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:iA,Y:iP,Z:ik,"%":iL};function O(t,e){return function(r){var n,o,i,a=[],u=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(l,u)),null!=(o=id[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),l=u+1);return a.push(t.slice(l,u)),a.join("")}}function S(t,e){return function(r){var n,o,i=ip(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(!e||"Z"in i||(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=is(ip(i.y,0,1))).getUTCDay())>4||0===o?oJ.ceil(n):oJ(n),n=o4.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=ic(ip(i.y,0,1))).getDay())>4||0===o?oW.ceil(n):oW(n),n=o5.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.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)),o="Z"in i?is(ip(i.y,0,1)).getUTCDay():ic(ip(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,is(i)):ic(i)}}function j(t,e,r,n){for(var o,i,a=0,u=e.length,l=r.length;a<u;){if(n>=l)return -1;if(37===(o=e.charCodeAt(a++))){if(!(i=w[(o=e.charAt(a++))in id?e.charAt(a++):o])||(n=i(t,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,u.parse,c=u.utcFormat,u.utcParse,t.s(["scaleBand",()=>rg,"scaleDiverging",()=>aD,"scaleDivergingLog",()=>aI,"scaleDivergingPow",()=>aB,"scaleDivergingSqrt",()=>aL,"scaleDivergingSymlog",()=>aR,"scaleIdentity",()=>oa,"scaleImplicit",0,rm,"scaleLinear",()=>oi,"scaleLog",()=>oy,"scaleOrdinal",()=>rb,"scalePoint",()=>rx,"scalePow",()=>oj,"scaleQuantile",()=>o_,"scaleQuantize",()=>oN,"scaleRadial",()=>oA,"scaleSequential",()=>aA,"scaleSequentialLog",()=>ak,"scaleSequentialPow",()=>aM,"scaleSequentialQuantile",()=>a_,"scaleSequentialSqrt",()=>aC,"scaleSequentialSymlog",()=>aT,"scaleSqrt",()=>oE,"scaleSymlog",()=>og,"scaleThreshold",()=>oD,"scaleTime",()=>aS,"scaleUtc",()=>aj,"tickFormat",()=>on],29061),t.i(29061),t.s(["scaleBand",()=>rg,"scaleDiverging",()=>aD,"scaleDivergingLog",()=>aI,"scaleDivergingPow",()=>aB,"scaleDivergingSqrt",()=>aL,"scaleDivergingSymlog",()=>aR,"scaleIdentity",()=>oa,"scaleImplicit",0,rm,"scaleLinear",()=>oi,"scaleLog",()=>oy,"scaleOrdinal",()=>rb,"scalePoint",()=>rx,"scalePow",()=>oj,"scaleQuantile",()=>o_,"scaleQuantize",()=>oN,"scaleRadial",()=>oA,"scaleSequential",()=>aA,"scaleSequentialLog",()=>ak,"scaleSequentialPow",()=>aM,"scaleSequentialQuantile",()=>a_,"scaleSequentialSqrt",()=>aC,"scaleSequentialSymlog",()=>aT,"scaleSqrt",()=>oE,"scaleSymlog",()=>og,"scaleThreshold",()=>oD,"scaleTime",()=>aS,"scaleUtc",()=>aj,"tickFormat",()=>on],79357);var az=t.i(79357);function aF(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function aU(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function a$(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function aH(t,e){return t[e]}function aW(t){let e=[];return e.key=t,e}Array.prototype.slice;var aq=t.i(86966),aV=t.i(37544),aX=t.i(85845),aG=t.i(33303),aK=t.i(78948),aY=t.i(98892),aZ=t.i(51655);function aJ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var aQ=function(t){return t},a0={},a1=function(t){return t===a0},a2=function(t){return function e(){return 0==arguments.length||1==arguments.length&&a1(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},a3=function(t){return function t(e,r){return 1===e?r:a2(function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter(function(t){return t!==a0}).length;return a>=e?r.apply(void 0,o):t(e-a,a2(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map(function(t){return a1(t)?e.shift():t});return r.apply(void 0,((function(t){if(Array.isArray(t))return aJ(t)})(i)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return aJ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aJ(t,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))}))})}(t.length,t)},a5=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},a4=a3(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),a6=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return aQ;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce(function(t,e){return e(t)},o.apply(void 0,arguments))}},a7=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},a8=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every(function(t,r){return t===e[r]})?r:(e=o,r=t.apply(void 0,o))}};a3(function(t,e,r){var n=+t;return n+r*(e-n)}),a3(function(t,e,r){var n=e-t;return(r-t)/(n=n||1/0)}),a3(function(t,e,r){var n=e-t;return Math.max(0,Math.min(1,(r-t)/(n=n||1/0)))});let a9=function(t,e,r){for(var n=new aZ.default(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},ut=function(t){return 0===t?1:Math.floor(new aZ.default(t).abs().log(10).toNumber())+1};function ue(t){return function(t){if(Array.isArray(t))return uo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||un(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(t,e)||un(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(t,e){if(t){if("string"==typeof t)return uo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uo(t,e)}}function uo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ui(t){var e=ur(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function ua(t,e,r){if(t.lte(0))return new aZ.default(0);var n=ut(t.toNumber()),o=new aZ.default(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new aZ.default(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new aZ.default(Math.ceil(u))}function uu(t,e,r){var n=1,o=new aZ.default(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new aZ.default(10).pow(ut(t)-1),o=new aZ.default(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new aZ.default(Math.floor(t)))}else 0===t?o=new aZ.default(Math.floor((e-1)/2)):r||(o=new aZ.default(Math.floor(t)));var a=Math.floor((e-1)/2);return a6(a4(function(t){return o.add(new aZ.default(t-a).mul(n)).toNumber()}),a5)(0,e)}var ul=a8(function(t){var e=ur(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=ur(ui([r,n]),2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var s=c===1/0?[l].concat(ue(a5(0,o-1).map(function(){return 1/0}))):[].concat(ue(a5(0,o-1).map(function(){return-1/0})),[c]);return r>n?a7(s):s}if(l===c)return uu(l,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new aZ.default(0),tickMin:new aZ.default(0),tickMax:new aZ.default(0)};var u=ua(new aZ.default(r).sub(e).div(n-1),o,a),l=Math.ceil((i=e<=0&&r>=0?new aZ.default(0):(i=new aZ.default(e).add(r).div(2)).sub(new aZ.default(i).mod(u))).sub(e).div(u).toNumber()),c=Math.ceil(new aZ.default(r).sub(i).div(u).toNumber()),s=l+c+1;return s>n?t(e,r,n,o,a+1):(s<n&&(c=r>0?c+(n-s):c,l=r>0?l:l+(n-s)),{step:u,tickMin:i.sub(new aZ.default(l).mul(u)),tickMax:i.add(new aZ.default(c).mul(u))})}(l,c,a,i),p=f.step,d=a9(f.tickMin,f.tickMax.add(new aZ.default(.1).mul(p)),p);return r>n?a7(d):d});a8(function(t){var e=ur(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),u=ur(ui([r,n]),2),l=u[0],c=u[1];if(l===-1/0||c===1/0)return[r,n];if(l===c)return uu(l,o,i);var s=ua(new aZ.default(c).sub(l).div(a-1),i,0),f=a6(a4(function(t){return new aZ.default(l).add(new aZ.default(t).mul(s)).toNumber()}),a5)(0,a).filter(function(t){return t>=l&&t<=c});return r>n?a7(f):f});var uc=a8(function(t,e){var r=ur(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=ur(ui([n,o]),2),u=a[0],l=a[1];if(u===-1/0||l===1/0)return[n,o];if(u===l)return[u];var c=Math.max(e,2),s=ua(new aZ.default(l).sub(u).div(c-1),i,0),f=[].concat(ue(a9(new aZ.default(u),new aZ.default(l).sub(new aZ.default(.99).mul(s)),s)),[l]);return n>o?a7(f):f}),us=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uf(t){return(uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function up(){return(up=Object.assign.bind()).apply(this,arguments)}function ud(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function uh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(uh=function(){return!!t})()}function uy(t){return(uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function uv(t,e){return(uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function um(t,e,r){return(e=ub(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ub(t){var e=function(t,e){if("object"!=uf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uf(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uf(e)?e:e+""}var ug=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=uy(t),function(t,e){if(e&&("object"===uf(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,uh()?Reflect.construct(t,e||[],uy(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&uv(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,c=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,us),f=(0,V.filterProps)(c,!1);"x"===this.props.direction&&"number"!==u.type&&(0,b.default)(!1);var p=i.map(function(t){var i,c,p=a(t,o),d=p.x,h=p.y,y=p.value,v=p.errorVal;if(!v)return null;var m=[];if(Array.isArray(v)){var b=function(t){if(Array.isArray(t))return t}(v)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(v,2)||function(t,e){if(t){if("string"==typeof t)return ud(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ud(t,2)}}(v,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=b[0],c=b[1]}else i=c=v;if("vertical"===r){var g=u.scale,w=h+e,O=w+n,S=w-n,j=g(y-i),E=g(y+c);m.push({x1:E,y1:O,x2:E,y2:S}),m.push({x1:j,y1:w,x2:E,y2:w}),m.push({x1:j,y1:O,x2:j,y2:S})}else if("horizontal"===r){var P=l.scale,A=d+e,k=A-n,T=A+n,M=P(y-i),C=P(y+c);m.push({x1:k,y1:C,x2:T,y2:C}),m.push({x1:A,y1:M,x2:A,y2:C}),m.push({x1:k,y1:M,x2:T,y2:M})}return s.default.createElement(x.Layer,up({className:"recharts-errorBar",key:"bar-".concat(m.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},f),m.map(function(t){return s.default.createElement("line",up({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return s.default.createElement(x.Layer,{className:"recharts-errorBars"},p)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ub(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);function ux(t){return(ux="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function uO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uw(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=ux(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ux(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ux(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}um(ug,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),um(ug,"displayName","ErrorBar"),t.s(["ErrorBar",()=>ug],34251);var uS=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=(0,V.findChildByType)(r,tE);if(!a)return null;var u=tE.defaultProps,l=void 0!==u?uO(uO({},u),a.props):{};return e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce(function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map(function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(n||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?uO(uO({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:l.iconType||a||"square",color:uN(e),value:i||o,payload:n}}),uO(uO(uO({},l),tE.getWithHeight(a,o)),{},{payload:e,item:a})};function uj(t){return(uj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uE(t){return function(t){if(Array.isArray(t))return uP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return uP(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uP(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function uA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function uk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uA(Object(r),!0).forEach(function(e){uT(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uA(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function uT(t,e,r){var n;return(n=function(t,e){if("object"!=uj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uj(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==uj(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uM(t,e,r){return(0,f.default)(t)||(0,f.default)(e)?r:(0,tp.isNumOrStr)(e)?(0,h.default)(t,e,r):(0,p.default)(e)?e(t):r}function uC(t,e,r,n){var o=(0,aG.default)(t,function(t){return uM(t,e)});if("number"===r){var i=o.filter(function(t){return(0,tp.isNumber)(t)||parseFloat(t)});return i.length?[(0,aV.default)(i),(0,aq.default)(i)]:[1/0,-1/0]}return(n?o.filter(function(t){return!(0,f.default)(t)}):o).map(function(t){return(0,tp.isNumOrStr)(t)||t instanceof Date?t:""})}var u_=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(e=null==r?void 0:r.length)?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var u=o.range,l=0;l<a;l++){var c=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if((0,tp.mathSign)(s-c)!==(0,tp.mathSign)(f-s)){var d=[];if((0,tp.mathSign)(f-s)===(0,tp.mathSign)(u[1]-u[0])){p=f;var h=s+u[1]-u[0];d[0]=Math.min(h,(h+c)/2),d[1]=Math.max(h,(h+c)/2)}else{p=c;var y=f+u[1]-u[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[l].index;break}}else{var m=Math.min(c,f),b=Math.max(c,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[l].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i},uN=function(t){var e,r,n=t.type.displayName,o=null!=(e=t.type)&&e.defaultProps?uk(uk({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},uD=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,l=a.length;u<l;u++)for(var c=o[a[u]].stackGroups,s=Object.keys(c),p=0,d=s.length;p<d;p++){var h=c[s[p]],y=h.items,v=h.cateAxisId,m=y.filter(function(t){return(0,V.getDisplayName)(t.type).indexOf("Bar")>=0});if(m&&m.length){var b=m[0].type.defaultProps,g=void 0!==b?uk(uk({},b),m[0].props):m[0].props,x=g.barSize,w=g[v];i[w]||(i[w]=[]);var O=(0,f.default)(x)?e:x;i[w].push({item:m[0],stackList:m.slice(1),barSize:(0,f.default)(O)?void 0:(0,tp.getPercentValue)(O,r,0)})}}return i},uI=function(t){var e,r=t.barGap,n=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=void 0===i?[]:i,u=t.maxBarSize,l=a.length;if(l<1)return null;var c=(0,tp.getPercentValue)(r,o,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/l,d=a.reduce(function(t,e){return t+e.barSize||0},0);(d+=(l-1)*c)>=o&&(d-=(l-1)*c,c=0),d>=o&&p>0&&(f=!0,p*=.9,d=l*p);var h={offset:((o-d)/2|0)-c,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+c,size:f?p:e.barSize}},n=[].concat(uE(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:h})}),n},s)}else{var y=(0,tp.getPercentValue)(n,o,0,!0);o-2*y-(l-1)*c<=0&&(c=0);var v=(o-2*y-(l-1)*c)/l;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(uE(t),[{item:e.item,position:{offset:y+(v+c)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},uR=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=uS({children:o,legendWidth:i-(a.left||0)-(a.right||0)});if(u){var l=n||{},c=l.width,s=l.height,f=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==f&&(0,tp.isNumber)(t[f]))return uk(uk({},t),{},uT({},f,t[f]+(c||0)));if(("horizontal"===d||"vertical"===d&&"center"===f)&&"middle"!==p&&(0,tp.isNumber)(t[p]))return uk(uk({},t),{},uT({},p,t[p]+(s||0)))}return t},uB=function(t,e,r,n,o){var i=e.props.children,a=(0,V.findAllByType)(i,ug).filter(function(t){var e;return e=t.props.direction,!!(0,f.default)(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===e?"xAxis"===o:"y"!==e||"yAxis"===o)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=uM(e,r);if((0,f.default)(n))return t;var o=Array.isArray(n)?[(0,aV.default)(n),(0,aq.default)(n)]:[n,n],i=u.reduce(function(t,r){var n=uM(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]},[1/0,-1/0])}return null},uL=function(t,e,r,n,o){var i=e.map(function(e){return uB(t,e,r,o,n)}).filter(function(t){return!(0,f.default)(t)});return i&&i.length?i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},uz=function(t,e,r,n,o){var i=e.map(function(e){var i=e.props.dataKey;return"number"===r&&i&&uB(t,e,i,n)||uC(t,i,r,o)});if("number"===r)return i.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return i.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t},[])},uF=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},uU=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var o,i,a=t.map(function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate});return o||a.push(e),i||a.push(r),a},u$=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,l=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return(l="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,tp.mathSign)(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(o?o.indexOf(t):t)+l,value:t,offset:l}}).filter(function(t){return!(0,aK.default)(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+l,value:t,index:e,offset:l}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+l,value:t,offset:l}}):n.domain().map(function(t,e){return{coordinate:n(t)+l,value:o?o[t]:t,index:e,offset:l}})},uH=new WeakMap,uW=function(t,e){if("function"!=typeof e)return t;uH.has(t)||uH.set(t,new WeakMap);var r=uH.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},uq=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:az.scaleBand(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:az.scaleLinear(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:az.scalePoint(),realScaleType:"point"}:"category"===o?{scale:az.scaleBand(),realScaleType:"band"}:{scale:az.scaleLinear(),realScaleType:"linear"};if((0,aX.default)(n)){var u="scale".concat((0,S.default)(n));return{scale:(az[u]||az.scalePoint)(),realScaleType:az[u]?u:"point"}}return(0,p.default)(n)?{scale:n}:{scale:az.scalePoint(),realScaleType:"point"}},uV=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}},uX=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null},uG=function(t,e){if(!e||2!==e.length||!(0,tp.isNumber)(e[0])||!(0,tp.isNumber)(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!(0,tp.isNumber)(t[0])||t[0]<r)&&(o[0]=r),(!(0,tp.isNumber)(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},uK={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var u=(0,aK.default)(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}aU(t,e)}},none:aU,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}aU(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var u=0,l=0,c=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<u;++d){var h=t[e[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=f,c+=p*f}r[a-1][1]+=r[a-1][0]=i,l&&(i-=c/l)}r[a-1][1]+=r[a-1][0]=i,aU(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=(0,aK.default)(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},uY=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),o=uK[r];return(function(){var t=j([]),e=a$,r=aU,n=aH;function o(o){var i,a,u=Array.from(t.apply(this,arguments),aW),l=u.length,c=-1;for(let t of o)for(i=0,++c;i<l;++i)(u[i][c]=[0,+n(t,u[i].key,c,o)]).data=t;for(i=0,a=aF(e(u));i<l;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:j(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:j(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?a$:"function"==typeof t?t:j(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?aU:t,o):r},o})().keys(n).value(function(t,e){return+uM(t,e,0)}).order(a$).offset(o)(t)},uZ=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce(function(t,e){var o,i=null!=(o=e.type)&&o.defaultProps?uk(uk({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var u=i[r],l=t[u]||{hasStack:!1,stackGroups:{}};if((0,tp.isNumOrStr)(a)){var c=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),l.hasStack=!0,l.stackGroups[a]=c}else l.stackGroups[(0,tp.uniqueId)("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return uk(uk({},t),{},uT({},u,l))},{});return Object.keys(a).reduce(function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(e,i){var a=u.stackGroups[i];return uk(uk({},e),{},uT({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:uY(t,a.items,o)}))},{})),uk(uk({},e),{},uT({},i,u))},{})},uJ=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var l=t.domain();if(!l.length)return null;var c=ul(l,o,a);return t.domain([(0,aV.default)(c),(0,aq.default)(c)]),{niceTicks:c}}return o&&"number"===n?{niceTicks:uc(t.domain(),o,a)}:null};function uQ(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!(0,f.default)(o[e.dataKey])){var u=(0,tp.findEntryInArray)(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=uM(o,(0,f.default)(a)?e.dataKey:a);return(0,f.default)(l)?null:e.scale(l)}var u0=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=uM(i,e.dataKey,e.domain[a]);return(0,f.default)(u)?null:e.scale(u)-o/2+n},u1=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},u2=function(t,e){var r,n=(null!=(r=t.type)&&r.defaultProps?uk(uk({},t.type.defaultProps),t.props):t.props).stackId;if((0,tp.isNumOrStr)(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null},u3=function(t,e,r){return Object.keys(t).reduce(function(n,o){var i=t[o].stackedData.reduce(function(t,n){var o=n.slice(e,r+1).reduce(function(t,e){return[(0,aV.default)(e.concat([t[0]]).filter(tp.isNumber)),(0,aq.default)(e.concat([t[1]]).filter(tp.isNumber))]},[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},u5=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,u4=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,u6=function(t,e,r){if((0,p.default)(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,tp.isNumber)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(u5.test(t[0])){var o=+u5.exec(t[0])[1];n[0]=e[0]-o}else(0,p.default)(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,tp.isNumber)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(u4.test(t[1])){var i=+u4.exec(t[1])[1];n[1]=e[1]+i}else(0,p.default)(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},u7=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=(0,y.default)(e,function(t){return t.coordinate}),i=1/0,a=1,u=o.length;a<u;a++){var l=o[a],c=o[a-1];i=Math.min((l.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},u8=function(t,e,r){return!t||!t.length||(0,aY.default)(t,(0,h.default)(r,"type.defaultProps.domain"))?e:t},u9=function(t,e){var r=t.type.defaultProps?uk(uk({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,l=r.chartType,c=r.hide;return uk(uk({},(0,V.filterProps)(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:uN(t),value:uM(e,n),type:u,payload:e,chartType:l,hide:c})};function lt(t){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?le(Object(r),!0).forEach(function(e){ln(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ln(t,e,r){var n;return(n=function(t,e){if("object"!=lt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lt(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lt(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lo=["Webkit","Moz","O","ms"],li=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),n=lo.reduce(function(t,n){return lr(lr({},t),{},ln({},n+r,e))},{});return n[t]=e,n};function la(t){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lu(){return(lu=Object.assign.bind()).apply(this,arguments)}function ll(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ll(Object(r),!0).forEach(function(e){lh(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ls(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ly(n.key),n)}}function lf(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(lf=function(){return!!t})()}function lp(t){return(lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ld(t,e){return(ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function lh(t,e,r){return(e=ly(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ly(t){var e=function(t,e){if("object"!=la(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=la(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==la(e)?e:e+""}var lv=function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var u=e.length,l=rx().domain((0,d.default)(0,u)).range([o,o+i-a]),c=l.domain().map(function(t){return l(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:c}},lm=function(t){return t.changedTouches&&!!t.changedTouches.length},lb=function(t){var e,r;function n(t){var e,r,o;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,o=[t],r=lp(r),lh(e=function(t,e){if(e&&("object"===la(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,lf()?Reflect.construct(r,o||[],lp(this).constructor):r.apply(this,o)),"handleDrag",function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)}),lh(e,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])}),lh(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})}),e.detachDragEndListener()}),lh(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),lh(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),lh(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),lh(e,"handleSlideDragStart",function(t){var r=lm(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&ld(n,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,l=Math.min(e,r),c=Math.max(e,r),s=n.getIndexInRange(o,l),f=n.getIndexInRange(o,c);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=uM(r[t],o,t);return(0,p.default)(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,l=i.travellerWidth,c=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-l-o,a+u-l-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});(d.startIndex!==c||d.endIndex!==s)&&f&&f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=lm(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,l=u.x,c=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,d=u.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,l+c-s-a):y<0&&(y=Math.max(y,l-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,b=v.endIndex,g=function(){var t=d.length-1;return"startX"===n&&(o>i?m%p==0:b%p==0)||!!(o<i)&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||!!(o>i)&&b===t};this.setState(lh(lh({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],l=o.indexOf(u);if(-1!==l){var c=l+t;if(-1!==c&&!(c>=o.length)){var s=o[c];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(lh({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return s.default.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,u=t.padding,l=s.Children.only(a);return l?s.default.cloneElement(l,{x:e,y:r,width:n,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,o,i=this,a=this.props,u=a.y,l=a.travellerWidth,c=a.height,f=a.traveller,p=a.ariaLabel,d=a.data,h=a.startIndex,y=a.endIndex,v=Math.max(t,this.props.x),m=lc(lc({},(0,V.filterProps)(this.props,!1)),{},{x:v,y:u,width:l,height:c}),b=p||"Min value: ".concat(null==(r=d[h])?void 0:r.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return s.default.createElement(x.Layer,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return s.default.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:u,y:n,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,u=this.state,l=u.startX,c=u.endX,f={pointerEvents:"none",fill:a};return s.default.createElement(x.Layer,{className:"recharts-brush-texts"},s.default.createElement(r1,lu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:n+o/2},f),this.getTextOfTick(e)),s.default.createElement(r1,lu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+i+5,y:n+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,u=t.height,l=t.alwaysShowText,c=this.state,f=c.startX,p=c.endX,d=c.isTextActive,h=c.isSlideMoving,y=c.isTravellerMoving,v=c.isTravellerFocused;if(!e||!e.length||!(0,tp.isNumber)(o)||!(0,tp.isNumber)(i)||!(0,tp.isNumber)(a)||!(0,tp.isNumber)(u)||a<=0||u<=0)return null;var b=(0,m.default)("recharts-brush",r),g=1===s.default.Children.count(n),w=li("userSelect","none");return s.default.createElement(x.Layer,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||y||v||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return s.default.createElement(s.default.Fragment,null,s.default.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),s.default.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),s.default.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return s.default.isValidElement(t)?s.default.cloneElement(t,e):(0,p.default)(t)?t(e):n.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return lc({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?lv({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var c=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i}return e>=t[o]?o:n}}],e&&ls(n.prototype,e),r&&ls(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.PureComponent);lh(lb,"displayName","Brush"),lh(lb,"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 lg=t.i(12447);function lx(t){return(lx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lw(Object(r),!0).forEach(function(e){lS(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function lS(t,e,r){var n;return(n=function(t,e){if("object"!=lx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lx(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lx(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var lE=Math.PI/180,lP=function(t,e,r,n){return{x:t+Math.cos(-lE*n)*r,y:e+Math.sin(-lE*n)*r}},lA=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},lk=function(t,e,r,n,o){var i=t.width,a=t.height,u=t.startAngle,l=t.endAngle,c=(0,tp.getPercentValue)(t.cx,i,i/2),s=(0,tp.getPercentValue)(t.cy,a,a/2),p=lA(i,a,r),d=(0,tp.getPercentValue)(t.innerRadius,p,0),h=(0,tp.getPercentValue)(t.outerRadius,p,.8*p);return Object.keys(e).reduce(function(t,r){var i,a=e[r],p=a.domain,y=a.reversed;if((0,f.default)(a.range))"angleAxis"===n?i=[u,l]:"radiusAxis"===n&&(i=[d,h]),y&&(i=[i[1],i[0]]);else{var v,m=function(t){if(Array.isArray(t))return t}(v=i=a.range)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(v,2)||function(t,e){if(t){if("string"==typeof t)return lj(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lj(t,2)}}(v,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],l=m[1]}var b=uq(a,o),g=b.realScaleType,x=b.scale;x.domain(p).range(i),uV(x);var w=uJ(x,lO(lO({},a),{},{realScaleType:g})),O=lO(lO(lO({},a),w),{},{range:i,radius:h,realScaleType:g,scale:x,cx:c,cy:s,innerRadius:d,outerRadius:h,startAngle:u,endAngle:l});return lO(lO({},t),{},lS({},r,O))},{})},lT=function(t,e){var r=t.x,n=t.y;return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},lM=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=lT({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=Math.acos((r-o)/a);return n>i&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},lC=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},l_=function(t,e){var r,n=lM({x:t.x,y:t.y},e),o=n.radius,i=n.angle,a=e.innerRadius,u=e.outerRadius;if(o<a||o>u)return!1;if(0===o)return!0;var l=lC(e),c=l.startAngle,s=l.endAngle,f=i;if(c<=s){for(;f>s;)f-=360;for(;f<c;)f+=360;r=f>=c&&f<=s}else{for(;f>c;)f-=360;for(;f<s;)f+=360;r=f>=s&&f<=c}return r?lO(lO({},e),{},{radius:o,angle:f+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null},lN=function(t){return(0,s.isValidElement)(t)||(0,p.default)(t)||"boolean"==typeof t?"":t.className};function lD(t){return(lD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.s(["RADIAN",()=>lE,"formatAxisMap",()=>lk,"getMaxRadius",()=>lA,"getTickClassName",()=>lN,"inRangeOfSector",()=>l_,"polarToCartesian",()=>lP],68970);var lI=["offset"];function lR(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function lB(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lL(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lB(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=lD(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lD(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lD(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lB(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function lz(){return(lz=Object.assign.bind()).apply(this,arguments)}var lF=function(t){var e=t.value,r=t.formatter,n=(0,f.default)(t.children)?e:t.children;return(0,p.default)(r)?r(n):n},lU=function(t,e,r){var n,o,i=t.position,a=t.viewBox,u=t.offset,l=t.className,c=a.cx,p=a.cy,d=a.innerRadius,h=a.outerRadius,y=a.startAngle,v=a.endAngle,b=a.clockWise,g=(d+h)/2,x=(0,tp.mathSign)(v-y)*Math.min(Math.abs(v-y),360),w=x>=0?1:-1;"insideStart"===i?(n=y+w*u,o=b):"insideEnd"===i?(n=v-w*u,o=!b):"end"===i&&(n=v+w*u,o=b),o=x<=0?o:!o;var O=lP(c,p,g,n),S=lP(c,p,g,n+(o?1:-1)*359),j="M".concat(O.x,",").concat(O.y,"\n A").concat(g,",").concat(g,",0,1,").concat(+!o,",\n ").concat(S.x,",").concat(S.y),E=(0,f.default)(t.id)?(0,tp.uniqueId)("recharts-radial-line-"):t.id;return s.default.createElement("text",lz({},r,{dominantBaseline:"central",className:(0,m.default)("recharts-radial-bar-label",l)}),s.default.createElement("defs",null,s.default.createElement("path",{id:E,d:j})),s.default.createElement("textPath",{xlinkHref:"#".concat(E)},e))},l$=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e.cx,i=e.cy,a=e.innerRadius,u=e.outerRadius,l=(e.startAngle+e.endAngle)/2;if("outside"===n){var c=lP(o,i,u+r,l),s=c.x;return{x:s,y:c.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=lP(o,i,(a+u)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},lH=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e.x,a=e.y,u=e.width,l=e.height,c=l>=0?1:-1,s=c*n,f=c>0?"end":"start",p=c>0?"start":"end",d=u>=0?1:-1,h=d*n,y=d>0?"end":"start",v=d>0?"start":"end";if("top"===o)return lL(lL({},{x:i+u/2,y:a-c*n,textAnchor:"middle",verticalAnchor:f}),r?{height:Math.max(a-r.y,0),width:u}:{});if("bottom"===o)return lL(lL({},{x:i+u/2,y:a+l+s,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(a+l),0),width:u}:{});if("left"===o){var m={x:i-h,y:a+l/2,textAnchor:y,verticalAnchor:"middle"};return lL(lL({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===o){var b={x:i+u+h,y:a+l/2,textAnchor:v,verticalAnchor:"middle"};return lL(lL({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var g=r?{width:u,height:l}:{};return"insideLeft"===o?lL({x:i+h,y:a+l/2,textAnchor:v,verticalAnchor:"middle"},g):"insideRight"===o?lL({x:i+u-h,y:a+l/2,textAnchor:y,verticalAnchor:"middle"},g):"insideTop"===o?lL({x:i+u/2,y:a+s,textAnchor:"middle",verticalAnchor:p},g):"insideBottom"===o?lL({x:i+u/2,y:a+l-s,textAnchor:"middle",verticalAnchor:f},g):"insideTopLeft"===o?lL({x:i+h,y:a+s,textAnchor:v,verticalAnchor:p},g):"insideTopRight"===o?lL({x:i+u-h,y:a+s,textAnchor:y,verticalAnchor:p},g):"insideBottomLeft"===o?lL({x:i+h,y:a+l-s,textAnchor:v,verticalAnchor:f},g):"insideBottomRight"===o?lL({x:i+u-h,y:a+l-s,textAnchor:y,verticalAnchor:f},g):(0,lg.default)(o)&&((0,tp.isNumber)(o.x)||(0,tp.isPercent)(o.x))&&((0,tp.isNumber)(o.y)||(0,tp.isPercent)(o.y))?lL({x:i+(0,tp.getPercentValue)(o.x,u),y:a+(0,tp.getPercentValue)(o.y,l),textAnchor:"end",verticalAnchor:"end"},g):lL({x:i+u/2,y:a+l/2,textAnchor:"middle",verticalAnchor:"middle"},g)};function lW(t){var e,r=t.offset,n=lL({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,lI)),o=n.viewBox,i=n.position,a=n.value,u=n.children,l=n.content,c=n.className,d=n.textBreakAll;if(!o||(0,f.default)(a)&&(0,f.default)(u)&&!(0,s.isValidElement)(l)&&!(0,p.default)(l))return null;if((0,s.isValidElement)(l))return(0,s.cloneElement)(l,n);if((0,p.default)(l)){if(e=(0,s.createElement)(l,n),(0,s.isValidElement)(e))return e}else e=lF(n);var h="cx"in o&&(0,tp.isNumber)(o.cx),y=(0,V.filterProps)(n,!0);if(h&&("insideStart"===i||"insideEnd"===i||"end"===i))return lU(n,e,y);var v=h?l$(n):lH(n);return s.default.createElement(r1,lz({className:(0,m.default)("recharts-label",void 0===c?"":c)},y,v,{breakAll:d}),e)}lW.displayName="Label";var lq=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,l=t.innerRadius,c=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,h=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,tp.isNumber)(h)&&(0,tp.isNumber)(y)){if((0,tp.isNumber)(s)&&(0,tp.isNumber)(f))return{x:s,y:f,width:h,height:y};if((0,tp.isNumber)(p)&&(0,tp.isNumber)(d))return{x:p,y:d,width:h,height:y}}return(0,tp.isNumber)(s)&&(0,tp.isNumber)(f)?{x:s,y:f,width:0,height:0}:(0,tp.isNumber)(e)&&(0,tp.isNumber)(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:l||0,outerRadius:c||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};lW.parseViewBox=lq,lW.renderCallByParent=function(t,e){var r,n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=lq(t),u=(0,V.findAllByType)(i,lW).map(function(t,r){return(0,s.cloneElement)(t,{viewBox:e||a,key:"label-".concat(r)})});if(!o)return u;return[(r=t.label,n=e||a,!r?null:!0===r?s.default.createElement(lW,{key:"label-implicit",viewBox:n}):(0,tp.isNumOrStr)(r)?s.default.createElement(lW,{key:"label-implicit",viewBox:n,value:r}):(0,s.isValidElement)(r)?r.type===lW?(0,s.cloneElement)(r,{key:"label-implicit",viewBox:n}):s.default.createElement(lW,{key:"label-implicit",content:r,viewBox:n}):(0,p.default)(r)?s.default.createElement(lW,{key:"label-implicit",content:r,viewBox:n}):(0,lg.default)(r)?s.default.createElement(lW,lz({viewBox:n},r,{key:"label-implicit"})):null)].concat(function(t){if(Array.isArray(t))return lR(t)}(u)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(u)||function(t,e){if(t){if("string"==typeof t)return lR(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lR(t,void 0)}}(u)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},t.s(["Label",()=>lW],494);var lV=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},lX=t.i(60793),lG=t.i(26063),lK=function(t){return null};lK.displayName="Cell",t.s(["Cell",()=>lK],22787);var lY=t.i(4879);function lZ(t){return(lZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lJ=["valueAccessor"],lQ=["data","dataKey","clockWise","id","textBreakAll"];function l0(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l1(){return(l1=Object.assign.bind()).apply(this,arguments)}function l2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l3(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l2(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=lZ(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lZ(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lZ(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l2(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l5(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var l4=function(t){return Array.isArray(t.value)?(0,lY.default)(t.value):t.value};function l6(t){var e=t.valueAccessor,r=void 0===e?l4:e,n=l5(t,lJ),o=n.data,i=n.dataKey,a=n.clockWise,u=n.id,l=n.textBreakAll,c=l5(n,lQ);return o&&o.length?s.default.createElement(x.Layer,{className:"recharts-label-list"},o.map(function(t,e){var n=(0,f.default)(i)?r(t,e):uM(t&&t.payload,i),o=(0,f.default)(u)?{}:{id:"".concat(u,"-").concat(e)};return s.default.createElement(lW,l1({},(0,V.filterProps)(t,!0),c,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:lW.parseViewBox((0,f.default)(a)?t:l3(l3({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))})):null}l6.displayName="LabelList",l6.renderCallByParent=function(t,e){var r,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var o=t.children,i=(0,V.findAllByType)(o,l6).map(function(t,r){return(0,s.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return n?[(r=t.label,!r?null:!0===r?s.default.createElement(l6,{key:"labelList-implicit",data:e}):s.default.isValidElement(r)||(0,p.default)(r)?s.default.createElement(l6,{key:"labelList-implicit",data:e,content:r}):(0,lg.default)(r)?s.default.createElement(l6,l1({data:e},r,{key:"labelList-implicit"})):null)].concat(function(t){if(Array.isArray(t))return l0(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return l0(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l0(t,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i},t.s(["LabelList",()=>l6],69212);var l7=t.i(1320),l8=t.i(20164);function l9(t){return(l9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(){return(ct=Object.assign.bind()).apply(this,arguments)}function ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=l9(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l9(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l9(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var co=function(t,e,r,n,o){var i=r-n;return"M ".concat(t,",").concat(e)+"L ".concat(t+r,",").concat(e)+"L ".concat(t+r-i/2,",").concat(e+o)+"L ".concat(t+r-i/2-n,",").concat(e+o)+"L ".concat(t,",").concat(e," Z")},ci={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ca=function(t){var e,r=cn(cn({},ci),t),n=(0,s.useRef)(),o=function(t){if(Array.isArray(t))return t}(e=(0,s.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return ce(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ce(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];(0,s.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&a(t)}catch(t){}},[]);var u=r.x,l=r.y,c=r.upperWidth,f=r.lowerWidth,p=r.height,d=r.className,h=r.animationEasing,y=r.animationDuration,v=r.animationBegin,b=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||p!==+p||0===c&&0===f||0===p)return null;var g=(0,m.default)("recharts-trapezoid",d);return b?s.default.createElement(eR,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:p,x:u,y:l},duration:y,animationEasing:h,isActive:b},function(t){var e=t.upperWidth,o=t.lowerWidth,a=t.height,u=t.x,l=t.y;return s.default.createElement(eR,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:h},s.default.createElement("path",ct({},(0,V.filterProps)(r,!0),{className:g,d:co(u,l,e,o,a),ref:n})))}):s.default.createElement("g",null,s.default.createElement("path",ct({},(0,V.filterProps)(r,!0),{className:g,d:co(u,l,c,f,p)})))};function cu(t){return(cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cl(){return(cl=Object.assign.bind()).apply(this,arguments)}function cc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cc(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=cu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cu(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cu(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var cf=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,l=t.cornerIsExternal,c=u*(a?1:-1)+n,s=Math.asin(u/c)/lE,f=l?o:o+i*s;return{center:lP(e,r,c,f),circleTangency:lP(e,r,n,f),lineTangency:lP(e,r,c*Math.cos(s*lE),l?o-i*s:o),theta:s}},cp=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=t.endAngle,u=(0,tp.mathSign)(a-i)*Math.min(Math.abs(a-i),359.999),l=i+u,c=lP(e,r,o,i),s=lP(e,r,o,l),f="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(u)>180),",").concat(+(i>l),",\n ").concat(s.x,",").concat(s.y,"\n ");if(n>0){var p=lP(e,r,n,i),d=lP(e,r,n,l);f+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(u)>180),",").concat(+(i<=l),",\n ").concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(e,",").concat(r," Z");return f},cd=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,s=(0,tp.mathSign)(c-l),f=cf({cx:e,cy:r,radius:o,angle:l,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=cf({cx:e,cy:r,radius:o,angle:c,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=u?Math.abs(l-c):Math.abs(l-c)-h-b;if(g<0)return a?"M ".concat(d.x,",").concat(d.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 "):cp({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=cf({cx:e,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=cf({cx:e,cy:r,radius:n,angle:c,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),P=E.circleTangency,A=E.lineTangency,k=E.theta,T=u?Math.abs(l-c):Math.abs(l-c)-j-k;if(T<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(T>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x},ch={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cy=function(t){var e,r=cs(cs({},ch),t),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,u=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,p=r.endAngle,d=r.className;if(a<i||f===p)return null;var h=(0,m.default)("recharts-sector",d),y=a-i,v=(0,tp.getPercentValue)(u,y,0,!0);return e=v>0&&360>Math.abs(f-p)?cd({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,y/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:p}):cp({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:f,endAngle:p}),s.default.createElement("path",cl({},(0,V.filterProps)(r,!0),{className:h,d:e,role:"img"}))};t.s(["Sector",()=>cy],39425);var cv=["option","shapeType","propTransformer","activeClassName","isActive"];function cm(t){return(cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cb(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=cm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cm(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cm(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cx(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return s.default.createElement(rf,r);case"trapezoid":return s.default.createElement(ca,r);case"sector":return s.default.createElement(cy,r);case"symbols":if("symbols"===e)return s.default.createElement(te,r);break;default:return null}}function cw(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=t.activeClassName,a=t.isActive,u=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,cv);if((0,s.isValidElement)(r))e=(0,s.cloneElement)(r,cg(cg({},u),(0,s.isValidElement)(r)?r.props:r));else if((0,p.default)(r))e=r(u);else if((0,l7.default)(r)&&!(0,l8.default)(r)){var l=(void 0===o?function(t,e){return cg(cg({},e),t)}:o)(r,u);e=s.default.createElement(cx,{shapeType:n,elementProps:l})}else e=s.default.createElement(cx,{shapeType:n,elementProps:u});return a?s.default.createElement(x.Layer,{className:void 0===i?"recharts-active-shape":i},e):e}function cO(t,e){return null!=e&&"trapezoids"in t.props}function cS(t,e){return null!=e&&"sectors"in t.props}function cj(t,e){return null!=e&&"points"in t.props}function cE(t,e){var r,n,o=t.x===(null==e||null==(r=e.labelViewBox)?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null==(n=e.labelViewBox)?void 0:n.y)||t.y===e.y;return o&&i}function cP(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function cA(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function ck(t){var e,r,n,o=t.activeTooltipItem,i=t.graphicalItem,a=t.itemData,u=(cO(i,o)?e="trapezoids":cS(i,o)?e="sectors":cj(i,o)&&(e="points"),e),l=cO(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:cS(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:cj(i,o)?o.payload:{},c=a.filter(function(t,e){var r=(0,aY.default)(l,t),n=i.props[u].filter(function(t){var e;return(cO(i,o)?e=cE:cS(i,o)?e=cP:cj(i,o)&&(e=cA),e)(t,o)}),a=i.props[u].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(c[c.length-1])}t.s(["Shape",()=>cw,"getActiveShapeIndexForTooltip",()=>ck,"isFunnel",()=>cO,"isPie",()=>cS,"isScatter",()=>cj],18519);var cT=["x","y"];function cM(t){return(cM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cC(){return(cC=Object.assign.bind()).apply(this,arguments)}function c_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cN(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c_(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=cM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cM(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cM(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cD(t,e){var r=t.x,n=t.y,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,cT),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||o.height),10),l=parseInt("".concat(e.width||o.width),10);return cN(cN(cN(cN(cN({},e),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:u,width:l,name:e.name,radius:e.radius})}function cI(t){return s.default.createElement(cw,cC({shapeType:"rectangle",propTransformer:cD,activeClassName:"recharts-active-bar"},t))}var cR=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||(0,b.default)(!1),e)}},cB=["value","background"];function cL(t){return(cL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cz(){return(cz=Object.assign.bind()).apply(this,arguments)}function cF(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cU(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cF(Object(r),!0).forEach(function(e){cV(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cF(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c$(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cX(n.key),n)}}function cH(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(cH=function(){return!!t})()}function cW(t){return(cW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function cq(t,e){return(cq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function cV(t,e,r){return(e=cX(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cX(t){var e=function(t,e){if("object"!=cL(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cL(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cL(e)?e:e+""}var cG=function(t){var e,r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=n,r=[].concat(i),e=cW(e),cV(t=function(t,e){if(e&&("object"===cL(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,cH()?Reflect.construct(e,r||[],cW(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!1}),cV(t,"id",(0,tp.uniqueId)("recharts-bar-")),cV(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),cV(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&cq(n,t),e=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,u=(0,V.filterProps)(this.props,!1);return t&&t.map(function(t,r){var l=r===i,c=cU(cU(cU({},u),t),{},{isActive:l,option:l?a:n,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return s.default.createElement(x.Layer,cz({className:"recharts-bar-rectangle"},(0,tr.adaptEventsOfChild)(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),s.default.createElement(cI,c))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,l=e.animationId,c=this.state.prevData;return s.default.createElement(eR,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t,i=r.map(function(t,e){var r=c&&c[e];if(r){var i=(0,tp.interpolateNumber)(r.x,t.x),a=(0,tp.interpolateNumber)(r.y,t.y),u=(0,tp.interpolateNumber)(r.width,t.width),l=(0,tp.interpolateNumber)(r.height,t.height);return cU(cU({},t),{},{x:i(o),y:a(o),width:u(o),height:l(o)})}if("horizontal"===n){var s=(0,tp.interpolateNumber)(0,t.height)(o);return cU(cU({},t),{},{y:t.y+t.height-s,height:s})}var f=(0,tp.interpolateNumber)(0,t.width)(o);return cU(cU({},t),{},{width:f})});return s.default.createElement(x.Layer,null,t.renderRectanglesStatically(i))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return r&&e&&e.length&&(!n||!(0,aY.default)(n,e))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(e)}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=(0,V.filterProps)(this.props.background,!1);return r.map(function(e,r){e.value;var a=e.background,u=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,cB);if(!a)return null;var l=cU(cU(cU(cU(cU({},u),{},{fill:"#eee"},a),i),(0,tr.adaptEventsOfChild)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return s.default.createElement(cI,cz({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,u=r.children,l=(0,V.findAllByType)(u,ug);if(!l)return null;var c="vertical"===a?n[0].height/2:n[0].width/2,f=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:uM(t,e)}};return s.default.createElement(x.Layer,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return s.default.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:c,dataPointFormatter:f})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,l=t.width,c=t.height,p=t.isAnimationActive,d=t.background,h=t.id;if(e||!r||!r.length)return null;var y=this.state.isAnimationFinished,v=(0,m.default)("recharts-bar",n),b=o&&o.allowDataOverflow,g=i&&i.allowDataOverflow,w=b||g,O=(0,f.default)(h)?this.id:h;return s.default.createElement(x.Layer,{className:v},b||g?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(O)},s.default.createElement("rect",{x:b?a:a-l/2,y:g?u:u-c/2,width:b?l:2*l,height:g?c:2*c}))):null,s.default.createElement(x.Layer,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(O,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,O),(!p||y)&&l6.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&c$(n.prototype,e),r&&c$(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.PureComponent);function cK(t){return(cK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c0(n.key),n)}}function cZ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function cJ(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cZ(Object(r),!0).forEach(function(e){cQ(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cZ(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function cQ(t,e,r){return(e=c0(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c0(t){var e=function(t,e){if("object"!=cK(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cK(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cK(e)?e:e+""}cV(cG,"displayName","Bar"),cV(cG,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!rw.Global.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),cV(cG,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,l=t.yAxisTicks,c=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=uX(n,r);if(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?cU(cU({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,x="horizontal"===h?a:i,w=c?x.scale.domain():null,O=u1({numericAxis:x}),S=(0,V.findAllByType)(b,lK),j=f.map(function(t,e){c?f=uG(c[s+e],w):Array.isArray(f=uM(t,m))||(f=[O,f]);var n=cR(g,cG.defaultProps.minPointSize)(f[1],e);if("horizontal"===h){var f,p,y,v,b,x,j,E=[a.scale(f[0]),a.scale(f[1])],P=E[0],A=E[1];p=u0({axis:i,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=null!=(j=null!=A?A:P)?j:void 0,v=d.size;var k=P-A;if(b=Number.isNaN(k)?0:k,x={x:p,y:a.y,width:v,height:a.height},Math.abs(n)>0&&Math.abs(b)<Math.abs(n)){var T=(0,tp.mathSign)(b||n)*(Math.abs(n)-Math.abs(b));y-=T,b+=T}}else{var M=[i.scale(f[0]),i.scale(f[1])],C=M[0],_=M[1];if(p=C,y=u0({axis:a,ticks:l,bandSize:o,offset:d.offset,entry:t,index:e}),v=_-C,b=d.size,x={x:i.x,y:y,width:i.width,height:b},Math.abs(n)>0&&Math.abs(v)<Math.abs(n)){var N=(0,tp.mathSign)(v||n)*(Math.abs(n)-Math.abs(v));v+=N}}return cU(cU(cU({},t),{},{x:p,y:y,width:v,height:b,value:c?f:f[1],payload:t,background:x},S&&S[e]&&S[e].props),{},{tooltipPayload:[u9(r,t)],tooltipPosition:{x:p+v/2,y:y+b/2}})});return cU({data:j,layout:h},p)}),t.s(["Bar",()=>cG],75225);var c1=function(t,e,r,n,o){var i=t.width,a=t.height,u=t.layout,l=t.children,c=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!(0,V.findChildByType)(l,cG);return c.reduce(function(i,a){var l,c,p,d,h,y=e[a],v=y.orientation,m=y.domain,b=y.padding,g=void 0===b?{}:b,x=y.mirror,w=y.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,E=y.categoricalDomain.sort();if(E.forEach(function(t,e){e>0&&(j=Math.min((t||0)-(E[e-1]||0),j))}),Number.isFinite(j)){var P=j/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(l=P*A/2),"no-gap"===y.padding){var k=(0,tp.getPercentValue)(t.barCategoryGap,P*A),T=P*A/2;l=T-k-(T-k)/A*k}}}c="xAxis"===n?[r.left+(g.left||0)+(l||0),r.left+r.width-(g.right||0)-(l||0)]:"yAxis"===n?"horizontal"===u?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(l||0),r.top+r.height-(g.bottom||0)-(l||0)]:y.range,w&&(c=[c[1],c[0]]);var M=uq(y,o,f),C=M.scale,_=M.realScaleType;C.domain(m).range(c),uV(C);var N=uJ(C,cJ(cJ({},y),{},{realScaleType:_}));"xAxis"===n?(h="top"===v&&!x||"bottom"===v&&x,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!x||"right"===v&&x,p=s[O]-h*y.width,d=r.top);var D=cJ(cJ(cJ({},y),N),{},{realScaleType:_,x:p,y:d,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return D.bandSize=u7(D,N),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*D.width):s[O]+=(h?-1:1)*D.height,cJ(cJ({},i),{},cQ({},a,D))},{})},c2=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},c3=function(t){return c2({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},c5=function(){var t,e;function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=t}return t=[{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}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&cY(r.prototype,t),e&&cY(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();cQ(c5,"EPS",1e-4);var c4=function(t){var e=Object.keys(t).reduce(function(e,r){return cJ(cJ({},e),{},cQ({},r,c5.create(t[r])))},{});return cJ(cJ({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return(0,lX.default)(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return(0,lG.default)(t,function(t,r){return e[r].isInRange(t)})}})},c6=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/e);return Math.abs(o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o))};function c7(){return(c7=Object.assign.bind()).apply(this,arguments)}function c8(t){return(c8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function st(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c9(Object(r),!0).forEach(function(e){so(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c9(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}t.s(["createLabeledScales",()=>c4,"formatAxisMap",()=>c1,"getAngledRectangleWidth",()=>c6,"rectWithCoords",()=>c3,"rectWithPoints",()=>c2],44171);function se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(se=function(){return!!t})()}function sr(t){return(sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sn(t,e){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function so(t,e,r){return(e=si(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function si(t){var e=function(t,e){if("object"!=c8(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c8(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c8(e)?e:e+""}var sa=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=c4({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return lV(t,"discard")&&!i.isInRange(a)?null:a},su=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=sr(t),function(t,e){if(e&&("object"===c8(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,se()?Reflect.construct(t,e||[],sr(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&sn(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,u=(0,tp.isNumOrStr)(e),l=(0,tp.isNumOrStr)(n);if((0,O.warn)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var c=sa(this.props);if(!c)return null;var f=c.x,p=c.y,d=this.props,h=d.shape,y=d.className,v=st(st({clipPath:lV(this.props,"hidden")?"url(#".concat(a,")"):void 0},(0,V.filterProps)(this.props,!0)),{},{cx:f,cy:p});return s.default.createElement(x.Layer,{className:(0,m.default)("recharts-reference-dot",y)},r.renderDot(h,v),lW.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,si(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);so(su,"displayName","ReferenceDot"),so(su,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),so(su,"renderDot",function(t,e){return s.default.isValidElement(t)?s.default.cloneElement(t,e):(0,p.default)(t)?t(e):s.default.createElement(tA,c7({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});var sl=t.i(88099),sc=t.i(60191),ss=(0,t.i(57588).default)(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return"l"+t.left+"t"+t.top+"w"+t.width+"h"+t.height}),sf=(0,s.createContext)(void 0),sp=(0,s.createContext)(void 0),sd=(0,s.createContext)(void 0),sh=(0,s.createContext)({}),sy=(0,s.createContext)(void 0),sv=(0,s.createContext)(0),sm=(0,s.createContext)(0),sb=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,u=t.width,l=t.height,c=ss(o);return s.default.createElement(sf.Provider,{value:r},s.default.createElement(sp.Provider,{value:n},s.default.createElement(sh.Provider,{value:o},s.default.createElement(sd.Provider,{value:c},s.default.createElement(sy.Provider,{value:i},s.default.createElement(sv.Provider,{value:l},s.default.createElement(sm.Provider,{value:u},a)))))))},sg=function(t){var e=(0,s.useContext)(sf);null==e&&(0,b.default)(!1);var r=e[t];return null==r&&(0,b.default)(!1),r},sx=function(){var t=(0,s.useContext)(sf);return(0,tp.getAnyElementOfObject)(t)},sw=function(){var t=(0,s.useContext)(sp);return(0,sc.default)(t,function(t){return(0,lG.default)(t.domain,Number.isFinite)})||(0,tp.getAnyElementOfObject)(t)},sO=function(t){var e=(0,s.useContext)(sp);null==e&&(0,b.default)(!1);var r=e[t];return null==r&&(0,b.default)(!1),r},sS=function(){return(0,s.useContext)(sm)},sj=function(){return(0,s.useContext)(sv)};function sE(t){return(sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sP=function(){return!!t})()}function sA(t){return(sA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sk(t,e){return(sk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function sM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sT(Object(r),!0).forEach(function(e){sC(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sT(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function sC(t,e,r){return(e=s_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s_(t){var e=function(t,e){if("object"!=sE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sE(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sE(e)?e:e+""}function sN(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function sD(){return(sD=Object.assign.bind()).apply(this,arguments)}var sI=function(t,e){return s.default.isValidElement(t)?s.default.cloneElement(t,e):(0,p.default)(t)?t(e):s.default.createElement("line",sD({},e,{className:"recharts-reference-line-line"}))},sR=function(t,e,r,n,o,i,a,u,l){var c=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=l.y,h=t.y.apply(d,{position:i});if(lV(l,"discard")&&!t.y.isInRange(h))return null;var y=[{x:c+f,y:h},{x:c,y:h}];return"left"===u?y.reverse():y}if(e){var v=l.x,m=t.x.apply(v,{position:i});if(lV(l,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=l.segment.map(function(e){return t.apply(e,{position:i})});return lV(l,"discard")&&(0,sl.default)(g,function(e){return!t.isInRange(e)})?null:g}return null};function sB(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,u=t.className,l=t.alwaysShow,c=(0,s.useContext)(sy),f=sg(o),p=sO(i),d=(0,s.useContext)(sd);if(!c||!d)return null;(0,O.warn)(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=sR(c4({x:f.scale,y:p.scale}),(0,tp.isNumOrStr)(e),(0,tp.isNumOrStr)(r),n&&2===n.length,d,t.position,f.orientation,p.orientation,t);if(!h)return null;var y=function(t){if(Array.isArray(t))return t}(h)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(h,2)||function(t,e){if(t){if("string"==typeof t)return sN(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sN(t,2)}}(h,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=y[0],b=v.x,g=v.y,w=y[1],S=w.x,j=w.y,E=sM(sM({clipPath:lV(t,"hidden")?"url(#".concat(c,")"):void 0},(0,V.filterProps)(t,!0)),{},{x1:b,y1:g,x2:S,y2:j});return s.default.createElement(x.Layer,{className:(0,m.default)("recharts-reference-line",u)},sI(a,E),lW.renderCallByParent(t,c3({x1:b,y1:g,x2:S,y2:j})))}var sL=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=sA(t),function(t,e){if(e&&("object"===sE(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,sP()?Reflect.construct(t,e||[],sA(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&sk(r,t),e=[{key:"render",value:function(){return s.default.createElement(sB,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s_(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);function sz(){return(sz=Object.assign.bind()).apply(this,arguments)}function sF(t){return(sF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sU(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s$(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sU(Object(r),!0).forEach(function(e){sV(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sU(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}sC(sL,"displayName","ReferenceLine"),sC(sL,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function sH(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(sH=function(){return!!t})()}function sW(t){return(sW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sq(t,e){return(sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sV(t,e,r){return(e=sX(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sX(t){var e=function(t,e){if("object"!=sF(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sF(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sF(e)?e:e+""}var sG=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,l=o.y2,c=o.xAxis,s=o.yAxis;if(!c||!s)return null;var f=c4({x:c.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!lV(o,"discard")||f.isInRange(p)&&f.isInRange(d)?c2(p,d):null},sK=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=sW(t),function(t,e){if(e&&("object"===sF(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,sH()?Reflect.construct(t,e||[],sW(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&sq(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,u=t.alwaysShow,l=t.clipPathId;(0,O.warn)(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=(0,tp.isNumOrStr)(e),f=(0,tp.isNumOrStr)(n),p=(0,tp.isNumOrStr)(o),d=(0,tp.isNumOrStr)(i),h=this.props.shape;if(!c&&!f&&!p&&!d&&!h)return null;var y=sG(c,f,p,d,this.props);if(!y&&!h)return null;var v=lV(this.props,"hidden")?"url(#".concat(l,")"):void 0;return s.default.createElement(x.Layer,{className:(0,m.default)("recharts-reference-area",a)},r.renderRect(h,s$(s$({clipPath:v},(0,V.filterProps)(this.props,!0)),y)),lW.renderCallByParent(this.props,y))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sX(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);function sY(t){return function(t){if(Array.isArray(t))return sZ(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return sZ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sZ(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}sV(sK,"displayName","ReferenceArea"),sV(sK,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),sV(sK,"renderRect",function(t,e){return s.default.isValidElement(t)?s.default.cloneElement(t,e):(0,p.default)(t)?t(e):s.default.createElement(rf,sz({},e,{className:"recharts-reference-area-rect"}))});var sJ=function(t,e,r,n,o){var i=(0,V.findAllByType)(t,sL),a=(0,V.findAllByType)(t,su),u=[].concat(sY(i),sY(a)),l=(0,V.findAllByType)(t,sK),c="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce(function(t,e){if(e.props[c]===r&&lV(e.props,"extendDomain")&&(0,tp.isNumber)(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce(function(t,e){if(e.props[c]===r&&lV(e.props,"extendDomain")&&(0,tp.isNumber)(e.props[p])&&(0,tp.isNumber)(e.props[d])){var n=e.props[p],o=e.props[d];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t},f)}return o&&o.length&&(f=o.reduce(function(t,e){return(0,tp.isNumber)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},sQ=t.i(24573),s0=new(t.i(78492)).default,s1="recharts.syncMouseEvents";function s2(t){return(s2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s3(t,e,r){return(e=s5(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s5(t){var e=function(t,e){if("object"!=s2(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s2(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s2(e)?e:e+""}var s4=(e=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");s3(this,"activeIndex",0),s3(this,"coordinateList",[]),s3(this,"layout","horizontal")},r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,u=void 0===a?null:a,l=t.offset,c=void 0===l?null:l,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!=(e=null!=n?n:this.coordinateList)?e:[],this.container=null!=i?i:this.container,this.layout=null!=u?u:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t,e,r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,u=(null==(t=window)?void 0:t.scrollX)||0,l=(null==(e=window)?void 0:e.scrollY)||0,c=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:n+a+u,pageY:c})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s5(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e);function s6(t){this._context=t}function s7(t){return new s6(t)}function s8(t){return t[0]}function s9(t){return t[1]}function ft(t,e){var r=j(!0),n=null,o=s7,i=null,a=M(u);function u(u){var l,c,s,f=(u=aF(u)).length,p=!1;for(null==n&&(i=o(s=a())),l=0;l<=f;++l)!(l<f&&r(c=u[l],l,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(c,l,u),+e(c,l,u));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?s8:j(t),e="function"==typeof e?e:void 0===e?s9:j(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:j(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:j(+t),u):e},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:j(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function fe(t,e,r){var n=null,o=j(!0),i=null,a=s7,u=null,l=M(c);function c(c){var s,f,p,d,h,y=(c=aF(c)).length,v=!1,m=Array(y),b=Array(y);for(null==i&&(u=a(h=l())),s=0;s<=y;++s){if(!(s<y&&o(d=c[s],s,c))===v)if(v=!v)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=s-1;p>=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(d,s,c),b[s]=+e(d,s,c),u.point(n?+n(d,s,c):m[s],r?+r(d,s,c):b[s]))}if(h)return u=null,h+""||null}function s(){return ft().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?s8:j(+t),e="function"==typeof e?e:void 0===e?j(0):j(+e),r="function"==typeof r?r:void 0===r?s9:j(+r),c.x=function(e){return arguments.length?(t="function"==typeof e?e:j(+e),n=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:j(+e),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:j(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:j(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:j(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:j(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(n).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:j(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),c):i},c}function fr(){}function fn(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function fo(t){this._context=t}function fi(t){this._context=t}function fa(t){this._context=t}s6.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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},fo.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:fn(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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:fn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fi.prototype={areaStart:fr,areaEnd:fr,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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:fn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fa.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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:fn(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class fu{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function fl(t){this._context=t}fl.prototype={areaStart:fr,areaEnd:fr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function fc(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function fs(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ff(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function fp(t){this._context=t}function fd(t){this._context=new fh(t)}function fh(t){this._context=t}function fy(t){this._context=t}function fv(t){var e,r,n=t.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(e=0,i[n-1]=(t[n]+o[n-1])/2;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function fm(t,e){this._context=t,this._t=e}function fb(t){return(fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fg(){return(fg=Object.assign.bind()).apply(this,arguments)}function fx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function fw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fx(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=fb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fb(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fb(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}fp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ff(this,this._t0,fs(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ff(this,fs(this,r=fc(this,t,e)),r);break;default:ff(this,this._t0,r=fc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(fd.prototype=Object.create(fp.prototype)).point=function(t,e){fp.prototype.point.call(this,e,t)},fh.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=fv(t),o=fv(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},fm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var fO={curveBasisClosed:function(t){return new fi(t)},curveBasisOpen:function(t){return new fa(t)},curveBasis:function(t){return new fo(t)},curveBumpX:function(t){return new fu(t,!0)},curveBumpY:function(t){return new fu(t,!1)},curveLinearClosed:function(t){return new fl(t)},curveLinear:s7,curveMonotoneX:function(t){return new fp(t)},curveMonotoneY:function(t){return new fd(t)},curveNatural:function(t){return new fy(t)},curveStep:function(t){return new fm(t,.5)},curveStepAfter:function(t){return new fm(t,1)},curveStepBefore:function(t){return new fm(t,0)}},fS=function(t){return t.x===+t.x&&t.y===+t.y},fj=function(t){return t.x},fE=function(t){return t.y},fP=function(t,e){if((0,p.default)(t))return t;var r="curve".concat((0,S.default)(t));return("curveMonotone"===r||"curveBump"===r)&&e?fO["".concat(r).concat("vertical"===e?"Y":"X")]:fO[r]||s7},fA=function(t){var e,r=t.type,n=t.points,o=void 0===n?[]:n,i=t.baseLine,a=t.layout,u=t.connectNulls,l=void 0!==u&&u,c=fP(void 0===r?"linear":r,a),s=l?o.filter(function(t){return fS(t)}):o;if(Array.isArray(i)){var f=l?i.filter(function(t){return fS(t)}):i,p=s.map(function(t,e){return fw(fw({},t),{},{base:f[e]})});return(e="vertical"===a?fe().y(fE).x1(fj).x0(function(t){return t.base.x}):fe().x(fj).y1(fE).y0(function(t){return t.base.y})).defined(fS).curve(c),e(p)}return(e="vertical"===a&&(0,tp.isNumber)(i)?fe().y(fE).x1(fj).x0(i):(0,tp.isNumber)(i)?fe().x(fj).y1(fE).y0(i):ft().x(fj).y(fE)).defined(fS).curve(c),e(s)},fk=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if((!r||!r.length)&&!n)return null;var i=r&&r.length?fA(t):n;return s.default.createElement("path",fg({},(0,V.filterProps)(t,!1),(0,tr.adaptEventHandlers)(t),{className:(0,m.default)("recharts-curve",e),d:i,ref:o}))};function fT(t){return(fT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.s(["Curve",()=>fk],72733);var fM=["x","y","top","left","width","height","className"];function fC(){return(fC=Object.assign.bind()).apply(this,arguments)}function f_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var fN=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,u=t.left,l=void 0===u?0:u,c=t.width,f=void 0===c?0:c,p=t.height,d=void 0===p?0:p,h=t.className,y=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f_(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=fT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fT(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:r,y:o,top:a,left:l,width:f,height:d},function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,fM));return(0,tp.isNumber)(r)&&(0,tp.isNumber)(o)&&(0,tp.isNumber)(f)&&(0,tp.isNumber)(d)&&(0,tp.isNumber)(a)&&(0,tp.isNumber)(l)?s.default.createElement("path",fC({},(0,V.filterProps)(y,!0),{className:(0,m.default)("recharts-cross",h),d:"M".concat(r,",").concat(a,"v").concat(d,"M").concat(l,",").concat(o,"h").concat(f)})):null};function fD(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[lP(e,r,n,o),lP(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function fI(t){return(fI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fR(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function fB(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fR(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=fI(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fI(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fI(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fR(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function fL(t){var e,r,n,o,i=t.element,a=t.tooltipEventType,u=t.isActive,l=t.activeCoordinate,c=t.activePayload,f=t.offset,p=t.activeTooltipIndex,d=t.tooltipAxisBandSize,h=t.layout,y=t.chartName,v=null!=(r=i.props.cursor)?r:null==(n=i.type.defaultProps)?void 0:n.cursor;if(!i||!v||!u||!l||"ScatterChart"!==y&&"axis"!==a)return null;var b=fk;if("ScatterChart"===y)o=l,b=fN;else if("BarChart"===y)e=d/2,o={stroke:"none",fill:"#ccc",x:"horizontal"===h?l.x-e:f.left+.5,y:"horizontal"===h?f.top+.5:l.y-e,width:"horizontal"===h?d:f.width-1,height:"horizontal"===h?f.height-1:d},b=rf;else if("radial"===h){var g=fD(l),x=g.cx,w=g.cy,O=g.radius;o={cx:x,cy:w,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:O,outerRadius:O},b=cy}else o={points:function(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy)if("centric"!==t)return fD(e);else{var u=e.cx,l=e.cy,c=e.innerRadius,s=e.outerRadius,f=e.angle,p=lP(u,l,c,f),d=lP(u,l,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}(h,l,f)},b=fk;var S=fB(fB(fB(fB({stroke:"#ccc",pointerEvents:"none"},f),o),(0,V.filterProps)(v,!1)),{},{payload:c,payloadIndex:p,className:(0,m.default)("recharts-tooltip-cursor",v.className)});return(0,s.isValidElement)(v)?(0,s.cloneElement)(v,S):(0,s.createElement)(b,S)}var fz=["item"],fF=["children","className","width","height","style","compact","title","desc"];function fU(t){return(fU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f$(){return(f$=Object.assign.bind()).apply(this,arguments)}function fH(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||fK(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fW(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function fq(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(fq=function(){return!!t})()}function fV(t){return(fV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fX(t,e){return(fX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function fG(t){return function(t){if(Array.isArray(t))return fY(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fK(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fK(t,e){if(t){if("string"==typeof t)return fY(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fY(t,e)}}function fY(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function fZ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function fJ(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fZ(Object(r),!0).forEach(function(e){fQ(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fZ(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function fQ(t,e,r){return(e=f0(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f0(t){var e=function(t,e){if("object"!=fU(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fU(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fU(e)?e:e+""}var f1={xAxis:["bottom","top"],yAxis:["left","right"]},f2={width:"100%",height:"100%"},f3={x:0,y:0};function f5(t){return t}var f4=function(t,e,r,n){var o=e.find(function(t){return t&&t.index===r});if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return fJ(fJ(fJ({},n),lP(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,l=n.angle;return fJ(fJ(fJ({},n),lP(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return f3},f6=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(fG(t),fG(r)):t},[]);return i.length>0?i:t&&t.length&&(0,tp.isNumber)(n)&&(0,tp.isNumber)(o)?t.slice(n,o+1):[]};function f7(t){return"number"===t?[0,"auto"]:void 0}var f8=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=f6(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,u){var l,c,s=null!=(l=u.props.data)?l:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===s?a:s;c=(0,tp.findEntryInArray)(f,i.dataKey,n)}else c=s&&s[r]||a[r];return c?[].concat(fG(o),[u9(u,c)]):o},[])},f9=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=u_(i,a,l,u);if(c>=0&&l){var s=l[c]&&l[c].value,f=f8(t,e,c,s),p=f4(r,a,c,o);return{activeTooltipIndex:c,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},pt=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,c=t.layout,s=t.children,p=t.stackOffset,h=uF(c,o);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?fJ(fJ({},r.type.defaultProps),r.props):r.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,w=y.ticks,O=y.includeHidden,S=y[i];if(e[S])return e;var j=f6(t.data,{graphicalItems:n.filter(function(t){var e;return(i in t.props?t.props[i]:null==(e=t.type.defaultProps)?void 0:e[i])===S}),dataStartIndex:u,dataEndIndex:l}),E=j.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&(0,tp.isNumber)(n)&&(0,tp.isNumber)(o))return!0}return!1})(y.domain,b,v)&&(k=u6(y.domain,null,b),h&&("number"===v||"auto"!==x)&&(M=uC(j,m,"category")));var P=f7(v);if(!k||0===k.length){var A,k,T,M,C,_=null!=(C=y.domain)?C:P;if(m){if(k=uC(j,m,v),"category"===v&&h){var N=(0,tp.hasDuplicate)(k);g&&N?(T=k,k=(0,d.default)(0,E)):g||(k=u8(_,k,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(fG(t),[e])},[]))}else if("category"===v)k=g?k.filter(function(t){return""!==t&&!(0,f.default)(t)}):u8(_,k,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||(0,f.default)(e)?t:[].concat(fG(t),[e])},[]);else if("number"===v){var D=uL(j,n.filter(function(t){var e,r,n=i in t.props?t.props[i]:null==(e=t.type.defaultProps)?void 0:e[i],o="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===S&&(O||!o)}),m,o,c);D&&(k=D)}h&&("number"===v||"auto"!==x)&&(M=uC(j,m,"category"))}else k=h?(0,d.default)(0,E):a&&a[S]&&a[S].hasStack&&"number"===v?"expand"===p?[0,1]:u3(a[S].stackGroups,u,l):uz(j,n.filter(function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===S&&(O||!r)}),v,c,!0);"number"===v?(k=sJ(s,k,S,o,w),_&&(k=u6(_,k,b))):"category"===v&&_&&k.every(function(t){return _.indexOf(t)>=0})&&(k=_)}return fJ(fJ({},e),{},fQ({},S,fJ(fJ({},y),{},{axisType:o,domain:k,categoricalDomain:M,duplicateDomain:T,originalDomain:null!=(A=y.domain)?A:P,isCategorical:h,layout:c})))},{})},pe=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,c=t.layout,s=t.children,f=f6(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:l}),p=f.length,y=uF(c,o),v=-1;return r.reduce(function(t,e){var m,b=(void 0!==e.type.defaultProps?fJ(fJ({},e.type.defaultProps),e.props):e.props)[i],g=f7("number");return t[b]?t:(v++,m=y?(0,d.default)(0,p):a&&a[b]&&a[b].hasStack?sJ(s,m=u3(a[b].stackGroups,u,l),b,o):sJ(s,m=u6(g,uz(f,r.filter(function(t){var e,r,n=i in t.props?t.props[i]:null==(e=t.type.defaultProps)?void 0:e[i],o="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===b&&!o}),"number",c),n.defaultProps.allowDataOverflow),b,o),fJ(fJ({},t),{},fQ({},b,fJ(fJ({axisType:o},n.defaultProps),{},{hide:!0,orientation:(0,h.default)(f1,"".concat(o,".").concat(v%2),null),domain:m,originalDomain:g,isCategorical:y,layout:c}))))},{})},pr=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,c=t.children,s="".concat(n,"Id"),f=(0,V.findAllByType)(c,o),p={};return f&&f.length?p=pt(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l}):i&&i.length&&(p=pe(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l})),p},pn=function(t){var e=(0,tp.getAnyElementOfObject)(t),r=u$(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:(0,y.default)(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:u7(e,r)}},po=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,V.findChildByType)(e,lb),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},pi=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pa=function(t,e){var r=t.props,n=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,u=void 0===a?{}:a,l=r.width,c=r.height,s=r.children,f=r.margin||{},p=(0,V.findChildByType)(s,lb),d=(0,V.findChildByType)(s,tE),y=Object.keys(u).reduce(function(t,e){var r=u[e],n=r.orientation;return r.mirror||r.hide?t:fJ(fJ({},t),{},fQ({},n,t[n]+r.width))},{left:f.left||0,right:f.right||0}),v=Object.keys(i).reduce(function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:fJ(fJ({},t),{},fQ({},n,(0,h.default)(t,"".concat(n))+r.height))},{top:f.top||0,bottom:f.bottom||0}),m=fJ(fJ({},v),y),b=m.bottom;p&&(m.bottom+=p.props.height||lb.defaultProps.height),d&&e&&(m=uR(m,n,r,e));var g=l-m.left-m.right,x=c-m.top-m.bottom;return fJ(fJ({brushBottom:b},m),{},{width:Math.max(g,0),height:Math.max(x,0)})},pu=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,u=t.axisComponents,l=t.legendContent,c=t.formatAxisMap,d=t.defaultProps,y=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,l=e.dataEndIndex,c=t.barSize,s=t.layout,p=t.barGap,d=t.barCategoryGap,h=t.maxBarSize,y=pi(s),v=y.numericAxisName,m=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,V.getDisplayName)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var w=f6(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),O=void 0!==r.type.defaultProps?fJ(fJ({},r.type.defaultProps),r.props):r.props,S=O.dataKey,j=O.maxBarSize,E=O["".concat(v,"Id")],P=O["".concat(m,"Id")],A=u.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],o=O["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,b.default)(!1);var i=n[o];return fJ(fJ({},t),{},fQ(fQ({},r.axisType,i),"".concat(r.axisType,"Ticks"),u$(i)))},{}),k=A[m],T=A["".concat(m,"Ticks")],M=n&&n[E]&&n[E].hasStack&&u2(r,n[E].stackGroups),C=(0,V.getDisplayName)(r.type).indexOf("Bar")>=0,_=u7(k,T),N=[],D=g&&uD({barSize:c,stackGroups:n,totalSize:"xAxis"===m?A[m].width:"yAxis"===m?A[m].height:void 0});if(C){var I,R,B=(0,f.default)(j)?h:j,L=null!=(I=null!=(R=u7(k,T,!0))?R:B)?I:0;N=uI({barGap:p,barCategoryGap:d,bandSize:L!==_?L:_,sizeList:D[P],maxBarSize:B}),L!==_&&(N=N.map(function(t){return fJ(fJ({},t),{},{position:fJ(fJ({},t.position),{},{offset:t.position.offset-L/2})})}))}var z=r&&r.type&&r.type.getComposedData;z&&x.push({props:fJ(fJ({},z(fJ(fJ({},A),{},{displayedData:w,props:t,dataKey:S,item:r,bandSize:_,barPosition:N,offset:o,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},fQ(fQ(fQ({key:r.key||"item-".concat(y)},v,A[v]),m,A[m]),"animationId",i)),childIndex:(0,V.parseChildIndex)(r,t.children),item:r})}),x},O=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,l=t.updateId;if(!(0,V.validateWidthHeight)({props:o}))return null;var s=o.children,f=o.layout,p=o.stackOffset,d=o.data,h=o.reverseStackOrder,v=pi(f),m=v.numericAxisName,b=v.cateAxisName,g=(0,V.findAllByType)(s,r),x=uZ(d,g,"".concat(m,"Id"),"".concat(b,"Id"),p,h),w=u.reduce(function(t,e){var r="".concat(e.axisType,"Map");return fJ(fJ({},t),{},fQ({},r,pr(o,fJ(fJ({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&x,dataStartIndex:i,dataEndIndex:a}))))},{}),O=pa(fJ(fJ({},w),{},{props:o,graphicalItems:g}),null==n?void 0:n.legendBBox);Object.keys(w).forEach(function(t){w[t]=c(o,w[t],O,t.replace("Map",""),e)});var S=pn(w["".concat(b,"Map")]),j=y(o,fJ(fJ({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:g,stackGroups:x,offset:O}));return fJ(fJ({formattedGraphicalItems:j,graphicalItems:g,offset:O,stackGroups:x},S),w)},S=function(t){var r;function n(t){var r,o,i,a,u;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return a=n,u=[t],a=fV(a),fQ(i=function(t,e){if(e&&("object"===fU(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,fq()?Reflect.construct(a,u||[],fV(this).constructor):a.apply(this,u)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),fQ(i,"accessibilityManager",new s4),fQ(i,"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(fJ({legendBBox:t},O({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},fJ(fJ({},i.state),{},{legendBBox:t}))))}}),fQ(i,"handleReceiveSyncEvent",function(t,e,r){i.props.syncId===t&&(r!==i.eventEmitterSymbol||"function"==typeof i.props.syncMethod)&&i.applySyncEvent(e)}),fQ(i,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState(function(){return fJ({dataStartIndex:e,dataEndIndex:r},O({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),fQ(i,"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var r=fJ(fJ({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;(0,p.default)(n)&&n(r,t)}}),fQ(i,"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),r=e?fJ(fJ({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;(0,p.default)(n)&&n(r,t)}),fQ(i,"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),fQ(i,"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),fQ(i,"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),fQ(i,"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;(0,p.default)(r)&&r(e,t)}),fQ(i,"handleOuterEvent",function(t){var e,r=(0,V.getReactEventByType)(t),n=(0,h.default)(i.props,"".concat(r));r&&(0,p.default)(n)&&n(null!=(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))?e:{},t)}),fQ(i,"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var r=fJ(fJ({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;(0,p.default)(n)&&n(r,t)}}),fQ(i,"handleMouseDown",function(t){var e=i.props.onMouseDown;(0,p.default)(e)&&e(i.getMouseInfo(t),t)}),fQ(i,"handleMouseUp",function(t){var e=i.props.onMouseUp;(0,p.default)(e)&&e(i.getMouseInfo(t),t)}),fQ(i,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),fQ(i,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),fQ(i,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),fQ(i,"handleDoubleClick",function(t){var e=i.props.onDoubleClick;(0,p.default)(e)&&e(i.getMouseInfo(t),t)}),fQ(i,"handleContextMenu",function(t){var e=i.props.onContextMenu;(0,p.default)(e)&&e(i.getMouseInfo(t),t)}),fQ(i,"triggerSyncEvent",function(t){void 0!==i.props.syncId&&s0.emit(s1,i.props.syncId,t,i.eventEmitterSymbol)}),fQ(i,"applySyncEvent",function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,u=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(fJ({dataStartIndex:a,dataEndIndex:u},O({props:i.props,dataStartIndex:a,dataEndIndex:u,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,c=t.chartY,s=t.activeTooltipIndex,f=i.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var h=0;h<d.length;h++)if(d[h].value===t.activeLabel){s=h;break}}var y=fJ(fJ({},p),{},{x:p.left,y:p.top}),v=Math.min(l,y.x+y.width),m=Math.min(c,y.y+y.height),b=d[s]&&d[s].value,g=f8(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:v,y:"horizontal"===r?m:d[s].coordinate}:f3;i.setState(fJ(fJ({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:g,activeTooltipIndex:s}))}else i.setState(t)}),fQ(i,"renderCursor",function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,u=n.activePayload,l=n.offset,c=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=i.getTooltipEventType(),d=null!=(r=t.props.active)?r:o,h=i.props.layout,y=t.key||"_recharts-cursor";return s.default.createElement(fL,{key:y,activeCoordinate:a,activePayload:u,activeTooltipIndex:c,chartName:e,element:t,isActive:d,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})}),fQ(i,"renderPolarAxis",function(t,e,r){var n=(0,h.default)(t,"type.axisType"),o=(0,h.default)(i.state,"".concat(n,"Map")),a=t.type.defaultProps,u=void 0!==a?fJ(fJ({},a),t.props):t.props,l=o&&o[u["".concat(n,"Id")]];return(0,s.cloneElement)(t,fJ(fJ({},l),{},{className:(0,m.default)(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:u$(l,!0)}))}),fQ(i,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,u=a.radiusAxisMap,l=a.angleAxisMap,c=(0,tp.getAnyElementOfObject)(u),f=(0,tp.getAnyElementOfObject)(l),p=f.cx,d=f.cy,h=f.innerRadius,y=f.outerRadius;return(0,s.cloneElement)(t,{polarAngles:Array.isArray(n)?n:u$(f,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:u$(c,!0).map(function(t){return t.coordinate}),cx:p,cy:d,innerRadius:h,outerRadius:y,key:t.key||"polar-grid",radialLines:r})}),fQ(i,"renderLegend",function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},u=uS({children:r,formattedGraphicalItems:t,legendWidth:n-(a.left||0)-(a.right||0),legendContent:l});if(!u)return null;var c=u.item,f=fW(u,fz);return(0,s.cloneElement)(c,fJ(fJ({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))}),fQ(i,"renderTooltip",function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=(0,V.findChildByType)(r,w.Tooltip);if(!o)return null;var a=i.state,u=a.isTooltipActive,l=a.activeCoordinate,c=a.activePayload,f=a.activeLabel,p=a.offset,d=null!=(t=o.props.active)?t:u;return(0,s.cloneElement)(o,{viewBox:fJ(fJ({},p),{},{x:p.left,y:p.top}),active:d,label:f,payload:d?c:[],coordinate:l,accessibilityLayer:n})}),fQ(i,"renderBrush",function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,u=o.dataStartIndex,l=o.dataEndIndex,c=o.updateId;return(0,s.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:uW(i.handleBrushChange,t.props.onChange),data:n,x:(0,tp.isNumber)(t.props.x)?t.props.x:a.left,y:(0,tp.isNumber)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,tp.isNumber)(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(c)})}),fQ(i,"renderReferenceElement",function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,u=o.yAxisMap,l=o.offset,c=t.type.defaultProps||{},f=t.props,p=f.xAxisId,d=void 0===p?c.xAxisId:p,h=f.yAxisId,y=void 0===h?c.yAxisId:h;return(0,s.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[d],yAxis:u[y],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})}),fQ(i,"renderActivePoints",function(t){var e=t.item,r=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,u=[],l=e.props.key,c=void 0!==e.item.type.defaultProps?fJ(fJ({},e.item.type.defaultProps),e.item.props):e.item.props,s=c.activeDot,f=fJ(fJ({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:uN(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,V.filterProps)(s,!1)),(0,tr.adaptEventHandlers)(s));return u.push(n.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(i))),o?u.push(n.renderActiveDot(s,fJ(fJ({},f),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(i))):a&&u.push(null),u}),fQ(i,"renderGraphicChild",function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,u=a.isTooltipActive,l=a.tooltipAxis,c=a.activeTooltipIndex,p=a.activeLabel,d=i.props.children,h=(0,V.findChildByType)(d,w.Tooltip),y=n.props,v=y.points,m=y.isRange,b=y.baseLine,g=void 0!==n.item.type.defaultProps?fJ(fJ({},n.item.type.defaultProps),n.item.props):n.item.props,x=g.activeDot,O=g.hide,S=g.activeBar,j=g.activeShape,E=!!(!O&&u&&h&&(x||S||j)),P={};"axis"!==o&&h&&"click"===h.props.trigger?P={onClick:uW(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(P={onMouseLeave:uW(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:uW(i.handleItemMouseEnter,t.props.onMouseEnter)});var A=(0,s.cloneElement)(t,fJ(fJ({},n.props),P));if(E)if(c>=0){if(l.dataKey&&!l.allowDuplicatedCategory){var k="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());M=(0,tp.findEntryInArray)(v,k,p),C=m&&b&&(0,tp.findEntryInArray)(b,k,p)}else M=null==v?void 0:v[c],C=m&&b&&b[c];if(j||S){var T=void 0!==t.props.activeIndex?t.props.activeIndex:c;return[(0,s.cloneElement)(t,fJ(fJ(fJ({},n.props),P),{},{activeIndex:T})),null,null]}if(!(0,f.default)(M))return[A].concat(fG(i.renderActivePoints({item:n,activePoint:M,basePoint:C,childIndex:c,isRange:m})))}else{var M,C,_,N=(null!=(_=i.getItemByXY(i.state.activeCoordinate))?_:{graphicalItem:A}).graphicalItem,D=N.item,I=void 0===D?t:D,R=N.childIndex,B=fJ(fJ(fJ({},n.props),P),{},{activeIndex:R});return[(0,s.cloneElement)(I,B),null,null]}return m?[A,null,null]:[A,null]}),fQ(i,"renderCustomized",function(t,e,r){return(0,s.cloneElement)(t,fJ(fJ({key:"recharts-customized-".concat(r)},i.props),i.state))}),fQ(i,"renderMap",{CartesianGrid:{handler:f5,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:f5},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:f5},YAxis:{handler:f5},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!=(r=t.id)?r:(0,tp.uniqueId)("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=(0,v.default)(i.triggeredAfterMouseMove,null!=(o=t.throttleDelay)?o:1e3/60),i.state={},i}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&fX(n,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(t=this.props.margin.left)?t:0,top:null!=(e=this.props.margin.top)?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=(0,V.findChildByType)(e,w.Tooltip);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=f8(this.state,r,a,u),c=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:c,y:s}:{y:c,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=fJ(fJ({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,V.isChildrenEqual)([(0,V.findChildByType)(t.children,w.Tooltip)],[(0,V.findChildByType)(this.props.children,w.Tooltip)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,V.findChildByType)(this.props.children,w.Tooltip);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n={top:r.top+window.scrollY-document.documentElement.clientTop,left:r.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},i=r.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var u=this.state,l=u.xAxisMap,c=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&c){var s=(0,tp.getAnyElementOfObject)(l).scale,f=(0,tp.getAnyElementOfObject)(c).scale,p=s&&s.invert?s.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return fJ(fJ({},o),{},{xValue:p,yValue:d})}var h=f9(this.state,this.props.data,this.props.layout,a);return h?fJ(fJ({},o),h):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,l=u.angleAxisMap,c=u.radiusAxisMap;return l&&c?l_({x:o,y:i},(0,tp.getAnyElementOfObject)(l)):null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,V.findChildByType)(t,w.Tooltip),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),fJ(fJ({},(0,tr.adaptEventHandlers)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){s0.on(s1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){s0.removeListener(s1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===(0,V.getDisplayName)(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return s.default.createElement("defs",null,s.default.createElement("clipPath",{id:t},s.default.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=fH(e,2),n=r[0],o=r[1];return fJ(fJ({},t),{},fQ({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=fH(e,2),n=r[0],o=r[1];return fJ(fJ({},t),{},fQ({},n,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null==(e=this.state.xAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null==(e=this.state.yAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],u=a.props,l=a.item,c=void 0!==l.type.defaultProps?fJ(fJ({},l.type.defaultProps),l.props):l.props,s=(0,V.getDisplayName)(l.type);if("Bar"===s){var f=(u.data||[]).find(function(e){return rc(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(u.data||[]).find(function(e){return l_(t,e)});if(p)return{graphicalItem:a,payload:p}}else if(cO(a,n)||cS(a,n)||cj(a,n)){var d=ck({graphicalItem:a,activeTooltipItem:n,itemData:c.data}),h=void 0===c.activeIndex?d:c.activeIndex;return{graphicalItem:fJ(fJ({},a),{},{childIndex:h}),payload:cj(a,n)?c.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t,e,r=this;if(!(0,V.validateWidthHeight)(this))return null;var n=this.props,o=n.children,i=n.className,a=n.width,u=n.height,l=n.style,c=n.compact,f=n.title,p=n.desc,d=fW(n,fF),h=(0,V.filterProps)(d,!1);if(c)return s.default.createElement(sb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s.default.createElement(g.Surface,f$({},h,{width:a,height:u,title:f,desc:p}),this.renderClipPath(),(0,V.renderByOrder)(o,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!=(t=this.props.tabIndex)?t:0,h.role=null!=(e=this.props.role)?e:"application",h.onKeyDown=function(t){r.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){r.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return s.default.createElement(sb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},s.default.createElement("div",f$({className:(0,m.default)("recharts-wrapper",i),style:fJ({position:"relative",cursor:"default",width:a,height:u},l)},y,{ref:function(t){r.container=t}}),s.default.createElement(g.Surface,f$({},h,{width:a,height:u,title:f,desc:p,style:f2}),this.renderClipPath(),(0,V.renderByOrder)(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f0(n.key),n)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.Component);fQ(S,"displayName",e),fQ(S,"defaultProps",fJ({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),fQ(S,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,u=t.layout,l=t.stackOffset,c=t.margin,s=e.dataStartIndex,p=e.dataEndIndex;if(void 0===e.updateId){var d=po(t);return fJ(fJ(fJ({},d),{},{updateId:0},O(fJ(fJ({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||u!==e.prevLayout||l!==e.prevStackOffset||!(0,sQ.shallowEqual)(c,e.prevMargin)){var h=po(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=fJ(fJ({},f9(e,n,u)),{},{updateId:e.updateId+1}),m=fJ(fJ(fJ({},h),y),v);return fJ(fJ(fJ({},m),O(fJ({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!(0,V.isChildrenEqual)(o,e.prevChildren)){var b,g,x,w,S=(0,V.findChildByType)(o,lb),j=S&&null!=(b=null==(g=S.props)?void 0:g.startIndex)?b:s,E=S&&null!=(x=null==(w=S.props)?void 0:w.endIndex)?x:p,P=(0,f.default)(n)||j!==s||E!==p?e.updateId+1:e.updateId;return fJ(fJ({updateId:P},O(fJ(fJ({props:t},e),{},{updateId:P,dataStartIndex:j,dataEndIndex:E}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:E})}return null}),fQ(S,"renderActiveDot",function(t,e,r){var n;return n=(0,s.isValidElement)(t)?(0,s.cloneElement)(t,e):(0,p.default)(t)?t(e):s.default.createElement(tA,e),s.default.createElement(x.Layer,{className:"recharts-active-dot",key:r},n)});var j=(0,s.forwardRef)(function(t,e){return s.default.createElement(S,f$({},t,{ref:e}))});return j.displayName=S.displayName,j};function pl(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e)if(void 0!==r&&!0!==r(t[o]))return;else n.push(t[o]);return n}function pc(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function ps(t){return(ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function pp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pf(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=ps(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ps(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ps(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pd(t,e,r){var n,o,i,a,u,l=t.tick,c=t.ticks,s=t.viewBox,f=t.minTickGap,d=t.orientation,h=t.interval,y=t.tickFormatter,v=t.unit,m=t.angle;if(!c||!c.length||!l)return[];if((0,tp.isNumber)(h)||rw.Global.isSsr)return pl(c,("number"==typeof h&&(0,tp.isNumber)(h)?h:0)+1);var b="top"===d||"bottom"===d?"width":"height",g=v&&"width"===b?rk(v,{fontSize:e,letterSpacing:r}):{width:0,height:0},x=function(t,n){var o,i=(0,p.default)(y)?y(t.value,n):t.value;return"width"===b?(o=rk(i,{fontSize:e,letterSpacing:r}),c6({width:o.width+g.width,height:o.height+g.height},m)):rk(i,{fontSize:e,letterSpacing:r})[b]},w=c.length>=2?(0,tp.mathSign)(c[1].coordinate-c[0].coordinate):1,O=(n="width"===b,o=s.x,i=s.y,a=s.width,u=s.height,1===w?{start:n?o:i,end:n?o+a:i+u}:{start:n?o+a:i+u,end:n?o:i});return"equidistantPreserveStart"===h?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,l=e.end,c=0,s=1,f=u;s<=a.length;)if(i=function(){var e,i=null==n?void 0:n[c];if(void 0===i)return{v:pl(n,s)};var a=c,p=function(){return void 0===e&&(e=r(i,a)),e},d=i.coordinate,h=0===c||pc(t,d,p,f,l);h||(c=0,f=u,s+=1),h&&(f=d+t*(p()/2+o),c+=s)}())return i.v;return[]}(w,O,x,c,f):("preserveStart"===h||"preserveStartEnd"===h?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,l=e.start,c=e.end;if(i){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-c);a[u-1]=s=pp(pp({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),pc(t,s.tickCoord,function(){return f},l,c)&&(c=s.tickCoord-t*(f/2+o),a[u-1]=pp(pp({},s),{},{isShow:!0}))}for(var d=i?u-1:u,h=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*u()/2-l);a[e]=i=pp(pp({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=pp(pp({},i),{},{tickCoord:i.coordinate});pc(t,i.tickCoord,u,l,c)&&(l=i.tickCoord+t*(u()/2+o),a[e]=pp(pp({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(w,O,x,c,f,"preserveStartEnd"===h):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,u=e.start,l=e.end,c=function(e){var n,c=i[e],s=function(){return void 0===n&&(n=r(c,e)),n};if(e===a-1){var f=t*(c.coordinate+t*s()/2-l);i[e]=c=pp(pp({},c),{},{tickCoord:f>0?c.coordinate-f*t:c.coordinate})}else i[e]=c=pp(pp({},c),{},{tickCoord:c.coordinate});pc(t,c.tickCoord,s,u,l)&&(l=c.tickCoord-t*(s()/2+o),i[e]=pp(pp({},c),{},{isShow:!0}))},s=a-1;s>=0;s--)c(s);return i}(w,O,x,c,f)).filter(function(t){return t.isShow})}t.s(["generateCategoricalChart",()=>pu],83966);var ph=["viewBox"],py=["viewBox"],pv=["ticks"];function pm(t){return(pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pb(){return(pb=Object.assign.bind()).apply(this,arguments)}function pg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function px(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pg(Object(r),!0).forEach(function(e){pP(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pA(n.key),n)}}function pS(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pS=function(){return!!t})()}function pj(t){return(pj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pE(t,e){return(pE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pP(t,e,r){return(e=pA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pA(t){var e=function(t,e){if("object"!=pm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pm(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pm(e)?e:e+""}var pk=function(t){var e,r;function n(t){var e,r,o;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,o=[t],r=pj(r),(e=function(t,e){if(e&&("object"===pm(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,pS()?Reflect.construct(r,o||[],pj(this).constructor):r.apply(this,o))).state={fontSize:"",letterSpacing:""},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&pE(n,t),e=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=pw(t,ph),o=this.props,i=o.viewBox,a=pw(o,py);return!(0,sQ.shallowEqual)(r,i)||!(0,sQ.shallowEqual)(n,a)||!(0,sQ.shallowEqual)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,u=this.props,l=u.x,c=u.y,s=u.width,f=u.height,p=u.orientation,d=u.tickSize,h=u.mirror,y=u.tickMargin,v=h?-1:1,m=t.tickSize||d,b=(0,tp.isNumber)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=c+!h*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=l+!h*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=l+h*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=c+h*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,u=t.axisLine,l=px(px(px({},(0,V.filterProps)(this.props,!1)),(0,V.filterProps)(u,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var c=+("top"===i&&!a||"bottom"===i&&a);l=px(px({},l),{},{x1:e,y1:r+c*o,x2:e+n,y2:r+c*o})}else{var f=+("left"===i&&!a||"right"===i&&a);l=px(px({},l),{},{x1:e+f*n,y1:r,x2:e+f*n,y2:r+o})}return s.default.createElement("line",pb({},l,{className:(0,m.default)("recharts-cartesian-axis-line",(0,h.default)(u,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var o=this,i=this.props,a=i.tickLine,u=i.stroke,l=i.tick,c=i.tickFormatter,f=i.unit,d=pd(px(px({},this.props),{},{ticks:t}),e,r),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),b=(0,V.filterProps)(this.props,!1),g=(0,V.filterProps)(l,!1),w=px(px({},b),{},{fill:"none"},(0,V.filterProps)(a,!1)),O=d.map(function(t,e){var r=o.getTickLineCoord(t),i=r.line,O=r.tick,S=px(px(px(px({textAnchor:y,verticalAnchor:v},b),{},{stroke:"none",fill:u},g),O),{},{index:e,payload:t,visibleTicksCount:d.length,tickFormatter:c});return s.default.createElement(x.Layer,pb({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},(0,tr.adaptEventsOfChild)(o.props,t,e)),a&&s.default.createElement("line",pb({},w,i,{className:(0,m.default)("recharts-cartesian-axis-tick-line",(0,h.default)(a,"className"))})),l&&n.renderTickItem(l,S,"".concat((0,p.default)(c)?c(t.value,e):t.value).concat(f||"")))});return s.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,l=u.ticks,c=pw(u,pv),f=l;return((0,p.default)(i)&&(f=i(l&&l.length>0?this.props:c)),n<=0||o<=0||!f||!f.length)?null:s.default.createElement(x.Layer,{className:(0,m.default)("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),lW.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return s.default.isValidElement(t)?s.default.cloneElement(t,e):(0,p.default)(t)?t(e):s.default.createElement(r1,pb({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&pO(n.prototype,e),r&&pO(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(s.Component);function pT(t){return(pT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}pP(pk,"displayName","CartesianAxis"),pP(pk,"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"});function pM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pM=function(){return!!t})()}function pC(t){return(pC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p_(t,e){return(p_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pN(t,e,r){return(e=pD(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pD(t){var e=function(t,e){if("object"!=pT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pT(e)?e:e+""}function pI(){return(pI=Object.assign.bind()).apply(this,arguments)}function pR(t){var e=t.xAxisId,r=sS(),n=sj(),o=sg(e);return null==o?null:s.default.createElement(pk,pI({},o,{className:(0,m.default)("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return u$(t,!0)}}))}var pB=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=pC(t),function(t,e){if(e&&("object"===pT(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,pM()?Reflect.construct(t,e||[],pC(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&p_(r,t),e=[{key:"render",value:function(){return s.default.createElement(pR,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pD(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);function pL(t){return(pL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}pN(pB,"displayName","XAxis"),pN(pB,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}),t.s(["XAxis",()=>pB],85183);function pz(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pz=function(){return!!t})()}function pF(t){return(pF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function pU(t,e){return(pU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p$(t,e,r){return(e=pH(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pH(t){var e=function(t,e){if("object"!=pL(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pL(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pL(e)?e:e+""}function pW(){return(pW=Object.assign.bind()).apply(this,arguments)}var pq=function(t){var e=t.yAxisId,r=sS(),n=sj(),o=sO(e);return null==o?null:s.default.createElement(pk,pW({},o,{className:(0,m.default)("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return u$(t,!0)}}))},pV=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=pF(t),function(t,e){if(e&&("object"===pL(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,pz()?Reflect.construct(t,e||[],pF(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&pU(r,t),e=[{key:"render",value:function(){return s.default.createElement(pq,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pH(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(s.default.Component);p$(pV,"displayName","YAxis"),p$(pV,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}),t.s(["YAxis",()=>pV],93230);var pX=["x1","y1","x2","y2","key"],pG=["offset"];function pK(t){return(pK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pY(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function pZ(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pY(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t,e){if("object"!=pK(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pK(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pK(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pY(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pJ(){return(pJ=Object.assign.bind()).apply(this,arguments)}function pQ(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var p0=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.ry;return s.default.createElement("rect",{x:n,y:o,ry:u,width:i,height:a,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function p1(t,e){var r;if(s.default.isValidElement(t))r=s.default.cloneElement(t,e);else if((0,p.default)(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,u=e.key,l=pQ(e,pX),c=(0,V.filterProps)(l,!1),f=(c.offset,pQ(c,pG));r=s.default.createElement("line",pJ({},f,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:u}))}return r}function p2(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){return p1(o,pZ(pZ({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i}))});return s.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function p3(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(n,i){return p1(o,pZ(pZ({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i}))});return s.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function p5(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var c=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==c[0]&&c.unshift(0);var f=c.map(function(t,u){var l=c[u+1]?c[u+1]-t:o+a-t;if(l<=0)return null;var f=u%e.length;return s.default.createElement("rect",{key:"react-".concat(u),y:t,x:n,height:l,width:i,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function p4(t){var e=t.vertical,r=t.verticalFill,n=t.fillOpacity,o=t.x,i=t.y,a=t.width,u=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!r||!r.length)return null;var c=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==c[0]&&c.unshift(0);var f=c.map(function(t,e){var l=c[e+1]?c[e+1]-t:o+a-t;if(l<=0)return null;var f=e%r.length;return s.default.createElement("rect",{key:"react-".concat(e),x:t,y:i,width:l,height:u,stroke:"none",fill:r[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var p6=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return uU(pd(pZ(pZ(pZ({},pk.defaultProps),r),{},{ticks:u$(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},p7=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return uU(pd(pZ(pZ(pZ({},pk.defaultProps),r),{},{ticks:u$(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},p8=[],p9=[];function dt(t){var e,r,n,o,i,a,u=sS(),l=sj(),c=(0,s.useContext)(sh),f=pZ(pZ({},t),{},{stroke:null!=(e=t.stroke)?e:"#ccc",fill:null!=(r=t.fill)?r:"none",horizontal:null==(n=t.horizontal)||n,horizontalFill:null!=(o=t.horizontalFill)?o:p9,vertical:null==(i=t.vertical)||i,verticalFill:null!=(a=t.verticalFill)?a:p8,x:(0,tp.isNumber)(t.x)?t.x:c.left,y:(0,tp.isNumber)(t.y)?t.y:c.top,width:(0,tp.isNumber)(t.width)?t.width:c.width,height:(0,tp.isNumber)(t.height)?t.height:c.height}),d=f.x,h=f.y,y=f.width,v=f.height,m=f.syncWithTicks,b=f.horizontalValues,g=f.verticalValues,x=sx(),w=sw();if(!(0,tp.isNumber)(y)||y<=0||!(0,tp.isNumber)(v)||v<=0||!(0,tp.isNumber)(d)||d!==+d||!(0,tp.isNumber)(h)||h!==+h)return null;var S=f.verticalCoordinatesGenerator||p6,j=f.horizontalCoordinatesGenerator||p7,E=f.horizontalPoints,P=f.verticalPoints;if((!E||!E.length)&&(0,p.default)(j)){var A=b&&b.length,k=j({yAxis:w?pZ(pZ({},w),{},{ticks:A?b:w.ticks}):void 0,width:u,height:l,offset:c},!!A||m);(0,O.warn)(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(pK(k),"]")),Array.isArray(k)&&(E=k)}if((!P||!P.length)&&(0,p.default)(S)){var T=g&&g.length,M=S({xAxis:x?pZ(pZ({},x),{},{ticks:T?g:x.ticks}):void 0,width:u,height:l,offset:c},!!T||m);(0,O.warn)(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(pK(M),"]")),Array.isArray(M)&&(P=M)}return s.default.createElement("g",{className:"recharts-cartesian-grid"},s.default.createElement(p0,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),s.default.createElement(p2,pJ({},f,{offset:c,horizontalPoints:E,xAxis:x,yAxis:w})),s.default.createElement(p3,pJ({},f,{offset:c,verticalPoints:P,xAxis:x,yAxis:w})),s.default.createElement(p5,pJ({},f,{horizontalPoints:E})),s.default.createElement(p4,pJ({},f,{verticalPoints:P})))}dt.displayName="CartesianGrid",t.s(["CartesianGrid",()=>dt],72526)}]);