1"use strict";(self.rspackChunkfairwinds_insights=self.rspackChunkfairwinds_insights||[]).push([[657],{14782(e,t,n){var i=n(96540),o=n(4554),r=n(87594),a=n(4642),l=n(56534),d=n(67791),u=n(44198),s=n(43914),c=n(74848);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var h=function(e){var t,n=e.axis,i=e.scale,r=e.ticksPosition,a=e.tickValues,l=e.tickSize,d=e.tickPadding,u=e.tickRotation,c=e.truncateTickAt,h=e.engine,v=(0,s.fS)(i,a),g=o.ni[void 0===h?"svg":h],m="bandwidth"in i?(0,s.ok)(i):i,p={lineX:0,lineY:0},b={textX:0,textY:0},x="object"==typeof document&&"rtl"===document.dir,y=g.align.center,k=g.baseline.center;return"x"===n?(t=function(e){var t;return{x:null!=(t=m(e))?t:0,y:0}},p.lineY=l*("after"===r?1:-1),b.textY=(l+d)*("after"===r?1:-1),k="after"===r?g.baseline.top:g.baseline.bottom,0===u?y=g.align.center:"after"===r&&u<0||"before"===r&&u>0?(y=g.align[x?"left":"right"],k=g.baseline.center):("after"===r&&u>0||"before"===r&&u<0)&&(y=g.align[x?"right":"left"],k=g.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=m(e))?t:0}},p.lineX=l*("after"===r?1:-1),b.textX=(l+d)*("after"===r?1:-1),y="after"===r?g.align.left:g.align.right),{ticks:v.map(function(e){var n,i="string"==typeof e?(n=String(e).length,c&&c>0&&n>c?""+String(e).slice(0,c).concat("..."):""+e):e;return f({key:e instanceof Date?""+e.valueOf():""+e,value:i},t(e),p,b)}),textAlign:y,textBaseline:k}},v=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=(0,d.DC)(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return(0,u.GP)(e)},g=function(e){var t=e.width,n=e.height,i=e.scale,o=e.axis,r=e.values,a=(Array.isArray(r)?r:void 0)||(0,s.fS)(i,r),l="bandwidth"in i?(0,s.ok)(i):i;return"x"===o?a.map(function(e){var t,i;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=l(e))?t:0,x2:null!=(i=l(e))?i:0,y1:0,y2:n}}):a.map(function(e){var n,i;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:t,y1:null!=(n=l(e))?n:0,y2:null!=(i=l(e))?i:0}})},m=(0,i.memo)(function(e){var t,n=e.value,o=e.format,r=e.lineX,d=e.lineY,u=e.onClick,s=e.textBaseline,h=e.textAnchor,v=e.theme,g=e.animatedProps,m=null!=(t=null==o?void 0:o(n))?t:n,p=(0,i.useMemo)(function(){var e={opacity:g.opacity};return u?{style:f({},e,{cursor:"pointer"}),onClick:function(e){return u(e,m)}}:{style:e}},[g.opacity,u,m]);return(0,c.jsxs)(l.CS.g,f({transform:g.transform},p,{children:[(0,c.jsx)("line",{x1:0,x2:r,y1:0,y2:d,style:v.line}),(0,c.jsx)(a.EY,{dominantBaseline:s,textAnchor:h,transform:g.textTransform,style:v.text,children:""+m})]}))}),p={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},b=(0,i.memo)(function(e){var t=e.axis,n=e.scale,d=e.x,u=e.y,s=e.length,g=e.ticksPosition,b=e.tickValues,x=e.tickSize,y=void 0===x?p.tickSize:x,k=e.tickPadding,C=void 0===k?p.tickPadding:k,w=e.tickRotation,M=void 0===w?p.tickRotation:w,S=e.format,L=e.renderTick,R=void 0===L?m:L,j=e.truncateTickAt,W=e.legend,A=e.legendPosition,O=void 0===A?p.legendPosition:A,P=e.legendOffset,E=void 0===P?p.legendOffset:P,I=e.style,z=e.onClick,T=e.ariaHidden,B=(0,r.DP)(),D=(0,r.Bi)(B.axis,I),H=(0,i.useMemo)(function(){return v(S,n)},[S,n]),_=h({axis:t,scale:n,ticksPosition:g,tickValues:b,tickSize:y,tickPadding:C,tickRotation:M,truncateTickAt:j}),F=_.ticks,Y=_.textAlign,G=_.textBaseline,V=null;if(void 0!==W){var X,U=0,q=0,K=0;"y"===t?(K=-90,U=E,"start"===O?(X="start",q=s):"middle"===O?(X="middle",q=s/2):"end"===O&&(X="end")):(q=E,"start"===O?X="start":"middle"===O?(X="middle",U=s/2):"end"===O&&(X="end",U=s)),V=(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(a.EY,{transform:"translate("+U+", "+q+") rotate("+K+")",textAnchor:X,style:f({},D.legend.text,{dominantBaseline:"central"}),children:W})})}var N=(0,o.mk)(),Z=N.animate,Q=N.config,$=(0,l.zh)({transform:"translate("+(void 0===d?0:d)+","+(void 0===u?0:u)+")",lineX2:"x"===t?s:0,lineY2:"x"===t?0:s,config:Q,immediate:!Z}),J=(0,i.useCallback)(function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+M+")"}},[M]),ee=(0,i.useCallback)(function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+M+")"}},[M]),et=(0,l.pn)(F,{keys:function(e){return e.key},initial:J,from:ee,enter:J,update:J,leave:{opacity:0}
1,config:Q,immediate:!Z});return(0,c.jsxs)(l.CS.g,{transform:$.transform,"aria-hidden":T,children:[et(function(e,t,n,o){return i.createElement(R,f({tickIndex:o,format:H,rotate:M,textBaseline:G,textAnchor:Y,truncateTickAt:j,animatedProps:e,theme:D.ticks},t,z?{onClick:z}:{}))}),(0,c.jsx)(l.CS.line,{style:D.domain.line,x1:0,x2:$.lineX2,y1:0,y2:$.lineY2}),V]})}),x=["top","right","bottom","left"],y=(0,i.memo)(function(e){var t=e.xScale,n=e.yScale,i=e.width,o=e.height,r={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,c.jsx)(c.Fragment,{children:x.map(function(e){var a=r[e];if(!a)return null;var l="top"===e||"bottom"===e;return(0,c.jsx)(b,f({},a,{axis:l?"x":"y",x:"right"===e?i:0,y:"bottom"===e?o:0,scale:l?t:n,length:l?i:o,ticksPosition:"top"===e||"left"===e?"before":"after",truncateTickAt:a.truncateTickAt}),e)})})}),k=(0,i.memo)(function(e){var t=e.animatedProps,n=(0,r.DP)();return(0,c.jsx)(l.CS.line,f({},t,n.grid.line))}),C=(0,i.memo)(function(e){var t=e.lines,n=(0,o.mk)(),r=n.animate,a=n.config,d=(0,l.pn)(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:a,immediate:!r});return(0,c.jsx)("g",{children:d(function(e,t){return(0,i.createElement)(k,f({},t,{key:t.key,animatedProps:e}))})})}),w=(0,i.memo)(function(e){var t=e.width,n=e.height,o=e.xScale,r=e.yScale,a=e.xValues,l=e.yValues,d=(0,i.useMemo)(function(){return!!o&&g({width:t,height:n,scale:o,axis:"x",values:a})},[o,a,t,n]),u=(0,i.useMemo)(function(){return!!r&&g({width:t,height:n,scale:r,axis:"y",values:l})},[n,t,r,l]);return(0,c.jsxs)(c.Fragment,{children:[d&&(0,c.jsx)(C,{lines:d}),u&&(0,c.jsx)(C,{lines:u})]})}),M=function(e,t){var n,i,l=t.axis,d=t.scale,u=t.x,s=t.y,c=t.length,f=t.ticksPosition,v=t.tickValues,g=t.tickSize,m=void 0===g?p.tickSize:g,b=t.tickPadding,x=void 0===b?p.tickPadding:b,y=t.tickRotation,k=void 0===y?p.tickRotation:y,C=t.format,w=t.legend,M=t.legendPosition,S=void 0===M?p.legendPosition:M,L=t.legendOffset,R=void 0===L?p.legendOffset:L,j=t.theme,W=t.style,A=h({axis:l,scale:d,ticksPosition:f,tickValues:v,tickSize:m,tickPadding:x,tickRotation:k,engine:"canvas"}),O=A.ticks,P=A.textAlign,E=A.textBaseline;e.save(),e.translate(void 0===u?0:u,void 0===s?0:s);var I=(0,r.L7)(j.axis,W);e.textAlign=P,e.textBaseline=E,(0,a.w6)(e,I.ticks.text);var z=null!=(n=I.domain.line.strokeWidth)?n:0;"string"!=typeof z&&z>0&&(e.lineWidth=z,e.lineCap="square",I.domain.line.stroke&&(e.strokeStyle=I.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===l?c:0,"x"===l?0:c),e.stroke());var T="function"==typeof C?C:function(e){return""+e},B=null!=(i=I.ticks.line.strokeWidth)?i:0,D="string"!=typeof B&&B>0;if(O.forEach(function(t){D&&(e.lineWidth=B,e.lineCap="square",I.ticks.line.stroke&&(e.strokeStyle=I.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=T(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate((0,o.tR)(k)),(0,a.qu)(e,I.ticks.text,""+n),e.fillText(""+n,0,0),e.restore()}),void 0!==w){var H=0,_=0,F=0,Y="center";"y"===l?(F=-90,H=R,"start"===S?(Y="start",_=c):"middle"===S?(Y="center",_=c/2):"end"===S&&(Y="end")):(_=R,"start"===S?Y="start":"middle"===S?(Y="center",H=c/2):"end"===S&&(Y="end",H=c)),e.translate(H,_),e.rotate((0,o.tR)(F)),(0,a.w6)(e,I.legend.text),I.legend.text.fill&&(e.fillStyle=I.legend.text.fill),e.textAlign=Y,e.textBaseline="middle",(0,a.qu)(e,I.legend.text,w)}e.restore()},S=function(e,t){var n=t.xScale,i=t.yScale,o=t.width,r=t.height,a=t.top,l=t.right,d=t.bottom,u=t.left,s=t.theme,c={top:a,right:l,bottom:d,left:u};x.forEach(function(t){var a=c[t];if(!a)return null;var l="top"===t||"bottom"===t,d=l?n:i,u=v(a.format,d);M(e,f({},a,{axis:l?"x":"y",x:"right"===t?o:0,y:"bottom"===t?r:0,scale:d,format:u,length:l?o:r,ticksPosition:"top"===t||"left"===t?"before":"after",theme:s}))})},L=function(e,t){g({width:t.width,height:t.height,scale:t.scale,axis:t.axis,values:t.values}
1).forEach(function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()})};n.d(t,{Y5:()=>y,ZY:()=>S,_0:()=>b,xA:()=>w,xu:()=>L,zY:()=>p})},12311(e,t,n){n.d(t,{ED:()=>ej});var i=n(96540),o=n(14782),r=n(4554),a=n(56534),l=n(87612),d=n(98023),u=n(90179),s=n(87594),c=n(74848);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var h=function(e){var t=typeof e;return(0,i.isValidElement)(e)||"string"===t||"function"===t||"object"===t},v=function(e){var t=typeof e;return"string"===t||"function"===t},g=function(e){return"circle"===e.type},m=function(e){return"dot"===e.type},p=function(e){return"rect"===e.type},b=function(e){var t=e.data,n=e.annotations,i=e.getPosition,o=e.getDimensions;return n.reduce(function(e,n){var r=n.offset||0;return[].concat(e,l(t,n.match).map(function(e){var t=i(e),a=o(e);return(g(n)||p(n))&&(a.size=a.size+2*r,a.width=a.width+2*r,a.height=a.height+2*r),f({},u(n,["match","offset"]),t,a,{size:n.size||a.size,datum:e})}))},[])},x=function(e,t,n,i){var o=Math.atan2(i-t,n-e);return(0,r.e_)((0,r.nv)(o))},y=function(e){var t,n,i=e.x,o=e.y,a=e.noteX,l=e.noteY,u=e.noteWidth,s=void 0===u?120:u,c=e.noteTextOffset;if(d(a))t=i+a;else{if(void 0===a.abs)throw Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(d(l))n=o+l;else{if(void 0===l.abs)throw Error("noteY should be either a number or an object containing an 'abs' property");n=l.abs}var f=i,h=o,v=x(i,o,t,n);if(g(e)){var m=(0,r.B2)((0,r.tR)(v),e.size/2);f+=m.x,h+=m.y}if(p(e)){var b=Math.round((v+90)/45)%8;0===b&&(h-=e.height/2),1===b&&(f+=e.width/2,h-=e.height/2),2===b&&(f+=e.width/2),3===b&&(f+=e.width/2,h+=e.height/2),4===b&&(h+=e.height/2),5===b&&(f-=e.width/2,h+=e.height/2),6===b&&(f-=e.width/2),7===b&&(f-=e.width/2,h-=e.height/2)}var y=t,k=t;return(v+90)%360>180?(y-=s,k-=s):k+=s,{points:[[f,h],[t,n],[k,n]],text:[y,n-(void 0===c?8:c)],angle:v+90}},k=function(e){var t=e.data,n=e.annotations,o=e.getPosition,r=e.getDimensions;return(0,i.useMemo)(function(){return b({data:t,annotations:n,getPosition:o,getDimensions:r})},[t,n,o,r])},C=function(e){var t=e.annotations;return(0,i.useMemo)(function(){return t.map(function(e){return f({},e,{computed:y(f({},e))})})},[t])},w=function(e){var t=e.datum,n=e.x,o=e.y,l=e.note,d=(0,s.DP)(),h=(0,r.mk)(),v=h.animate,g=h.config,m=(0,a.zh)({x:n,y:o,config:g,immediate:!v});return"function"==typeof l?(0,i.createElement)(l,{x:n,y:o,datum:t}):(0,c.jsxs)(c.Fragment,{children:[d.annotations.text.outlineWidth>
10&&(0,c.jsx)(a.CS.text,{x:m.x,y:m.y,style:f({},d.annotations.text,{strokeLinejoin:"round",strokeWidth:2*d.annotations.text.outlineWidth,stroke:d.annotations.text.outlineColor}),children:l}),(0,c.jsx)(a.CS.text,{x:m.x,y:m.y,style:u(d.annotations.text,["outlineWidth","outlineColor"]),children:l})]})},M=function(e){var t=e.points,n=e.isOutline,o=void 0!==n&&n,l=(0,s.DP)(),d=(0,i.useMemo)(function(){var e=t[0];return t.slice(1).reduce(function(e,t){return e+" L"+t[0]+","+t[1]},"M"+e[0]+","+e[1])},[t]),u=(0,r.wA)(d);if(o&&l.annotations.link.outlineWidth<=0)return null;var h=f({},l.annotations.link);return o&&(h.strokeLinecap="square",h.strokeWidth=l.annotations.link.strokeWidth+2*l.annotations.link.outlineWidth,h.stroke=l.annotations.link.outlineColor,h.opacity=l.annotations.link.outlineOpacity),(0,c.jsx)(a.CS.path,{fill:"none",d:u,style:h})},S=function(e){var t=e.x,n=e.y,i=e.size,o=(0,s.DP)(),l=(0,r.mk)(),d=l.animate,u=l.config,h=(0,a.zh)({x:t,y:n,radius:i/2,config:u,immediate:!d});return(0,c.jsxs)(c.Fragment,{children:[o.annotations.outline.outlineWidth>0&&(0,c.jsx)(a.CS.circle,{cx:h.x,cy:h.y,r:h.radius,style:f({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),(0,c.jsx)(a.CS.circle,{cx:h.x,cy:h.y,r:h.radius,style:o.annotations.outline})]})},L=function(e){var t=e.x,n=e.y,i=e.size,o=(0,s.DP)(),l=(0,r.mk)(),d=l.animate,u=l.config,h=(0,a.zh)({x:t,y:n,radius:(void 0===i?4:i)/2,config:u,immediate:!d});return(0,c.jsxs)(c.Fragment,{children:[o.annotations.outline.outlineWidth>0&&(0,c.jsx)(a.CS.circle,{cx:h.x,cy:h.y,r:h.radius,style:f({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),(0,c.jsx)(a.CS.circle,{cx:h.x,cy:h.y,r:h.radius,style:o.annotations.symbol})]})},R=function(e){var t=e.x,n=e.y,i=e.width,o=e.height,l=e.borderRadius,d=void 0===l?6:l,u=(0,s.DP)(),h=(0,r.mk)(),v=h.animate,g=h.config,m=(0,a.zh)({x:t-i/2,y:n-o/2,width:i,height:o,config:g,immediate:!v});return(0,c.jsxs)(c.Fragment,{children:[u.annotations.outline.outlineWidth>
10&&(0,c.jsx)(a.CS.rect,{x:m.x,y:m.y,rx:d,ry:d,width:m.width,height:m.height,style:f({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+2*u.annotations.outline.outlineWidth,stroke:u.annotations.outline.outlineColor,opacity:u.annotations.outline.outlineOpacity})}),(0,c.jsx)(a.CS.rect,{x:m.x,y:m.y,rx:d,ry:d,width:m.width,height:m.height,style:u.annotations.outline})]})},j=function(e){var t=e.datum,n=e.x,o=e.y,r=e.note,a=(0,i.useMemo)(function(){return y(e)},[e]);if(!h(r))throw Error("note should be a valid react element");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(M,{points:a.points,isOutline:!0}),g(e)&&(0,c.jsx)(S,{x:n,y:o,size:e.size}),m(e)&&(0,c.jsx)(L,{x:n,y:o,size:e.size}),p(e)&&(0,c.jsx)(R,{x:n,y:o,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,c.jsx)(M,{points:a.points}),(0,c.jsx)(w,{datum:t,x:a.text[0],y:a.text[1],note:r})]})},W=function(e,t){t.forEach(function(t,n){var i=t[0],o=t[1];0===n?e.moveTo(i,o):e.lineTo(i,o)})},A=function(e,t){var n=t.annotations,i=t.theme;0!==n.length&&(e.save(),n.forEach(function(t){if(!v(t.note))throw Error("note is invalid for canvas implementation");i.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=i.annotations.link.outlineColor,e.lineWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,e.beginPath(),W(e,t.computed.points),e.stroke(),e.lineCap="butt"),g(t)&&i.annotations.outline.outlineWidth>0&&(e.strokeStyle=i.annotations.outline.outlineColor,e.lineWidth=i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),m(t)&&i.annotations.symbol.outlineWidth>0&&(e.strokeStyle=i.annotations.symbol.outlineColor,e.lineWidth=2*i.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),p(t)&&i.annotations.outline.outlineWidth>0&&(e.strokeStyle=i.annotations.outline.outlineColor,e.lineWidth=i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=i.annotations.link.stroke,e.lineWidth=i.annotations.link.strokeWidth,e.beginPath(),W(e,t.computed.points),e.stroke(),g(t)&&(e.strokeStyle=i.annotations.outline.stroke,e.lineWidth=i.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),m(t)&&(e.fillStyle=i.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),p(t)&&(e.strokeStyle=i.annotations.outline.stroke,e.lineWidth=i.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:i}):(e.font=i.annotations.text.fontSize+"px "+i.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=i.annotations.text.fill,e.strokeStyle=i.annotations.text.outlineColor,e.lineWidth=2*i.annotations.text.outlineWidth,i.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))}),e.restore())},O=n(96714),P=n(10068),E=n(30806),I=n(4642),z=n(50396),T=n(43914),B=n(53257),D=n(50014);function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function _(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var F,Y=function(e){var t=k({data:e.bars,annotations:e.annotations,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return(0,c.jsx)(c.Fragment,{children:t.map(function(e,t){return(0,c.jsx)(j,H({},e),t)})})},G=function(e){var t=e.width,n=e.height,i=e.legends,o=e.toggleSerie;return(0,c.jsx)(c.Fragment,{children:i.map(function(e,i){var r,a=e[0],l=e[1];return(0,c.jsx)(O.$i,H({},a,{containerWidth:t,containerHeight:n,data:null!=(r=a.data)?r:l,toggleSerie:
1a.toggleSerie&&"keys"===a.dataFrom?o:void 0}),i)})})},V=["data"],X=["color","label"],U={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,i=_(e,X);return(0,c.jsx)(E.GK,{id:n,value:i.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},q=H({},U,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:function(e){var t,n=e.bar,o=n.data,r=_(n,V),l=e.style,d=l.borderColor,u=l.color,f=l.height,h=l.labelColor,v=l.labelOpacity,g=l.labelX,m=l.labelY,p=l.transform,b=l.width,x=l.textAnchor,y=e.borderRadius,k=e.borderWidth,C=e.label,w=e.shouldRenderLabel,M=e.isInteractive,S=e.onClick,L=e.onMouseEnter,R=e.onMouseLeave,j=e.tooltip,W=e.isFocusable,A=e.ariaLabel,O=e.ariaLabelledBy,P=e.ariaDescribedBy,z=e.ariaDisabled,T=e.ariaHidden,B=(0,s.DP)(),D=(0,E.fS)(),F=D.showTooltipFromEvent,Y=D.showTooltipAt,G=D.hideTooltip,X=(0,i.useMemo)(function(){return function(){return(0,i.createElement)(j,H({},r,o))}},[j,r,o]),U=(0,i.useCallback)(function(e){null==S||S(H({color:r.color},o),e)},[r,o,S]),q=(0,i.useCallback)(function(e){return F(X(),e)},[F,X]),K=(0,i.useCallback)(function(e){null==L||L(o,e),F(X(),e)},[o,L,F,X]),N=(0,i.useCallback)(function(e){null==R||R(o,e),G()},[o,G,R]),Z=(0,i.useCallback)(function(){Y(X(),[r.absX+r.width/2,r.absY])},[Y,X,r]),Q=(0,i.useCallback)(function(){G()},[G]);return(0,c.jsxs)(a.CS.g,{transform:p,children:[(0,c.jsx)(a.CS.rect,{width:(0,a.to)(b,function(e){return Math.max(e,0)}),height:(0,a.to)(f,function(e){return Math.max(e,0)}),rx:y,ry:y,fill:null!=(t=o.fill)?t:u,strokeWidth:k,stroke:d,focusable:W,tabIndex:W?0:void 0,"aria-label":A?A(o):void 0,"aria-labelledby":O?O(o):void 0,"aria-describedby":P?P(o):void 0,"aria-disabled":z?z(o):void 0,"aria-hidden":T?T(o):void 0,onMouseEnter:M?K:void 0,onMouseMove:M?q:void 0,onMouseLeave:M?N:void 0,onClick:M?U:void 0,onFocus:M&&W?Z:void 0,onBlur:M&&W?Q:void 0,"data-testid":"bar.item."+o.id+"."+o.index}),w&&(0,c.jsx)(I.EY,{x:g,y:m,textAnchor:x,dominantBaseline:"central",fillOpacity:v,style:H({},B.labels.text,{pointerEvents:"none",fill:h}),children:C})]})}
1,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),K=H({},U,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,i=n.color,o=n.height,r=n.width,a=n.x,l=n.y,d=t.borderColor,u=t.borderRadius,s=t.borderWidth,c=t.label,f=t.shouldRenderLabel,h=t.labelStyle,v=t.labelX,g=t.labelY,m=t.textAnchor;e.fillStyle=i,s>0&&(e.strokeStyle=d,e.lineWidth=s),e.beginPath(),(0,z.k)(e,a,l,r,o,Math.min(u,o)),e.fill(),s>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign="middle"===m?"center":m,(0,I.qu)(e,h,c,a+v,l+g))},pixelRatio:"u">typeof window&&null!=(F=window.devicePixelRatio)?F:1}),N=function(e,t,n,i,o,r){return(0,T.gx)(i,{all:e.map(t),min:0,max:0},o,r).padding(n)},Z=function(e,t){return e.map(function(e){return H({},t.reduce(function(e,t){return e[t]=null,e},{}),e)})},Q=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},$=function(e){return[e,Number(e)]};function J(e,t,n,i){return void 0===e&&(e=U.layout),void 0===n&&(n=U.labelPosition),void 0===i&&(i=U.labelOffset),function(o,r){var a=i*(t?-1:1);if("horizontal"===e){var l=o/2;return"start"===n?l=t?o:0:"end"===n&&(l=t?0:o),{labelX:l+a,labelY:r/2,textAnchor:"middle"===n?"middle":t?"end":"start"}}var d=r/2;return"start"===n?d=t?0:r:"end"===n&&(d=t?r:0),{labelX:o/2,labelY:d-a,textAnchor:"middle"}}}var ee=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],et=function(e,t){return e>t},en=function(e,t){return e<t},ei=function(e,t){return Array.from(" ".repeat(t-e),function(t,n){return e+n})},eo=function(e){return et(e,0)?0:e},er=function(e,t,n,i){var o=e.data,r=e.formatValue,a=e.getColor,l=e.getIndex,d=e.getTooltipLabel,u=e.innerPadding,s=void 0===u?0:u,c=e.keys,f=e.xScale,h=e.yScale,v=e.margin,g=n?en:et,m=o.map(Q),p=[];return c.forEach(function(e,n){return ei(0,f.domain().length).forEach(function(u){var c,b,x,y=$(o[u][e]),k=y[0],C=y[1],w=l(o[u]),M=(null!=(b=f(w))?b:0)+t*n+s*n,S=g(C,0)?null!=(x=h(C))?x:0:i,L=g(C,0)?i-S:(null!=(c=h(C))?c:0)-i,R={id:e,value:null===k?k:C,formattedValue:r(C),hidden:!1,index:u,indexValue:w,data:m[u]};p.push({key:e+"."+R.indexValue,index:p.length,data:R,x:M,y:S,absX:v.left+M,absY:v.top+S,width:t,height:L,color:a(R),label:d(R)})})}),p},ea=function(e,t,n,i){var o=e.data,r=e.formatValue,a=e.getIndex,l=e.getColor,d=e.getTooltipLabel,u=e.keys,s=e.innerPadding,c=void 0===s?0:s,f=e.xScale,h=e.yScale,v=e.margin,g=n?en:et,m=o.map(Q),p=[];return u.forEach(function(e,n){return ei(0,h.domain().length).forEach(function(u){var s,b,x,y=$(o[u][e]),k=y[0],C=y[1],w=a(o[u]),M=g(C,0)?i:null!=(x=f(C))?x:0,S=(null!=(b=h(w))?b:0)+t*n+c*n,L=g(C,0)?(null!=(s=f(C))?s:0)-i:i-M,R={id:e,value:null===k?k:C,formattedValue:r(C),hidden:!1,index:u,indexValue:w,data:m[u]};p.push({key:e+"."+R.indexValue,index:p.length,data:R,x:M,y:S,absX:v.left+M,absY:v.top+S,width:L,height:t,color:l(R),label:d(R)})})}),p},el=function(e){var t,n,i,o=e.layout,r=e.width,a=e.height,l=e.padding,d=e.innerPadding,u=void 0===d?0:d,s=e.valueScale,c=e.indexScale,f=e.hiddenIds,h=void 0===f?[]:f,v=_(e,ee),g=v.keys.filter(function(e){return!h.includes(e)}),m=Z(v.data,g),p="vertical"===o?["y","x",r]:["x","y",a],b=p[0],x=p[1],y=p[2],k=N(m,v.getIndex,void 0===l?0:l,c,y,x),C="auto"===s.min?eo:function(e){return e},w=m.reduce(function(e,t){return[].concat(e,g.map(function(e){return t[e]}))},[]).filter(Boolean),M=C(Math.min.apply(Math,w)),S=isFinite(i=Math.max.apply(Math,w))?i:0,L=(0,T.gx)(s,{all:w,min:M,max:S},"x"===b?r:a,b),R="vertical"===o?[k,L]:[L,k],j=R[0],W=R[1],A=(k.bandwidth()-u*(g.length-1))/g.length,O=[H({},v,{data:m,keys:g,innerPadding:u,xScale:j,yScale:W}),A,null!=(t=s.reverse)&&t,null!=(n=L(0))?n:0];return{xScale:j,yScale:W,bars:A>0?"vertical"===o?er.apply(void 0,O):ea.apply(void 0,O):[]}},ed=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],eu=function(e){var t;return e.some(Array.isArray)?eu((t=[]).concat.apply(t,e)):e},es=function(e,t,n){var i=e.formatValue,o=e.getColor,r=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,d=e.stackedData,u=e.xScale,s=e.yScale,c=e.margin,f=[];
1return d.forEach(function(e){return u.domain().forEach(function(d,h){var v,g,m,p=e[h],b=null!=(g=u(r(p.data)))?g:0,x=(null!=(m=s(p[+!n]))?m:0)+.5*l,y=(null!=(v=s(p[+!!n]))?v:0)-x-l,k=$(p.data[e.key]),C=k[0],w=k[1],M={id:e.key,value:null===C?C:w,formattedValue:i(w),hidden:!1,index:h,indexValue:d,data:Q(p.data)};f.push({key:e.key+"."+d,index:f.length,data:M,x:b,y:x,absX:c.left+b,absY:c.top+x,width:t,height:y,color:o(M),label:a(M)})})}),f},ec=function(e,t,n){var i=e.formatValue,o=e.getColor,r=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,d=e.stackedData,u=e.xScale,s=e.yScale,c=e.margin,f=[];return d.forEach(function(e){return s.domain().forEach(function(d,h){var v,g,m,p=e[h],b=null!=(g=s(r(p.data)))?g:0,x=(null!=(m=u(p[+!!n]))?m:0)+.5*l,y=(null!=(v=u(p[+!n]))?v:0)-x-l,k=$(p.data[e.key]),C=k[0],w=k[1],M={id:e.key,value:null===C?C:w,formattedValue:i(w),hidden:!1,index:h,indexValue:d,data:Q(p.data)};f.push({key:e.key+"."+d,index:f.length,data:M,x:x,y:b,absX:c.left+x,absY:c.top+b,width:y,height:t,color:o(M),label:a(M)})})}),f},ef=function(e){var t,n,i=e.data,o=e.layout,r=e.width,a=e.height,l=e.padding,d=e.valueScale,u=e.indexScale,s=e.hiddenIds,c=void 0===s?[]:s,f=_(e,ed),h=f.keys.filter(function(e){return!c.includes(e)}),v=(0,B.t$)().keys(h).offset(B.lB)(Z(i,h)),g="vertical"===o?["y","x",r]:["x","y",a],m=g[0],p=g[1],b=g[2],x=N(i,f.getIndex,void 0===l?0:l,u,b,p),y=(n=eu(v),"log"===d.type?n.filter(function(e){return 0!==e}):n),k=Math.min.apply(Math,y),C=Math.max.apply(Math,y),w=(0,T.gx)(d,{all:y,min:k,max:C},"x"===m?r:a,m),M="vertical"===o?[x,w]:[w,x],S=M[0],L=M[1],R=f.innerPadding>0?f.innerPadding:0,j=x.bandwidth(),W=[H({},f,{innerPadding:R,stackedData:v,xScale:S,yScale:L}),j,null!=(t=d.reverse)&&t];return{xScale:S,yScale:L,bars:j>0?"vertical"===o?es.apply(void 0,W):ec.apply(void 0,W):[]}},eh=function(e){var t,n,i=e.bars,o=e.direction,a=e.from,l=e.groupMode,d=e.layout,u=e.legendLabel,s=e.reverse,c=(0,r.x)(null!=u?u:"indexes"===a?"indexValue":"id");return"indexes"===a?(t=D(i.map(function(e){var t,n;return{id:null!=(t=e.data.indexValue)?t:"",label:c(e.data),hidden:e.data.hidden,color:null!=(n=e.color)?n:"#000"}}),function(e){return e.id}),"horizontal"===d&&t.reverse(),t):(n=D(i.map(function(e){var t;return{id:e.data.id,label:c(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:"#000"}}),function(e){return e.id}),("vertical"===d&&"stacked"===l&&"column"===o&&!0!==s||"horizontal"===d&&"stacked"===l&&!0===s)&&n.reverse(),n)},ev=function(e,t,n){var i=e.get(t)||0;e.set(t,i+n)},eg=function(e,t,n){var i=e.get(t)||0;e.set(t,i+(n>0?n:0))},em=function(e,t,n){var i=e.get(t)||0;e.set(t,Math.max(i,Number(n)))},ep=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},eb=function(e){var t,n=e.indexBy,o=void 0===n?U.indexBy:n,a=e.keys,l=void 0===a?U.keys:a,d=e.label,u=void 0===d?U.label:d,c=e.tooltipLabel,f=void 0===c?U.tooltipLabel:c,h=e.valueFormat,v=e.colors,g=void 0===v?U.colors:v,m=e.colorBy,p=void 0===m?U.colorBy:m,b=e.borderColor,x=void 0===b?U.borderColor:b,y=e.labelTextColor,k=void 0===y?U.labelTextColor:y,C=e.groupMode,w=void 0===C?U.groupMode:C,M=e.layout,S=void 0===M?U.layout:M,L=e.data,R=e.margin,j=e.width,W=e.height,A=e.padding,O=void 0===A?U.padding:A,E=e.innerPadding,I=void 0===E?U.innerPadding:E,z=e.valueScale,T=void 0===z?U.valueScale:z,B=e.indexScale,D=void 0===B?U.indexScale:B,_=e.initialHiddenIds,F=void 0===_?U.initialHiddenIds:_,Y=e.enableLabel,G=void 0===Y?U.enableLabel:Y,V=e.labelSkipWidth,X=void 0===V?U.labelSkipWidth:V,q=e.labelSkipHeight,K=void 0===q?U.labelSkipHeight:q,N=e.legends,Z=void 0===N?U.legends:N,Q=e.legendLabel,$=e.totalsOffset,J=void 0===$?U.totalsOffset:$,ee=(0,i.useState)(null!=F?F:[]),et=ee[0],en=ee[1],ei=(0,i.useCallback)(function(e){en(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),eo=(0,r.Ob)(o),er=(0,r.Ob)(u),ea=(0,r.Ob)(f),ed=(0,r.d_)(h),eu=(0,s.DP)(),es=(0,P.m1)(g,p),ec=(0,P.nz)(x,eu),eb=(0,P.nz)(k,eu),ex=("grouped"===w?el:ef)({layout:S,data:L,getIndex:eo,keys:l,width:j,height:W,getColor:es,padding:O,innerPadding:I,valueScale:T,indexScale:D,hiddenIds:et,formatValue:ed,getTooltipLabel:ea,margin:R}),ey=ex.bars,ek=ex.xScale,eC=ex.yScale,ew=(0,i.useMemo)(function(){return ey.filter(function(e){return null!==e.data.value}).map(function(e,t){return H({},e,{index:t})})}
1,[ey]),eM=(0,i.useCallback)(function(e){var t=e.width,n=e.height;return!!G&&!(X>0&&t<X)&&!(K>0&&n<K)},[G,X,K]),eS=(0,i.useMemo)(function(){return l.map(function(e){var t=ey.find(function(t){return t.data.id===e});return H({},t,{data:H({id:e},null==t?void 0:t.data,{hidden:et.includes(e)})})})},[et,l,ey]),eL=null!=(t=T.reverse)&&t,eR=(0,i.useMemo)(function(){return Z.map(function(e){return[e,eh({bars:"keys"===e.dataFrom?eS:ey,direction:e.direction,from:e.dataFrom,groupMode:w,layout:S,legendLabel:Q,reverse:eL})]})},[Z,eS,ey,w,S,Q,eL]),ej=(0,i.useMemo)(function(){return function(e,t,n,i,o,r,a){void 0===i&&(i=U.layout),void 0===o&&(o=U.groupMode);var l=[];if(0===e.length)return l;var d=new Map,u=e[0].width,s=e[0].height;if("stacked"===o){var c=new Map;e.forEach(function(e){var t=e.data,n=t.indexValue,i=t.value;ev(d,n,Number(i)),eg(c,n,Number(i))}),c.forEach(function(e,o){var c,f,h,v=d.get(o)||0;"vertical"===i?(c=t(o),f=n(e),h=n(e/2)):(c=t(e),f=n(o),h=t(e/2)),c+="vertical"===i?u/2:r,f+="vertical"===i?-r:s/2,l.push({key:"total_"+o,x:c,y:f,value:v,formattedValue:a(v),animationOffset:h})})}else if("grouped"===o){var f=new Map,h=new Map;e.forEach(function(e){var t=e.data,n=t.indexValue,i=t.value;ev(d,n,Number(i)),em(f,n,Number(i)),ep(h,n)}),f.forEach(function(e,o){var c,f,v,g=d.get(o)||0,m=h.get(o);"vertical"===i?(c=t(o),f=n(e),v=n(e/2)):(c=t(e),f=n(o),v=t(e/2)),c+="vertical"===i?m*u/2:r,f+="vertical"===i?-r:m*s/2,l.push({key:"total_"+o,x:c,y:f,value:g,formattedValue:a(g),animationOffset:v})})}return l}(ey,ek,eC,S,w,J,ed)},[ey,ek,eC,S,w,J,ed]);return{bars:ey,barsWithValue:ew,xScale:ek,yScale:eC,getIndex:eo,getLabel:er,getTooltipLabel:ea,formatValue:ed,getColor:es,getBorderColor:ec,getLabelColor:eb,shouldRenderBarLabel:eM,hiddenIds:et,toggleSerie:ei,legendsWithData:eR,barTotals:ej}},ex=function(e){var t=e.data,n=e.springConfig,i=e.animate,o=e.layout,r=void 0===o?q.layout:o,l=(0,s.DP)();return(0,a.pn)(t,{keys:function(e){return e.key},from:function(e){return{x:"vertical"===r?e.x:e.animationOffset,y:"vertical"===r?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:"vertical"===r?e.x:e.animationOffset,y:"vertical"===r?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!i,initial:i?void 0:null})(function(e,t){return(0,c.jsx)(a.CS.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:H({},l.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:l.labels.text.fontSize,fontFamily:l.labels.text.fontFamily,textAnchor:"vertical"===r?"middle":"start",alignmentBaseline:"vertical"===r?"alphabetic":"middle",children:t.formattedValue},t.key)})},ey=["isInteractive","animate","motionConfig","theme","renderWrapper"],ek=function(e){var t,n=e.data,l=e.indexBy,d=e.keys,u=e.margin,s=e.width,f=e.height,h=e.groupMode,v=e.layout,g=e.valueScale,m=e.indexScale,p=e.padding,b=e.innerPadding,x=e.axisTop,y=e.axisRight,k=e.axisBottom,C=void 0===k?q.axisBottom:k,w=e.axisLeft,M=void 0===w?q.axisLeft:w,S=e.enableGridX,L=void 0===S?q.enableGridX:S,R=e.enableGridY,j=void 0===R?q.enableGridY:R,W=e.gridXValues,A=e.gridYValues,O=e.layers,P=void 0===O?q.layers:O,E=e.barComponent,I=void 0===E?q.barComponent:E,z=e.enableLabel,T=void 0===z?q.enableLabel:z,B=e.label,D=e.labelSkipWidth,_=void 0===D?q.labelSkipWidth:D,F=e.labelSkipHeight,V=void 0===F?q.labelSkipHeight:F,X=e.labelTextColor,U=e.labelPosition,K=void 0===U?q.labelPosition:U,N=e.labelOffset,Z=void 0===N?q.labelOffset:N,Q=e.markers,$=void 0===Q?q.markers:Q,ee=e.colorBy,et=e.colors,en=e.defs,ei=void 0===en?q.defs:en,eo=e.fill,er=void 0===eo?q.fill:eo,ea=e.borderRadius,el=void 0===ea?q.borderRadius:ea,ed=e.borderWidth,eu=void 0===ed?q.borderWidth:ed,es=e.borderColor,ec=e.annotations,ef=void 0===ec?q.annotations:ec,eh=e.legendLabel,ev=e.tooltipLabel,eg=e.valueFormat,em=e.isInteractive,ep=void 0===em?q.isInteractive:em,ey=e.tooltip,ek=void 0===ey?q.tooltip:ey,eC=e.onClick,ew=e.onMouseEnter,eM=e.onMouseLeave,eS=e.legends,eL=e.role,eR=void 0===eL?q.role:eL,ej=e.ariaLabel,eW=e.ariaLabelledBy,eA=e.ariaDescribedBy,eO=e.isFocusable,eP=void 0===eO?q.isFocusable:eO,eE=e.barAriaLabel,eI=e.barAriaLabelledBy,ez=e.barAriaDescribedBy,eT=e.barAriaHidden,eB=e.barAriaDisabled,eD=e.initialHiddenIds,eH=e.enableTotals,e_=void 0===eH?q.enableTotals:eH,eF=e.totalsOffset,eY=void 0===eF?q.totalsOffset:eF,eG=e.forwardedRef,eV=(0,r.mk)(),eX=eV.animate,eU=eV.config,eq=(0,r.Xl)(s,f,u),eK=eq.outerWidth,eN=eq.outerHeight,eZ=eq.margin,eQ=eq.innerWidth,e$=eq.innerHe
1ight,eJ=eb({indexBy:l,label:B,tooltipLabel:ev,valueFormat:eg,colors:et,colorBy:ee,borderColor:es,labelTextColor:X,groupMode:h,layout:v,data:n,keys:d,margin:eZ,width:eQ,height:e$,padding:p,innerPadding:b,valueScale:g,indexScale:m,enableLabel:T,labelSkipWidth:_,labelSkipHeight:V,legends:eS,legendLabel:eh,initialHiddenIds:eD,totalsOffset:eY}),e0=eJ.bars,e1=eJ.barsWithValue,e2=eJ.xScale,e4=eJ.yScale,e5=eJ.getLabel,e6=eJ.getTooltipLabel,e8=eJ.getBorderColor,e3=eJ.getLabelColor,e9=eJ.shouldRenderBarLabel,e7=eJ.toggleSerie,te=eJ.legendsWithData,tt=eJ.barTotals,tn=eJ.getColor,ti=J(v,null!=(t=null==g?void 0:g.reverse)&&t,K,Z),to=(0,a.pn)(e1,{keys:function(e){return e.key},from:function(e){return H({borderColor:e8(e),color:e.color,height:0,labelColor:e3(e),labelOpacity:0},ti(e.width,e.height),{transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===v?{}:{height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0})},enter:function(e){return H({borderColor:e8(e),color:e.color,height:e.height,labelColor:e3(e),labelOpacity:1},ti(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},update:function(e){return H({borderColor:e8(e),color:e.color,height:e.height,labelColor:e3(e),labelOpacity:1},ti(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},leave:function(e){return H({borderColor:e8(e),color:e.color,height:0,labelColor:e3(e),labelOpacity:0},ti(e.width,e.height),{labelY:0,transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===v?{}:H({},ti(e.width,e.height),{labelX:0,height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0}))},config:eU,immediate:!eX,initial:eX?void 0:null}),tr=(0,i.useMemo)(function(){return{borderRadius:el,borderWidth:eu,enableLabel:T,isInteractive:ep,labelSkipWidth:_,labelSkipHeight:V,onClick:eC,onMouseEnter:ew,onMouseLeave:eM,getTooltipLabel:e6,tooltip:ek,isFocusable:eP,ariaLabel:eE,ariaLabelledBy:eI,ariaDescribedBy:ez,ariaHidden:eT,ariaDisabled:eB}},[el,eu,T,e6,ep,V,_,eC,ew,eM,ek,eP,eE,eI,ez,eT,eB]),ta=(0,r.kc)(ei,e0,er,{dataKey:"data",targetKey:"data.fill"}),tl={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};P.includes("annotations")&&(tl.annotations=(0,c.jsx)(Y,{bars:e0,annotations:ef},"annotations")),P.includes("axes")&&(tl.axes=(0,c.jsx)(o.Y5,{xScale:e2,yScale:e4,width:eQ,height:e$,top:x,right:y,bottom:C,left:M},"axes")),P.includes("bars")&&(tl.bars=(0,c.jsx)(i.Fragment,{children:to(function(e,t){return(0,i.createElement)(I,H({},tr,{bar:t,style:e,shouldRenderLabel:e9(t),label:e5(t.data)}))})},"bars")),P.includes("grid")&&(tl.grid=(0,c.jsx)(o.xA,{width:eQ,height:e$,xScale:L?e2:null,yScale:j?e4:null,xValues:W,yValues:A},"grid")),P.includes("legends")&&(tl.legends=(0,c.jsx)(G,{width:eQ,height:e$,legends:te,toggleSerie:e7},"legends")),P.includes("markers")&&(tl.markers=(0,c.jsx)(r.U9,{markers:$,width:eQ,height:e$,xScale:e2,yScale:e4},"markers")),P.includes("totals")&&e_&&(tl.totals=(0,c.jsx)(ex,{data:tt,springConfig:eU,animate:eX,layout:v},"totals"));var td=H({},tr,{margin:eZ,width:s,height:f,innerWidth:eQ,innerHeight:e$,bars:e0,legendData:te,enableLabel:T,xScale:e2,yScale:e4,tooltip:ek,getTooltipLabel:e6,onClick:eC,onMouseEnter:ew,onMouseLeave:eM,getColor:tn});return(0,c.jsx)(r.Ge,{width:eK,height:eN,margin:eZ,defs:ta,role:eR,ariaLabel:ej,ariaLabelledBy:eW,ariaDescribedBy:eA,isFocusable:eP,ref:eG,children:P.map(function(e,t){var n;return"function"==typeof e?(0,c.jsx)(i.Fragment,{children:(0,i.createElement)(e,td)},t):null!=(n=null==tl?void 0:tl[e])?n:null})})},eC=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?q.isInteractive:n,o=e.animate,a=void 0===o?q.animate:o,l=e.motionConfig,d=void 0===l?q.motionConfig:l,u=e.theme,s=e.renderWrapper,f=_(e,ey);return(0,c.jsx)(r.mc,{animate:a,isInteractive:i,motionConfig:d,renderWrapper:s,theme:u,children:(0,c.jsx)(ek,H({},f,{isInteractive:i,forwardedRef:t}))})}),ew=["isInteractive","renderWrapper","theme"],eM=function(e,t,n,i){return e.find(function(e){return(0,r.u7)(e.x+t.left,e.y+t.top,e.width,e.height,n,i)})},eS=function(e){var t,n=e.data,a=e.indexBy,l=e.keys,d=e.margin,u=e.width,f=e.height,h=e.groupMode,v=e.layout,g=e.valueScale,m=e.indexScale,p=e.padding,b=e.innerPadding,x=e.axisTo
1p,y=e.axisRight,w=e.axisBottom,M=void 0===w?K.axisBottom:w,S=e.axisLeft,L=void 0===S?K.axisLeft:S,R=e.enableGridX,j=void 0===R?K.enableGridX:R,W=e.enableGridY,P=void 0===W?K.enableGridY:W,z=e.gridXValues,T=e.gridYValues,B=e.labelPosition,D=void 0===B?K.labelPosition:B,_=e.labelOffset,F=void 0===_?K.labelOffset:_,Y=e.layers,G=void 0===Y?K.layers:Y,V=e.renderBar,X=void 0===V?K.renderBar:V,U=e.enableLabel,q=void 0===U?K.enableLabel:U,N=e.label,Z=e.labelSkipWidth,Q=void 0===Z?K.labelSkipWidth:Z,$=e.labelSkipHeight,ee=void 0===$?K.labelSkipHeight:$,et=e.labelTextColor,en=e.colorBy,ei=e.colors,eo=e.borderRadius,er=void 0===eo?K.borderRadius:eo,ea=e.borderWidth,el=void 0===ea?K.borderWidth:ea,ed=e.borderColor,eu=e.annotations,es=void 0===eu?K.annotations:eu,ec=e.legendLabel,ef=e.tooltipLabel,eh=e.valueFormat,ev=e.isInteractive,eg=void 0===ev?K.isInteractive:ev,em=e.tooltip,ep=void 0===em?K.tooltip:em,ex=e.onClick,ey=e.onMouseEnter,ek=e.onMouseLeave,eC=e.legends,ew=e.pixelRatio,eS=void 0===ew?K.pixelRatio:ew,eL=e.role,eR=e.forwardedRef,ej=e.enableTotals,eW=void 0===ej?K.enableTotals:ej,eA=e.totalsOffset,eO=void 0===eA?K.totalsOffset:eA,eP=(0,i.useRef)(null),eE=(0,s.DP)(),eI=(0,r.Xl)(u,f,d),ez=eI.margin,eT=eI.innerWidth,eB=eI.innerHeight,eD=eI.outerWidth,eH=eI.outerHeight,e_=eb({indexBy:a,label:N,tooltipLabel:ef,valueFormat:eh,colors:ei,colorBy:en,borderColor:ed,labelTextColor:et,groupMode:h,layout:v,data:n,keys:l,margin:ez,width:eT,height:eB,padding:p,innerPadding:b,valueScale:g,indexScale:m,enableLabel:q,labelSkipWidth:Q,labelSkipHeight:ee,legends:eC,legendLabel:ec,totalsOffset:eO}),eF=e_.bars,eY=e_.barsWithValue,eG=e_.xScale,eV=e_.yScale,eX=e_.getLabel,eU=e_.getTooltipLabel,eq=e_.getBorderColor,eK=e_.getLabelColor,eN=e_.shouldRenderBarLabel,eZ=e_.legendsWithData,eQ=e_.barTotals,e$=e_.getColor,eJ=(0,E.fS)(),e0=eJ.showTooltipFromEvent,e1=eJ.hideTooltip,e2=C({annotations:k({data:eF,annotations:es,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),e4=(0,i.useMemo)(function(){return{borderRadius:er,borderWidth:el,isInteractive:eg,isFocusable:!1,labelSkipWidth:Q,labelSkipHeight:ee,margin:ez,width:u,height:f,innerWidth:eT,innerHe
1ight:eB,bars:eF,legendData:eZ,enableLabel:q,xScale:eG,yScale:eV,tooltip:ep,getTooltipLabel:eU,onClick:ex,onMouseEnter:ey,onMouseLeave:ek,getColor:e$}},[er,el,eg,Q,ee,ez,u,f,eT,eB,eF,eZ,q,eG,eV,ep,eU,ex,ey,ek,e$]),e5=(0,r.d_)(eh),e6=J(v,null!=(t=null==g?void 0:g.reverse)&&t,D,F);(0,i.useEffect)(function(){if(eP.current){eP.current.width=eD*eS,eP.current.height=eH*eS;var e=eP.current.getContext("2d");e.scale(eS,eS),e.fillStyle=eE.background,e.fillRect(0,0,eD,eH),e.translate(ez.left,ez.top),G.forEach(function(t){var n;"grid"===t?"number"==typeof eE.grid.line.strokeWidth&&eE.grid.line.strokeWidth>0&&(e.lineWidth=eE.grid.line.strokeWidth,e.strokeStyle=eE.grid.line.stroke,j&&(0,o.xu)(e,{width:eT,height:eB,scale:eG,axis:"x",values:z}),P&&(0,o.xu)(e,{width:eT,height:eB,scale:eV,axis:"y",values:T})):"axes"===t?(0,o.ZY)(e,{xScale:eG,yScale:eV,width:eT,height:eB,top:x,right:y,bottom:M,left:L,theme:eE}):"bars"===t?((0,I.w6)(e,eE.text),eY.forEach(function(t){X(e,H({bar:t,borderColor:eq(t),borderRadius:er,borderWidth:el,label:eX(t.data),shouldRenderLabel:eN(t),labelStyle:H({},eE.labels.text,{fill:eK(t)})},e6(t.width,t.height)))})):"legends"===t?eZ.forEach(function(t){var n=t[0],i=t[1];(0,O.ZG)(e,H({},n,{data:i,containerWidth:eT,containerHeight:eB,theme:eE}))}):"annotations"===t?A(e,{annotations:e2,theme:eE}):"totals"===t&&eW?(void 0===(n=v)&&(n=K.layout),(0,I.w6)(e,eE.labels.text),e.textBaseline="vertical"===n?"alphabetic":"middle",e.textAlign="vertical"===n?"center":"start",eQ.forEach(function(t){(0,I.qu)(e,eE.labels.text,t.formattedValue,t.x,t.y)})):"function"==typeof t&&t(e,e4)}),e.save()}},[M,L,y,x,eY,er,el,e2,j,P,eq,eX,eK,z,T,h,f,eB,eT,e4,G,v,eZ,ez.left,ez.top,eH,eD,eS,X,eG,eV,eN,eE,u,eQ,eW,e5,e6]);var e8=(0,i.useCallback)(function(e){if(eF&&eP.current){var t=(0,r.H9)(eP.current,e),n=eM(eF,ez,t[0],t[1]);void 0!==n?(e0((0,i.createElement)(ep,H({},n.data,{color:n.color,label:n.label,value:Number(n.data.value)})),e),"mouseenter"===e.type&&(null==ey||ey(n.data,e))):e1()}},[e1,ez,ey,eF,e0,ep]),e3=(0,i.useCallback)(function(e){if(eF&&eP.current){e1();var t=(0,r.H9)(eP.current,e),n=eM(eF,ez,t[0],t[1]);n&&(null==ek||ek(n.data,e))}},[e1,ez,ek,eF]),e9=(0,i.useCallback)(function(e){if(eF&&eP.current){var t=(0,r.H9)(eP.current,e),n=eM(eF,ez,t[0],t[1]);void 0!==n&&(null==ex||ex(H({},n.data,{color:n.color}),e))}},[ez,ex,eF]);return(0,c.jsx)("canvas",{ref:(0,r.Px)(eP,eR),width:eD*eS,height:eH*eS,style:{width:eD,height:eH,cursor:eg?"auto":"normal"},onMouseEnter:eg?e8:void 0,onMouseMove:eg?e8:void 0,onMouseLeave:eg?e3:void 0,onClick:eg?e9:void 0,role:eL})},eL=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=e.renderWrapper,o=e.theme,a=_(e,ew);return(0,c.jsx)(r.mc,{isInteractive:n,renderWrapper:i,theme:o,animate:!1,children:(0,c.jsx)(eS,H({},a,{isInteractive:n,forwardedRef:t}))})}),eR=["defaultWidth","defaultHeight","onResize","debounceResize"],ej=(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,o=e.onResize,a=e.debounceResize,l=_(e,eR);return(0,c.jsx)(r.KF,{defaultWidth:n,defaultHeight:i,onResize:o,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,c.jsx)(eC,H({},l,{width:n,height:i,ref:t}))}})}),eW=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,o=e.onResize,a=e.debounceResize,l=_(e,eW);return(0,c.jsx)(r.KF,{defaultWidth:n,defaultHeight:i,onResize:o,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,c.jsx)(eL,H({},l,{width:n,height:i,ref:t}))}})})},36760(e,t,n){var i=n(96540),o=n(4554),r=n(56534),a=n(74848),l=n(30806),d=n(14782),u=n(4642),s=n(87594),c=n(10068),f=n(43914);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function v(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var g=function(e){var t=e.animatedProps,n=t.x,i=t.y,o=t.width,l=t.height,d=t.color,u=e.borderColor,s=e.borderWidth,c=e.data,f=e.onMouseEnter,h=e.onMouseMove,v=e.onMouseLeave,g=e.onClick;return(0,a.jsx)(r.CS.rect,{x:n,y:i,width:(0,r.to)(o,function(e){return Math.max(e,0)}),height:(0,r.to)(l,function(e){return Math.max(e,0)}),fill:d,strokeWidth:s,stroke:u,onMouseMove:function(e){return h(c,e)},onMouseEnter:function(e){return f(c,e)},onMouseLeave:function(e){return v(c,e)},onClick:function(e){return g(c,e)}})},m={layout:"horizontal",reverse:!1,spacing:30,minValue:0,maxValue:"auto",axisPosition:"after",titlePosition:"before",titleAlign:"middle",titleRotation:0,titleOffsetX:0,titleOffsetY:0,rangeComponent:g,rangeColors:"seq:cool",measureComponent:g,measureColors:"seq:red_purple",markers:[],markerComponent:function(e){var t=e.animatedProps,n=t.color,i=t.transform,o=t.x,l=t.y1,d=t.y2,u=e.data,s=e.onMouseEnter,c=e.onMouseMove,f=e.onMouseLeave,h=e.onClick;return(0,a.jsx)(r.CS.line,{transform:i,x1:o,x2:o,y1:l,y2:d,fill:"none",stroke:n,strokeWidth:"5",onMouseMove:function(e){return c(u,e)},onMouseEnter:function(e){return s(u,e)},onMouseLeave:function(e){return f(u,e)},onClick:function(e){return h(u,e)}})},markerColors:"seq:red_purple",rangeBorderWidth:0,rangeBorderColor:{from:"color"},measureSize:.4,measureBorderWidth:0,measureBorderColor:{from:"color"},markerSize:.6,isInteractive:!0,tooltip:function(e){var t=e.color,n=e.v0,i=e.v1;return(0,a.jsx)(l.GK,{id:i?(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:n})," to ",(0,a.jsx)("strong",{children:i})]}):(0,a.jsx)("strong",{children:n}),enableChip:!0,color:t})},animate:o.oU.animate,motionConfig:o.oU.config,margin:o.kT,role:"img"},p=function(e,t,n,i,o){void 0===o&&(o=!1);var r=t.domain(),a=r[0],l=r[1];return[].concat(e,["measures"===i||e.includes(l)?0:l]).filter(function(e){return 0!==e}).sort(function(e,t){return e-t}).reduce(function(e,t,i){var r,l=e.slice(-1)[0],d=null!=(r=null==l?void 0:l.v1)?r:a,u=!0===o?d+(t-d)
1/2:t;return[].concat(e,[{index:i,v0:d,v1:t,color:n("sequential"===n.type?u:i)}])},[])},b=["position"],x=function(e){var t=e.scale,n=e.layout,l=e.reverse,d=e.markers,u=e.height,s=e.markerSize,c=e.component,f=e.onMouseEnter,g=e.onMouseLeave,m=e.onClick,p=(0,i.useMemo)(function(){var e,i,o,r,a,d;return i=(e={layout:n,reverse:l,scale:t,height:u,markerSize:s}).layout,o=e.reverse,r=e.scale,a=e.height,d=e.markerSize,"horizontal"===i?function(e){return{x:r(e.value),y:a/2,size:d,rotation:180*(!0===o)}}:function(e){return{x:a/2,y:r(e.value),size:d,rotation:!0===o?270:90}}},[n,l,t,u,s]),x=(0,o.mk)(),y=x.animate,k=x.config,C=(0,r.pn)(d.map(function(e){return h({},e,{position:p(e)})}),{keys:function(e){return""+e.index},enter:function(e){var t=e.color,n=e.position;return{color:t,transform:"rotate("+n.rotation+", "+n.x+", "+n.y+")",x:n.x,y1:n.y-n.size/2,y2:n.y+n.size/2}},update:function(e){var t=e.color,n=e.position;return{color:t,transform:"rotate("+n.rotation+", "+n.x+", "+n.y+")",x:n.x,y1:n.y-n.size/2,y2:n.y+n.size/2}},config:k,immediate:!y});return(0,a.jsx)(a.Fragment,{children:C(function(e,t){var n=t.position,o=v(t,b);return i.createElement(c,h({key:o.index},o,n,{animatedProps:e,data:o,onMouseEnter:f,onMouseMove:f,onMouseLeave:g,onClick:m}))})})},y=function(e){var t=e.animatedProps,n=e.data,l=e.layout,d=e.y,u=e.borderColor,f=e.borderWidth,v=e.component,g=e.reverse,m=e.scale,p=e.height,b=e.onMouseEnter,x=e.onMouseLeave,y=e.onClick,k=(0,i.useMemo)(function(){var e,t,i,o,r,a,d,u;return d=(e={data:n,layout:l,reverse:g,scale:m,height:p}).data,i=(t={layout:e.layout,reverse:e.reverse,scale:e.scale,height:e.height}).layout,o=t.reverse,r=t.scale,a=t.height,u="horizontal"===i?!0===o?function(e){var t=r(e.v1);return{x:t,y:0,width:r(e.v0)-t,height:a}}:function(e){var t=r(e.v0);return{x:t,y:0,width:r(e.v1)-t,height:a}}:!0===o?function(e){var t=r(e.v0),n=r(e.v1)-t;return{x:0,y:t,width:a,height:n}}:function(e){var t=r(e.v1),n=r(e.v0)-t;return{x:0,y:t,width:a,height:n}},d.map(function(e){return h({data:e},u(e))})},[n,l,g,m,p]),C=(0,s.DP)(),w=(0,c.nz)(u,C),M=function(e){return"translate("+("horizontal"===l?0:e)+","+("horizontal"===l?e:0)+")"},S=t?(0,r.to)(t.measuresY,M):M(d),L=(0,o.mk)(),R=L.animate,j=L.config,W=(0,r.pn)(k,{keys:function(e){return""+e.data.index},enter:function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.data.color}},update:function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.data.color}},config:j,immediate:!R});return(0,a.jsx)(r.CS.g,{transform:S,children:W(function(e,t){return(0,i.createElement)(v,{key:t.data.index,index:t.data.index,animatedProps:e,data:t.data,x:e.x.get(),y:e.y.get(),borderColor:w(t.data),borderWidth:f,width:(0,r.to)(e.width,function(e){return Math.max(e,0)}).get(),height:(0,r.to)(e.height,function(e){return Math.max(e,0)}).get(),color:e.color.get(),onMouseEnter:b,onMouseMove:b,onMouseLeave:x,onClick:y})})})},k=function(e){var t=e.id,n=e.scale,c=e.layout,f=e.reverse,v=e.axisPosition,g=e.x,m=e.y,b=e.width,k=e.height,C=e.title,w=void 0===C?t:C,M=e.titlePosition,S=e.titleAlign,L=e.titleOffsetX,R=e.titleOffsetY,j=e.titleRotation,W=e.tooltip,A=e.rangeBorderColor,O=e.rangeBorderWidth,P=e.rangeComponent,E=e.rangeColors,I=e.ranges,z=e.measureBorderColor,T=e.measureBorderWidth,B=e.measureComponent,D=e.measureHeight,H=e.measureColors,_=e.measures,F=e.markerComponent,Y=e.markerColors,G=e.markerHeight,V=e.markers,X=void 0===V?[]:V,U=e.onRangeClick,q=e.onMeasureClick,K=e.onMarkerClick,N=(0,s.DP)(),Z=(0,l.fS)(),Q=Z.showTooltipFromEvent,$=Z.hideTooltip,J=(0,i.useMemo)(function(){var e=(0,o.yw)(E,n,!0);return p(I,n,e,"range")},[E,I,n]),ee=(0,i.useMemo)(function(){var e=(0,o.yw)(H,n);return p(_,n,e,"measures")},[H,_,n]),et=(0,i.useMemo)(function(){var e=(0,o.yw)(Y,n);return X.map(function(t,n){return{value:t,index:n,color:e("sequential"===e.type?t:n)}})},[Y,X,n]),en=(0,a.jsx)(y,{data:J,scale:n,layout:c,reverse:f,x:0,y:0,width:b,height:k,component:P,borderColor:A,borderWidth:O,onMouseEnter:function(e,t){Q((0,a.jsx)(W,{color:e.color,v0:e.v0,v1:e.v1}),t)}
1,onMouseLeave:$,onClick:function(e,n){null==U||U(h({id:t},e),n)}}),ei=(0,a.jsx)(x,{markers:et,scale:n,layout:c,reverse:f,height:k,markerSize:G,component:F,onMouseEnter:function(e,t){Q((0,a.jsx)(W,{color:e.color,v0:e.value}),t)},onMouseLeave:$,onClick:function(e,n){null==K||K(h({id:t},e),n)}}),eo=(0,a.jsx)("g",{transform:"translate("+("vertical"===c&&"after"===v?k:0)+","+("horizontal"===c&&"after"===v?k:0)+")",children:(0,a.jsx)(d._0,{axis:"horizontal"===c?"x":"y",length:"horizontal"===c?b:k,scale:n,ticksPosition:v})}),er=(0,a.jsx)("g",{transform:"translate("+("horizontal"===c?"before"===M?L:b+L:k/2+L)+","+("horizontal"===c?k/2+R:"before"===M?R:b+R)+") rotate("+j+")",children:"string"==typeof w?(0,a.jsx)(u.EY,{style:h({},N.labels.text,{dominantBaseline:"central",textAnchor:S}),children:w}):w}),ea=(0,o.mk)(),el=ea.animate,ed=ea.config,eu=(0,r.zh)({measuresY:(k-D)/2,transform:"translate("+g+","+m+")",config:ed,immediate:!el});return(0,a.jsxs)(r.CS.g,{transform:eu.transform,children:[en,(0,a.jsx)(y,{animatedProps:eu,data:ee,scale:n,layout:c,reverse:f,x:0,y:0,width:b,height:D,component:B,borderColor:z,borderWidth:T,onMouseEnter:function(e,t){Q((0,a.jsx)(W,{color:e.color,v0:e.v1}),t)}
1,onMouseLeave:$,onClick:function(e,n){null==q||q(h({id:t},e),n)}}),eo,ei,er]})},C=(0,i.forwardRef)(function(e,t){var n,r,l,d,u,s,c,v=h({},m,e),g=v.data,p=v.layout,b=v.spacing,x=v.measureSize,y=v.markerSize,C=v.reverse,w=v.axisPosition,M=v.minValue,S=v.maxValue,L=v.margin,R=v.width,j=v.height,W=v.titlePosition,A=v.titleAlign,O=v.titleOffsetX,P=v.titleOffsetY,E=v.titleRotation,I=v.rangeBorderColor,z=v.rangeBorderWidth,T=v.rangeComponent,B=v.rangeColors,D=v.measureBorderColor,H=v.measureBorderWidth,_=v.measureComponent,F=v.measureColors,Y=v.markerComponent,G=v.markerColors,V=v.theme,X=v.tooltip,U=void 0===X?m.tooltip:X,q=v.animate,K=v.motionConfig,N=v.isInteractive,Z=v.onRangeClick,Q=v.onMeasureClick,$=v.onMarkerClick,J=v.role,ee=(0,o.Xl)(R,j,L),et=ee.margin,en=ee.innerWidth,ei=ee.innerHeight,eo="horizontal"===p?(ei-b*(g.length-1))/g.length:(en-b*(g.length-1))/g.length,er=eo*x,ea=eo*y,el=(r=(n={height:ei,layout:p,maxValue:"auto"===S?void 0:S,minValue:"auto"===M?void 0:M,reverse:C,width:en}).layout,l=n.maxValue,d=n.minValue,u=n.reverse,s=n.height,c=n.width,(0,i.useMemo)(function(){return g.map(function(e){var t,n=[].concat(e.ranges,e.measures,null!=(t=e.markers)?t:[]),i=null!=l?l:Math.max.apply(Math,n),o=null!=d?d:Math.min.apply(Math,n);return h({},e,{scale:(0,f.UG)({clamp:!0,min:o,max:i,type:"linear",round:!0},{all:n,max:i,min:o},"horizontal"===r?c:s,"horizontal"===r?u?"y":"x":u?"x":"y")})})},[g,s,r,l,d,u,c]));return(0,a.jsx)(o.mc,{isInteractive:N,theme:V,animate:q,motionConfig:K,children:(0,a.jsx)(o.Ge,{width:R,height:j,margin:et,role:J,ref:t,children:el.map(function(e,t){return(0,a.jsx)(k,h({},e,{layout:p,reverse:C,x:"vertical"===p?eo*t+b*t:0,y:"horizontal"===p?eo*t+b*t:0,width:en,height:eo,titlePosition:W,titleAlign:A,titleOffsetX:O,titleOffsetY:P,titleRotation:E,measureHeight:er,markerHeight:ea,rangeBorderColor:I,rangeBorderWidth:z,rangeComponent:T,rangeColors:B,measureBorderColor:D,measureBorderWidth:H,measureComponent:_,measureColors:F,markerComponent:Y,markerColors:G,axisPosition:w,onRangeClick:Z,onMeasureClick:Q,onMarkerClick:$,tooltip:U}),e.id)})})})}),w=["defaultWidth","defaultHeight","onResize","debounceResize"],M=(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,l=e.debounceResize,d=v(e,w);return(0,a.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:l,children:function(e){var n=e.width,i=e.height;return(0,a.jsx)(C,h({width:n,height:i},d,{ref:t}))}})});n.d(t,{vc:()=>M})},50396(e,t,n){var i=function(e,t,n,i,o,r){r>0?(e.moveTo(t+r,n),e.lineTo(t+i-r,n),e.quadraticCurveTo(t+i,n,t+i,n+r),e.lineTo(t+i,n+o-r),e.quadraticCurveTo(t+i,n+o,t+i-r,n+o),e.lineTo(t+r,n+o),e.quadraticCurveTo(t,n+o,t,n+o-r),e.lineTo(t,n+r),e.quadraticCurveTo(t,n,t+r,n),e.closePath()):e.rect(t,n,i,o)};n.d(t,{k:()=>i})},10068(e,t,n){var i=n(2663),o=n(96540),r=n(58156),a=n(11331),l=n(74548),d=n(59681);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var c={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:i.t5,accent:i._u,dark2:i.Hf,paired:i.vU,pastel1:i.kG,pastel2:i.ri,set1:i.Dv,set2:i.Ks,set3:i.DQ,tableau10:i.zt},f=Object.keys(c),h={brown_blueGreen:i.HZ,purpleRed_green:i.j9,pink_yellowGreen:i.ZO,purple_orange:i.OK,red_blue:i.pC,red_grey:i.Wu,red_yellow_blue:i.OY,red_yellow_green:i.mC,spectral:i.iZ},v=Object.keys(h),g={brown_blueGreen:i.ND,purpleRed_green:i.tB,pink_yellowGreen:i.jq,purple_orange:i.QS,red_blue:i.Tw,red_grey:i.yR,red_yellow_blue:i.c_,red_yellow_green:i.qJ,spectral:i.QL},m={blues:i.Hu,greens:i.Cx,greys:i.MS,oranges:i.dw,purples:i.xA,reds:i.Uo,blue_green:i.g4,blue_purple:i.iW,green_blue:i.Wb,orange_red:i.jl,purple_blue_green:i.Vm,purple_blue:i.Gw,purple_red:i.lt,red_purple:i.HS,yellow_green_blue:i.r2,yellow_green:i.QE,yellow_orange_brown:i.yn,yellow_orange_red:i.Mh},p=Object.keys(m),b={blues:i.dM,greens:i.Yv,greys:i.q8,oranges:i.TE,purples:i.dn,reds:i.Q3,turbo:i.Ww,viridis:i.GA,inferno:i.Fb,magma:i.nJ,plasma:i.UA,cividis:i.Pi,warm:i.Lx,cool:i.tG,cubehelixDefault:i.SU,blue_green:i.mu,blue_purple:i.QU,green_blue:i._C,orange_red:i.V7,purple_blue_green:i.DK,purple_blue:i.Eg,purple_red:i.NM,red_purple:i.bD,yellow_green_blue:i.L9,yellow_green:i.o$,yellow_orange_brown:i._Q,yellow_orange_red:i.oK},x=s({},c,h,m),y=(Object.keys(x),{rainbow:i.SV,sinebow:i.jy}),k=(Object.keys(s({},g,b,y)),function(e,t){if("function"==typeof e)return e;if(a(e)){if(void 0!==e.theme){if(void 0===t)throw Error("Unable to use color from theme as no theme was provided");var n=r(t,e.theme);if(void 0===n)throw Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(void 0!==e.from){var i=function(t){return r(t,e.from)};if(Array.isArray(e.modifiers)){for(var o,d=[],s=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(o=s()).done;)!function(){var e=o.value,t=e[0],n=e[1];if("brighter"===t)d.push(function(e){return e.brighter(n)});else if("darker"===t)d.push(function(e){return e.darker(n)});else{if("opacity"!==t)throw Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");d.push(function(e){return e.opacity=n,e})}}();return 0===d.length?i:function(e){return d.reduce(function(e,t){return t(e)},(0,l.Qh)(i(e))).toString()}}return i}throw Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}),C=function(e,t){return(0,o.useMemo)(function(){return k(e,t)},[e,t])},w=function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return r(e,t)};if(Array.isArray(e)){var i=(0,d.UM)(e),o=function(e){return i(n(e))};return o.scale=i,o}if(a(e)){if(void 0!==e.datum)return function(t){return r(t,e.datum)};if(void 0!==e.scheme){if(l=e.scheme,f.includes(l)){var l,u,s,c=(0,d.UM)(x[e.scheme]),h=function(e){return c(n(e))};return h.scale=c,h}
1if(u=e.scheme,v.includes(u)){if(void 0!==e.size&&(e.size<3||e.size>11))throw Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var g=(0,d.UM)(x[e.scheme][e.size||11]),m=function(e){return g(n(e))};return m.scale=g,m}if(s=e.scheme,p.includes(s)){if(void 0!==e.size&&(e.size<3||e.size>9))throw Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var b=(0,d.UM)(x[e.scheme][e.size||9]),y=function(e){return b(n(e))};return y.scale=b,y}}throw Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},M=function(e,t){return(0,o.useMemo)(function(){return w(e,t)},[e,t])};n.d(t,{m1:()=>M,nz:()=>C})},4554(e,t,n){n.d(t,{B2:()=>X,Ex:()=>V,Ge:()=>$,H9:()=>ey,KF:()=>z,Lp:()=>ea,Ob:()=>em,Px:()=>eM,U9:()=>en,W_:()=>ef,Xl:()=>ec,Yf:()=>ep,_H:()=>eb,d_:()=>eh,e_:()=>U,gD:()=>ev,kT:()=>es,kc:()=>ew,lA:()=>Q,mc:()=>P,mk:()=>W,ni:()=>q,nv:()=>G,oU:()=>R,sg:()=>ee,tR:()=>Y,u7:()=>ex,wA:()=>ei,x:()=>eg,yw:()=>eu});var i=n(96540),o=n(30806),r=n(87594),a=n(85015),l=n(56534),d=n(74848),u=n(70713),s=n(81591),c=n(2049),f=n(91648),h=n(53257),v=n(59681),g=n(2663),m=n(68090),p=n(56449),b=n(1882),x=n(44198),y=n(67791),k=n(58156),C=n(11331),w=n(44383),M=n(2404),S=n(63560),L=(0,i.createContext)(),R={animate:!0,config:"default"},j=function(e){var t=e.children,n=e.animate,o=void 0===n||n,r=e.config,u=void 0===r?"default":r,s=(0,i.useMemo)(function(){return{animate:o,config:a(u)?l.$W[u]:u}},[o,u]);return(0,d.jsx)(L.Provider,{value:s,children:t})},W=function(){return(0,i.useContext)(L)},A=function(e){var t=e.children,n=e.condition,o=e.wrapper;return n?(0,i.cloneElement)(o,{},t):t},O={position:"relative"},P=function(e){var t=e.children,n=e.theme,a=e.renderWrapper,l=e.isInteractive,u=e.animate,s=e.motionConfig,c=(0,i.useRef)(null);return(0,d.jsx)(r.NP,{theme:n,children:(0,d.jsx)(j,{animate:u,config:s,children:(0,d.jsx)(o.Bc,{container:c,children:(0,d.jsxs)(A,{condition:void 0===a||a,wrapper:(0,d.jsx)("div",{style:O,ref:c}),children:[t,(void 0===l||l)&&(0,d.jsx)(o.m_,{})]})})})})},E=function(e,t){return e.width===t.width&&e.height===t.height},I=function(e){var t=e.children,n=e.width,o=e.height,r=e.onResize,a=e.debounceResize,l=(0,s.d7)({width:n,height:o},a,{equalityFn:E})[0];return(0,i.useEffect)(function(){null==r||r(l)},[l,r]),(0,d.jsx)(d.Fragment,{children:t(l)})},z=function(e){var t=e.children,n=e.defaultWidth,i=e.defaultHeight,o=e.onResize,r=e.debounceResize,a=void 0===r?0:r;return(0,d.jsx)(u.Ay,{defaultWidth:n,defaultHeight:i,children:function(e){var n=e.width,i=e.height;return(0,d.jsx)(I,{width:n,height:i,onResize:o,debounceResize:a,children:t})}})};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function D(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var H=["id","colors"],_={linearGradient:function(e){var t=e.id,n=e.colors,i=D(e,H);return(0,d.jsx)("linearGradient",B({id:t,x1:0,x2:0,y1:0,y2:1},i,{children:n.map(function(e){var t=e.offset,n=e.color,i=e.opacity;return(0,d.jsx)("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==i?i:1},t)})}))}},F=(0,i.memo)(function(e){var t=e.id,n=e.background,i=e.color,o=void 0===i?"#000000":i,r=e.size,a=void 0===r?4:r,l=e.padding,u=void 0===l?4:l,s=e.stagger,c=void 0!==s&&s,f=a+u,h=a/2,v=u/2;return!0===c&&(f=2*a+2*u),(0,d.jsxs)("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[(0,d.jsx)("rect",{width:f,height:f,fill:void 0===n?"#ffffff":n}),(0,d.jsx)("circle",{cx:v+h,cy:v+h,r:h,fill:o}),c&&(0,d.jsx)("circle",{cx:1.5*u+a+h,cy:1.5*u+a+h,r:h,fill:o})]})}),Y=function(e){return e*Math.PI/180},G=function(e){return 180*e/Math.PI},V=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},X=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},U=function(e){var t=e%360;return t<0&&(t+=360),t},q={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},K={patternDots:F,patternLines:(0,i.memo)(function(e){var t=e.id,n=e.spacing,i=e.rotation,o=e.background,r=e.color,a=e.lineWidth,l=Math.round(void 0===i?0:i)%360,u=Math.abs(void 0===n?5:n);l>180?l-=360:l>90?l-=180:l<-180?l+=360:l<-90&&(l+=180);var s,c=u,f=u;return 0===l?s="\n M 0 0 L "+c+" 0\n M 0 "+f+" L "+c+" "+f+"\n ":90===l?s="\n M 0 0 L 0 "+f+"\n M "+c+" 0 L "+c+" "+f+"\n ":(c=Math.abs(u/Math.sin(Y(l))),f=u/Math.sin(Y(90-l)),s=l>0?"\n M 0 "+-f+" L "+2*c+" "+f+"\n M "+-c+" "+-f+" L "+c+" "+f+"\n M "+-c+" 0 L "+c+" "+2*f+"\n ":"\n M "+-c+" "+f+" L "+c+" "+-f+"\n M "+-c+" "+2*f+" L "+2*c+" "+-f+"\n M 0 "+2*f+" L "+2*c+" 0\n "),(0,d.jsxs)("pattern",{id:t,width:c,height:f,patternUnits:"userSpaceOnUse",children:[(0,d.jsx)("rect",{width:c,height:f,fill:void 0===o?"#000000":o,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),(0,d.jsx)("path",{d:s,strokeWidth:void 0===a?2:a,stroke:void 0===r?"#ffffff"
1:r,strokeLinecap:"square"})]})}),patternSquares:(0,i.memo)(function(e){var t=e.id,n=e.color,i=void 0===n?"#000000":n,o=e.background,r=e.size,a=void 0===r?4:r,l=e.padding,u=void 0===l?4:l,s=e.stagger,c=void 0!==s&&s,f=a+u,h=u/2;return!0===c&&(f=2*a+2*u),(0,d.jsxs)("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[(0,d.jsx)("rect",{width:f,height:f,fill:void 0===o?"#ffffff":o}),(0,d.jsx)("rect",{x:h,y:h,width:a,height:a,fill:i}),c&&(0,d.jsx)("rect",{x:1.5*u+a,y:1.5*u+a,width:a,height:a,fill:i})]})})},N=["type"],Z=B({},_,K),Q=(0,i.memo)(function(e){var t=e.defs;return!t||t.length<1?null:(0,d.jsx)("defs",{"aria-hidden":!0,children:t.map(function(e){var t=e.type,n=D(e,N);return Z[t]?(0,i.createElement)(Z[t],B({key:n.id},n)):null})})}),$=(0,i.forwardRef)(function(e,t){var n=e.width,i=e.height,o=e.margin,a=e.defs,l=e.children,u=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,f=e.ariaDescribedBy,h=e.isFocusable,v=(0,r.DP)();return(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:i,role:u,"aria-label":s,"aria-labelledby":c,"aria-describedby":f,focusable:h,tabIndex:h?0:void 0,ref:t,children:[(0,d.jsx)(Q,{defs:a}),(0,d.jsx)("rect",{width:n,height:i,fill:v.background}),(0,d.jsx)("g",{transform:"translate("+o.left+","+o.top+")",children:l})]})}
1),J=(0,i.memo)(function(e){var t=e.size,n=e.color,i=e.borderWidth,o=e.borderColor;return(0,d.jsx)("circle",{r:t/2,fill:n,stroke:o,strokeWidth:i,style:{pointerEvents:"none"}})}),ee=(0,i.memo)(function(e){var t=e.x,n=e.y,o=e.symbol,a=e.size,u=e.datum,s=e.color,c=e.borderWidth,f=e.borderColor,h=e.label,v=e.labelTextAnchor,g=e.labelYOffset,m=e.ariaLabel,p=e.ariaLabelledBy,b=e.ariaDescribedBy,x=e.ariaHidden,y=e.ariaDisabled,k=e.isFocusable,C=void 0!==k&&k,w=e.tabIndex,M=e.onFocus,S=e.onBlur,L=e.testId,R=(0,r.DP)(),j=W(),A=j.animate,O=j.config,P=(0,l.zh)({transform:"translate("+t+", "+n+")",config:O,immediate:!A}),E=(0,i.useCallback)(function(e){null==M||M(u,e)},[M,u]),I=(0,i.useCallback)(function(e){null==S||S(u,e)},[S,u]);return(0,d.jsxs)(l.CS.g,{transform:P.transform,style:{pointerEvents:"none"},focusable:C,tabIndex:C?void 0===w?0:w:void 0,"aria-label":m,"aria-labelledby":p,"aria-describedby":b,"aria-disabled":y,"aria-hidden":x,onFocus:C&&M?E:void 0,onBlur:C&&S?I:void 0,"data-testid":L,children:[(0,i.createElement)(void 0===o?J:o,{size:a,color:s,datum:u,borderWidth:c,borderColor:f}),h&&(0,d.jsx)("text",{textAnchor:void 0===v?"middle":v,y:void 0===g?-12:g,style:(0,r.Ou)(R.dots.text),children:h})]})}),et=(0,i.memo)(function(e){var t=e.width,n=e.height,i=e.axis,o=e.scale,a=e.value,l=e.lineStyle,u=e.textStyle,s=e.legend,c=e.legendNode,f=e.legendPosition,h=e.legendOffsetX,v=e.legendOffsetY,g=e.legendOrientation,m=(0,r.DP)(),p=0,b=0,x=0,y=0;if("y"===i?(x=o(a),b=t):(p=o(a),y=n),s&&!c){var k=function(e){var t=e.axis,n=e.width,i=e.height,o=e.position,r=e.offsetX,a=e.offsetY,l=e.orientation,d=0,u=0,s="start";if("x"===t)switch(o){case"top-left":d=-r,u=a,s="end";break;case"top":u=-a,s="horizontal"===l?"middle":"start";break;case"top-right":d=r,u=a,s="horizontal"===l?"start":"end";break;case"right":d=r,u=i/2,s="horizontal"===l?"start":"middle";break;case"bottom-right":d=r,u=i-a,s="start";break;case"bottom":u=i+a,s="horizontal"===l?"middle":"end";break;case"bottom-left":u=i-a,d=-r,s="horizontal"===l?"end":"start";break;case"left":d=-r,u=i/2,s="horizontal"===l?"end":"middle"}else switch(o){case"top-left":d=r,u=-a,s="start";break;case"top":d=n/2,u=-a,s="horizontal"===l?"middle":"start";break;case"top-right":d=n-r,u=-a,s="horizontal"===l?"end":"start";break;case"right":d=n+r,s="horizontal"===l?"start":"middle";break;case"bottom-right":d=n-r,u=a,s="end";break;case"bottom":d=n/2,u=a,s="horizontal"===l?"middle":"end";break;case"bottom-left":d=r,u=a,s="horizontal"===l?"start":"end";break;case"left":d=-r,s="horizontal"===l?"end":"middle"}return{x:d,y:u,rotation:"vertical"===l?-90:0,textAnchor:s}}({axis:i,width:t,height:n,position:void 0===f?"top-right":f,offsetX:void 0===h?14:h,offsetY:void 0===v?14:v,orientation:void 0===g?"horizontal":g});c=(0,d.jsx)("text",{transform:"translate("+k.x+", "+k.y+") rotate("+k.rotation+")",textAnchor:k.textAnchor,dominantBaseline:"central",style:u,children:s})}return(0,d.jsxs)("g",{transform:"translate("+p+", "+x+")",children:[(0,d.jsx)("line",{x1:0,x2:b,y1:0,y2:y,stroke:m.markers.lineColor,strokeWidth:m.markers.lineStrokeWidth,style:l}),c]})}),en=(0,i.memo)(function(e){var t=e.markers,n=e.width,i=e.height,o=e.xScale,r=e.yScale;return t&&0!==t.length?t.map(function(e,t){return(0,d.jsx)(et,B({},e,{width:n,height:i,scale:"y"===e.axis?r:o}),t)}):null}),ei=function(e){var t,n=W(),o=n.animate,r=n.config,a=(t=(0,i.useRef)(),(0,i.useEffect)(function(){t.current=e},[e]),t.current),d=(0,i.useMemo)(function(){return(0,c.zl)(a,e)},[a,e]),u=(0,l.zh)({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!o}).value;return(0,l.to)(u,d)},eo=((0,i.createContext)(void 0),{basis:h.qr,basisClosed:h.Yu,basisOpen:h.IA,bundle:h.OE,cardinal:h.y8,cardinalClosed:h.ol,cardinalOpen:h.Ir,catmullRom:h.oD,catmullRomClosed:h.Q7,catmullRomOpen:h.cV,linear:h.lU,linearClosed:h.Lx,monotoneX:h.nV,monotoneY:h.ux,natural:h.Xf,step:h.GZ,stepAfter:h.UP,stepBefore:h.dy}),er=Object.keys(eo),ea=(er.filter(function(e){return e.endsWith("Closed")}),f(er,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),f(er,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),function(e){if(!eo[e])throw TypeError("'"+e+"', is not a valid curve interpolator identifier.");return eo[e]}),el=(Object.keys((Object.keys((Object.keys({ascending:h.BI,descending:h.ve,insideOut:h.$k,none:h.rM,reverse:h.xU}),{expand:h.qI,diverging:h.lB,none:h.YW,silhouette:h.e9,wiggle:h.Re}
1)),{nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:m(g.HZ),PRGn:m(g.j9),PiYG:m(g.ZO),PuOr:m(g.OK),RdBu:m(g.pC),RdGy:m(g.Wu),RdYlBu:m(g.OY),RdYlGn:m(g.mC),spectral:m(g.iZ),blues:m(g.Hu),greens:m(g.Cx),greys:m(g.MS),oranges:m(g.dw),purples:m(g.xA),reds:m(g.Uo),BuGn:m(g.g4),BuPu:m(g.iW),GnBu:m(g.Wb),OrRd:m(g.jl),PuBuGn:m(g.Vm),PuBu:m(g.Gw),PuRd:m(g.lt),RdPu:m(g.HS),YlGnBu:m(g.r2),YlGn:m(g.QE),YlOrBr:m(g.yn),YlOrRd:m(g.Mh)})),{nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:g.t5,accent:g._u,dark2:g.Hf,paired:g.vU,pastel1:g.kG,pastel2:g.ri,set1:g.Dv,set2:g.Ks,set3:g.DQ,brown_blueGreen:m(g.HZ),purpleRed_green:m(g.j9),pink_yellowGreen:m(g.ZO),purple_orange:m(g.OK),red_blue:m(g.pC),red_grey:m(g.Wu),red_yellow_blue:m(g.OY),red_yellow_green:m(g.mC),spectral:m(g.iZ),blues:m(g.Hu),greens:m(g.Cx),greys:m(g.MS),oranges:m(g.dw),purples:m(g.xA),reds:m(g.Uo),blue_green:m(g.g4),blue_purple:m(g.iW),green_blue:m(g.Wb),orange_red:m(g.jl),purple_blue_green:m(g.Vm),purple_blue:m(g.Gw),purple_red:m(g.lt),red_purple:m(g.HS),yellow_green_blue:m(g.r2),yellow_green:m(g.QE),yellow_orange_brown:m(g.yn),yellow_orange_red:m(g.Mh)}),ed={brown_blueGreen:g.ND,purpleRed_green:g.tB,pink_yellowGreen:g.jq,purple_orange:g.QS,red_blue:g.Tw,red_grey:g.yR,red_yellow_blue:g.c_,red_yellow_green:g.qJ,spectral:g.QL,blues:g.dM,greens:g.Yv,greys:g.q8,oranges:g.TE,purples:g.dn,reds:g.Q3,viridis:g.GA,inferno:g.Fb,magma:g.nJ,plasma:g.UA,warm:g.Lx,cool:g.tG,cubehelixDefault:g.SU,blue_green:g.mu,blue_purple:g.QU,green_blue:g._C,orange_red:g.V7,purple_blue_green:g.DK,purple_blue:g.Eg,purple_red:g.NM,red_purple:g.bD,yellow_green_blue:g.L9,yellow_green:g.o$,yellow_orange_brown:g._Q,yellow_orange_red:g.oK,rainbow:g.SV,sinebow:g.jy},eu=function(e,t){if(a(e)){var n=el[e];if(void 0!==n){var i=(0,v.UM)(n);return i.type="ordinal",i}if(void 0!==t&&0===e.indexOf("seq:")){var o=ed[e.slice(4)];if(void 0!==o){var r=(0,v.ex)(o).domain(t.domain());return r.type="sequential",r}}}if(p(e)){var l=(0,v.UM)(e);return l.type="ordinal",l}return function(){return e}},es=((0,v.UM)(g.DQ),{top:0,right:0,bottom:0,left:0}),ec=function(e,t,n){return void 0===n&&(n={}),(0,i.useMemo)(function(){var i=B({},es,n);return{margin:i,innerWidth:e-i.left-i.right,innerHeight:t-i.top-i.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},ef=function(){var e=(0,i.useRef)(null),t=(0,i.useState)({left:0,top:0,width:0,height:0}),n=t[0],o=t[1],r=(0,i.useState)(function(){return"u"<typeof ResizeObserver?null:new ResizeObserver(function(e){return o(e[0].contentRect)})})[0];return(0,i.useEffect)(function(){return e.current&&null!==r&&r.observe(e.current),function(){null!==r&&r.disconnect()}},[r]),[e,n]},eh=function(e){return(0,i.useMemo)(function(){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?(0,y.DC)(e.slice("5")):(0,x.GP)(e):function(e){return""+e}},[e])},ev=function(e,t){var n,i=b(e)?e:function(t){return k(t,e)};return t&&(n=b(t)?t:(0,x.GP)(t)),n?function(e){return n(i(e))}:i},eg=function(e){return b(e)?e:function(t){return k(t,e)}},em=function(e){return(0,i.useMemo)(function(){return eg(e)},[e])},ep=function(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))},eb=function(e,t,n,i){var o=Math.atan2(i-t,n-e)-Math.PI/2;return o>0?o:2*Math.PI+o},ex=function(e,t,n,i,o,r){return e<=o&&o<=e+n&&t<=r&&r<=t+i},ey=function(e,t){var n,i="touches"in t?t.touches[0]:t,o=i.clientX,r=i.clientY,a=e.getBoundingClientRect(),l=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(o-a.left)*l,(r-a.top)*l]},ek=Object.keys(_),eC=Object.keys(K),ew=function(e,t,n,i){var o=void 0===i?{}:i,r=o.dataKey,a=o.colorKey,l=void 0===a?"color":a,d=o.targetKey,u=void 0===d?"fill":d,s=[],c={};return e.length&&t.length&&(s=[].concat(e),t.forEach(function(t){for(var i,o=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return T(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(i=o()).done&&!function(){var n,o=i.value,a=o.id;if(n=o.match,"*"===n||(b(n)?n(t):!!C(n)&&M(w(r?k(t,r):t,Object.keys(n)),n))){var d=e.find(function(e){return e.id===a});if(d){if(eC.includes(d.type))if("inherit"===d.background||"inherit"===d.color){var f=k(t,l),h=d.background,v=d.color,g=a;"inherit"===d.background&&(g=g+".bg."+f,h=f),"inherit"===d.color&&(g=g+".fg."+f,v=f),S(t,u,"url(#"+g+")"),c[g]||(s.push(B({},d,{id:g,background:h,color:v})),c[g]=1)}else S(t,u,"url(#"+a+")");else if(ek.includes(d.type))if(d.colors.map(function(e){return e.color}).includes("inherit")){var m=k(t,l),p=a,x=B({},d,{colors:d.colors.map(function(e,t){return"inherit"!==e.color?e:(p=p+"."+t+"."+m,B({},e,{color:"inherit"===e.color?m:e.color}))})});x.id=p,S(t,u,"url(#"+p+")"),c[p]||(s.push(x),c[p]=1)}else S(t,u,"url(#"+a+")")}return 1}}(););})),s};function eM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0;n<t.length;n++){var i=t[n];"function"==typeof i?i(e):null!=i&&(i.current=e)}}}},96714(e,t,n){var i=n(74848);n(59681),n(4554),n(10068);var o=n(96540),r=n(87594),a=n(4642);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var d="left-to-right",u={top:0,right:0,bottom:0,left:0},s=function(e){var t=e.direction,n=e.itemsSpacing,i=e.padding,o=e.itemCount,r=e.itemWidth,a=e.itemHeight;if("number"!=typeof i&&("object"!=typeof i||Array.isArray(i)||null===i))throw Error("Invalid property padding, must be one of: number, object");var d="number"==typeof i?{top:i,right:i,bottom:i,left:i}:l({},u,i),s=d.left+d.right,c=d.top+d.bottom,f=r+s,h=a+c,v=(o-1)*n;return"row"===t?f=r*o+v+s:"column"===t&&(h=a*o+v+c),{width:f,height:h,padding:d}},c=function(e){var t=e.anchor,n=e.translateX,i=e.translateY,o=e.containerWidth,r=e.containerHeight,a=e.width,l=e.height,d=n,u=i;switch(t){case"top":d+=(o-a)/2;break;case"top-right":d+=o-a;break;case"right":d+=o-a,u+=(r-l)/2;break;case"bottom-right":d+=o-a,u+=r-l;break;case"bottom":d+=(o-a)/2,u+=r-l;break;case"bottom-left":u+=r-l;break;case"left":u+=(r-l)/2;break;case"center":d+=(o-a)/2,u+=(r-l)/2}return{x:d,y:u}},f=function(e){var t,n,i,o,r,a,l=e.direction,d=e.justify,u=e.symbolSize,s=e.symbolSpacing,c=e.width,f=e.height;switch(l){case"left-to-right":t=0,n=(f-u)/2,o=f/2,a="central",d?(i=c,r="end"):(i=u+s,r="start");break;case"right-to-left":t=c-u,n=(f-u)/2,o=f/2,a="central",d?(i=0,r="start"):(i=c-u-s,r="end");break;case"top-to-bottom":t=(c-u)/2,n=0,i=c/2,r="middle",d?(o=f,a="alphabetic"):(o=u+s,a="text-before-edge");break;case"bottom-to-top":t=(c-u)/2,n=f-u,i=c/2,r="middle",d?(o=0,a="text-before-edge"):(o=f-u-s,a="alph
1abetic")}return{symbolX:t,symbolY:n,labelX:i,labelY:o,labelAnchor:r,labelAlignment:a}},h={circle:function(e){var t=e.x,n=e.y,o=e.size,r=e.fill,a=e.opacity,l=e.borderWidth,d=e.borderColor;return(0,i.jsx)("circle",{r:o/2,cx:t+o/2,cy:n+o/2,fill:r,opacity:void 0===a?1:a,strokeWidth:void 0===l?0:l,stroke:void 0===d?"transparent":d,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.x,n=e.y,o=e.size,r=e.fill,a=e.opacity,l=e.borderWidth,d=e.borderColor;return(0,i.jsx)("g",{transform:"translate("+t+","+n+")",children:(0,i.jsx)("path",{d:"\n M"+o/2+" 0\n L"+.8*o+" "+o/2+"\n L"+o/2+" "+o+"\n L"+.2*o+" "+o/2+"\n L"+o/2+" 0\n ",fill:r,opacity:void 0===a?1:a,strokeWidth:void 0===l?0:l,stroke:void 0===d?"transparent":d,style:{pointerEvents:"none"}})})},square:function(e){var t=e.x,n=e.y,o=e.size,r=e.fill,a=e.opacity,l=e.borderWidth,d=e.borderColor;return(0,i.jsx)("rect",{x:t,y:n,fill:r,opacity:void 0===a?1:a,strokeWidth:void 0===l?0:l,stroke:void 0===d?"transparent":d,width:o,height:o,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.x,n=e.y,o=e.size,r=e.fill,a=e.opacity,l=e.borderWidth,d=e.borderColor;return(0,i.jsx)("g",{transform:"translate("+t+","+n+")",children:(0,i.jsx)("path",{d:"\n M"+o/2+" 0\n L"+o+" "+o+"\n L0 "+o+"\n L"+o/2+" 0\n ",fill:r,opacity:void 0===a?1:a,strokeWidth:void 0===l?0:l,stroke:void 0===d?"transparent":d,style:{pointerEvents:"none"}})})}},v=function(e){var t,n,u,s,c,v,g,m,p,b,x,y=e.x,k=e.y,C=e.width,w=e.height,M=e.data,S=e.direction,L=e.justify,R=e.textColor,j=e.background,W=e.opacity,A=e.symbolShape,O=void 0===A?"square":A,P=e.symbolSize,E=void 0===P?16:P,I=e.symbolSpacing,z=e.symbolBorderWidth,T=e.symbolBorderColor,B=e.onClick,D=e.onMouseEnter,H=e.onMouseLeave,_=e.toggleSerie,F=e.effects,Y=(0,o.useState)({}),G=Y[0],V=Y[1],X=(0,r.DP)(),U=(0,o.useCallback)(function(e){F&&V(F.filter(function(e){return"hover"===e.on}).reduce(function(e,t){return l({},e,t.style)},{})),null==D||D(M,e)},[D,M,F]),q=(0,o.useCallback)(function(e){F&&V(F.filter(function(e){return"hover"!==e.on}).reduce(function(e,t){return l({},e,t.style)},{})),null==H||H(M,e)},[H,M,F]),K=f({direction:void 0===S?d:S,justify:void 0!==L&&L,symbolSize:null!=(t=G.symbolSize)?t:E,symbolSpacing:void 0===I?8:I,width:C,height:w}),N=K.symbolX,Z=K.symbolY,Q=K.labelX,$=K.labelY,J=K.labelAnchor,ee=K.labelAlignment,et=[B,D,H,_].some(function(e){return void 0!==e}),en="function"==typeof O?O:h[O];return(0,i.jsxs)("g",{transform:"translate("+y+","+k+")",style:{opacity:null!=(n=G.itemOpacity)?n:void 0===W?1:W},children:[(0,i.jsx)("rect",{width:C,height:w,fill:null!=(u=G.itemBackgroun
1d)?u:void 0===j?"transparent":j,style:{cursor:et?"pointer":"auto"},onClick:function(e){null==B||B(M,e),null==_||_(M.id)},onMouseEnter:U,onMouseLeave:q}),o.createElement(en,l({id:M.id,x:N,y:Z,size:null!=(s=G.symbolSize)?s:E,fill:null!=(c=null!=(v=M.fill)?v:M.color)?c:"black",borderWidth:null!=(g=G.symbolBorderWidth)?g:void 0===z?0:z,borderColor:null!=(m=G.symbolBorderColor)?m:void 0===T?"transparent":T},M.hidden?X.legends.hidden.symbol:void 0)),(0,i.jsx)(a.EY,{textAnchor:J,style:l({},X.legends.text,{fill:null!=(p=null!=(b=null!=(x=G.itemTextColor)?x:R)?b:X.legends.text.fill)?p:"black",dominantBaseline:ee,pointerEvents:"none",userSelect:"none"},M.hidden?X.legends.hidden.text:void 0),x:Q,y:$,children:M.label})]})},g=function(e){var t=e.data,n=e.x,o=e.y,r=e.direction,a=e.padding,l=e.justify,u=e.effects,c=e.itemWidth,f=e.itemHeight,h=e.itemDirection,g=void 0===h?d:h,m=e.itemsSpacing,p=void 0===m?0:m,b=e.itemTextColor,x=e.itemBackground,y=void 0===x?"transparent":x,k=e.itemOpacity,C=void 0===k?1:k,w=e.symbolShape,M=e.symbolSize,S=e.symbolSpacing,L=e.symbolBorderWidth,R=e.symbolBorderColor,j=e.onClick,W=e.onMouseEnter,A=e.onMouseLeave,O=e.toggleSerie,P=s({itemCount:t.length,itemWidth:c,itemHeight:f,itemsSpacing:p,direction:r,padding:void 0===a?0:a}).padding,E="row"===r?c+p:0,I="column"===r?f+p:0;return(0,i.jsx)("g",{transform:"translate("+n+","+o+")",children:t.map(function(e,t){return(0,i.jsx)(v,{data:e,x:t*E+P.left,y:t*I+P.top,width:c,height:f,direction:g,justify:l,effects:u,textColor:b,background:y,opacity:C,symbolShape:w,symbolSize:M,symbolSpacing:S,symbolBorderWidth:L,symbolBorderColor:R,onClick:j,onMouseEnter:W,onMouseLeave:A,toggleSerie:O},t)})})},m=function(e){var t=e.data,n=e.containerWidth,o=e.containerHeight,r=e.translateX,a=e.translateY,l=e.anchor,d=e.direction,u=e.padding,f=void 0===u?0:u,h=e.justify,v=e.itemsSpacing,m=void 0===v?0:v,p=e.itemWidth,b=e.itemHeight,x=e.itemDirection,y=e.itemTextColor,k=e.itemBackgroun
1d,C=e.itemOpacity,w=e.symbolShape,M=e.symbolSize,S=e.symbolSpacing,L=e.symbolBorderWidth,R=e.symbolBorderColor,j=e.onClick,W=e.onMouseEnter,A=e.onMouseLeave,O=e.toggleSerie,P=e.effects,E=s({itemCount:t.length,itemsSpacing:m,itemWidth:p,itemHeight:b,direction:d,padding:f}),I=c({anchor:l,translateX:void 0===r?0:r,translateY:void 0===a?0:a,containerWidth:n,containerHeight:o,width:E.width,height:E.height}),z=I.x,T=I.y;return(0,i.jsx)(g,{data:t,x:z,y:T,direction:d,padding:f,justify:h,effects:P,itemsSpacing:m,itemWidth:p,itemHeight:b,itemDirection:x,itemTextColor:y,itemBackground:k,itemOpacity:C,symbolShape:w,symbolSize:M,symbolSpacing:S,symbolBorderWidth:L,symbolBorderColor:R,onClick:j,onMouseEnter:W,onMouseLeave:A,toggleSerie:"boolean"==typeof O?void 0:O})},p={start:"left",middle:"center",end:"right"},b=function(e,t){var n=t.data,i=t.containerWidth,o=t.containerHeight,r=t.translateX,d=t.translateY,u=t.anchor,h=t.direction,v=t.padding,g=t.justify,m=void 0!==g&&g,b=t.itemsSpacing,x=void 0===b?0:b,y=t.itemWidth,k=t.itemHeight,C=t.itemDirection,w=void 0===C?"left-to-right":C,M=t.itemTextColor,S=t.symbolSize,L=void 0===S?16:S,R=t.symbolSpacing,j=void 0===R?8:R,W=t.theme,A=s({itemCount:n.length,itemWidth:y,itemHeight:k,itemsSpacing:x,direction:h,padding:void 0===v?0:v}),O=A.width,P=A.height,E=A.padding,I=c({anchor:u,translateX:void 0===r?0:r,translateY:void 0===d?0:d,containerWidth:i,containerHeight:o,width:O,height:P}),z=I.x,T=I.y,B="row"===h?y+x:0,D="column"===h?k+x:0;e.save(),e.translate(z,T),(0,a.w6)(e,W.legends.text),n.forEach(function(t,n){var i,o=n*B+E.left,r=n*D+E.top,d=f({direction:w,justify:m,symbolSize:L,symbolSpacing:j,width:y,height:k}),u=d.symbolX,s=d.symbolY,c=d.labelX,h=d.labelY,v=d.labelAnchor,g=d.labelAlignment;e.fillStyle=null!=(i=t.color)?i:"black",e.fillRect(o+u,r+s,L,L),e.textAlign=p[v],"central"===g&&(e.textBaseline="middle"),(0,a.qu)(e,l({},W.legends.text,{fill:null!=M?M:W.legends.text.fill}),String(t.label),o+c,r+h)}),e.restore()};n.d(t,{$i:()=>m,ZG:()=>b})},79630(e,t,n){n.d(t,{bt:()=>eo});var i=n(96540),o=n(4554),r=n(14782),a=n(96714),l=n(30806),d=n(53257),u=n(97200),s=n(87594),c=n(10068),f=n(43914),h=n(74848),v=n(56534),g=n(59681),m=n(57240);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function b(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var x=[0,1],y=[0,1],k=["links","cells","points","bounds"],C=function(e){return[e.x,e.y]},w=o.kT,M="cursor",S=function(e){var t=e.points,n=e.getNodePosition,i=void 0===n?C:n,o=e.margin,r=void 0===o?w:o;return t.map(function(e){var t=i(e),n=t[0],o=t[1];return[n+r.left,o+r.top]})},L=function(e){var t=e.points,n=e.width,i=e.height,o=e.margin,r=void 0===o?w:o,a=e.debug,l=m.w.from(t),d=a?l.voronoi([0,0,r.left+n+r.right,r.top+i+r.bottom]):void 0;return{points:t,delaunay:l,voronoi:d}},R=function(e){var t=e.points,n=e.getNodePosition,o=void 0===n?C:n,r=e.width,a=e.height,l=e.margin,d=void 0===l?w:l,u=e.debug;return(0,i.useMemo)(function(){return L({points:S({points:t,margin:d,getNodePosition:o}),width:r,height:a,margin:d,debug:u})},[o,t,r,a,d,u])},j=function(e){var t=e.data,n=e.width,o=e.height,r=e.xDomain,a=e.yDomain,l=(0,i.useMemo)(function(){return(0,g.m4)().domain(r).range([0,n])},[r,n]),d=(0,i.useMemo)(function(){return(0,g.m4)().domain(a).range([0,o])},[a,o]),u=(0,i.useMemo)(function(){return t.map(function(e){return{x:l(e.x),y:d(e.y),data:e}})},[t,l,d]);return(0,i.useMemo)(function(){var e=m.w.from(u.map(function(e){return[e.x,e.y]})),t=e.voronoi([0,0,n,o]);return{points:u,delaunay:e,voronoi:t}},[u,n,o])},W=function(e){var t=e.points,n=e.delaunay,o=e.voronoi;return(0,i.useMemo)(function(){return{points:t,delaunay:n,voronoi:o}},[t,n,o])},A=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,a=void 0===r?C:r,d=e.delaunay,u=e.setCurrent,s=e.margin,c=void 0===s?w:s,f=e.detectionRadius,h=void 0===f?1/0:f,v=e.isInteractive,g=void 0===v||v,m=e.onMouseEnter,p=e.onMouseMove,b=e.onMouseLeave,x=e.onMouseDown,y=e.onMouseUp,k=e.onClick,S=e.onDoubleClick,L=e.onTouchStart,R=e.onTouchMove,j=e.onTouchEnd,W=e.enableTouchCrosshair,A=void 0!==W&&W,O=e.tooltip,P=e.tooltipPosition,E=void 0===P?M:P,I=e.tooltipAnchor,z=void 0===I?"top":I,T=(0,i.useState)(null),B=T[0],D=T[1],H=(0,i.useRef)(null);(0,i.useEffect)(function(){H.current=B},[H,B]);var _=(0,i.useCallback)(function(e){if(!t.current||0===n.length)return null;var i=(0,o.H9)(t.current,e),r=i[0],l=i[1],u=d.find(r,l),s=void 0!==u?n[u]:null;if(s&&1/0!==h){var f=a(s),v=f[0],g=f[1];(0,o.Yf)(r,l,v+c.left,g+c.top)>h&&(u=null,s=null)}return null===u||null===s?null:[u,s]},[t,d,n,a,c,h]),F=(0,l.fS)(),Y=F.showTooltipAt,G=F.showTooltipFromEvent,V=F.hideTooltip,X=(0,i.useMemo)(function(){if(O)return"cursor"===E?function(e,t){G(O(e),t,z)}:function(e){var t=a(e),n=t[0],i=t[1];Y(O(e),[n+c.left,i+c.top],z)}},[Y,G,O,E,z,a,c]),U=(0,i.useCallback)(function(e){var t=_(e);if(D(t),null==u||u(t?t[1]:null),t){var n=t[1];null==X||X(n,e),null==m||m(t[1],e)}},[_,D,u,X,m]),q=(0,i.useCallback)(function(e){var t=_(e);if(D(t),t){var n=t[0],i=t[1];
1if(null==u||u(i),null==X||X(i,e),H.current){var o=H.current,r=o[0],a=o[1];n!==r?null==b||b(a,e):null==p||p(i,e)}else null==m||m(i,e)}else null==u||u(null),null==V||V(),H.current&&(null==b||b(H.current[1],e))},[_,D,u,H,m,p,b,X,V]),K=(0,i.useCallback)(function(e){D(null),null==u||u(null),V(),b&&H.current&&b(H.current[1],e)},[D,u,H,V,b]),N=(0,i.useCallback)(function(e){var t=_(e);D(t),t&&(null==x||x(t[1],e))},[_,D,x]),Z=(0,i.useCallback)(function(e){var t=_(e);D(t),t&&(null==y||y(t[1],e))},[_,D,y]),Q=(0,i.useCallback)(function(e){var t=_(e);D(t),t&&(null==k||k(t[1],e))},[_,D,k]),$=(0,i.useCallback)(function(e){var t=_(e);D(t),t&&(null==S||S(t[1],e))},[_,D,S]),J=(0,i.useCallback)(function(e){var t=_(e);A&&(D(t),null==u||u(t?t[1]:null)),t&&(null==L||L(t[1],e))},[_,D,u,A,L]),ee=(0,i.useCallback)(function(e){var t=_(e);A&&(D(t),null==u||u(t?t[1]:null)),t&&(null==R||R(t[1],e))},[_,D,u,A,R]),et=(0,i.useCallback)(function(e){A&&(D(null),null==u||u(null)),j&&H.current&&j(H.current[1],e)},[A,D,u,j,H]);return{current:B,handleMouseEnter:g?U:void 0,handleMouseMove:g?q:void 0,handleMouseLeave:g?K:void 0,handleMouseDown:g?N:void 0,handleMouseUp:g?Z:void 0,handleClick:g?Q:void 0,handleDoubleClick:g?$:void 0,handleTouchStart:g?J:void 0,handleTouchMove:g?ee:void 0,handleTouchEnd:g?et:void 0}},O=["theme"],P=function(e){var t=e.data,n=e.width,r=e.height,a=e.margin,l=e.layers,d=void 0===l?k:l,u=e.xDomain,s=e.yDomain,c=e.enableLinks,f=e.linkLineWidth,v=e.linkLineColor,g=e.enableCells,m=e.cellLineWidth,p=void 0===m?2:m,b=e.cellLineColor,C=void 0===b?"#000000":b,w=e.enablePoints,M=e.pointSize,S=e.pointColor,L=e.role,R=e.forwardedRef,A=(0,o.Xl)(n,r,a),O=A.outerWidth,P=A.outerHeight,E=A.margin,I=j({data:t,width:A.innerWidth,height:A.innerHeight,xDomain:void 0===u?x:u,yDomain:void 0===s?y:s}),z=I.points,T=I.delaunay,B=I.voronoi,D={links:null,cells:null,points:null,bounds:null};void 0!==c&&c&&d.includes("links")&&(D.links=(0,h.jsx)("path",{stroke:void 0===v?"#bbbbbb":v,strokeWidth:void 0===f?1:f,fill:"none",d:T.render()},"links")),(void 0===g||g)&&d.includes("cells")&&(D.cells=(0,h.jsx)("path",{d:B.render(),fill:"none",stroke:C,strokeWidth:p},"cells")),(void 0===w||w)&&d.includes("points")&&(D.points=(0,h.jsx)("path",{stroke:"none",fill:void 0===S?"#666666":S,d:T.renderPoints(void 0,(void 0===M?4:M)/2)},"points")),d.includes("bounds")&&(D.bounds=(0,h.jsx)("path",{fill:"none",stroke:C,strokeWidth:p,d:B.renderBounds()},"bounds"));var H=W({points:z,delaunay:T,voronoi:B});return(0,h.jsx)(o.Ge,{width:O,height:P,margin:E,role:void 0===L?"img":L,ref:R,children:d.map(function(e,t){return void 0!==D[e]?D[e]:"function"==typeof e?(0,h.jsx)(i.Fragment,{children:(0,i.createElement)(e,H)},t):null})})},E=(0,i.forwardRef)(function(e,t){var n=e.theme,i=b(e,O);return(0,h.jsx)(o.mc,{isInteractive:!1,animate:!1,theme:n,children:(0,h.jsx)(P,p({},i,{forwardedRef:t}))})}),I=["defaultWidth","defaultHeight","onResize","debounceResize"],z=((0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,l=b(e,I);return(0,h.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,h.jsx)(E,p({},l,{width:n,height:i,ref:t}))}})}),function(e){var t=e.nodes,n=e.width,o=e.height,r=e.margin,a=void 0===r?w:r,l=e.getNodePosition,d=e.setCurrent,u=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,f=e.onMouseDown,v=e.onMouseUp,g=e.onClick,m=e.onDoubleClick,p=e.onTouchStart,b=e.onTouchMove,x=e.onTouchEnd,y=e.enableTouchCrosshair,k=e.detectionRadius,C=void 0===k?1/0:k,S=e.tooltip,L=e.tooltipPosition,j=e.tooltipAnchor,W=e.debug,O=(0,i.useRef)(null),P=R({points:t,getNodePosition:l,width:n,height:o,margin:a,debug:W}),E=P.delaunay,I=P.voronoi,z=A({elementRef:O,nodes:t,delaunay:E,margin:a,detectionRadius:C,setCurrent:d,onMouseEnter:u,onMouseMove:s,onMouseLeave:c,onMouseDown:f,onMouseUp:v,onClick:g,onDoubleClick:m,onTouchStart:p,onTouchMove:b,onTouchEnd:x,enableTouchCrosshair:void 0!==y&&y,tooltip:S,tooltipPosition:void 0===L?M:L,tooltipAnchor:void 0===j?"top":j}),T=z.current,B=z.handleMouseEnter,D=z.handleMouseMove,H=z.handleMouseLeave,_=z.handleMouseDown,F=z.handleMouseUp,Y=z.handleClick,G=z.handleDoubleClick,V=z.handleTouchStart,X=z.handleTouchMove,U=z.handleTouchEnd,q=(0,i.useMemo)(function(){if(W&&I)return I.render()},[W,I]);return(0,h.jsxs)("g",{ref:O,transform:"translate("+-a.left+","+-a.top+")",children:[W&&I&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("path",{d:q,stroke:"red",strokeWidth:1,opacity:.75}),C<1/0&&(0,h.jsx)("path",{stroke:"red",strokeWidth:.35,fill:"none",d:E.renderPoints(void 0,C)}),T&&(0,h.jsx)("path",{fill:"pink",opacity:.35,d:I.renderCell(T[0])})]}),(0,h.jsx)("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+o+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:B,onMouseMove:D,onMouseLeave:H,onMouseDown:_,onMouseUp:F,onTouchStart:V,onTouchMove:X,onTouchEnd:U,onClick:Y,onDoubleClick:G})]})}),T=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore(
1)},B=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function H(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var _,F={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:(0,i.memo)(function(e){var t=e.point;return(0,h.jsx)(l.GK,{id:(0,h.jsxs)("span",{children:["x: ",(0,h.jsx)("strong",{children:t.data.xFormatted}),", y:"," ",(0,h.jsx)("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:(0,i.memo)(function(e){var t=e.slice,n=e.axis,i=(0,s.DP)(),o="x"===n?"y":"x";return(0,h.jsx)(l.ST,{rows:t.points.map(function(e){return[(0,h.jsx)(l.vu,{color:e.seriesColor,style:i.tooltip.chip},"chip"),e.seriesId,(0,h.jsx)("span",{style:i.tooltip.tableCellValue,children:e.data[o+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},Y=D({},F,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:r.zY,axisLeft:r.zY,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),G=D({},F,{pixelRatio:"u">typeof window&&null!=(_=window.devicePixelRatio)?_:1,axisTop:null,axisRight:null,axisBottom:r.zY,axisLeft:r.zY}),V=function(e){var t=e.componentId,n=e.enableSlices,o=e.points,r=e.width,a=e.height;return(0,i.useMemo)(function(){if("x"===n){var e=new Map;return o.forEach(function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))}),Array.from(e.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,n,i){var o,l,d=e[0],u=e[1],s=i[n-1],c=i[n+1];return o=s?d-(d-s[0])/2:d,l=c?d-o+(c[0]-d)/2:r-o,{id:"slice:"+t+":"+d,x0:o,x:d,y0:0,y:0,width:l,height:a,points:u.reverse()}})}if("y"===n){var i=new Map;return o.forEach(function(e){null!==e.data.x&&null!==e.data.y&&(i.has(e.y)?i.get(e.y).push(e):i.set(e.y,[e]))}),Array.from(i.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var i,o,l=e[0],d=e[1],u=n[t-1],s=n[t+1];return i=u?l-(l-u[0])/2:l,o=s?l-i+(s[0]-l)/2:a-i,{id:l,x0:0,x:0,y0:i,y:l,width:r,height:o,points:d.reverse()}})}return[]},[t,n,a,o,r])},X=function(e){var t,n,r,a,l,h,v,g,m,p,b=e.data,x=e.xScale,y=void 0===x?F.xScale:x,k=e.xFormat,C=e.yScale,w=void 0===C?F.yScale:C,M=e.yFormat,S=e.width,L=e.height,R=e.colors,j=void 0===R?F.colors:R,W=e.curve,A=void 0===W?F.curve:W,O=e.areaBaselineValue,P=void 0===O?F.areaBaselineValue:O,E=e.pointColor,I=void 0===E?F.pointColor:E,z=e.pointBorderColor,T=void 0===z?F.pointBorderColor:z,B=e.enableSlices,H=void 0===B?Y.enableSlices:B,_=e.initialHiddenIds,G=void 0===_?Y.initialHiddenIds:_,X=(0,i.useState)(u("line"))[0],U=(0,o.d_)(k),q=(0,o.d_)(M),K=(0,c.m1)(j,"id"),N=(0,s.DP)(),Z=(0,c.nz)(I,N),Q=(0,c.nz)(T,N),$=(0,i.useState)(null!=G?G:[]),J=$[0],ee=$[1],et=(0,i.useMemo)(function(){return(0,f._6)(b.filter(function(e){return -1===J.indexOf(e.id)}),y,w,S,L)},[b,J,y,w,S,L]),en=et.xScale,ei=et.yScale,eo=et.series,er=(0,i.useMemo)(function(){var e=b.map(function(e){return{id:e.id,label:""+e.id,color:K(e)}}),t=e.map(function(e){return D({},eo.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return!!e.id});return{legendData:e.map(function(e){return D({},e,{hidden:!t.find(function(t){return t.id===e.id})})}).reverse(),series:t}},[b,eo,K]),ea=er.legendData,el=er.series,ed=(0,i.useCallback)(function(e){ee(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),eu=(n=(t={series:el,getPointColor:Z,getPointBorderColor:Q,formatX:U,formatY:q}).series,r=t.getPointColor,a=t.getPointBorderColor,l=t.formatX,h=t.formatY,(0,i.useMemo)(function(){return n.reduce(function(e,t,n){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(i,o){var d={id:t.id+"."+o,indexInSeries:o,absIndex:e.length+o,seriesIndex:n,seriesId:t.id,seriesColor:t.color,x:i.position.x,y:i.position.y,data:D({},i.data,{xFormatted:l(i.data.x),yFormatted:h(i.data.y)})};return d.color=r({series:t,point:d}),d.borderColor=a(d),d}))},[])},[n,r,a,l,h])),es=V({componentId:X,enableSlices:H,points:eu,width:S,height:L});return{legendData:ea,toggleSeries:ed,lineGenerator:(0,i.useMemo)(function(){return(0,d.n8)().defined(function(e){return null!==e.x&&null!==e.
1y}).x(function(e){return e.x}).y(function(e){return e.y}).curve((0,o.Lp)(A))},[A]),areaGenerator:(g=(v={curve:A,yScale:ei,areaBaselineValue:P}).curve,m=v.yScale,p=v.areaBaselineValue,(0,i.useMemo)(function(){return(0,d.Wc)().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve((0,o.Lp)(g)).y0(m(p))},[g,m,p])),getColor:K,series:el,xScale:en,yScale:ei,slices:es,points:eu}},U=function(e){var t=e.areaBlendMode,n=e.areaOpacity,i=e.color,r=e.fill,a=e.path,l=(0,o.mk)(),d=l.animate,u=l.config,s=(0,o.wA)(a),c=(0,v.zh)({color:i,config:u,immediate:!d});return(0,h.jsx)(v.CS.path,{d:s,fill:r||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},q=(0,i.memo)(function(e){var t=e.areaGenerator,n=e.areaOpacity,i=e.areaBlendMode,o=e.series.slice(0).reverse();return(0,h.jsx)("g",{children:o.map(function(e){return(0,h.jsx)(U,D({path:t(e.data.map(function(e){return e.position}))},D({areaOpacity:n,areaBlendMode:i},e)),""+e.id)})})}),K=(0,i.memo)(function(e){var t=e.lineGenerator,n=e.points,r=e.color,a=e.thickness,l=(0,i.useMemo)(function(){return t(n)},[t,n]),d=(0,o.wA)(l);return(0,h.jsx)(v.CS.path,{d:d,fill:"none",strokeWidth:a,stroke:r})}),N=(0,i.memo)(function(e){var t=e.series,n=e.lineGenerator,i=e.lineWidth;return(0,h.jsx)(h.Fragment,{children:t.slice(0).reverse().map(function(e){var t=e.id,o=e.data,r=e.color;return(0,h.jsx)(K,{points:o.map(function(e){return e.position}),lineGenerator:n,color:r,thickness:i},t)})})}),Z=(0,i.memo)(function(e){var t=e.slice,n=e.slices,o=e.axis,r=e.debug,a=e.tooltip,d=e.isCurrent,u=e.setCurrent,s=e.onMouseEnter,c=e.onMouseMove,f=e.onMouseLeave,v=e.onMouseDown,g=e.onMouseUp,m=e.onClick,p=e.onDoubleClick,b=e.onTouchStart,x=e.onTouchMove,y=e.onTouchEnd,k=(0,l.fS)(),C=k.showTooltipFromEvent,w=k.hideTooltip,M=(0,i.useCallback)(function(e){C((0,i.createElement)(a,{slice:t,axis:o}),e,"right"),u(t),null==s||s(t,e)},[C,a,t,o,u,s]),S=(0,i.useCallback)(function(e){C((0,i.createElement)(a,{slice:t,axis:o}),e,"right"),null==c||c(t,e)},[C,a,t,o,c]),L=(0,i.useCallback)(function(e){w(),u(null),null==f||f(t,e)},[w,u,f,t]),R=(0,i.useCallback)(function(e){null==v||v(t,e)},[t,v]),j=(0,i.useCallback)(function(e){null==g||g(t,e)},[t,g]),W=(0,i.useCallback)(function(e){null==m||m(t,e)},[t,m]),A=(0,i.useCallback)(function(e){null==p||p(t,e)},[t,p]),O=(0,i.useCallback)(function(e){C((0,i.createElement)(a,{slice:t,axis:o}),e,"right"),u(t),null==b||b(t,e)},[o,b,u,C,t,a]),P=(0,i.useCallback)(function(e){var r=e.touches[0],l=document.elementFromPoint(r.clientX,r.clientY),d=null==l?void 0:l.getAttribute("data-ref");if(d){var s=n.find(function(e){return e.id===d});s&&(C((0,i.createElement)(a,{slice:s,axis:o}),e,"right"),u(s))}null==x||x(t,e)},[o,x,u,C,t,n,a]),E=(0,i.useCallback)(function(e){w(),u(null),null==y||y(t,e)},[w,u,y,t]);return(0,h.jsx)("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:+!!r,strokeOpacity:.75,fill:"red",fillOpacity:d&&r?.35:0,onMouseEnter:M,onMouseMove:S,onMouseLeave:L,onMouseDown:R,onMouseUp:j,onClick:W,onDoubleClick:A,onTouchStart:O,onTouchMove:P,onTouchEnd:E,"data-ref":t.id})}),Q=(0,i.memo)(function(e){var t=e.slices,n=e.axis,i=e.debug,o=e.tooltip,r=e.current,a=e.setCurrent,l=e.onMouseEnter,d=e.onMouseMove,u=e.onMouseLeave,s=e.onMouseDown,c=e.onMouseUp,f=e.onClick,v=e.onDoubleClick,g=e.onTouchStart,m=e.onTouchMove,p=e.onTouchEnd;return(0,h.jsx)(h.Fragment,{children:t.map(function(e){return(0,h.jsx)(Z,{slice:e,slices:t,axis:n,debug:i,tooltip:o,setCurrent:a,isCurrent:null!==r&&r.id===e.id,onMouseEnter:l,onMouseMove:d,onMouseLeave:u,onMouseDown:s,onMouseUp:c,onClick:f,onDoubleClick:v,onTouchStart:g,onTouchMove:m,onTouchEnd:p},e.id)})})}),$=(0,i.memo)(function(e){var t=e.points,n=e.symbol,r=e.size,a=e.borderWidth,d=e.enableLabel,u=e.label,s=e.labelYOffset,c=e.isFocusable,f=e.setCurrentPoint,v=e.tooltip,g=e.margin,m=e.ariaLabel,p=e.ariaLabelledBy,b=e.ariaDescribedBy,x=e.ariaHidden,y=e.ariaDisabled,k=(0,o.gD)(u),C=(0,l.fS)(),w=C.showTooltipAt,M=C.hideTooltip,S=t.slice(0).sort(function(e,t){return e.indexInSeries-t.indexInSeries}).sort(function(e,t){return t.seriesIndex-e.seriesIndex}).map(function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:d?k(e):null,ariaLabel:m?m(e):void 0,ariaLabelledBy:p?p(e):void 0,ariaDescribedBy:b?b(e):void 0,ariaHidden:x?x(e):void 0,ariaDisabled:y?y(e):void 0,onFocus:c?function(){f(e),w((0,i.createElement)(v,{point:e}),[g.left+e.x,g.top+e.y],"top")}:void 0,onBlur:c?function(){f(null),M()}:void 0}});return(0,h.jsx)("g",{children:S.map(function(e){return(0,h.jsx)(o.sg,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:a,borderColor:e.stroke,label:e.label,labelYOffset:s,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:c,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)})})}),J=(0,i.memo)(function(e){var t=e.points,n=e.width,o=e.height,r=e.margin,a=e.setCurrent,d=e.onMouseEnter,u=e.onMouseMove,s=e.onMouseLeave,c=e.onMouseDown,f=e.onMouseUp,v=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,p=e.onTouchMove,b=e.onTouchEnd,x=e.tooltip,y=e.debug,k=e.enableTouchCrosshair,C=(0,l.fS)(),w=C.showTooltipAt,M=C.hideTooltip,S=(0,i.useCallback)(function(e,t){w((0,i.createElement)(x,{point:e}),[e.x+r.left,e.y+r.top],"top"),null==d||d(e,t)},[w,x,d,r]),L=(0,i.useCallback)(function(e,t){w((0,i.createElement)(x,{point:e}),[e.x+r.left,e.y+r.top],"top"),null==u||u(e,t)},[w,x,r.left,r.top,u]),R=(0,i.useCallback)(function(e,t){M(),null==s||s(e,t)},[M,s]),j=(0,i.useCallback)(function(e,t){null==c||c(e,t)},[c]),W=(0,i.useCallback)(function(e,t){null==f||f(e,t)},[f]),A=(0,i.useCallback)(function(e,t){null==v||v(e,t)},[v]),O=(0,i.useCallback)(function(e,t){null==g||g(e,t)},[g]),P=(0,i.useCallback)(function(e,t){w((0,i.createElement)(x,{point:e}),[e.x+r.left,e.y+r.top],"top"),null==m||m(e,t)},[r.left,r.top,m,w,x]),E=(0,i.useCallback)(function(e,t){w((0,i.createElement)(x,{point:e}),[e.x+r.left,e.y+r.top],"top"),null==p||p(e,t)},[r.left,r.top,p,w,x]),I=(0,i.useCallback)(function(e,t){M(),null==b||b(e,t)},[b,M]);return(0,h.jsx)(z,{nodes:t,width:n,height:o,setCurrent:a,onMouseEnter:S,onMouseMove:L,onMouseLeave:R,onMouseDown:j,onMouseUp:W,onClick:A,onDoubleClick:O,onTouchStart:P,onTouchMove:E,onTouchEnd:I,enableTouchCrosshair:k,debug:y})}),ee=["isInteractive","animate","motionConfig","theme","renderWrapper"];function et(e){var t=e.data,n=e.xScale,d=void 0===n?Y.xScale:n,u=e.xFormat,s=e.yScale,c=void 0===s?Y.yScale:s,f=e.yFormat,v=e.curve,g=void 0===v?Y.curve:v,m=e.margin,p=e.width,b=e.height,x=e.colors,y=void 0===x?Y.colors:x,k=e.lineWidth,C=void 0===k?Y.lineWidth:k,w=e.layers,M=void 0===w?Y.layers:w,S=e.enableArea,L=void 0===S?Y.enableArea:S,R=e.areaBaselineValue,j=void 0===R?Y.areaBaselineValue:R,W=e.areaOpacity,A=void 0===W?Y.areaOpacity:W,O=e.areaBlendMode,P=void 0===O?Y.areaBlendMode:O,E=e.enablePoints,I=void 0===E?Y.enablePoints:E,z=e.pointSymbol,T=e.pointSize,B=void 0===T?Y.pointSize:T,H=e.pointColor,_=void 0===H?Y.pointColor:H,F=e.pointBorderWidth,G=void 0===F?Y.pointBorderWidth:F,V=e.pointBorderColor,U=void 0===V?Y.pointBorderColor:V,K=e.enablePointLabel,Z=void 0===K?Y.enablePointLabel:K,ee=e.pointLabel,et=void 0===ee?Y.pointLabel:ee,en=e.pointLabelYOffset,ei=e.enableGridX,eo=void 0===ei?Y.enableGridX:ei,er=e.gridXValues,ea=e.enableGridY,el=void 0===ea?Y.enableGridY:ea,ed=e.gridYValues,eu=e.axisTo
1p,es=e.axisRight,ec=e.axisBottom,ef=void 0===ec?Y.axisBottom:ec,eh=e.axisLeft,ev=void 0===eh?Y.axisLeft:eh,eg=e.defs,em=void 0===eg?Y.defs:eg,ep=e.fill,eb=void 0===ep?Y.fill:ep,ex=e.markers,ey=e.legends,ek=void 0===ey?Y.legends:ey,eC=e.isInteractive,ew=void 0===eC?Y.isInteractive:eC,eM=e.useMesh,eS=void 0===eM?Y.useMesh:eM,eL=e.debugMesh,eR=void 0===eL?Y.debugMesh:eL,ej=e.onMouseEnter,eW=e.onMouseMove,eA=e.onMouseLeave,eO=e.onMouseDown,eP=e.onMouseUp,eE=e.onClick,eI=e.onDoubleClick,ez=e.onTouchStart,eT=e.onTouchMove,eB=e.onTouchEnd,eD=e.tooltip,eH=void 0===eD?Y.tooltip:eD,e_=e.enableSlices,eF=void 0===e_?Y.enableSlices:e_,eY=e.debugSlices,eG=void 0===eY?Y.debugSlices:eY,eV=e.sliceTooltip,eX=void 0===eV?Y.sliceTooltip:eV,eU=e.enableCrosshair,eq=void 0===eU?Y.enableCrosshair:eU,eK=e.crosshairType,eN=void 0===eK?Y.crosshairType:eK,eZ=e.enableTouchCrosshair,eQ=void 0===eZ?Y.enableTouchCrosshair:eZ,e$=e.role,eJ=void 0===e$?Y.role:e$,e0=e.ariaLabel,e1=e.ariaLabelledBy,e2=e.ariaDescribedBy,e4=e.isFocusable,e5=void 0===e4?Y.isFocusable:e4,e6=e.pointAriaLabel,e8=e.pointAriaLabelledBy,e3=e.pointAriaDescribedBy,e9=e.pointAriaHidden,e7=e.pointAriaDisabled,te=e.initialHiddenIds,tt=void 0===te?Y.initialHiddenIds:te,tn=e.forwardedRef,ti=(0,o.Xl)(p,b,m),to=ti.margin,tr=ti.innerWidth,ta=ti.innerHeight,tl=ti.outerWidth,td=ti.outerHeight,tu=X({data:t,xScale:d,xFormat:u,yScale:c,yFormat:f,width:tr,height:ta,colors:y,curve:g,areaBaselineValue:j,pointColor:_,pointBorderColor:U,enableSlices:eF,initialHiddenIds:tt}),ts=tu.legendData,tc=tu.toggleSeries,tf=tu.lineGenerator,th=tu.areaGenerator,tv=tu.series,tg=tu.xScale,tm=tu.yScale,tp=tu.slices,tb=tu.points,tx=(0,i.useState)(null),ty=tx[0],tk=tx[1],tC=(0,i.useState)(null),tw=tC[0],tM=tC[1],tS={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};M.includes("grid")&&(eo||el)&&(tS.grid=(0,h.jsx)(r.xA,{width:tr,height:ta,xScale:eo?tg:null,yScale:el?tm:null,xValues:er,yValues:ed},"grid")),M.includes("markers")&&Array.isArray(ex)&&ex.length>0&&(tS.markers=(0,h.jsx)(o.U9,{markers:ex,width:tr,height:ta,xScale:tg,yScale:tm},"markers")),M.includes("axes")&&(tS.axes=(0,h.jsx)(r.Y5,{xScale:tg,yScale:tm,width:tr,height:ta,top:eu,right:es,bottom:ef,left:ev},"axes")),M.includes("lines")&&(tS.lines=(0,h.jsx)(N,{series:tv,lineGenerator:tf,lineWidth:C},"lines")),M.includes("legends")&&ek.length>0&&(tS.legends=(0,h.jsx)(i.Fragment,{children:ek.map(function(e,t){return(0,h.jsx)(a.$i,D({},e,{containerWidth:tr,containerHeight:ta,data:e.data||ts,toggleSerie:e.toggleSerie?tc:void 0}),t)})},"legends"));var tL=(0,o.kc)(em,tv,eb);L&&(tS.areas=(0,h.jsx)(q,{areaGenerator:th,areaOpacity:A,areaBlendMode:P,series:tv},"areas")),ew&&!1!==eF&&(tS.slices=(0,h.jsx)(Q,{slices:tp,axis:eF,debug:eG,tooltip:eX,current:tw,setCurrent:tM,onMouseEnter:ej,onMouseMove:eW,onMouseLeave:eA,onMouseDown:eO,onMouseUp:eP,onClick:eE,onDoubleClick:eI,onTouchStart:ez,onTouchMove:eT,onTouchEnd:eB},"slices")),I&&(tS.points=(0,h.jsx)($,{points:tb,symbol:z,size:B,borderWidth:G,enableLabel:Z,label:et,labelYOffset:en,isFocusable:e5,setCurrentPoint:tk,tooltip:eH,margin:to,ariaLabel:e6,ariaLabelledBy:e8,ariaDescribedBy:e3,ariaHidden:e9,ariaDisabled:e7},"points")),ew&&eq&&(null!==ty&&(tS.crosshair=(0,h.jsx)(l.B1,{width:tr,height:ta,x:ty.x,y:ty.y,type:eN},"crosshair")),null!==tw&&eF&&(tS.crosshair=(0,h.jsx)(l.B1,{width:tr,height:ta,x:tw.x,y:tw.y,type:eF},"crosshair"))),ew&&eS&&!1===eF&&(tS.mesh=(0,h.jsx)(J,{points:tb,width:tr,height:ta,margin:to,setCurrent:tk,onMouseEnter:ej,onMouseMove:eW,onMouseLeave:eA,onMouseDown:eO,onMouseUp:eP,onClick:eE,onDoubleClick:eI,onTouchStart:ez,onTouchMove:eT,onTouchEnd:eB,tooltip:eH,enableTouchCrosshair:eQ,debug:eR},"mesh"));var tR=D({},e,{innerWidth:tr,innerHeight:ta,series:tv,slices:tp,points:tb,xScale:tg,yScale:tm,lineGenerator:tf,areaGenerator:th,currentPoint:ty,setCurrentPoint:tk,currentSlice:tw,setCurrentSlice:tM});return(0,h.jsx)(o.Ge,{defs:tL,width:tl,height:td,margin:to,role:eJ,ariaLabel:e0,ariaLabelledBy:e1,ariaDescribedBy:e2,isFocusable:e5,ref:tn,children:M.map(function(e,t){return"function"==typeof e?(0,h.jsx)(i.Fragment,{children:e(tR)},t):tS[e]})})}var en=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?Y.isInteractive:n,r=e.animate,a=void 0===r?Y.animate:r,l=e.motionConfig,d=void 0===l?Y.motionConfig:l,u=e.theme,s=e.renderWrapper,c=H(e,ee);return(0,h.jsx)(o.mc,{animate:a,isInteractive:i,motionConfig:d,renderWrapper:s,theme:u,children:(0,h.jsx)(et,D({isInteractive:i},c,{forwardedRef:t}))})}),ei=["defaultWidth","defaultHeight","onResize","debounceResize"],eo=(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,l=H(e,ei);return(0,h.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.he
1ight;return(0,h.jsx)(en,D({width:n,height:i},l,{ref:t}))}})}),er=["isInteractive","renderWrapper","theme"],ea=function(e){var t=e.width,n=e.height,d=e.margin,u=e.pixelRatio,c=void 0===u?G.pixelRatio:u,f=e.data,v=e.xScale,g=void 0===v?G.xScale:v,m=e.xFormat,p=e.yScale,b=void 0===p?G.yScale:p,x=e.yFormat,y=e.curve,k=void 0===y?G.curve:y,C=e.layers,w=void 0===C?G.layers:C,M=e.colors,S=void 0===M?G.colors:M,L=e.lineWidth,j=void 0===L?G.lineWidth:L,W=e.enableArea,A=void 0===W?G.enableArea:W,O=e.areaBaselineValue,P=void 0===O?G.areaBaselineValue:O,E=e.areaOpacity,I=void 0===E?G.areaOpacity:E,z=e.enablePoints,H=void 0===z?G.enablePoints:z,_=e.pointSize,F=void 0===_?G.pointSize:_,Y=e.pointColor,V=void 0===Y?G.pointColor:Y,U=e.pointBorderWidth,q=void 0===U?G.pointBorderWidth:U,K=e.pointBorderColor,N=void 0===K?G.pointBorderColor:K,Z=e.enableGridX,Q=void 0===Z?G.enableGridX:Z,$=e.gridXValues,J=e.enableGridY,ee=void 0===J?G.enableGridY:J,et=e.gridYValues,en=e.axisTop,ei=e.axisRight,eo=e.axisBottom,er=void 0===eo?G.axisBottom:eo,ea=e.axisLeft,el=void 0===ea?G.axisLeft:ea,ed=e.legends,eu=void 0===ed?G.legends:ed,es=e.isInteractive,ec=void 0===es?G.isInteractive:es,ef=e.debugMesh,eh=void 0===ef?G.debugMesh:ef,ev=e.onMouseLeave,eg=e.onMouseDown,em=e.onMouseUp,ep=e.onClick,eb=e.onDoubleClick,ex=e.tooltip,ey=void 0===ex?G.tooltip:ex,ek=e.role,eC=e.forwardedRef,ew=(0,i.useRef)(null),eM=(0,o.Xl)(t,n,d),eS=eM.margin,eL=eM.innerWidth,eR=eM.innerHeight,ej=eM.outerWidth,eW=eM.outerHeight,eA=(0,s.DP)(),eO=(0,i.useState)(null),eP=eO[0],eE=eO[1],eI=X({data:f,xScale:g,xFormat:m,yScale:b,yFormat:x,width:eL,height:eR,colors:S,curve:k,areaBaselineValue:P,pointColor:V,pointBorderColor:N}),ez=eI.lineGenerator,eT=eI.areaGenerator,eB=eI.series,eD=eI.xScale,eH=eI.yScale,e_=eI.points,eF=(0,i.useMemo)(function(){return{innerWidth:eL,innerHeight:eR,series:eB,points:e_,xScale:eD,yScale:eH,lineWidth:j,lineGenerator:ez,areaGenerator:eT,currentPoint:eP,setCurrentPoint:eE}},[eL,eR,eB,e_,eD,eH,j,ez,eT,eP,eE]),eY=R({points:e_,width:eL,height:eR,debug:eh}),eG=eY.delaunay,eV=eY.voronoi;(0,i.useEffect)(function(){if(null!==ew.current){ew.current.width=ej*c,ew.current.height=eW*c;var e=ew.current.getContext("2d");e.scale(c,c),e.fillStyle=eA.background,e.fillRect(0,0,ej,eW),e.translate(eS.left,eS.top),w.forEach(function(t){"function"==typeof t&&t(e,eF);var n,i=null!=(n=eA.grid.line.strokeWidth)?n:0;if("grid"===t&&"string"!=typeof i&&i>0&&(e.lineWidth=i,e.strokeStyle=eA.grid.line.stroke,Q&&(0,r.xu)(e,{width:eL,height:eR,scale:eD,axis:"x",values:$}),ee&&(0,r.xu)(e,{width:eL,height:eR,scale:eH,axis:"y",values:et})),"axes"===t&&(0,r.ZY)(e,{xScale:eD,yScale:eH,width:eL,height:eR,top:en,right:ei,bottom:er,left:el,theme:eA}),"areas"===t&&!0===A){e.save(),e.globalAlpha=I,eT.context(e);for(var o=eB.length-1;o>=0;o--)e.fillStyle=eB[o].color,e.beginPath(),eT(eB[o].data.map(function(e){return e.position})),e.fill();e.restore()}if("lines"===t&&(ez.context(e),eB.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=j,e.beginPath(),ez(t.data.map(function(e){return e.position})),e.stroke()})),"points"===t&&!0===H&&F>0&&e_.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,F/2,0,2*Math.PI),e.fill(),q>0&&(e.strokeStyle=t.borderColor,e.lineWidth=q,e.stroke())}),"mesh"===t&&!0===eh&&void 0!==eV&&(T(e,eV),eP&&B(e,eV,eP.absIndex)),"legends"===t){var l=eB.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();eu.forEach(function(t){(0,a.ZG)(e,D({},t,{data:t.data||l,containerWidth:eL,containerHeight:eR,theme:eA}))})}})}},[ew,eL,ej,eR,eW,eS.left,eS.top,c,w,eA,ez,eB,eD,eH,Q,$,ee,et,en,ei,er,el,eu,e_,H,F,q,eP,eF,eh,A,eT,I,j,eV]);var eX=(0,i.useCallback)(function(e){if(!ew.current)return null;var t=(0,o.H9)(ew.current,e),n=t[0],i=t[1];return(0,o.u7)(eS.left,eS.top,eL,eR,n,i)?e_[eG.find(n-eS.left,i-eS.top)]:null},[ew,eS,eL,eR,eG,e_]),eU=(0,l.fS)(),eq=eU.showTooltipFromEvent,eK=eU.hideTooltip,eN=(0,i.useCallback)(function(e){var t=eX(e);eE(t),t?eq((0,i.createElement)(ey,{point:t}),e):eK()},[eX,eE,eq,eK,ey]),eZ=(0,i.useCallback)(function(e){eK(),eE(null),eP&&(null==ev||ev(eP,e))},[eK,eE,ev,eP]),eQ=(0,i.useCallback)(function(e){if(eg){var t=eX(e);t&&eg(t,e)}},[eX,eg]),e$=(0,i.useCallback)(function(e){if(em){var t=eX(e);t&&em(t,e)}},[eX,em]),eJ=(0,i.useCallback)(function(e){if(ep){var t=eX(e);t&&ep(t,e)}},[eX,ep]),e0=(0,i.useCallback)(function(e){if(eb){var t=eX(e);t&&eb(t,e)}},[eX,eb]);return(0,h.jsx)("canvas",{ref:(0,o.Px)(ew,eC),width:ej*c,height:eW*c,style:{width:ej,height:eW,cursor:ec?"auto":"normal"},onMouseEnter:ec?eN:void 0,onMouseMove:ec?eN:void 0,onMouseLeave:ec?eZ:void 0,onMouseDown:ec?eQ:void 0,onMouseUp:ec?e$:void 0,onClick:ec?eJ:void 0,onDoubleClick:ec?e0:void 0,role:ek})},el=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=e.renderWrapper,r=e.theme,a=H(e,er);return(0,h.jsx)(o.mc,{isInteractive:n,renderWrapper:i,theme:r,animate:!1,children:(0,h.jsx)(ea,D({},a,{forwardedRef:t}))})}),ed=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,i.forwardRef)(function(e,t){var n=e.defaultWidth;e.defaultHeight;var i=e.onResize,r=e.debounceResize,a=H(e,ed);return(0,h.jsx)(o.KF,{defaultWidth:n,defaultHeight:n,onResize:i,debounceResize:r,children:function(e){var n=e.width,i=e.he
1ight;return(0,h.jsx)(el,D({width:n,height:i},a,{ref:t}))}})})},2486(e,t,n){n.d(t,{fO:()=>ed});var i=n(96540),o=n(4554),r=n(56534),a=n(87594),l=n(4642),d=n(74848),u=n(10068),s=n(53257);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var f={pointerEvents:"none"},h=function(e){var t=e.label,n=e.style,i=(0,a.DP)();return(0,d.jsx)(r.CS.g,{transform:n.transform,opacity:n.progress,style:f,children:(0,d.jsx)(l.EY,{textAnchor:"middle",dominantBaseline:"central",style:c({},i.labels.text,{fill:n.textColor}),children:t})})},v=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},g=function(e,t){return e.filter(function(e){return Math.abs((0,o.nv)(e.arc.endAngle-e.arc.startAngle))>=t})},m={startAngle:{enter:function(e){return c({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return c({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return c({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return c({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return c({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return c({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return c({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return c({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return c({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return c({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return c({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return c({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return c({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return c({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return c({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return c({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},p=function(e,t){return(0,i.useMemo)(function(){var n=m[e];return{enter:function(e){return c({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return c({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return c({progress:0},n.leave(e.arc),t?t.leave(e):{})}}},[e,t])},b=function(e,t){var n=(0,o.Ex)(e)-Math.PI/2,i=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return(0,o.B2)(n,i)},x=function(e,t,n,i){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var a,l=(0,o.mk)(),d=l.animate,u=l.config,s=p(n,i);return{transition:(0,r.pn)(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:u,immediate:!d}),interpolate:(a=t,function(e,t,n,i){return(0,r.to)([e,t,n,i],function(e,t,n,i){var o=b({startAngle:e,endAngle:t,innerRadius:n,outerRadius:i},a);return"translate("+o.x+","+o.y+")"})})}},y=function(e){var t=e.data,n=e.offset,o=void 0===n?.5:n,r=e.skipAngle,a=void 0===r?0:r,l=e.computeExtraProps,d=void 0===l?function(){return{}}:l;return(0,i.useMemo)(function(){return g(t,a).map(function(e){var t=b(e.arc,o);return c({},d(e),{x:t.x,y:t.y,data:e})})},[t,o,a,d])},k=function(e){var t=e.center,n=e.data,r=e.transitionMode,l=e.label,s=e.radiusOffset,c=e.skipAngle,f=e.skipRadius,v=e.textColor,g=e.component,m=(0,o.Ob)(l),p=(0,a.DP)(),b=(0,u.nz)(v,p),y=x((0,i.useMemo)(function(){return n.filter(function(e){var t=Math.abs((0,o.nv)(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=c&&n>=f})},[n,c,f]),s,r),k=y.transition,C=y.interpolate,w=void 0===g?h:g;return(0,d.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:k(function(e,t){return(0,i.createElement)(w,{key:t.id,datum:t,label:m(t),style:{progress:e.progress,transform:C(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:b(t)}})})})},C=function(e,t,n){(0,l.w6)(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(t){(0,l.qu)(e,c({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)})},w=function(e){var t=e.data,n=e.offset,r=e.skipAngle,l=e.label,d=e.textColor,s=(0,o.Ob)(l),c=(0,a.DP)(),f=(0,u.nz)(d,c);return y({data:t,offset:n,skipAngle:r,computeExtraProps:(0,i.useCallback)(function(e){return{label:s(e),textColor:f(e)}},[s,f])})},M=function(e){var t=e.label,n=e.style,i=(0,a.DP)();return(0,d.jsxs)(r.CS.g,{opacity:n.opacity,children:[(0,d.jsx)(r.CS.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,d.jsx)(l.EY,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:c({},i.labels.text,{fill:n.textColor}),children:t})]})},S=function(e){var t=v(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);
1return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},L=function(e,t,n,i){var r,a,l=v(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),d=(0,o.B2)(l,e.outerRadius+t),u=(0,o.B2)(l,e.outerRadius+t+n);return l<Math.PI/2||l>1.5*Math.PI?(r="after",a={x:u.x+i,y:u.y}):(r="before",a={x:u.x-i,y:u.y}),{side:r,points:[d,u,a]}},R=(0,s.n8)().x(function(e){return e.x}).y(function(e){return e.y}),j=function(e,t,n,i,o,a,l){return(0,r.to)([e,t,n,i,o,a,l],function(e,t,n,i,o,r,a){return R(L({startAngle:e,endAngle:t,innerRadius:n,outerRadius:i},o,r,a).points)})},W=function(e,t,n,i){return(0,r.to)([e,t,n,i],function(e,t,n,i){return S({startAngle:e,endAngle:t,innerRadius:n,outerRadius:i})})},A=function(e,t,n,i,o,a,l,d){return(0,r.to)([e,t,n,i,o,a,l,d],function(e,t,n,i,o,r,a,l){var d=L({startAngle:e,endAngle:t,innerRadius:n,outerRadius:i},o,r,a),u=d.points,s=d.side,c=u[2];return"before"===s?c.x-=l:c.x+=l,"translate("+c.x+","+c.y+")"})},O=function(e){var t,n,l,d,s,c,f,h,v=e.data,m=e.offset,p=e.diagonalLength,b=e.straightLength,x=e.skipAngle,y=e.textOffset,k=e.linkColor,C=e.textColor,w=(0,o.mk)(),M=w.animate,S=w.config,L=(0,a.DP)(),R=(0,u.nz)(k,L),O=(0,u.nz)(C,L),P=(t=void 0===x?0:x,(0,i.useMemo)(function(){return g(v,t)},[v,t])),E=(l=(n={offset:void 0===m?0:m,diagonalLength:p,straightLength:b,textOffset:y,getLinkColor:R,getTextColor:O}).offset,d=n.diagonalLength,s=n.straightLength,c=n.textOffset,f=n.getLinkColor,h=n.getTextColor,(0,i.useMemo)(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:l,diagonalLength:0,straightLength:0,textOffset:c,linkColor:f(e),textColor:h(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:l,diagonalLength:d,straightLength:s,textOffset:c,linkColor:f(e),textColor:h(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:l,diagonalLength:0,straightLength:0,textOffset:c,linkColor:f(e),textColor:h(e),opacity:0}}}},[d,s,c,f,h,l]));return{transition:(0,r.pn)(P,{keys:function(e){return e.id},initial:E.update,from:E.enter,enter:E.update,update:E.update,leave:E.leave,config:S,immediate:!M}),interpolateLink:j,interpolateTextAnchor:W,interpolateTextPosition:A}},P=function(e){var t=e.center,n=e.data,r=e.label,a=e.skipAngle,l=e.offset,u=e.diagonalLength,s=e.straightLength,f=e.strokeWidth,h=e.textOffset,v=e.textColor,g=e.linkColor,m=e.component,p=(0,o.Ob)(r),b=O({data:n,skipAngle:a,offset:l,diagonalLength:u,straightLength:s,textOffset:h,linkColor:g,textColor:v}),x=b.transition,y=b.interpolateLink,k=b.interpolateTextAnchor,C=b.interpolateTextPosition,w=void 0===m?M:m;return(0,d.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:x(function(e,t){return(0,i.createElement)(w,{key:t.id,datum:t,label:p(t),style:c({},e,{thickness:f,path:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:k(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:C(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})})})},E=function(e,t,n,i){e.textBaseline="middle",(0,l.w6)(e,n.labels.text),t.forEach(function(t){e.textAlign=o.ni.canvas.align[t.textAnchor],(0,l.qu)(e,c({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=i,t.points.forEach(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),e.stroke()})},I=function(e){var t=e.data,n=e.skipAngle,r=void 0===n?0:n,a=e.offset,l=void 0===a?.5:a,d=e.diagonalLength,u=e.straightLength,s=e.computeExtraProps,f=void 0===s?function(){return{}}:s,h=(0,i.useMemo)(function(){return t.filter(function(e){return Math.abs((0,o.nv)(e.arc.endAngle-e.arc.startAngle))>=r}).map(function(e){return c({},L(e.arc,l,d,u),{data:e})})},[t,r,l,d,u]);return(0,i.useMemo)(function(){return h.map(function(e){return c({},f(e),e)})},[h,f])},z=function(e){var t=e.data,n=e.skipAngle,r=e.offset,l=e.diagonalLength,d=e.straightLength,s=e.textOffset,f=void 0===s?0:s,h=e.label,v=e.linkColor,g=e.textColor,m=(0,o.Ob)(h),p=(0,a.DP)(),b=(0,u.nz)(v,p),x=(0,u.nz)(g,p);return I({data:t,skipAngle:n,offset:r,diagonalLength:l,straightLength:d,computeExtraProps:(0,i.useCallback)(function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=f,t="end"):(n.x+=f,t="start"),c({},n,{label:m(e.data),linkColor:b(e.data),textAnchor:t,textColor:x(e.data)})},[m,b,x,f])})},T=function(e){var t=e.datum,n=e.style,o=e.onClick,a=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,s=(0,i.useCallback)(function(e){return null==o?void 0:o(t,e)},[o,t]),c=(0,i.useCallback)(function(e){return null==a?void 0:a(t,e)},[a,t]),f=(0,i.useCallback)(function(e){return null==l?void 0:l(t,e)},[l,t]),h=(0,i.useCallback)(function(e){return null==u?void 0:u(t,e)},[u,t]);return(0,d.jsx)(r.CS.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:o?s:void 0,onMouseEnter:a?c:void 0,onMouseMove:l?f:void 0,onMouseLeave:u?h:void 0,"data-testid":"arc."+t.id})},B=function(e,t,n,i,o){return(0,r.to)([e,t,n,i],function(e,t,n,i){return o({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,i)})})},D=function(e,t,n){void 0===t&&(t="innerRadius");var i=(0,o.mk)(),a=i.animate,l=i.config,d=p(t,n);return{transition:(0,r.pn)(e,{keys:function(e){return e.id},initial:d.update,from:d.enter,enter:d.update,update:d.update,leave:d.leave,config:l,immediate:!a}),interpolate:B}},H=function(e){var t=e.center,n=e.data,o=e.arcGenerator,r=e.borderWidth,l=e.borderColor,s=e.onClick,f=e.onMouseEnter,h=e.onMouseMove,v=e.onMouseLeave,g=e.transitionMode,m=e.component,p=(0,a.DP)(),b=(0,u.nz)(l,p),x=D(n,g,{enter:function(e){return{opacity:0,color:e.color,borderColor:b(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:b(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:b(e)}}}),y=x.transition,k=x.interpolate,C=void 0===m?T:m;return(0,d.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:y(function(e,t){return(0,i.createElement)(C,{key:t.id,datum:t,style:c({},e,{borderWidth:r,path:k(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,o)}),onClick:s,onMouseEnter:f,onMouseMove:h,onMouseLeave:v})})})},_=function(e,t,n,i,r,a){void 0===a&&(a=!0);var l=[],d=(0,o.B2)((0,o.tR)(i),n);l.push([d.x,d.y]);var u=(0,o.B2)((0,o.tR)(r),n);l.push([u.x,u.y]);for(var s=Math.round(Math.min(i,r));s<=Math.round(Math.max(i,r));s++)if(s%90==0){var c=(0,o.B2)((0,o.tR)(s),n);l.push([c.x,c.y])}l=l.map(function(n){return[e+n[0],t+n[1]]}),a&&l.push([e,t]);var f=l.map(function(e){return e[0]}),h=l.map(function(e){return e[1]}),v=Math.min.apply(Math,f),g=Math.max.apply(Math,f),m=Math.min.apply(Math,h);return{points:l,x:v,y:m,width:g-v,height:Math.max.apply(Math,h)-m}},F=function(e,t,n,i,r,a){var l=(0,o.Yf)(r,a,e,t);return l<n&&l>i},Y=function(e,t,n,i,r,a,l){if(F(e,t,n,i,a,l)){var d=(0,o._H)(a,l,e,t);return r.find(function(e){var t=e.startAngle,n=e.endAngle;return d>=t&&d<n})}},G=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,o=void 0===n?0:n,r=t.padAngle,a=void 0===r?0:r;return(0,i.useMemo)(function(){return(0,s.JL)().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(o).padAngle(a)},[o,a])},V=n(96714),X=n(30806);function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function q(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}
1var K,N=function(e){var t=e.width,n=e.height,i=e.legends,o=e.data,r=e.toggleSerie;return(0,d.jsx)(d.Fragment,{children:i.map(function(e,i){var a;return(0,d.jsx)(V.$i,U({},e,{containerWidth:t,containerHeight:n,data:null!=(a=e.data)?a:o,toggleSerie:e.toggleSerie?r:void 0}),i)})})},Z={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return(0,d.jsx)(X.GK,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"u">typeof window&&null!=(K=window.devicePixelRatio)?K:1},Q=["points"],$=function(e){var t=e.data,n=e.id,r=void 0===n?Z.id:n,a=e.value,l=void 0===a?Z.value:a,d=e.valueFormat,s=e.colors,c=void 0===s?Z.colors:s,f=(0,o.Ob)(r),h=(0,o.Ob)(l),v=(0,o.d_)(d),g=(0,u.m1)(c,"id");return(0,i.useMemo)(function(){return t.map(function(e){var t,n=f(e),i=h(e),o={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:i,formattedValue:v(i),data:e};return U({},o,{color:g(o)})})},[t,f,h,v,g])},J=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,a=e.innerRadius,l=e.outerRadius,d=e.padAngle,u=e.sortByValue,c=e.activeId,f=e.activeInnerRadiusOffset,h=e.activeOuterRadiusOffset,v=e.hiddenIds,g=e.forwardLegendData,m=(0,i.useMemo)(function(){var e=(0,s.rL)().value(function(e){return e.value}).startAngle((0,o.tR)(n)).endAngle((0,o.tR)(r)).padAngle((0,o.tR)(d));return u||e.sortValues(null),e},[n,r,d,u]),p=(0,i.useMemo)(function(){return{dataWithArc:m(t.filter(function(e){return!v.includes(e.id)}
1)).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return U({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?a-f:a,outerRadius:c===e.data.id?l+h:l,thickness:l-a,padAngle:e.padAngle,angle:t,angleDeg:(0,o.nv)(t)}})}),legendData:t.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:v.includes(e.id),data:e}})}},[m,t,v,c,a,f,l,h]),b=p.legendData,x=(0,i.useRef)(g);return(0,i.useEffect)(function(){"function"==typeof x.current&&x.current(b)},[x,b]),p},ee=function(e){var t=e.activeId,n=e.onActiveIdChange,o=e.defaultActiveId,r=void 0!==t,a=(0,i.useState)(r||void 0===o?null:o),l=a[0],d=a[1];return{activeId:r?t:l,setActiveId:(0,i.useCallback)(function(e){n&&n(e),r||d(e)},[r,n,d])}},et=function(e){var t=e.data,n=e.width,r=e.height,a=e.innerRadius,l=void 0===a?Z.innerRadius:a,d=e.startAngle,u=void 0===d?Z.startAngle:d,s=e.endAngle,c=void 0===s?Z.endAngle:s,f=e.padAngle,h=void 0===f?Z.padAngle:f,v=e.sortByValue,g=void 0===v?Z.sortByValue:v,m=e.cornerRadius,p=void 0===m?Z.cornerRadius:m,b=e.fit,x=void 0===b?Z.fit:b,y=e.activeInnerRadiusOffset,k=void 0===y?Z.activeInnerRadiusOffset:y,C=e.activeOuterRadiusOffset,w=void 0===C?Z.activeOuterRadiusOffset:C,M=e.activeId,S=e.onActiveIdChange,L=e.defaultActiveId,R=e.forwardLegendData,j=ee({activeId:M,onActiveIdChange:S,defaultActiveId:L}),W=j.activeId,A=j.setActiveId,O=(0,i.useState)([]),P=O[0],E=O[1],I=(0,i.useMemo)(function(){var e,t=Math.min(n,r)/2,i=t*Math.min(l,1),o=n/2,a=r/2;if(x){var d=_(o,a,t,u-90,c-90),s=d.points,f=q(d,Q),h=Math.min(n/f.width,r/f.height),v={width:f.width*h,height:f.height*h};v.x=(n-v.width)/2,v.y=(r-v.height)/2,o=(o-f.x)/f.width*f.width*h+v.x,a=(a-f.y)/f.height*f.height*h+v.y,e={box:f,ratio:h,points:s},t*=h,i*=h}return{centerX:o,centerY:a,radius:t,innerRadius:i,debug:e}},[n,r,l,u,c,x]),z=J({data:t,startAngle:u,endAngle:c,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:h,sortByValue:g,activeId:W,activeInnerRadiusOffset:k,activeOuterRadiusOffset:w,hiddenIds:P,forwardLegendData:R}),T=(0,i.useCallback)(function(e){E(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return U({arcGenerator:G({cornerRadius:p,padAngle:(0,o.tR)(h)}),activeId:W,setActiveId:A,toggleSerie:T},z,I)},en=function(e){var t=e.dataWithArc,n=e.arcGenerator,o=e.centerX,r=e.centerY,a=e.radius,l=e.innerRadius;return(0,i.useMemo)(function(){return{dataWithArc:t,arcGenerator:n,centerX:o,centerY:r,radius:a,innerRadius:l}},[t,n,o,r,a,l])},ei=function(e){var t=e.center,n=e.data,o=e.arcGenerator,r=e.borderWidth,a=e.borderColor,l=e.isInteractive,u=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,f=e.onMouseLeave,h=e.setActiveId,v=e.tooltip,g=e.transitionMode,m=(0,X.fS)(),p=m.showTooltipFromEvent,b=m.hideTooltip,x=(0,i.useMemo)(function(){if(l)return function(e,t){null==u||u(e,t)}},[l,u]),y=(0,i.useMemo)(function(){if(l)return function(e,t){p((0,i.createElement)(v,{datum:e}),t),h(e.id),null==s||s(e,t)}},[l,p,h,s,v]),k=(0,i.useMemo)(function(){if(l)return function(e,t){p((0,i.createElement)(v,{datum:e}),t),null==c||c(e,t)}},[l,p,c,v]),C=(0,i.useMemo)(function(){if(l)return function(e,t){b(),h(null),null==f||f(e,t)}},[l,b,h,f]);return(0,d.jsx)(H,{center:t,data:n,arcGenerator:o,borderWidth:r,borderColor:a,transitionMode:g,onClick:x,onMouseEnter:y,onMouseMove:k,onMouseLeave:C})},eo=["isInteractive","animate","motionConfig","theme","renderWrapper"],er=function(e){var t=e.data,n=e.id,r=void 0===n?Z.id:n,a=e.value,l=void 0===a?Z.value:a,u=e.valueFormat,s=e.sortByValue,c=void 0===s?Z.sortByValue:s,f=e.layers,h=void 0===f?Z.layers:f,v=e.startAngle,g=void 0===v?Z.startAngle:v,m=e.endAngle,p=void 0===m?Z.endAngle:m,b=e.padAngle,x=void 0===b?Z.padAngle:b,y=e.fit,C=void 0===y?Z.fit:y,w=e.innerRadius,M=void 0===w?Z.innerRadius:w,S=e.cornerRadius,L=void 0===S?Z.cornerRadius:S,R=e.activeInnerRadiusOffset,j=void 0===R?Z.activeInnerRadiusOffset:R,W=e.activeOuterRadiusOffset,A=void 0===W?Z.activeOuterRadiusOffset:W,O=e.width,E=e.he
1ight,I=e.margin,z=e.colors,T=void 0===z?Z.colors:z,B=e.borderWidth,D=void 0===B?Z.borderWidth:B,H=e.borderColor,_=void 0===H?Z.borderColor:H,F=e.enableArcLabels,Y=void 0===F?Z.enableArcLabels:F,G=e.arcLabel,V=void 0===G?Z.arcLabel:G,X=e.arcLabelsSkipAngle,U=void 0===X?Z.arcLabelsSkipAngle:X,q=e.arcLabelsSkipRadius,K=void 0===q?Z.arcLabelsSkipRadius:q,Q=e.arcLabelsTextColor,J=void 0===Q?Z.arcLabelsTextColor:Q,ee=e.arcLabelsRadiusOffset,eo=void 0===ee?Z.arcLabelsRadiusOffset:ee,er=e.arcLabelsComponent,ea=e.enableArcLinkLabels,el=void 0===ea?Z.enableArcLinkLabels:ea,ed=e.arcLinkLabel,eu=void 0===ed?Z.arcLinkLabel:ed,es=e.arcLinkLabelsSkipAngle,ec=void 0===es?Z.arcLinkLabelsSkipAngle:es,ef=e.arcLinkLabelsOffset,eh=void 0===ef?Z.arcLinkLabelsOffset:ef,ev=e.arcLinkLabelsDiagonalLength,eg=void 0===ev?Z.arcLinkLabelsDiagonalLength:ev,em=e.arcLinkLabelsStraightLength,ep=void 0===em?Z.arcLinkLabelsStraightLength:em,eb=e.arcLinkLabelsThickness,ex=void 0===eb?Z.arcLinkLabelsThickness:eb,ey=e.arcLinkLabelsTextOffset,ek=void 0===ey?Z.arcLinkLabelsTextOffset:ey,eC=e.arcLinkLabelsTextColor,ew=void 0===eC?Z.arcLinkLabelsTextColor:eC,eM=e.arcLinkLabelsColor,eS=void 0===eM?Z.arcLinkLabelsColor:eM,eL=e.arcLinkLabelComponent,eR=e.defs,ej=void 0===eR?Z.defs:eR,eW=e.fill,eA=void 0===eW?Z.fill:eW,eO=e.isInteractive,eP=void 0===eO?Z.isInteractive:eO,eE=e.onClick,eI=e.onMouseEnter,ez=e.onMouseMove,eT=e.onMouseLeave,eB=e.tooltip,eD=void 0===eB?Z.tooltip:eB,eH=e.activeId,e_=e.onActiveIdChange,eF=e.defaultActiveId,eY=e.transitionMode,eG=void 0===eY?Z.transitionMode:eY,eV=e.legends,eX=void 0===eV?Z.legends:eV,eU=e.forwardLegendData,eq=e.role,eK=void 0===eq?Z.role:eq,eN=e.forwardedRef,eZ=(0,o.Xl)(O,E,I),eQ=eZ.outerWidth,e$=eZ.outerHeight,eJ=eZ.margin,e0=eZ.innerWidth,e1=eZ.innerHeight,e2=et({data:$({data:t,id:r,value:l,valueFormat:u,colors:T}),width:e0,height:e1,fit:C,innerRadius:M,startAngle:g,endAngle:p,padAngle:x,sortByValue:c,cornerRadius:L,activeInnerRadiusOffset:j,activeOuterRadiusOffset:A,activeId:eH,onActiveIdChange:e_,defaultActiveId:eF,forwardLegendData:eU}),e4=e2.dataWithArc,e5=e2.legendData,e6=e2.arcGenerator,e8=e2.centerX,e3=e2.centerY,e9=e2.radius,e7=e2.innerRadius,te=e2.setActiveId,tt=e2.toggleSerie,tn=(0,o.kc)(ej,e4,eA),ti={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};h.includes("arcs")&&(ti.arcs=(0,d.jsx)(ei,{center:[e8,e3],data:e4,arcGenerator:e6,borderWidth:D,borderColor:_,isInteractive:eP,onClick:eE,onMouseEnter:eI,onMouseMove:ez,onMouseLeave:eT,setActiveId:te,tooltip:eD,transitionMode:eG},"arcs")),el&&h.includes("arcLinkLabels")&&(ti.arcLinkLabels=(0,d.jsx)(P,{center:[e8,e3],data:e4,label:eu,skipAngle:ec,offset:eh,diagonalLength:eg,straightLength:ep,strokeWidth:ex,textOffset:ek,textColor:ew,linkColor:eS,component:eL},"arcLinkLabels")),Y&&h.includes("arcLabels")&&(ti.arcLabels=(0,d.jsx)(k,{center:[e8,e3],data:e4,label:V,radiusOffset:eo,skipAngle:U,skipRadius:K,textColor:J,transitionMode:eG,component:er},"arcLabels")),eX.length>0&&h.includes("legends")&&(ti.legends=(0,d.jsx)(N,{width:e0,height:e1,data:e5,legends:eX,toggleSerie:tt},"legends"));var to=en({dataWithArc:e4,arcGenerator:e6,centerX:e8,centerY:e3,radius:e9,innerRadius:e7});return(0,d.jsx)(o.Ge,{width:eQ,height:e$,margin:eJ,defs:tn,role:eK,ref:eN,children:h.map(function(e,t){return void 0!==ti[e]?ti[e]:"function"==typeof e?(0,d.jsx)(i.Fragment,{children:(0,i.createElement)(e,to)},t):null})})},ea=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?Z.isInteractive:n,r=e.animate,a=void 0===r?Z.animate:r,l=e.motionConfig,u=void 0===l?Z.motionConfig:l,s=e.theme,c=e.renderWrapper,f=q(e,eo);return(0,d.jsx)(o.mc,{animate:a,isInteractive:i,motionConfig:u,renderWrapper:c,theme:s,children:(0,d.jsx)(er,U({isInteractive:i},f,{forwardedRef:t}))})}),el=["defaultWidth","defaultHeight","onResize","debounceResize"],ed=(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,l=q(e,el);return(0,d.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,d.jsx)(ea,U({width:n,height:i},l,{ref:t}))}})}),eu=["isInteractive","theme","renderWrapper"],es=function(e){var t=e.data,n=e.id,r=void 0===n?Z.id:n,l=e.value,s=void 0===l?Z.value:l,c=e.valueFormat,f=e.sortByValue,h=void 0===f?Z.sortByValue:f,v=e.startAngle,g=void 0===v?Z.startAngle:v,m=e.endAngle,p=void 0===m?Z.endAngle:m,b=e.padAngle,x=void 0===b?Z.padAngle:b,y=e.fit,k=void 0===y?Z.fit:y,M=e.innerRadius,S=void 0===M?Z.innerRadius:M,L=e.cornerRadius,R=void 0===L?Z.cornerRadius:L,j=e.activeInnerRadiusOffset,W=void 0===j?Z.activeInnerRadiusOffset:j,A=e.activeOuterRadiusOffset,O=void 0===A?Z.activeOuterRadiusOffset:A,P=e.width,I=e.height,T=e.margin,B=e.pixelRatio,D=void 0===B?Z.pixelRatio:B,H=e.colors,_=void 0===H?Z.colors:H,F=e.borderWidth,G=void 0===F?Z.borderWidth:F,q=e.borderColor,K=void 0===q?Z.borderColor:q,N=e.enableArcLabels,Q=void 0===N?Z.enableArcLabels:N,J=e.arcLabel,ee=void 0===J?Z.arcLabel:J,en=e.arcLabelsSkipAngle,ei=void 0===en?Z.arcLabelsSkipAngle:en,eo=e.arcLabelsTextColor,er=void 0===eo?Z.arcLabelsTextColor:eo,ea=e.arcLabelsRadiusOffset,el=void 0===ea?Z.arcLabelsRadiusOffset:ea,ed=e.enableArcLinkLabels,eu=void 0===ed?Z.enableArcLinkLabels:ed,es=e.arcLinkLabel,ec=void 0===es?Z.arcLinkLabel:es,ef=e.arcLinkLabelsSkipAngle,eh=void 0===ef?Z.arcLinkLabelsSkipAngle:ef,ev=e.arcLinkLabelsOffset,eg=void 0===ev?Z.arcLinkLabelsOffset:ev,em=e.arcLinkLabelsDiagonalLength,ep=void 0===em?Z.arcLinkLabelsDiagonalLength:em,eb=e.arcLinkLabelsStraightLength,ex=void 0===eb?Z.arcLinkLabelsStraightLength:eb,ey=e.arcLinkLabelsThickness,ek=void 0===ey?Z.arcLinkLabelsThickness:ey,eC=e.arcLinkLabelsTextOffset,ew=void 0===eC?Z.arcLinkLabelsTextOffset:eC,eM=e.arcLinkLabelsTextColor,eS=void 0===eM?Z.arcLinkLabelsTextColor:eM,eL=e.arcLinkLabelsColor,eR=void 0===eL?Z.arcLinkLabelsColor:eL,ej=e.isInteractive,eW=void 0===ej?Z.isInteractive:ej,eA=e.onClick,eO=e.onMouseMove,eP=e.tooltip,eE=void 0===eP?Z.tooltip:eP,eI=e.activeId,ez=e.onActiveIdChange,eT=e.defaultActiveId,eB=e.legends,eD=void 0===eB?Z.legends:eB,eH=e.forwardLegendD
1ata,e_=e.role,eF=e.forwardedRef,eY=(0,i.useRef)(null),eG=(0,a.DP)(),eV=(0,o.Xl)(P,I,T),eX=eV.margin,eU=eV.innerWidth,eq=eV.innerHeight,eK=eV.outerWidth,eN=eV.outerHeight,eZ=et({data:$({data:t,id:r,value:s,valueFormat:c,colors:_}),width:eU,height:eq,fit:k,innerRadius:S,startAngle:g,endAngle:p,padAngle:x,sortByValue:h,cornerRadius:R,activeInnerRadiusOffset:W,activeOuterRadiusOffset:O,activeId:eI,onActiveIdChange:ez,defaultActiveId:eT,forwardLegendData:eH}),eQ=eZ.dataWithArc,e$=eZ.arcGenerator,eJ=eZ.centerX,e0=eZ.centerY,e1=eZ.radius,e2=eZ.innerRadius,e4=eZ.setActiveId,e5=(0,u.nz)(K,eG),e6=w({data:eQ,label:ee,skipAngle:ei,offset:el,textColor:er}),e8=z({data:eQ,skipAngle:eh,offset:eg,diagonalLength:ep,straightLength:ex,label:ec,linkColor:eR,textOffset:ew,textColor:eS});(0,i.useEffect)(function(){if(eY.current){eY.current.width=eK*D,eY.current.height=eN*D;var e=eY.current.getContext("2d");e.scale(D,D),e.fillStyle=eG.background,e.fillRect(0,0,eK,eN),e.save(),e.translate(eX.left,eX.top),e$.context(e),e.save(),e.translate(eJ,e0),eQ.forEach(function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=e5(t),e.lineWidth=G,e$(t.arc),e.fill(),G>0&&e.stroke()}),!0===eu&&E(e,e8,eG,ek),!0===Q&&C(e,e6,eG),e.restore(),eD.forEach(function(t){(0,V.ZG)(e,U({},t,{data:eQ,containerWidth:eU,containerHeight:eq,theme:eG}))})}},[eY,eU,eq,eK,eN,eX.top,eX.left,D,eJ,e0,e$,eQ,G,e5,Q,e6,eu,e8,ek,eD,eG]);var e3=(0,i.useMemo)(function(){return eQ.map(function(e){return U({id:e.id},e.arc)})},[eQ]),e9=function(e){if(!eY.current)return null;var t=(0,o.H9)(eY.current,e),n=t[0],i=t[1],r=Y(eX.left+eJ,eX.top+e0,e1,e2,e3,n,i);return r?eQ.find(function(e){return e.id===r.id}):null},e7=(0,X.fS)(),te=e7.showTooltipFromEvent,tt=e7.hideTooltip,tn=function(e){var t=e9(e);t?(null==eO||eO(t,e),e4(t.id),te((0,i.createElement)(eE,{datum:t}),e)):(e4(null),tt())};return(0,d.jsx)("canvas",{ref:(0,o.Px)(eY,eF),width:eK*D,height:eN*D,style:{width:eK,height:eN,cursor:eW?"auto":"normal"},onMouseEnter:eW?tn:void 0,onMouseMove:eW?tn:void 0,onMouseLeave:eW?function(){tt()}:void 0,onClick:eW?function(e){if(eA){var t=e9(e);t&&eA(t,e)}}:void 0,role:e_})},ec=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?Z.isInteractive:n,r=e.theme,a=e.renderWrapper,l=q(e,eu);return(0,d.jsx)(o.mc,{isInteractive:i,renderWrapper:a,theme:r,children:(0,d.jsx)(es,U({isInteractive:i},l,{forwardedRef:t}))})}),ef=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,l=q(e,ef);return(0,d.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,d.jsx)(ec,U({width:n,height:i},l,{ref:t}))}})})},43914(e,t,n){var i=n(63375),o=n(50014),r=n(33031),a=n(68090),l=n(83602),d=n(67791),u=n(59681),s=n(2049),c=n(70360);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var h=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],v={millisecond:[],second:h.slice(0,1),minute:h.slice(0,2),hour:h.slice(0,3),day:h.slice(0,4),month:h.slice(0,5),year:h.slice(0,6)},g=function(e){var t,n=e.format,i=void 0===n?"native":n,o=e.precision,r=e.useUTC,a=void 0===r||r,l=(t=void 0===o?"millisecond":o,function(e){return v[t].forEach(function(t){t(e)}),e});return function(e){return void 0===e?e:"native"===i||e instanceof Date?l(e):l((a?(0,d.GY)(i):(0,d.T6)(i))(e))}},m=function(e,t,n,i){var o,r,a,l,d=e.min,c=void 0===d?0:d,f=e.max,h=void 0===f?"auto":f,v=e.stacked,g=void 0!==v&&v,m=e.reverse,b=e.clamp,x=e.nice,y=void 0===x||x,k=e.round;o="auto"===c?!0===g?null!=(r=t.minStacked)?r:0:t.min:c,a="auto"===h?!0===g?null!=(l=t.maxStacked)?l:0:t.max:h;var C=(0,u.m4)().range("x"===i?[0,n]:[n,0]).interpolate(void 0!==k&&k?s.sH:s.Dj).domain(void 0!==m&&m?[a,o]:[o,a]).clamp(void 0!==b&&b);return!0===y?C.nice():"number"==typeof y&&C.nice(y),p(C,g)},p=function(e,t){return void 0===t&&(t=!1),e.type="linear",e.stacked=t,e},b=function(e,t,n){var i=(0,u.hq)().range([0,n]).domain(t.all);return i.type="point",i},x=function(e,t,n,i){var o=e.round;return y((0,u.WH)().range("x"===i?[0,n]:[n,0]).domain(t.all).round(void 0!==o&&o))},y=function(e){return e.type="band",e},k=function(e,t,n){var i,o,r=e.format,a=void 0===r?"native":r,l=e.precision,d=e.min,s=void 0===d?"auto":d,c=e.max,f=void 0===c?"auto":c,h=e.useUTC,v=void 0===h||h,m=e.nice,p=void 0!==m&&m,b=g({format:a,precision:void 0===l?"millisecond":l,useUTC:v});i="auto"===s?b(t.min):"native"!==a?b(s):s,o="auto"===f?b(t.max):"native"!==a?b(f):f;var x=v?(0,u.Pp)():(0,u.w7)();return x.range([0,n]),i&&o&&x.domain([i,o]),!0===p?x.nice():"object"!=typeof p&&"number"!=typeof p||x.nice(p),x.type="time",x.useUTC=v,x},C=function(e,t,n,i){var o,r=e.base,a=e.min,l=void 0===a?"auto":a,d=e.max,s=void 0===d?"auto":d,c=e.round,f=e.reverse,h=e.nice,v=void 0===h||h;if(t.all.some(function(e){return 0===e}))throw Error("a log scale domain must not include or cross zero");var g,m,p=!1;if(t.all.filter(function(e){return null!=e}
1).forEach(function(e){p||(void 0===o?o=Math.sign(e):Math.sign(e)!==o&&(p=!0))}),p)throw Error("a log scale domain must be strictly-positive or strictly-negative");g="auto"===l?t.min:l,m="auto"===s?t.max:s;var b=(0,u.ZE)().base(void 0===r?10:r),x="x"===i?[0,n]:[n,0];return!0===(void 0!==c&&c)?b.rangeRound(x):b.range(x),!0===(void 0!==f&&f)?b.domain([m,g]):b.domain([g,m]),!0===v?b.nice():"number"==typeof v&&b.nice(v),b.type="log",b},w=function(e,t,n,i){var o,r,a=e.constant,l=e.min,d=void 0===l?"auto":l,s=e.max,c=void 0===s?"auto":s,f=e.round,h=e.reverse,v=e.nice,g=void 0===v||v;o="auto"===d?t.min:d,r="auto"===c?t.max:c;var m=(0,u.aX)().constant(void 0===a?1:a),p="x"===i?[0,n]:[n,0];return!0===(void 0!==f&&f)?m.rangeRound(p):m.range(p),!0===(void 0!==h&&h)?m.domain([r,o]):m.domain([o,r]),!0===g?m.nice():"number"==typeof g&&m.nice(g),m.type="symlog",m},M=function(e,t){return e===t},S=function(e,t){return e.getTime()===t.getTime()};function L(e,t,n,i){switch(e.type){case"linear":return m(e,t,n,i);case"point":return b(0,t,n);case"band":return x(e,t,n,i);case"time":return k(e,t,n);case"log":return C(e,t,n,i);case"symlog":return w(e,t,n,i);default:throw Error("invalid scale spec")}}var R=function(e,t,n){var i;if("stacked"in n&&n.stacked){var o=e.data["x"===t?"xStacked":"yStacked"];return null==o?null:n(o)}return null!=(i=n(e.data[t]))?i:null},j=function(e,t,n,i,o){var r=e.map(function(e){return f({},e,{data:e.data.map(function(e){return{data:f({},e)}})})}),a=W(r,t,n);"stacked"in t&&!0===t.stacked&&P(a,r),"stacked"in n&&!0===n.stacked&&E(a,r);var l=L(t,a.x,i,"x"),d=L(n,a.y,o,"y"),u=r.map(function(e){return f({},e,{data:e.data.map(function(e){return f({},e,{position:{x:R(e,"x",l),y:R(e,"y",d)}})})})});return f({},a,{series:u,xScale:l,yScale:d})},W=function(e,t,n){return{x:A(e,"x",t),y:A(e,"y",n)}},A=function(e,t,n,l){var d=void 0===l?{}:l,u=d.getValue,s=void 0===u?function(e){return e.data[t]}:u,c=d.setValue,f=void 0===c?function(e,n){e.data[t]=n}:c;if("linear"===n.type)e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&f(e,parseFloat(String(t)))})});else if("time"===n.type&&"native"!==n.format){var h=g(n);e.forEach(function(e){e.data.forEach(function(e){var t=s(e);t&&f(e,h(t))})})}var v=[];switch(e.forEach(function(e){e.data.forEach(function(e){v.push(s(e))})}),n.type){case"linear":var m=r(i(v).filter(function(e){return null!==e}),function(e){return e});return{all:m,min:Math.min.apply(Math,m),max:Math.max.apply(Math,m)};case"time":var p=o(v,function(e){return e.getTime()}).slice(0).sort(function(e,t){return t.getTime()-e.getTime()}).reverse();return{all:p,min:p[0],max:a(p)};default:var b=i(v);return{all:b,min:b[0],max:a(b)}}},O=function(e,t,n){var i="x"===e?"y":"x",o=[];t[i].all.forEach(function(t){var r=l(t)?S:M,d=[];n.forEach(function(n){var l=n.data.find(function(e){return r(e.data[i],t)}),u=null,s=null;if(void 0!==l){if(null!==(u=l.data[e])){var c=a(d);void 0===c?s=u:null!==c&&(s=c+u)}l.data["x"===e?"xStacked":"yStacked"]=s}d.push(s),null!==s&&o.push(s)})}),t[e].minStacked=Math.min.apply(Math,o),t[e].maxStacked=Math.max.apply(Math,o)},P=function(e,t){return O("x",e,t)},E=function(e,t){return O("y",e,t)},I=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var i;return(null!=(i=e(t))?i:0)+n}},z={millisecond:[c.t6,c.Ee],second:[c.uc,c.Hn],minute:[c.wX,c.O0],hour:[c.Ag,c.pz],day:[(0,c.f$)(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),(0,c.f$)(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[c.Kg,c.zX],sunday:[c.YP,c.Hl],monday:[c.AB,c.rt],tuesday:[c.PG,c.sr],wednesday:[c.Gu,c.z2],thursday:[c.Mo,c.pT],friday:[c.TU,c.a1],saturday:[c.rG,c.c8],month:[c.Ui,c.R6],year:[c.he,c.Mb]},T=RegExp("^every\\s*(\\d+)?\\s*("+Object.keys(z).join("|")+")s?$","i"),B=function(e,t){if(Array.isArray(t))return t;if("string"==typeof t&&"useUTC"in e){var n=t.match(T);if(n){var i=n[1],o=n[2],r=z[o][+!!e.useUTC];if("day"===o){var a,l,d=e.domain(),u=d[0],s=new Date(d[1]);return s.setDate(s.getDate()+1),null!=(a=null==(l=r.every(Number(null!=i?i:1)))?void 0:l.range(u,s))?a:[]}if(void 0===i)return e.ticks(r);var c=r.every(Number(i));if(c)return e.ticks(c)}throw Error("Invalid tickValues: "+t)}if("ticks"in e){if(void 0===t)return e.ticks();if("number"==typeof t&&isFinite(t)&&Math.floor(t)===t)return e.ticks(t)}return e.domain()};n.d(t,{UG:()=>m,_6:()=>j,fS:()=>B,gx:()=>L,ok:()=>I})},4642(e,t,n){var i=n(56534),o=n(74848),r=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},a=function(e,t,n,i,o){void 0===i&&(i=0),void 0===o&&(o=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,i,o)),e.fillStyle=t.fill,e.fillText(n,i,o)};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function d(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var u=["style","children"],s=["outlineWidth","outlineColor","outlineOpacity"],c=function(e){var t=e.style,n=e.children,r=d(e,u),a=t.outlineWidth,c=t.outlineColor,f=t.outlineOpacity,h=d(t,s);return(0,o.jsxs)(o.Fragment,{children:[a>0&&(0,o.jsx)(i.CS.text,l({},r,{style:l({},h,{strokeWidth:2*a,stroke:c,strokeOpacity:f,strokeLinejoin:"round"}),children:n})),(0,o.jsx)(i.CS.text,l({},r,{style:h,children:n}))]})};n.d(t,{EY:()=>c,qu:()=>a,w6:()=>r})},87594(e,t,n){var i=n(96540),o=n(55364),r=n(58156),a=n(63560),l=n(74848);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var u=["outlineWidth","outlineColor","outlineOpacity"],s=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,u)},c=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],f=function(e,t){var n=o({},e,t);
1return c.forEach(function(e){var t,i;a(n,e,(t=r(n,e),i=n.text,d({},i,t)))}),n},h=function(e,t){return t?o({},e,t):e},v={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},g=function(e,t){return(0,i.useMemo)(function(){return h(e,t)},[e,t])},m=(0,i.createContext)(null),p={},b=function(e){var t,n=e.theme,o=e.children,r=(t=void 0===n?p:n,(0,i.useMemo)(function(){return f(v,t)},[t]));return(0,l.jsx)(m.Provider,{value:r,children:o})},x=function(){var e=(0,i.useContext)(m);if(null===e)throw Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};n.d(t,{Bi:()=>g,DP:()=>x,L7:()=>h,NP:()=>b,Ou:()=>s})},30806(e,t,n){n.d(t,{B1:()=>b,Bc:()=>L,GK:()=>v,ST:()=>m,fS:()=>w,m_:()=>S,vu:()=>h});var i=n(96540),o=n(56534),r=n(4554),a=n(87594),l=n(74848);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var u=["basic","chip","container","table","tableCell","tableCellValue"],s={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},c=function(e,t){return"translate("+e+"px, "+t+"px)"},f=(0,i.memo)(function(e){var t,n=e.position,f=e.anchor,h=e.children,v=(0,a.DP)(),g=(0,r.mk)(),m=g.animate,p=g.config,b=(0,r.W_)(),x=b[0],y=b[1],k=(0,i.useRef)(!1),C=void 0,w=!1,M=y.width>0&&y.height>0,S=Math.round(n[0]),L=Math.round(n[1]);M&&("top"===f?(S-=y.width/2,L-=y.height+14):"right"===f?(S+=14,L-=y.height/2):"bottom"===f?(S-=y.width/2,L+=14):"left"===f?(S-=y.width+14,L-=y.height/2):"center"===f&&(S-=y.width/2,L-=y.height/2),C={transform:c(S,L)},k.current||(w=!0),k.current=[S,L]);var R=(0,o.zh)({to:C,config:p,immediate:!m||w}),j=v.tooltip;j.basic,j.chip,j.container,j.table,j.tableCell,j.tableCellValue;var W=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(j,u),A=d({},s,W,{transform:null!=(t=R.transform)?t:c(S,L),opacity:+!!R.transform});return(0,l.jsx)(o.CS.div,{ref:x,style:A,children:h})});f.displayName="TooltipWrapper";var h=(0,i.memo)(function(e){var t=e.size,n=void 0===t?12:t,i=e.color,o=e.style;return(0,l.jsx)("span",{style:d({display:"block",width:n,height:n,background:i},void 0===o?{}:o)})}),v=(0,i.memo)(function(e){var t,n=e.id,i=e.value,o=e.format,d=e.enableChip,u=e.color,s=e.renderContent,c=(0,a.DP)(),f=(0,r.d_)(o);if("function"==typeof s)t=s();else{var v=i;void 0!==f&&void 0!==v&&(v=f(v)),t=(0,l.jsxs)("div",{style:c.tooltip.basic,children:[void 0!==d&&d&&(0,l.jsx)(h,{color:u,style:c.tooltip.chip}),void 0!==v?(0,l.jsxs)("span",{children:[n,": ",(0,l.jsx)("strong",{children:""+v})]}):n]})}return(0,l.jsx)("div",{style:c.tooltip.container,role:"tooltip",children:t})}),g={width:"100%",borderCollapse:"collapse"},m=(0,i.memo)(function(e){var t,n=e.title,i=e.rows,o=void 0===i?[]:i,r=e.renderContent,u=(0,a.DP)();return o.length?(t="function"==typeof r?r():(0,l.jsxs)("div",{children:[n&&n,(0,l.jsx)("table",{style:d({},g,u.tooltip.table),children:(0,l.jsx)("tbody",{children:o.map(function(e,t){return(0,l.jsx)("tr",{children:e.map(function(e,t){return(0,l.jsx)("td",{style:u.tooltip.tableCell,children:e},t)})},t)})})})]}),(0,l.jsx)("div",{style:u.tooltip.container,children:t})):null});m.displayName="TableTooltip";var p=(0,i.memo)(function(e){var t=e.x0,n=e.x1,u=e.y0,s=e.y1,c=(0,a.DP)(),f=(0,r.mk)(),h=f.animate,v=f.config,g=(0,i.useMemo)(function(){return d({},c.crosshair.line,{pointerEvents:"none"})},[c.crosshair.line]),m=(0,o.zh)({x1:t,x2:n,y1:u,y2:s,config:v,immediate:!h});return(0,l.jsx)(o.CS.line,d({},m,{fill:"none",style:g}))});p.displayName="CrosshairLine";var b=(0,i.memo)(function(e){var t,n,i=e.width,o=e.height,r=e.type,a=e.x,d=e.y;return"cross"===r?(t={x0:a,x1:a,y0:0,y1:o},n={x0:0,x1:i,y0:d,y1:d}):"top-left"===r?(t={x0:a,x1:a,y0:0,y1:d},n={x0:0,x1:a,y0:d,y1:d}):"top"===r?t={x0:a,x1:a,y0:0,y1:d}:"top-right"===r?(t={x0:a,x1:a,y0:0,y1:d},n={x0:a,x1:i,y0:d,y1:d}):"right"===r?n={x0:a,x1:i,y0:d,y1:d}:"bottom-right"===r?(t={x0:a,x1:a,y0:d,y1:o},n={x0:a,x1:i,y0:d,y1:d}):"bottom"===r?t={x0:a,x1:a,y0:d,y1:o}:"bottom-left"===r?(t={x0:a,x1:a,y0:d,y1:o},n={x0:0,x1:a,y0:d,y1:d}):"left"===r?n={x0:0,x1:a,y0:d,y1:d}:"x"===r?t={x0:a,x1:a,y0:0,y1:o}:"y"===r&&(n={x0:0,x1:i,y0:d,y1:d}),(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(p,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,l.jsx)(p,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});b.displayName="Crosshair";var x=(0,i.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),y={isVisible:!1,position:[null,null],content:null,anchor:null},k=(0,i.createContext)(y),C=function(e){var t=(0,i.useState)(y),n=t[0],o=t[1],r=(0,i.useCallback)(function(e,t,n){void 0===n&&(n="top"),o({isVisible:!0,position:[t[0],t[1]],anchor:n,content:e})},[o]),a=(0,i.useCallback)(function(t,n,i){void 0===i&&(i="top");var r=e.current.getBoundingClientRect(),a=e.current.offsetWidth,l=a===r.width?1:a/r.width,d="touches"in n?n.touches[0]:n,u=d.clientX,s=d.clientY,c=(u-r.left)*l,f=(s-r.top)*l;"left"!==i&&"right"!==i||(i=c<r.width/2?"right":"left"),o({isVisible:!0,position:[c,f],anchor:i,content:t})},[e,o]),l=(0,i.useCallback)(function(){o(y)},[o]);return{actions:(0,i.useMemo)(function(){return{showTooltipAt:r,showTooltipFromEvent:a,hideTooltip:l}},[r,a,l]),state:n}},w=function(){var e=(0,i.useContext)(x);if(void 0===e)throw Error("useTooltip must be used within a TooltipProvider");return e},M=function(){var e=(0,i.useContext)(k);if(void 0===e)throw Error("useTooltipState must be used within a TooltipProvider");return e},S=function(){var e=M();return e.isVisible?(0,l.jsx)(f,{position:e.position,anchor:e.anchor,children:e.content}):null},L=function(e){var t=e.container,n=e.children,i=C(t),o=i.actions,r=i.state;return(0,l.jsx)(x.Provider,{value:o,children:(0,l.jsx)(k.Provider,{value:r,children:n})})}},29235(e,t,n){n.d(t,{cl:()=>D});var i=n(96540),o=n(4554),r=n(96714),a=n(56534),l=n(74848),d=n(30806),u=n(53257),s=n(87594),c=n(10068),f=function(e,t){var n=e.left<=t.right&&t.left<=e.right,i=e.top<=t.bottom&&t.top<=e.bottom;return n&&i}
1,h=function(e){var t=e.width,n=e.height,i=e.rows,o=e.columns,r=e.padding,a=(t-(o-1)*r)/o,l=(n-(i-1)*r)/i;if(!e.square)return[a,l];var d=Math.min(a,l);return[d,d]},v=function(e){for(var t=e.width,n=e.height,i=e.columns,o=e.rows,r=e.padding,a=void 0===r?0:r,l=e.fillDirection,d=e.square,u=e.extend,s=h({width:t,height:n,rows:o,columns:i,padding:a,square:void 0===d||d}),c=s[0],f=s[1],v=[(t-(c*i+a*(i-1)))/2,(n-(f*o+a*(o-1)))/2],g=[],m=0;m<o;m++)for(var p=0;p<i;p++){var b=p*c,x=m*f,y=m+"."+p;g.push({key:y,index:0,column:p,row:m,x:b,y:x,width:c,height:f})}switch(void 0===l?"bottom":l){case"left":g.sort(function(e,t){return e.column!==t.column?t.column-e.column:t.row-e.row});break;case"top":g.sort(function(e,t){return e.row!==t.row?t.row-e.row:t.column-e.column});break;case"right":g.sort(function(e,t){return e.column!==t.column?e.column-t.column:e.row-t.row})}g.forEach(function(e,t){e.index=t});var k="function"==typeof u?g.map(function(e){return u(e,v)}):g;return{x:v[0],y:v[1],cellWidth:c,cellHeight:f,cells:k}};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var m=function(e){for(var t,n=[].concat(e).sort(function(e,t){return e.y!==t.y?e.y-t.y:e.x-t.x}),i=[],o=void 0,r=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return g(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(t=r()).done;){var a=t.value;void 0===o||a.y!==o.top?(o={top:a.y,right:a.x+a.width,bottom:a.y+a.height,left:a.x},i.push(o)):o.right=a.x+a.width}var l=[],d=void 0;return i.forEach(function(e,t){var n=t>0?i[t-1]:void 0;void 0!==n&&f(e,n)||((d=function(){var e=[],t=[];function n(){return[].concat(t,e)}return n.addRight=function(){t.push.apply(t,arguments)},n.addLeft=function(){e.unshift.apply(e,arguments)},n.debug=function(){return{right:t,left:e}},n}()).addLeft([e.left,e.top]),d.addRight([e.right,e.top]),l.push(d)),void 0!==n&&e.left!==n.left&&d.addLeft([e.left,e.top]),void 0!==n&&e.right!==n.right&&d.addRight([e.right,e.top]),d.addLeft([e.left,e.bottom]),d.addRight([e.right,e.bottom])}),l.map(function(e){return e()})},p=n(50396);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function x(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}var y,k={hiddenIds:[],fillDirection:"top",padding:1,colors:{scheme:"nivo"},emptyColor:"#cccccc",emptyOpacity:1,borderRadius:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:function(e){var t=e.data;return(0,l.jsx)(d.GK,{id:t.label,value:t.formattedValue,enableChip:!0,color:t.color})},role:"img",animate:!0,motionConfig:"gentle"},C=b({},k,{layers:["cells","areas","legends"],cellComponent:function(e){var t=e.cell,n=e.animatedProps,i=e.borderRadius,o=e.borderWidth,r=e.testIdPrefix;return(0,l.jsx)(a.CS.rect,{x:n.x,y:n.y,width:n.size,height:n.size,rx:i,ry:i,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:o,"data-test-id":r?r+".cell_"+t.key:void 0})},defs:[],fill:[],legends:[],motionStagger:0}),w=b({},k,{layers:["cells","areas"],cellComponent:function(e){var t=e.cell,n=e.animatedProps,i=e.borderRadius,o=e.borderWidth,r=e.testIdPrefix;return(0,l.jsx)(a.CS.div,{style:{position:"absolute",top:n.y,left:n.x,width:n.size,height:n.size,background:n.color,opacity:n.opacity,boxSizing:"content-box",borderStyle:"solid",borderRadius:i+"px",borderWidth:o+"px",borderColor:n.borderColor},"data-test-id":r?""+r+t.key:void 0})},defs:[],fill:[],legends:[],motionStagger:0}),M=b({},k,{legends:[],pixelRatio:"u">typeof window&&null!=(y=window.devicePixelRatio)?y:1}),S=function(e){return void 0!==e.data}
1,L=function(e){var t=e.width,n=e.height,r=e.data,a=e.hiddenIds,l=e.valueFormat,d=e.total,u=e.rows,f=e.columns,h=e.fillDirection,g=void 0===h?k.fillDirection:h,p=e.colors,x=void 0===p?k.colors:p,y=e.emptyColor,C=void 0===y?k.emptyColor:y,w=e.emptyOpacity,M=void 0===w?k.emptyOpacity:w,L=e.borderColor,R=void 0===L?k.borderColor:L,j=e.forwardLegendData,W=e.defs,A=void 0===W?[]:W,O=e.fill,P=void 0===O?[]:O,E=(0,o.d_)(l),I=(0,c.m1)(x,"id"),z=(0,s.DP)(),T=(0,c.nz)(R,z),B=d/(u*f),D=(0,i.useMemo)(function(){var e=0,t=[];return r.forEach(function(n,i){var o=a.includes(n.id),r=e,l=r;o||(l=r+Math.round(n.value/B)),e=l;var d=I(n),u={id:n.id,isHidden:o,label:n.label,value:n.value,formattedValue:E(n.value),groupIndex:i,startAt:r,endAt:l,color:d,borderColor:d,data:n,polygons:[]};u.borderColor=T(u),t.push(u)}),t},[r,a,B,E,I,T]),H=(0,i.useMemo)(function(){return(0,o.kc)(A,D,P)},[D,A,P]),_=(0,i.useMemo)(function(){var e,i,o,r,a,l,d,s,c;return i=(e={width:t,height:n,rows:u,columns:f,fillDirection:g,emptyColor:C,emptyOpacity:M,getBorderColor:T}).width,o=e.height,r=e.rows,a=e.columns,l=e.fillDirection,d=e.emptyColor,s=e.emptyOpacity,c=(0,e.getBorderColor)({color:d}),v({width:i,height:o,rows:r,columns:a,fillDirection:l,square:!0,extend:function(e,t){return b({},e,{x:t[0]+e.x,y:t[1]+e.y,color:d,opacity:s,borderColor:c})}}).cells},[t,n,u,f,g,C,M,T]),F=(0,i.useMemo)(function(){var e;return e=_.map(function(e){return b({},e)}),D.forEach(function(t){for(var n=t.startAt;n<t.endAt;n++){var i=e[n];void 0!==i&&(i.data=t,i.color=t.color,i.opacity=1,i.borderColor=t.borderColor,t.fill&&(i.fill=t.fill))}},[]),e},[_,D]),Y=(0,i.useMemo)(function(){return function(e){for(var t=e.reduce(function(e,t){return(e[t.data.id]=e[t.data.id]||[]).push(t),e},{}),n={},i=0,o=Object.entries(t);i<o.length;i++){var r=o[i],a=r[0],l=r[1];n[a]=m(l)}return n}(F.filter(S))},[F]);D.forEach(function(e){e.id in Y&&(e.polygons=Y[e.id])});var G=(0,i.useMemo)(function(){var e=D.map(function(e){return{id:e.id,label:e.label,color:e.color,data:e}});return["top","left"].includes(g)&&e.reverse(),e},[D,g]),V=(0,i.useRef)(j);return(0,i.useEffect)(function(){"function"==typeof V.current&&V.current(G)},[V,G]),{cells:F,computedData:D,legendData:G,getBorderColor:T,boundDefs:H}},R=function(){return(0,i.useMemo)(function(){return(0,u.n8)().curve(u.Lx)},[])},j=function(e,t,n){var o=t.onMouseEnter,r=t.onMouseMove,a=t.onMouseLeave,l=t.onClick,u=(0,d.fS)(),s=u.showTooltipFromEvent,c=u.hideTooltip;return{handleMouseEnter:(0,i.useCallback)(function(t){s((0,i.createElement)(n,{data:e}),t),null==o||o(e,t)},[s,n,e,o]),handleMouseMove:(0,i.useCallback)(function(t){s((0,i.createElement)(n,{data:e}),t),null==r||r(e,t)},[s,n,e,r]),handleMouseLeave:(0,i.useCallback)(function(t){c(),null==a||a(e,t)},[c,e,a]),handleClick:(0,i.useCallback)(function(t){c(),null==l||l(e,t)},[c,e,l])}},W=function(e){var t=e.cells,n=e.padding,r=e.motionStagger,l=(0,o.mk)(),d=l.animate,u=l.config,s=(0,i.useMemo)(function(){return function(e){return{x:e.x+n/2,y:e.y+n/2,color:e.color,size:e.width-n,opacity:e.opacity,borderColor:e.borderColor}}},[n]);return(0,a.pn)(t,{keys:function(e){return e.key},initial:s,enter:s,update:s,trail:d?r:void 0,config:u,immediate:!d})},A=function(e){var t=e.cells,n=e.computedData;return(0,i.useMemo)(function(){return{cells:t,computedData:n}},[t,n])},O=function(e){var t=e.cells,n=e.cellComponent,o=e.padding,r=e.borderRadius,a=e.borderWidth,d=e.motionStagger,u=e.testIdPrefix,s=W({cells:t,padding:o,motionStagger:d});return(0,l.jsx)("g",{children:s(function(e,t){return(0,i.createElement)(n,{key:t.key,cell:t,padding:o,animatedProps:e,borderRadius:r,borderWidth:a,testIdPrefix:u})})})},P=function(e){var t=e.data,n=e.pathGenerator,i=e.isInteractive,o=e.onMouseEnter,r=e.onMouseMove,a=e.onMouseLeave,d=e.onClick,u=e.tooltip,s=e.testIdPrefix,c=j(t,{onMouseEnter:o,onMouseMove:r,onMouseLeave:a,onClick:d},u),f=c.handleMouseEnter,h=c.handleMouseMove,v=c.handleMouseLeave,g=c.handleClick;return(0,l.jsx)(l.Fragment,{children:t.polygons.map(function(e,o){return(0,l.jsx)("path",{d:n(e),fill:"#000000",fillOpacity:0,onMouseEnter:i?f:void 0,onMouseMove:i?h:void 0,onMouseLeave:i?v:void 0,onClick:i?g:void 0,"data-test-id":s?s+".area_"+t.id+".polygon_"+o:void 0},o)})})},E=function(e){var t=e.data,n=e.isInteractive,i=e.onMouseEnter,o=e.onMouseMove,r=e.onMouseLeave,a=e.onClick,d=e.tooltip,u=e.testIdPrefix,s=R();return(0,l.jsx)("g",{children:t.map(function(e){return e.isHidden?null:(0,l.jsx)(P,{data:e,pathGenerator:s,isInteractive:n,onMouseEnter:i,onMouseMove:o,onMouseLeave:r,onClick:a,tooltip:d,testIdPrefix:u},e.id)})})},I=["isInteractive","animate","motionConfig","theme","renderWrapper"],z=function(e){var t=e.width,n=e.he
1ight,a=e.margin,d=e.data,u=e.valueFormat,s=e.total,c=e.rows,f=e.columns,h=e.fillDirection,v=void 0===h?C.fillDirection:h,g=e.padding,m=void 0===g?C.padding:g,p=e.hiddenIds,x=void 0===p?C.hiddenIds:p,y=e.layers,k=void 0===y?C.layers:y,w=e.cellComponent,M=void 0===w?C.cellComponent:w,S=e.colors,R=void 0===S?C.colors:S,j=e.emptyColor,W=void 0===j?C.emptyColor:j,P=e.emptyOpacity,I=void 0===P?C.emptyOpacity:P,z=e.borderRadius,T=void 0===z?C.borderRadius:z,B=e.borderWidth,D=void 0===B?C.borderWidth:B,H=e.borderColor,_=void 0===H?C.borderColor:H,F=e.defs,Y=void 0===F?C.defs:F,G=e.fill,V=void 0===G?C.fill:G,X=e.isInteractive,U=void 0===X?C.isInteractive:X,q=e.onMouseEnter,K=e.onMouseMove,N=e.onMouseLeave,Z=e.onClick,Q=e.tooltip,$=void 0===Q?C.tooltip:Q,J=e.forwardLegendData,ee=e.legends,et=void 0===ee?C.legends:ee,en=e.motionStagger,ei=void 0===en?C.motionStagger:en,eo=e.role,er=void 0===eo?C.role:eo,ea=e.ariaLabel,el=e.ariaLabelledBy,ed=e.ariaDescribedBy,eu=e.testIdPrefix,es=e.forwardedRef,ec=(0,o.Xl)(t,n,a),ef=ec.outerWidth,eh=ec.outerHeight,ev=ec.margin,eg=L({width:ec.innerWidth,height:ec.innerHeight,data:d,hiddenIds:x,valueFormat:u,total:s,rows:c,columns:f,fillDirection:v,colors:R,emptyColor:W,emptyOpacity:I,borderColor:_,forwardLegendData:J,defs:Y,fill:V}),em=eg.cells,ep=eg.legendData,eb=eg.computedData,ex=eg.boundDefs,ey={cells:null,areas:null,legends:null};k.includes("cells")&&(ey.cells=(0,l.jsx)(O,{cells:em,cellComponent:M,padding:m,borderRadius:T,borderWidth:D,motionStagger:ei,testIdPrefix:eu},"cells")),k.includes("areas")&&(ey.areas=(0,l.jsx)(E,{data:eb,isInteractive:U,onMouseEnter:q,onMouseMove:K,onMouseLeave:N,onClick:Z,tooltip:$,testIdPrefix:eu},"areas")),k.includes("legends")&&(ey.legends=(0,l.jsx)("g",{children:et.map(function(e,i){return(0,l.jsx)(r.$i,b({},e,{containerWidth:t,containerHeight:n,data:ep}),i)})},"legends"));var ek=A({cells:em,computedData:eb});return(0,l.jsx)(o.Ge,{width:ef,height:eh,margin:ev,defs:ex,role:er,ariaLabel:ea,ariaLabelledBy:el,ariaDescribedBy:ed,ref:es,children:k.map(function(e,t){var n;return"function"==typeof e?(0,l.jsx)(i.Fragment,{children:(0,i.createElement)(e,ek)},t):null!=(n=null==ey?void 0:ey[e])?n:null})})},T=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?C.isInteractive:n,r=e.animate,a=void 0===r?C.animate:r,d=e.motionConfig,u=void 0===d?C.motionConfig:d,s=e.theme,c=e.renderWrapper,f=x(e,I);return(0,l.jsx)(o.mc,{animate:a,isInteractive:i,motionConfig:u,renderWrapper:c,theme:s,children:(0,l.jsx)(z,b({},f,{forwardedRef:t,isInteractive:i}))})}),B=["defaultWidth","defaultHeight","onResize","debounceResize"],D=(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,d=x(e,B);return(0,l.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,l.jsx)(T,b({},d,{width:n,height:i,ref:t}))}})}),H=function(e){var t=e.cells,n=e.cellComponent,o=e.padding,r=e.borderRadius,a=e.borderWidth,d=e.motionStagger,u=e.testIdPrefix,s=e.margin,c=W({cells:t,padding:o,motionStagger:d});return(0,l.jsx)("div",{style:{position:"absolute",top:s.top,left:s.left},children:c(function(e,t){return(0,i.createElement)(n,{key:t.key,cell:t,padding:o,animatedProps:e,borderRadius:r,borderWidth:a,testIdPrefix:u})})})},_=function(e){var t=e.data,n=e.pathGenerator,i=e.isInteractive,o=e.onMouseEnter,r=e.onMouseMove,a=e.onMouseLeave,d=e.onClick,u=e.tooltip,s=e.testIdPrefix,c=j(t,{onMouseEnter:o,onMouseMove:r,onMouseLeave:a,onClick:d},u),f=c.handleMouseEnter,h=c.handleMouseMove,v=c.handleMouseLeave,g=c.handleClick;return(0,l.jsx)(l.Fragment,{children:t.polygons.map(function(e,o){return(0,l.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent",clipPath:"path('"+n(e)+"')"},onMouseEnter:i?f:void 0,onMouseMove:i?h:void 0,onMouseLeave:i?v:void 0,onClick:i?g:void 0,"data-test-id":s?s+".area_"+t.id+".polygon_"+o:void 0},o)})})},F=function(e){var t=e.data,n=e.margin,i=e.isInteractive,o=e.onMouseEnter,r=e.onMouseMove,a=e.onMouseLeave,d=e.onClick,u=e.tooltip,s=e.testIdPrefix,c=R();return(0,l.jsx)("div",{style:{position:"absolute",top:n.top,left
1:n.left,width:"100%",height:"100%"},children:t.map(function(e){return e.isHidden?null:(0,l.jsx)(_,{data:e,pathGenerator:c,isInteractive:i,onMouseEnter:o,onMouseMove:r,onMouseLeave:a,onClick:d,tooltip:u,testIdPrefix:s},e.id)})})},Y=["isInteractive","animate","motionConfig","theme","renderWrapper"],G=function(e){var t=e.width,n=e.height,r=e.margin,a=e.data,d=e.valueFormat,u=e.total,s=e.rows,c=e.columns,f=e.fillDirection,h=void 0===f?w.fillDirection:f,v=e.hiddenIds,g=void 0===v?w.hiddenIds:v,m=e.padding,p=void 0===m?w.padding:m,b=e.layers,x=void 0===b?w.layers:b,y=e.cellComponent,k=void 0===y?w.cellComponent:y,C=e.colors,M=void 0===C?w.colors:C,S=e.emptyColor,R=void 0===S?w.emptyColor:S,j=e.emptyOpacity,W=void 0===j?w.emptyOpacity:j,O=e.borderRadius,P=void 0===O?w.borderRadius:O,E=e.borderWidth,I=void 0===E?w.borderWidth:E,z=e.borderColor,T=void 0===z?w.borderColor:z,B=e.isInteractive,D=void 0===B?w.isInteractive:B,_=e.onMouseEnter,Y=e.onMouseMove,G=e.onMouseLeave,V=e.onClick,X=e.tooltip,U=void 0===X?w.tooltip:X,q=e.forwardLegendData,K=e.motionStagger,N=void 0===K?w.motionStagger:K,Z=e.role,Q=void 0===Z?w.role:Z,$=e.ariaLabel,J=e.ariaLabelledBy,ee=e.ariaDescribedBy,et=e.testIdPrefix,en=e.forwardedRef,ei=(0,o.Xl)(t,n,r),eo=ei.outerWidth,er=ei.outerHeight,ea=ei.margin,el=L({width:ei.innerWidth,height:ei.innerHeight,data:a,hiddenIds:g,valueFormat:d,total:u,rows:s,columns:c,fillDirection:h,colors:M,emptyColor:R,emptyOpacity:W,borderColor:T,forwardLegendData:q}),ed=el.cells,eu=el.computedData,es={cells:null,areas:null};x.includes("cells")&&(es.cells=(0,l.jsx)(H,{cells:ed,cellComponent:k,padding:p,margin:ea,borderRadius:P,borderWidth:I,motionStagger:N,testIdPrefix:et},"cells")),x.includes("areas")&&(es.areas=(0,l.jsx)(F,{data:eu,margin:ea,isInteractive:D,onMouseEnter:_,onMouseMove:Y,onMouseLeave:G,onClick:V,tooltip:U,testIdPrefix:et},"areas"));var ec=A({cells:ed,computedData:eu});return(0,l.jsx)("div",{style:{position:"relative",width:eo,height:er},role:Q,"aria-label":$,"aria-labelledby":J,"aria-describedby":ee,ref:en,children:x.map(function(e,t){var n;return"function"==typeof e?(0,l.jsx)(i.Fragment,{children:(0,i.createElement)(e,ec)},t):null!=(n=null==es?void 0:es[e])?n:null})})},V=(0,i.forwardRef)(function(e,t){var n=e.isInteractive,i=void 0===n?w.isInteractive:n,r=e.animate,a=void 0===r?w.animate:r,d=e.motionConfig,u=void 0===d?w.motionConfig:d,s=e.theme,c=e.renderWrapper,f=x(e,Y);return(0,l.jsx)(o.mc,{animate:a,isInteractive:i,motionConfig:u,renderWrapper:c,theme:s,children:(0,l.jsx)(G,b({isInteractive:i},f,{forwardedRef:t}))})}),X=["defaultWidth","defaultHeight","onResize","debounceResize"],U=((0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,d=x(e,X);return(0,l.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,l.jsx)(V,b({},d,{width:n,height:i,ref:t}))}})}),["theme","isInteractive","animate","motionConfig","renderWrapper"]),q=function(e,t,n,i){return e.find(function(e){return(0,o.u7)(t.left+e.x,t.top+e.y,e.width,e.height,n,i)})},K=function(e){var t=e.width,n=e.height,a=e.margin,u=e.data,c=e.valueFormat,f=e.total,h=e.rows,v=e.columns,g=e.fillDirection,m=void 0===g?M.fillDirection:g,x=e.hiddenIds,y=void 0===x?M.hiddenIds:x,k=e.padding,C=void 0===k?M.padding:k,w=e.colors,R=void 0===w?M.colors:w,j=e.emptyColor,W=void 0===j?M.emptyColor:j,A=e.emptyOpacity,O=void 0===A?M.emptyOpacity:A,P=e.borderRadius,E=void 0===P?M.borderRadius:P,I=e.borderWidth,z=void 0===I?M.borderWidth:I,T=e.borderColor,B=void 0===T?M.borderColor:T,D=e.isInteractive,H=void 0===D?M.isInteractive:D,_=e.onMouseMove,F=e.onClick,Y=e.tooltip,G=void 0===Y?M.tooltip:Y,V=e.forwardLegendData,X=e.legends,U=void 0===X?M.legends:X,K=e.role,N=void 0===K?M.role:K,Z=e.ariaLabel,Q=e.ariaLabelledBy,$=e.ariaDescribedBy,J=e.pixelRatio,ee=void 0===J?M.pixelRatio:J,et=e.forwardedRef,en=(0,i.useRef)(null),ei=(0,o.Xl)(t,n,a),eo=ei.margin,er=ei.innerWidth,ea=ei.innerHeight,el=ei.outerWidth,ed=ei.outerHeight,eu=L({width:er,height:ea,data:u,hiddenIds:y,valueFormat:c,total:f,rows:h,columns:v,fillDirection:m,colors:R,emptyColor:W,emptyOpacity:O,borderColor:B,forwardLegendD
1ata:V}),es=eu.cells,ec=eu.legendData,ef=(0,s.DP)();(0,i.useEffect)(function(){if(null!==en.current){var e=en.current.getContext("2d");null!==e&&(en.current.width=el*ee,en.current.height=ed*ee,e.scale(ee,ee),e.fillStyle=ef.background,e.fillRect(0,0,el,ed),e.translate(eo.left,eo.top),es.forEach(function(t){e.save(),e.fillStyle=t.color,e.globalAlpha=t.opacity;var n=t.x+C/2,i=t.y+C/2,o=t.width-C,r=t.height-C;e.beginPath(),(0,p.k)(e,n,i,o,r,E),e.fill(),z>0&&(e.strokeStyle=t.borderColor,e.lineWidth=z,e.beginPath(),(0,p.k)(e,n,i,o,r,E),e.stroke()),e.restore()}),U.forEach(function(i){(0,r.ZG)(e,b({},i,{data:ec,containerWidth:t,containerHeight:n,theme:ef}))}))}},[en,eo,el,ed,es,C,E,z,ef,t,n,ee,U,ec]);var eh=(0,d.fS)(),ev=eh.showTooltipFromEvent,eg=eh.hideTooltip,em=(0,i.useCallback)(function(e){if(null!==en.current){var t=(0,o.H9)(en.current,e),n=q(es,eo,t[0],t[1]);void 0!==n&&S(n)?(ev((0,i.createElement)(G,{data:n.data}),e,"top"),null==_||_(n.data,e)):eg()}},[en,es,eo,ev,eg,G,_]),ep=(0,i.useCallback)(function(){eg()},[eg]),eb=(0,i.useCallback)(function(e){if(F&&null!==en.current){var t=(0,o.H9)(en.current,e),n=q(es,eo,t[0],t[1]);void 0!==n&&S(n)&&F(n.data,e)}},[en,es,eo,F]);return(0,l.jsx)("canvas",{ref:(0,o.Px)(en,et),width:el*ee,height:ed*ee,style:{width:el,height:ed},onMouseEnter:H?em:void 0,onMouseMove:H?em:void 0,onMouseLeave:H?ep:void 0,onClick:H?eb:void 0,role:N,"aria-label":Z,"aria-labelledby":Q,"aria-describedby":$})},N=(0,i.forwardRef)(function(e,t){var n=e.theme,i=e.isInteractive,r=void 0===i?M.isInteractive:i,a=e.animate,d=void 0===a?M.animate:a,u=e.motionConfig,s=void 0===u?M.motionConfig:u,c=e.renderWrapper,f=x(e,U);return(0,l.jsx)(o.mc,{isInteractive:r,animate:d,motionConfig:s,theme:n,renderWrapper:c,children:(0,l.jsx)(K,b({},f,{isInteractive:r,forwardedRef:t}))})}),Z=["defaultWidth","defaultHeight","onResize","debounceResize"];(0,i.forwardRef)(function(e,t){var n=e.defaultWidth,i=e.defaultHeight,r=e.onResize,a=e.debounceResize,d=x(e,Z);return(0,l.jsx)(o.KF,{defaultWidth:n,defaultHeight:i,onResize:r,debounceResize:a,children:function(e){var n=e.width,i=e.height;return(0,l.jsx)(N,b({},d,{width:n,height:i,ref:t}))}})})}}]); 2//# sourceMappingURL=charts.3e568e56e4a90d20.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.