gf-components 0.1.166 → 0.1.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +17 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +160 -156
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -313,7 +313,7 @@ html body {
|
|
|
313
313
|
top:0 !important;
|
|
314
314
|
right:0 !important;
|
|
315
315
|
pointer-events: none !important;
|
|
316
|
-
`,uN=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],L0={},Lr;function dN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&L0[n])return L0[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=uN.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(L0[n]=l),l}function fN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Lr||(Lr=document.createElement("textarea"),Lr.setAttribute("tab-index","-1"),Lr.setAttribute("aria-hidden","true"),document.body.appendChild(Lr)),e.getAttribute("wrap")?Lr.setAttribute("wrap",e.getAttribute("wrap")):Lr.removeAttribute("wrap");var i=dN(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Lr.setAttribute("style","".concat(l,";").concat(cN)),Lr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Lr.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),n!==null||r!==null){Lr.value=" ";var h=Lr.scrollHeight-o;n!==null&&(c=h*n,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+o+a),d=f>u?"":"hidden",f=Math.min(u,f))}var m={height:f,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var hN=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],I0=0,A0=1,N0=2,gN=x.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=n.onInternalAutoSize,h=Ht(n,hN),m=Wn(i,{value:o,postState:function(ee){return ee??""}}),g=le(m,2),v=g[0],b=g[1],y=function(ee){b(ee.target.value),d==null||d(ee)},C=x.useRef();x.useImperativeHandle(t,function(){return{textArea:C.current}});var $=x.useMemo(function(){return a&&mt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=le($,2),M=w[0],R=w[1],E=!!a,_=function(){try{if(document.activeElement===C.current){var ee=C.current,Q=ee.selectionStart,K=ee.selectionEnd,J=ee.scrollTop;C.current.setSelectionRange(Q,K),C.current.scrollTop=J}}catch{}},O=x.useState(N0),k=le(O,2),A=k[0],j=k[1],H=x.useState(),T=le(H,2),P=T[0],V=T[1],I=function(){j(I0),process.env.NODE_ENV==="test"&&(f==null||f())};en(function(){E&&I()},[o,M,R,E]),en(function(){if(A===I0)j(A0);else if(A===A0){var Y=fN(C.current,!1,M,R);j(N0),V(Y)}else _()},[A]);var L=x.useRef(),N=function(){tn.cancel(L.current)},z=function(ee){A===N0&&(s==null||s(ee),a&&(N(),L.current=tn(function(){I()})))};x.useEffect(function(){return N},[]);var q=E?P:null,G=ne(ne({},c),q);return(A===I0||A===A0)&&(G.overflowY="hidden",G.overflowX="hidden"),x.createElement(Er,{onResize:z,disabled:!(a||s)},x.createElement("textarea",dt({},h,{ref:C,style:G,className:Me(r,l,te({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:y})))}),vN=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],mN=S.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,b=e.className,y=e.style,C=e.disabled,$=e.hidden,w=e.classNames,M=e.styles,R=e.onResize,E=e.onClear,_=e.onPressEnter,O=e.readOnly,k=e.autoSize,A=e.onKeyDown,j=Ht(e,vN),H=Wn(r,{value:i,defaultValue:r}),T=le(H,2),P=T[0],V=T[1],I=P==null?"":String(P),L=S.useState(!1),N=le(L,2),z=N[0],q=N[1],G=S.useRef(!1),Y=S.useState(null),ee=le(Y,2),Q=ee[0],K=ee[1],J=S.useRef(null),W=S.useRef(null),Z=function(){var je;return(je=W.current)===null||je===void 0?void 0:je.textArea},U=function(){Z().focus()};S.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:W.current,focus:U,blur:function(){Z().blur()},nativeElement:((Fe=J.current)===null||Fe===void 0?void 0:Fe.nativeElement)||Z()}}),S.useEffect(function(){q(function(Fe){return!C&&Fe})},[C]);var F=S.useState(null),re=le(F,2),B=re[0],ie=re[1];S.useEffect(function(){if(B){var Fe;(Fe=Z()).setSelectionRange.apply(Fe,ut(B))}},[B]);var oe=Yx(v,g),ve=(n=oe.max)!==null&&n!==void 0?n:c,xe=Number(ve)>0,pe=oe.strategy(I),ye=!!ve&&pe>ve,Se=function(je,Qe){var Ze=Qe;!G.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Qe)>oe.max&&(Ze=oe.exceedFormatter(Qe,{max:oe.max}),Qe!==Ze&&ie([Z().selectionStart||0,Z().selectionEnd||0])),V(Ze),Z1(je.currentTarget,je,s,Ze)},me=function(je){G.current=!0,u==null||u(je)},ge=function(je){G.current=!1,Se(je,je.currentTarget.value),d==null||d(je)},ce=function(je){Se(je,je.target.value)},$e=function(je){je.key==="Enter"&&_&&_(je),A==null||A(je)},he=function(je){q(!0),o==null||o(je)},Ae=function(je){q(!1),a==null||a(je)},Ie=function(je){V(""),U(),Z1(Z(),je,s)},Re=f,ke;oe.show&&(oe.showFormatter?ke=oe.showFormatter({value:I,count:pe,maxLength:ve}):ke="".concat(pe).concat(xe?" / ".concat(ve):""),Re=S.createElement(S.Fragment,null,Re,S.createElement("span",{className:Me("".concat(m,"-data-count"),w==null?void 0:w.count),style:M==null?void 0:M.count},ke)));var Ye=function(je){var Qe;R==null||R(je),(Qe=Z())!==null&&Qe!==void 0&&Qe.style.height&&K(!0)},Xe=!k&&!g&&!l;return S.createElement(Gx,{ref:J,value:I,allowClear:l,handleReset:Ie,suffix:Re,prefixCls:m,classNames:ne(ne({},w),{},{affixWrapper:Me(w==null?void 0:w.affixWrapper,te(te({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:C,focused:z,className:Me(b,ye&&"".concat(m,"-out-of-range")),style:ne(ne({},y),Q&&!Xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ke=="string"?ke:void 0}},hidden:$,readOnly:O,onClear:E},S.createElement(gN,dt({},j,{autoSize:k,maxLength:c,onKeyDown:$e,onChange:ce,onFocus:he,onBlur:Ae,onCompositionStart:me,onCompositionEnd:ge,className:Me(w==null?void 0:w.textarea),style:ne(ne({},M==null?void 0:M.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:m,onResize:Ye,ref:W,readOnly:O})))}),pN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bN=S.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:h,styles:m,variant:g}=e,v=pN(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:N}=On("TextArea");N(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:C}=x.useContext(jt),$=Wo(a),w=x.useContext(To),M=s??w,{status:R,hasFeedback:E,feedbackIcon:_}=x.useContext(ba),O=Ug(R,l),k=x.useRef(null);x.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=k.current)===null||N===void 0?void 0:N.resizableTextArea,focus:z=>{var q,G;sN((G=(q=k.current)===null||q===void 0?void 0:q.resizableTextArea)===null||G===void 0?void 0:G.textArea,z)},blur:()=>{var z;return(z=k.current)===null||z===void 0?void 0:z.blur()}}});const A=b("input",i),j=Ks(A),[H,T,P]=Lx(A,j),[V,I]=qg("textArea",g,o),L=Kx(c??(C==null?void 0:C.allowClear));return H(x.createElement(mN,Object.assign({autoComplete:C==null?void 0:C.autoComplete},v,{style:Object.assign(Object.assign({},C==null?void 0:C.style),h),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),m),disabled:M,allowClear:L,className:Me(P,j,f,d,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},u),C==null?void 0:C.classNames),{textarea:Me({[`${A}-sm`]:$==="small",[`${A}-lg`]:$==="large"},T,u==null?void 0:u.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Me({[`${A}-${V}`]:I},B1(A,O)),affixWrapper:Me(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:y==="rtl",[`${A}-affix-wrapper-sm`]:$==="small",[`${A}-affix-wrapper-lg`]:$==="large",[`${A}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},T)}),prefixCls:A,suffix:E&&x.createElement("span",{className:`${A}-textarea-suffix`},_),ref:k})))});function U1(e){return["small","middle","large"].includes(e)}function o6(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Xx=S.createContext({latestIndex:0}),yN=Xx.Provider,xN=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=x.useContext(Xx);return r==null?null:x.createElement(x.Fragment,null,x.createElement("div",{className:t,style:o},r),n<a&&i&&x.createElement("span",{className:`${t}-split`},i))};var CN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wN=x.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=x.useContext(jt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:b=!1,classNames:y,styles:C}=e,$=CN(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,M]=Array.isArray(l)?l:[l,l],R=U1(M),E=U1(w),_=o6(M),O=o6(w),k=Or(f,{keepEmpty:!0}),A=c===void 0&&h==="horizontal"?"center":c,j=o("space",m),[H,T,P]=vy(j),V=Me(j,a==null?void 0:a.className,T,`${j}-${h}`,{[`${j}-rtl`]:s==="rtl",[`${j}-align-${A}`]:A,[`${j}-gap-row-${M}`]:R,[`${j}-gap-col-${w}`]:E},u,d,P),I=Me(`${j}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let L=0;const N=k.map((G,Y)=>{var ee,Q;G!=null&&(L=Y);const K=(G==null?void 0:G.key)||`${I}-${Y}`;return x.createElement(xN,{className:I,key:K,index:Y,split:g,style:(ee=C==null?void 0:C.item)!==null&&ee!==void 0?ee:(Q=a==null?void 0:a.styles)===null||Q===void 0?void 0:Q.item},G)}),z=x.useMemo(()=>({latestIndex:L}),[L]);if(k.length===0)return null;const q={};return b&&(q.flexWrap="wrap"),!E&&O&&(q.columnGap=w),!R&&_&&(q.rowGap=M),H(x.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},q),a==null?void 0:a.style),v)},$),x.createElement(yN,{value:z},N)))}),Gd=wN;Gd.Compact=mR;process.env.NODE_ENV!=="production"&&(Gd.displayName="Space");const Qx=["wrap","nowrap","wrap-reverse"],Jx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],eC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],SN=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Qx.includes(n)}},$N=(e,t)=>{const n={};return eC.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},MN=(e,t)=>{const n={};return Jx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function _N(e,t){return Me(Object.assign(Object.assign(Object.assign({},SN(e,t)),$N(e,t)),MN(e,t)))}const EN=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},HN=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ON=e=>{const{componentCls:t}=e,n={};return Qx.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},VN=e=>{const{componentCls:t}=e,n={};return eC.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},RN=e=>{const{componentCls:t}=e,n={};return Jx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},TN=()=>({}),kN=yr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=bn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[EN(i),HN(i),ON(i),VN(i),RN(i)]},TN,{resetStyle:!1});var jN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qt=S.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:i,style:o,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=jN(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:h,getPrefixCls:m}=S.useContext(jt),g=m("flex",n),[v,b,y]=kN(g),C=c??(f==null?void 0:f.vertical),$=Me(i,r,f==null?void 0:f.className,g,b,y,_N(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:U1(s),[`${g}-vertical`]:C}),w=Object.assign(Object.assign({},f==null?void 0:f.style),o);return a&&(w.flex=a),s&&!U1(s)&&(w.gap=s),v(S.createElement(u,Object.assign({ref:t,className:$,style:w},Tr(d,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(qt.displayName="Flex");var PN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},LN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:PN}))},tC=x.forwardRef(LN);process.env.NODE_ENV!=="production"&&(tC.displayName="CopyOutlined");var IN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},AN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:IN}))},nC=x.forwardRef(AN);process.env.NODE_ENV!=="production"&&(nC.displayName="DownloadOutlined");var NN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},FN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:NN}))},rC=x.forwardRef(FN);process.env.NODE_ENV!=="production"&&(rC.displayName="EditOutlined");var DN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},zN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:DN}))},iC=x.forwardRef(zN);process.env.NODE_ENV!=="production"&&(iC.displayName="EnterOutlined");var BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},WN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:BN}))},oC=x.forwardRef(WN);process.env.NODE_ENV!=="production"&&(oC.displayName="InfoCircleOutlined");var ZN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const UN={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},X3=x.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===Le.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===Le.ENTER&&f&&f()},{style:i,noStyle:o,disabled:a,tabIndex:s=0}=e,l=ZN(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},UN)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),i),x.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),qN=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},GN=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
316
|
+
`,uN=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],L0={},Lr;function dN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&L0[n])return L0[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=uN.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(L0[n]=l),l}function fN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Lr||(Lr=document.createElement("textarea"),Lr.setAttribute("tab-index","-1"),Lr.setAttribute("aria-hidden","true"),document.body.appendChild(Lr)),e.getAttribute("wrap")?Lr.setAttribute("wrap",e.getAttribute("wrap")):Lr.removeAttribute("wrap");var i=dN(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Lr.setAttribute("style","".concat(l,";").concat(cN)),Lr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Lr.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),n!==null||r!==null){Lr.value=" ";var h=Lr.scrollHeight-o;n!==null&&(c=h*n,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+o+a),d=f>u?"":"hidden",f=Math.min(u,f))}var m={height:f,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var hN=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],I0=0,A0=1,N0=2,gN=x.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=n.onInternalAutoSize,h=Ht(n,hN),m=Wn(i,{value:o,postState:function(ee){return ee??""}}),g=le(m,2),v=g[0],b=g[1],y=function(ee){b(ee.target.value),d==null||d(ee)},C=x.useRef();x.useImperativeHandle(t,function(){return{textArea:C.current}});var $=x.useMemo(function(){return a&&mt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=le($,2),M=w[0],R=w[1],E=!!a,_=function(){try{if(document.activeElement===C.current){var ee=C.current,Q=ee.selectionStart,K=ee.selectionEnd,J=ee.scrollTop;C.current.setSelectionRange(Q,K),C.current.scrollTop=J}}catch{}},O=x.useState(N0),k=le(O,2),A=k[0],j=k[1],H=x.useState(),T=le(H,2),P=T[0],V=T[1],I=function(){j(I0),process.env.NODE_ENV==="test"&&(f==null||f())};en(function(){E&&I()},[o,M,R,E]),en(function(){if(A===I0)j(A0);else if(A===A0){var Y=fN(C.current,!1,M,R);j(N0),V(Y)}else _()},[A]);var L=x.useRef(),N=function(){tn.cancel(L.current)},z=function(ee){A===N0&&(s==null||s(ee),a&&(N(),L.current=tn(function(){I()})))};x.useEffect(function(){return N},[]);var q=E?P:null,G=ne(ne({},c),q);return(A===I0||A===A0)&&(G.overflowY="hidden",G.overflowX="hidden"),x.createElement(Er,{onResize:z,disabled:!(a||s)},x.createElement("textarea",dt({},h,{ref:C,style:G,className:Me(r,l,te({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:y})))}),vN=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],mN=S.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,b=e.className,y=e.style,C=e.disabled,$=e.hidden,w=e.classNames,M=e.styles,R=e.onResize,E=e.onClear,_=e.onPressEnter,O=e.readOnly,k=e.autoSize,A=e.onKeyDown,j=Ht(e,vN),H=Wn(r,{value:i,defaultValue:r}),T=le(H,2),P=T[0],V=T[1],I=P==null?"":String(P),L=S.useState(!1),N=le(L,2),z=N[0],q=N[1],G=S.useRef(!1),Y=S.useState(null),ee=le(Y,2),Q=ee[0],K=ee[1],J=S.useRef(null),W=S.useRef(null),Z=function(){var je;return(je=W.current)===null||je===void 0?void 0:je.textArea},U=function(){Z().focus()};S.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:W.current,focus:U,blur:function(){Z().blur()},nativeElement:((Fe=J.current)===null||Fe===void 0?void 0:Fe.nativeElement)||Z()}}),S.useEffect(function(){q(function(Fe){return!C&&Fe})},[C]);var F=S.useState(null),re=le(F,2),B=re[0],ie=re[1];S.useEffect(function(){if(B){var Fe;(Fe=Z()).setSelectionRange.apply(Fe,ut(B))}},[B]);var oe=Yx(v,g),ve=(n=oe.max)!==null&&n!==void 0?n:c,xe=Number(ve)>0,pe=oe.strategy(I),ye=!!ve&&pe>ve,Se=function(je,Qe){var Ze=Qe;!G.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Qe)>oe.max&&(Ze=oe.exceedFormatter(Qe,{max:oe.max}),Qe!==Ze&&ie([Z().selectionStart||0,Z().selectionEnd||0])),V(Ze),Z1(je.currentTarget,je,s,Ze)},me=function(je){G.current=!0,u==null||u(je)},ge=function(je){G.current=!1,Se(je,je.currentTarget.value),d==null||d(je)},ce=function(je){Se(je,je.target.value)},$e=function(je){je.key==="Enter"&&_&&_(je),A==null||A(je)},he=function(je){q(!0),o==null||o(je)},Ae=function(je){q(!1),a==null||a(je)},Ie=function(je){V(""),U(),Z1(Z(),je,s)},Re=f,ke;oe.show&&(oe.showFormatter?ke=oe.showFormatter({value:I,count:pe,maxLength:ve}):ke="".concat(pe).concat(xe?" / ".concat(ve):""),Re=S.createElement(S.Fragment,null,Re,S.createElement("span",{className:Me("".concat(m,"-data-count"),w==null?void 0:w.count),style:M==null?void 0:M.count},ke)));var Ye=function(je){var Qe;R==null||R(je),(Qe=Z())!==null&&Qe!==void 0&&Qe.style.height&&K(!0)},Xe=!k&&!g&&!l;return S.createElement(Gx,{ref:J,value:I,allowClear:l,handleReset:Ie,suffix:Re,prefixCls:m,classNames:ne(ne({},w),{},{affixWrapper:Me(w==null?void 0:w.affixWrapper,te(te({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:C,focused:z,className:Me(b,ye&&"".concat(m,"-out-of-range")),style:ne(ne({},y),Q&&!Xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ke=="string"?ke:void 0}},hidden:$,readOnly:O,onClear:E},S.createElement(gN,dt({},j,{autoSize:k,maxLength:c,onKeyDown:$e,onChange:ce,onFocus:he,onBlur:Ae,onCompositionStart:me,onCompositionEnd:ge,className:Me(w==null?void 0:w.textarea),style:ne(ne({},M==null?void 0:M.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:m,onResize:Ye,ref:W,readOnly:O})))}),pN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bN=S.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:h,styles:m,variant:g}=e,v=pN(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:N}=On("TextArea");N(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:C}=x.useContext(jt),$=Wo(a),w=x.useContext(To),M=s??w,{status:R,hasFeedback:E,feedbackIcon:_}=x.useContext(ba),O=Ug(R,l),k=x.useRef(null);x.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=k.current)===null||N===void 0?void 0:N.resizableTextArea,focus:z=>{var q,G;sN((G=(q=k.current)===null||q===void 0?void 0:q.resizableTextArea)===null||G===void 0?void 0:G.textArea,z)},blur:()=>{var z;return(z=k.current)===null||z===void 0?void 0:z.blur()}}});const A=b("input",i),j=Ks(A),[H,T,P]=Lx(A,j),[V,I]=qg("textArea",g,o),L=Kx(c??(C==null?void 0:C.allowClear));return H(x.createElement(mN,Object.assign({autoComplete:C==null?void 0:C.autoComplete},v,{style:Object.assign(Object.assign({},C==null?void 0:C.style),h),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),m),disabled:M,allowClear:L,className:Me(P,j,f,d,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},u),C==null?void 0:C.classNames),{textarea:Me({[`${A}-sm`]:$==="small",[`${A}-lg`]:$==="large"},T,u==null?void 0:u.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Me({[`${A}-${V}`]:I},B1(A,O)),affixWrapper:Me(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:y==="rtl",[`${A}-affix-wrapper-sm`]:$==="small",[`${A}-affix-wrapper-lg`]:$==="large",[`${A}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},T)}),prefixCls:A,suffix:E&&x.createElement("span",{className:`${A}-textarea-suffix`},_),ref:k})))});function U1(e){return["small","middle","large"].includes(e)}function o6(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Xx=S.createContext({latestIndex:0}),yN=Xx.Provider,xN=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=x.useContext(Xx);return r==null?null:x.createElement(x.Fragment,null,x.createElement("div",{className:t,style:o},r),n<a&&i&&x.createElement("span",{className:`${t}-split`},i))};var CN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wN=x.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=x.useContext(jt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:h="horizontal",prefixCls:m,split:g,style:v,wrap:b=!1,classNames:y,styles:C}=e,$=CN(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,M]=Array.isArray(l)?l:[l,l],R=U1(M),E=U1(w),_=o6(M),O=o6(w),k=Or(f,{keepEmpty:!0}),A=c===void 0&&h==="horizontal"?"center":c,j=o("space",m),[H,T,P]=vy(j),V=Me(j,a==null?void 0:a.className,T,`${j}-${h}`,{[`${j}-rtl`]:s==="rtl",[`${j}-align-${A}`]:A,[`${j}-gap-row-${M}`]:R,[`${j}-gap-col-${w}`]:E},u,d,P),I=Me(`${j}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let L=0;const N=k.map((G,Y)=>{var ee,Q;G!=null&&(L=Y);const K=(G==null?void 0:G.key)||`${I}-${Y}`;return x.createElement(xN,{className:I,key:K,index:Y,split:g,style:(ee=C==null?void 0:C.item)!==null&&ee!==void 0?ee:(Q=a==null?void 0:a.styles)===null||Q===void 0?void 0:Q.item},G)}),z=x.useMemo(()=>({latestIndex:L}),[L]);if(k.length===0)return null;const q={};return b&&(q.flexWrap="wrap"),!E&&O&&(q.columnGap=w),!R&&_&&(q.rowGap=M),H(x.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},q),a==null?void 0:a.style),v)},$),x.createElement(yN,{value:z},N)))}),Gd=wN;Gd.Compact=mR;process.env.NODE_ENV!=="production"&&(Gd.displayName="Space");const Qx=["wrap","nowrap","wrap-reverse"],Jx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],eC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],SN=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Qx.includes(n)}},$N=(e,t)=>{const n={};return eC.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},MN=(e,t)=>{const n={};return Jx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function _N(e,t){return Me(Object.assign(Object.assign(Object.assign({},SN(e,t)),$N(e,t)),MN(e,t)))}const EN=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},HN=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ON=e=>{const{componentCls:t}=e,n={};return Qx.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},VN=e=>{const{componentCls:t}=e,n={};return eC.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},RN=e=>{const{componentCls:t}=e,n={};return Jx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},TN=()=>({}),kN=yr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=bn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[EN(i),HN(i),ON(i),VN(i),RN(i)]},TN,{resetStyle:!1});var jN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zt=S.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:i,style:o,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=jN(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:h,getPrefixCls:m}=S.useContext(jt),g=m("flex",n),[v,b,y]=kN(g),C=c??(f==null?void 0:f.vertical),$=Me(i,r,f==null?void 0:f.className,g,b,y,_N(g,e),{[`${g}-rtl`]:h==="rtl",[`${g}-gap-${s}`]:U1(s),[`${g}-vertical`]:C}),w=Object.assign(Object.assign({},f==null?void 0:f.style),o);return a&&(w.flex=a),s&&!U1(s)&&(w.gap=s),v(S.createElement(u,Object.assign({ref:t,className:$,style:w},Tr(d,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(zt.displayName="Flex");var PN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},LN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:PN}))},tC=x.forwardRef(LN);process.env.NODE_ENV!=="production"&&(tC.displayName="CopyOutlined");var IN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},AN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:IN}))},nC=x.forwardRef(AN);process.env.NODE_ENV!=="production"&&(nC.displayName="DownloadOutlined");var NN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},FN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:NN}))},rC=x.forwardRef(FN);process.env.NODE_ENV!=="production"&&(rC.displayName="EditOutlined");var DN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},zN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:DN}))},iC=x.forwardRef(zN);process.env.NODE_ENV!=="production"&&(iC.displayName="EnterOutlined");var BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},WN=function(t,n){return x.createElement(Gn,dt({},t,{ref:n,icon:BN}))},oC=x.forwardRef(WN);process.env.NODE_ENV!=="production"&&(oC.displayName="InfoCircleOutlined");var ZN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const UN={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},X3=x.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===Le.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===Le.ENTER&&f&&f()},{style:i,noStyle:o,disabled:a,tabIndex:s=0}=e,l=ZN(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},UN)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),i),x.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),qN=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},GN=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
317
317
|
h${r}&,
|
|
318
318
|
div&-h${r},
|
|
319
319
|
div&-h${r} > textarea,
|
|
@@ -416,7 +416,7 @@ html body {
|
|
|
416
416
|
font: var(--gf-label-md-default);
|
|
417
417
|
color: var(--gf-color-button-primary);
|
|
418
418
|
text-decoration-line: underline;
|
|
419
|
-
`,WF=({title:e,subtitle:t,text:n,listTitle:r,items:i,gap:o,...a})=>{const s=l=>{if(typeof l!="string"){const c=l.current.getBoundingClientRect().top+window.scrollY-(o||0);window.scroll({top:c,behavior:"smooth"})}};return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(DF,{cardtype:"default",...a,children:[p.jsxs(
|
|
419
|
+
`,WF=({title:e,subtitle:t,text:n,listTitle:r,items:i,gap:o,...a})=>{const s=l=>{if(typeof l!="string"){const c=l.current.getBoundingClientRect().top+window.scrollY-(o||0);window.scroll({top:c,behavior:"smooth"})}};return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(DF,{cardtype:"default",...a,children:[p.jsxs(zt,{vertical:!0,gap:24,style:{alignItems:"start"},children:[p.jsx(gC,{title:e,subtitle:t,type:"header"}),n]}),p.jsx("div",{style:{borderBottom:"1px solid #f0f0f0",margin:"32px -32px 32px -32px"}}),p.jsxs(zt,{vertical:!0,gap:8,style:{alignItems:"start"},children:[p.jsx(zF,{children:r||"Table of contents"}),i.map((l,c)=>p.jsx(BF,{type:"link",href:typeof l.href=="string"?l.href:void 0,onClick:()=>s(l.href),children:l.name},`button-select-item-${c}`))]})]})]})},ZF=({tabList:e,tabContent:t,tabBarExtraContent:n,expandContent:r,expandLabel:i,padding:o=24,handleDownload:a,...s})=>{var m;const[l,c]=S.useState((m=e==null?void 0:e[0])==null?void 0:m.key),[u,d]=S.useState(!1),f=g=>{c(g)},h=()=>{d(g=>!g)};return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(Qs,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:l,onTabChange:f,tabBarExtraContent:p.jsxs(zt,{gap:8,align:"center",children:[n,p.jsx(cC,{onClick:a==null?void 0:a[l]})]}),actions:r!=null&&r[l]?[p.jsxs(zt,{vertical:!0,children:[p.jsx(uC,{open:u,onClick:h,children:i}),u&&(r==null?void 0:r[l])]})]:void 0,styles:{header:{padding:"0px 24px"},body:{padding:o}},...s,children:t==null?void 0:t[l]})]})},{Paragraph:N5e,Text:sv}=mo,UF=yt(Qs)`
|
|
420
420
|
min-width: 226px;
|
|
421
421
|
`,qF=yt(sv)`
|
|
422
422
|
font: var(--gf-header-h1);
|
|
@@ -426,7 +426,7 @@ html body {
|
|
|
426
426
|
`,YF=yt(sv)`
|
|
427
427
|
font: var(--gf-label-lg-default);
|
|
428
428
|
color: var(--gf-color-text-secondary);
|
|
429
|
-
`,vC=({percent:e,cost:t,description:n,editable:r,...i})=>{const[o,a]=S.useState(n),s=r?{onChange:a}:!1;return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(UF,{cardtype:"grey",padding:24,...i,children:p.jsxs(
|
|
429
|
+
`,vC=({percent:e,cost:t,description:n,editable:r,...i})=>{const[o,a]=S.useState(n),s=r?{onChange:a}:!1;return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(UF,{cardtype:"grey",padding:24,...i,children:p.jsxs(zt,{vertical:!0,gap:8,children:[p.jsxs(zt,{gap:16,align:"center",wrap:!0,children:[p.jsx(qF,{children:e}),p.jsx(GF,{children:t})]}),p.jsx(YF,{editable:s,children:o})]})})]})},{Text:KF}=mo,XF=yt.a`
|
|
430
430
|
text-decoration: none;
|
|
431
431
|
`,QF=yt(KF)`
|
|
432
432
|
font: var(--gf-label-md-default);
|
|
@@ -441,7 +441,7 @@ html body {
|
|
|
441
441
|
`,rD=yt.div`
|
|
442
442
|
font: var(--gf-label-lg-default);
|
|
443
443
|
color: var(--gf-color-text-secondary);
|
|
444
|
-
`,iD=({id:e,text:t,columns:n,textalign:r="justify",gap:i="1em",style:o,className:a,editable:s})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(nD,{id:e,columns:n,textalign:r,style:o||{},className:a||"",contentEditable:s,suppressContentEditableWarning:s,children:t==null?void 0:t.map((l,c)=>p.jsx(rD,{dangerouslySetInnerHTML:{__html:l},style:{marginBottom:i}},`${e}-${c}`))})]}),oD=({metricsData:e,className:t=null,gap:n=null,justify:r="center",wrap:i=!0,style:o={},full:a=!1})=>p.jsx(
|
|
444
|
+
`,iD=({id:e,text:t,columns:n,textalign:r="justify",gap:i="1em",style:o,className:a,editable:s})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(nD,{id:e,columns:n,textalign:r,style:o||{},className:a||"",contentEditable:s,suppressContentEditableWarning:s,children:t==null?void 0:t.map((l,c)=>p.jsx(rD,{dangerouslySetInnerHTML:{__html:l},style:{marginBottom:i}},`${e}-${c}`))})]}),oD=({metricsData:e,className:t=null,gap:n=null,justify:r="center",wrap:i=!0,style:o={},full:a=!1})=>p.jsx(zt,{className:t,gap:n||10,justify:r,wrap:i,style:o,children:e==null?void 0:e.map((s,l)=>p.jsx(vC,{percent:s.percent,description:s.description,cost:s.cost,editable:s.editable,style:{width:a?"100%":`${100/e.length-1}%`}},`metrics-${l}`))});var aD=typeof ju=="object"&&ju&&ju.Object===Object&&ju,yC=aD,sD=yC,lD=typeof self=="object"&&self&&self.Object===Object&&self,cD=sD||lD||Function("return this")(),$i=cD,uD=$i,dD=uD.Symbol,Js=dD,d6=Js,xC=Object.prototype,fD=xC.hasOwnProperty,hD=xC.toString,Pl=d6?d6.toStringTag:void 0;function gD(e){var t=fD.call(e,Pl),n=e[Pl];try{e[Pl]=void 0;var r=!0}catch{}var i=hD.call(e);return r&&(t?e[Pl]=n:delete e[Pl]),i}var vD=gD,mD=Object.prototype,pD=mD.toString;function bD(e){return pD.call(e)}var yD=bD,f6=Js,xD=vD,CD=yD,wD="[object Null]",SD="[object Undefined]",h6=f6?f6.toStringTag:void 0;function $D(e){return e==null?e===void 0?SD:wD:h6&&h6 in Object(e)?xD(e):CD(e)}var po=$D;function MD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mi=MD,_D=po,ED=Mi,HD="[object AsyncFunction]",OD="[object Function]",VD="[object GeneratorFunction]",RD="[object Proxy]";function TD(e){if(!ED(e))return!1;var t=_D(e);return t==OD||t==VD||t==HD||t==RD}var Xd=TD;const el=Cn(Xd);var kD=$i,jD=kD["__core-js_shared__"],PD=jD,Z0=PD,g6=function(){var e=/[^.]+$/.exec(Z0&&Z0.keys&&Z0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function LD(e){return!!g6&&g6 in e}var ID=LD,AD=Function.prototype,ND=AD.toString;function FD(e){if(e!=null){try{return ND.call(e)}catch{}try{return e+""}catch{}}return""}var CC=FD,DD=Xd,zD=ID,BD=Mi,WD=CC,ZD=/[\\^$.*+?()[\]{}|]/g,UD=/^\[object .+?Constructor\]$/,qD=Function.prototype,GD=Object.prototype,YD=qD.toString,KD=GD.hasOwnProperty,XD=RegExp("^"+YD.call(KD).replace(ZD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QD(e){if(!BD(e)||zD(e))return!1;var t=DD(e)?XD:UD;return t.test(WD(e))}var JD=QD;function ez(e,t){return e==null?void 0:e[t]}var tz=ez,nz=JD,rz=tz;function iz(e,t){var n=rz(e,t);return nz(n)?n:void 0}var Ia=iz,oz=Ia,az=oz(Object,"create"),Qd=az,v6=Qd;function sz(){this.__data__=v6?v6(null):{},this.size=0}var lz=sz;function cz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uz=cz,dz=Qd,fz="__lodash_hash_undefined__",hz=Object.prototype,gz=hz.hasOwnProperty;function vz(e){var t=this.__data__;if(dz){var n=t[e];return n===fz?void 0:n}return gz.call(t,e)?t[e]:void 0}var mz=vz,pz=Qd,bz=Object.prototype,yz=bz.hasOwnProperty;function xz(e){var t=this.__data__;return pz?t[e]!==void 0:yz.call(t,e)}var Cz=xz,wz=Qd,Sz="__lodash_hash_undefined__";function $z(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wz&&t===void 0?Sz:t,this}var Mz=$z,_z=lz,Ez=uz,Hz=mz,Oz=Cz,Vz=Mz;function tl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tl.prototype.clear=_z;tl.prototype.delete=Ez;tl.prototype.get=Hz;tl.prototype.has=Oz;tl.prototype.set=Vz;var Rz=tl;function Tz(){this.__data__=[],this.size=0}var kz=Tz;function jz(e,t){return e===t||e!==e&&t!==t}var hu=jz,Pz=hu;function Lz(e,t){for(var n=e.length;n--;)if(Pz(e[n][0],t))return n;return-1}var Jd=Lz,Iz=Jd,Az=Array.prototype,Nz=Az.splice;function Fz(e){var t=this.__data__,n=Iz(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Nz.call(t,n,1),--this.size,!0}var Dz=Fz,zz=Jd;function Bz(e){var t=this.__data__,n=zz(t,e);return n<0?void 0:t[n][1]}var Wz=Bz,Zz=Jd;function Uz(e){return Zz(this.__data__,e)>-1}var qz=Uz,Gz=Jd;function Yz(e,t){var n=this.__data__,r=Gz(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Kz=Yz,Xz=kz,Qz=Dz,Jz=Wz,eB=qz,tB=Kz;function nl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nl.prototype.clear=Xz;nl.prototype.delete=Qz;nl.prototype.get=Jz;nl.prototype.has=eB;nl.prototype.set=tB;var ef=nl,nB=Ia,rB=$i,iB=nB(rB,"Map"),lv=iB,m6=Rz,oB=ef,aB=lv;function sB(){this.size=0,this.__data__={hash:new m6,map:new(aB||oB),string:new m6}}var lB=sB;function cB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uB=cB,dB=uB;function fB(e,t){var n=e.__data__;return dB(t)?n[typeof t=="string"?"string":"hash"]:n.map}var tf=fB,hB=tf;function gB(e){var t=hB(this,e).delete(e);return this.size-=t?1:0,t}var vB=gB,mB=tf;function pB(e){return mB(this,e).get(e)}var bB=pB,yB=tf;function xB(e){return yB(this,e).has(e)}var CB=xB,wB=tf;function SB(e,t){var n=wB(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $B=SB,MB=lB,_B=vB,EB=bB,HB=CB,OB=$B;function rl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rl.prototype.clear=MB;rl.prototype.delete=_B;rl.prototype.get=EB;rl.prototype.has=HB;rl.prototype.set=OB;var cv=rl,VB="__lodash_hash_undefined__";function RB(e){return this.__data__.set(e,VB),this}var TB=RB;function kB(e){return this.__data__.has(e)}var jB=kB,PB=cv,LB=TB,IB=jB;function q1(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PB;++t<n;)this.add(e[t])}q1.prototype.add=q1.prototype.push=LB;q1.prototype.has=IB;var uv=q1;function AB(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var NB=AB;function FB(e){return e!==e}var DB=FB;function zB(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var BB=zB,WB=NB,ZB=DB,UB=BB;function qB(e,t,n){return t===t?UB(e,t,n):WB(e,ZB,n)}var GB=qB,YB=GB;function KB(e,t){var n=e==null?0:e.length;return!!n&&YB(e,t,0)>-1}var wC=KB;function XB(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var SC=XB;function QB(e,t){return e.has(t)}var dv=QB,JB=Ia,eW=$i,tW=JB(eW,"Set"),$C=tW;function nW(){}var rW=nW;function iW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var fv=iW,U0=$C,oW=rW,aW=fv,sW=1/0,lW=U0&&1/aW(new U0([,-0]))[1]==sW?function(e){return new U0(e)}:oW,cW=lW,uW=uv,dW=wC,fW=SC,hW=dv,gW=cW,vW=fv,mW=200;function pW(e,t,n){var r=-1,i=dW,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=fW;else if(o>=mW){var c=t?null:gW(e);if(c)return vW(c);a=!1,i=hW,l=new uW}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var MC=pW,bW=MC;function yW(e){return e&&e.length?bW(e):[]}var xW=yW;const Q3=Cn(xW);var J3={exports:{}},Qu={exports:{}},Kt={};/** @license React v16.13.1
|
|
445
445
|
* react-is.production.min.js
|
|
446
446
|
*
|
|
447
447
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -460,7 +460,7 @@ object-assign
|
|
|
460
460
|
(c) Sindre Sorhus
|
|
461
461
|
@license MIT
|
|
462
462
|
*/var q0,x6;function SW(){if(x6)return q0;x6=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return q0=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},q0}var G0,C6;function hv(){if(C6)return G0;C6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return G0=e,G0}var Y0,w6;function EC(){return w6||(w6=1,Y0=Function.call.bind(Object.prototype.hasOwnProperty)),Y0}var K0,S6;function $W(){if(S6)return K0;S6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=hv(),n={},r=EC();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,l,s,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},K0=i,K0}var X0,$6;function MW(){if($6)return X0;$6=1;var e=_C(),t=SW(),n=hv(),r=EC(),i=$W(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return X0=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var z=N&&(c&&N[c]||N[u]);if(typeof z=="function")return z}var f="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:y(),arrayOf:C,element:$(),elementType:w(),instanceOf:M,node:O(),objectOf:E,oneOf:R,oneOfType:_,shape:A,exact:j};function m(N,z){return N===z?N!==0||1/N===1/z:N!==N&&z!==z}function g(N,z){this.message=N,this.data=z&&typeof z=="object"?z:{},this.stack=""}g.prototype=Error.prototype;function v(N){if(process.env.NODE_ENV!=="production")var z={},q=0;function G(ee,Q,K,J,W,Z,U){if(J=J||f,Z=Z||K,U!==n){if(l){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=J+":"+K;!z[re]&&q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[re]=!0,q++)}}return Q[K]==null?ee?Q[K]===null?new g("The "+W+" `"+Z+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new g("The "+W+" `"+Z+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:N(Q,K,J,W,Z)}var Y=G.bind(null,!1);return Y.isRequired=G.bind(null,!0),Y}function b(N){function z(q,G,Y,ee,Q,K){var J=q[G],W=P(J);if(W!==N){var Z=V(J);return new g("Invalid "+ee+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+Y+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return v(z)}function y(){return v(a)}function C(N){function z(q,G,Y,ee,Q){if(typeof N!="function")return new g("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var K=q[G];if(!Array.isArray(K)){var J=P(K);return new g("Invalid "+ee+" `"+Q+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected an array."))}for(var W=0;W<K.length;W++){var Z=N(K,W,Y,ee,Q+"["+W+"]",n);if(Z instanceof Error)return Z}return null}return v(z)}function $(){function N(z,q,G,Y,ee){var Q=z[q];if(!s(Q)){var K=P(Q);return new g("Invalid "+Y+" `"+ee+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return v(N)}function w(){function N(z,q,G,Y,ee){var Q=z[q];if(!e.isValidElementType(Q)){var K=P(Q);return new g("Invalid "+Y+" `"+ee+"` of type "+("`"+K+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return v(N)}function M(N){function z(q,G,Y,ee,Q){if(!(q[G]instanceof N)){var K=N.name||f,J=L(q[G]);return new g("Invalid "+ee+" `"+Q+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected ")+("instance of `"+K+"`."))}return null}return v(z)}function R(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function z(q,G,Y,ee,Q){for(var K=q[G],J=0;J<N.length;J++)if(m(K,N[J]))return null;var W=JSON.stringify(N,function(U,F){var re=V(F);return re==="symbol"?String(F):F});return new g("Invalid "+ee+" `"+Q+"` of value `"+String(K)+"` "+("supplied to `"+Y+"`, expected one of "+W+"."))}return v(z)}function E(N){function z(q,G,Y,ee,Q){if(typeof N!="function")return new g("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var K=q[G],J=P(K);if(J!=="object")return new g("Invalid "+ee+" `"+Q+"` of type "+("`"+J+"` supplied to `"+Y+"`, expected an object."));for(var W in K)if(r(K,W)){var Z=N(K,W,Y,ee,Q+"."+W,n);if(Z instanceof Error)return Z}return null}return v(z)}function _(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<N.length;z++){var q=N[z];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(q)+" at index "+z+"."),a}function G(Y,ee,Q,K,J){for(var W=[],Z=0;Z<N.length;Z++){var U=N[Z],F=U(Y,ee,Q,K,J,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&W.push(F.data.expectedType)}var re=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new g("Invalid "+K+" `"+J+"` supplied to "+("`"+Q+"`"+re+"."))}return v(G)}function O(){function N(z,q,G,Y,ee){return H(z[q])?null:new g("Invalid "+Y+" `"+ee+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return v(N)}function k(N,z,q,G,Y){return new g((N||"React class")+": "+z+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function A(N){function z(q,G,Y,ee,Q){var K=q[G],J=P(K);if(J!=="object")return new g("Invalid "+ee+" `"+Q+"` of type `"+J+"` "+("supplied to `"+Y+"`, expected `object`."));for(var W in N){var Z=N[W];if(typeof Z!="function")return k(Y,ee,Q,W,V(Z));var U=Z(K,W,Y,ee,Q+"."+W,n);if(U)return U}return null}return v(z)}function j(N){function z(q,G,Y,ee,Q){var K=q[G],J=P(K);if(J!=="object")return new g("Invalid "+ee+" `"+Q+"` of type `"+J+"` "+("supplied to `"+Y+"`, expected `object`."));var W=t({},q[G],N);for(var Z in W){var U=N[Z];if(r(N,Z)&&typeof U!="function")return k(Y,ee,Q,Z,V(U));if(!U)return new g("Invalid "+ee+" `"+Q+"` key `"+Z+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
|
|
463
|
-
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var F=U(K,Z,Y,ee,Q+"."+Z,n);if(F)return F}return null}return v(z)}function H(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(H);if(N===null||s(N))return!0;var z=d(N);if(z){var q=z.call(N),G;if(z!==N.entries){for(;!(G=q.next()).done;)if(!H(G.value))return!1}else for(;!(G=q.next()).done;){var Y=G.value;if(Y&&!H(Y[1]))return!1}}else return!1;return!0;default:return!1}}function T(N,z){return N==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function P(N){var z=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":T(z,N)?"symbol":z}function V(N){if(typeof N>"u"||N===null)return""+N;var z=P(N);if(z==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return z}function I(N){var z=V(N);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function L(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},X0}var Q0,M6;function _W(){if(M6)return Q0;M6=1;var e=hv();function t(){}function n(){}return n.resetWarningCache=t,Q0=function(){function r(a,s,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Q0}if(process.env.NODE_ENV!=="production"){var EW=_C(),HW=!0;J3.exports=MW()(EW.isElement,HW)}else J3.exports=_W()();var OW=J3.exports;const D=Cn(OW);var gv=vu(),Et=e=>gu(e,gv),vv=vu();Et.write=e=>gu(e,vv);var nf=vu();Et.onStart=e=>gu(e,nf);var mv=vu();Et.onFrame=e=>gu(e,mv);var pv=vu();Et.onFinish=e=>gu(e,pv);var $s=[];Et.setTimeout=(e,t)=>{const n=Et.now()+t,r=()=>{const o=$s.findIndex(a=>a.cancel==r);~o&&$s.splice(o,1),Vo-=~o?1:0},i={time:n,handler:e,cancel:r};return $s.splice(HC(n),0,i),Vo+=1,OC(),i};var HC=e=>~(~$s.findIndex(t=>t.time>e)||~$s.length);Et.cancel=e=>{nf.delete(e),mv.delete(e),pv.delete(e),gv.delete(e),vv.delete(e)};Et.sync=e=>{eh=!0,Et.batchedUpdates(e),eh=!1};Et.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Et.onStart(n)}return r.handler=e,r.cancel=()=>{nf.delete(n),t=null},r};var bv=typeof window<"u"?window.requestAnimationFrame:()=>{};Et.use=e=>bv=e;Et.now=typeof performance<"u"?()=>performance.now():Date.now;Et.batchedUpdates=e=>e();Et.catch=console.error;Et.frameLoop="always";Et.advance=()=>{Et.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RC()};var Oo=-1,Vo=0,eh=!1;function gu(e,t){eh?(t.delete(e),e(0)):(t.add(e),OC())}function OC(){Oo<0&&(Oo=0,Et.frameLoop!=="demand"&&bv(VC))}function VW(){Oo=-1}function VC(){~Oo&&(bv(VC),Et.batchedUpdates(RC))}function RC(){const e=Oo;Oo=Et.now();const t=HC(Oo);if(t&&(TC($s.splice(0,t),n=>n.handler()),Vo-=t),!Vo){VW();return}nf.flush(),gv.flush(e?Math.min(64,Oo-e):16.667),mv.flush(),vv.flush(),pv.flush()}function vu(){let e=new Set,t=e;return{add(n){Vo+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Vo-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Vo-=t.size,TC(t,r=>r(n)&&e.add(r)),Vo+=e.size,t=e)}}}function TC(e,t){e.forEach(n=>{try{t(n)}catch(r){Et.catch(r)}})}var RW=Object.defineProperty,TW=(e,t)=>{for(var n in t)RW(e,n,{get:t[n],enumerable:!0})},li={};TW(li,{assign:()=>jW,colors:()=>Ro,createStringInterpolator:()=>xv,skipAnimation:()=>jC,to:()=>kC,willAdvance:()=>Cv});function th(){}var kW=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ue={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ro(e,t){if(Ue.arr(e)){if(!Ue.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var _t=(e,t)=>e.forEach(t);function Ci(e,t,n){if(Ue.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var fr=e=>Ue.und(e)?[]:Ue.arr(e)?e:[e];function gc(e,t){if(e.size){const n=Array.from(e);e.clear(),_t(n,t)}}var sc=(e,...t)=>gc(e,n=>n(...t)),yv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),xv,kC,Ro=null,jC=!1,Cv=th,jW=e=>{e.to&&(kC=e.to),e.now&&(Et.now=e.now),e.colors!==void 0&&(Ro=e.colors),e.skipAnimation!=null&&(jC=e.skipAnimation),e.createStringInterpolator&&(xv=e.createStringInterpolator),e.requestAnimationFrame&&Et.use(e.requestAnimationFrame),e.batchedUpdates&&(Et.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Cv=e.willAdvance),e.frameLoop&&(Et.frameLoop=e.frameLoop)},vc=new Set,Ar=[],J0=[],G1=0,rf={get idle(){return!vc.size&&!Ar.length},start(e){G1>e.priority?(vc.add(e),Et.onStart(PW)):(PC(e),Et(nh))},advance:nh,sort(e){if(G1)Et.onFrame(()=>rf.sort(e));else{const t=Ar.indexOf(e);~t&&(Ar.splice(t,1),LC(e))}},clear(){Ar=[],vc.clear()}};function PW(){vc.forEach(PC),vc.clear(),Et(nh)}function PC(e){Ar.includes(e)||LC(e)}function LC(e){Ar.splice(LW(Ar,t=>t.priority>e.priority),0,e)}function nh(e){const t=J0;for(let n=0;n<Ar.length;n++){const r=Ar[n];G1=r.priority,r.idle||(Cv(r),r.advance(e),r.idle||t.push(r))}return G1=0,J0=Ar,J0.length=0,Ar=t,Ar.length>0}function LW(e,t){const n=e.findIndex(t);return n<0?e.length:n}var IW=(e,t,n)=>Math.min(Math.max(n,e),t),AW={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ti="[-+]?\\d*\\.?\\d+",Y1=ti+"%";function of(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var NW=new RegExp("rgb"+of(ti,ti,ti)),FW=new RegExp("rgba"+of(ti,ti,ti,ti)),DW=new RegExp("hsl"+of(ti,Y1,Y1)),zW=new RegExp("hsla"+of(ti,Y1,Y1,ti)),BW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ZW=/^#([0-9a-fA-F]{6})$/,UW=/^#([0-9a-fA-F]{8})$/;function qW(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ZW.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ro&&Ro[e]!==void 0?Ro[e]:(t=NW.exec(e))?(ss(t[1])<<24|ss(t[2])<<16|ss(t[3])<<8|255)>>>0:(t=FW.exec(e))?(ss(t[1])<<24|ss(t[2])<<16|ss(t[3])<<8|H6(t[4]))>>>0:(t=BW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UW.exec(e))?parseInt(t[1],16)>>>0:(t=WW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=DW.exec(e))?(_6(E6(t[1]),Ju(t[2]),Ju(t[3]))|255)>>>0:(t=zW.exec(e))?(_6(E6(t[1]),Ju(t[2]),Ju(t[3]))|H6(t[4]))>>>0:null}function e2(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _6(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=e2(i,r,e+1/3),a=e2(i,r,e),s=e2(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ss(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function E6(e){return(parseFloat(e)%360+360)%360/360}function H6(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ju(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function O6(e){let t=qW(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Pc=(e,t,n)=>{if(Ue.fun(e))return e;if(Ue.arr(e))return Pc({range:e,output:t,extrapolate:n});if(Ue.str(e.output[0]))return xv(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=YW(c,o);return GW(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function GW(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function YW(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var KW=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return IW(0,1,i/e)},K1=1.70158,e1=K1*1.525,V6=K1+1,R6=2*Math.PI/3,T6=2*Math.PI/4.5,t1=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,XW={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>V6*e*e*e-K1*e*e,easeOutBack:e=>1+V6*Math.pow(e-1,3)+K1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((e1+1)*2*e-e1)/2:(Math.pow(2*e-2,2)*((e1+1)*(e*2-2)+e1)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*R6),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*R6)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*T6))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*T6)/2+1,easeInBounce:e=>1-t1(1-e),easeOutBounce:t1,easeInOutBounce:e=>e<.5?(1-t1(1-2*e))/2:(1+t1(2*e-1))/2,steps:KW},Lc=Symbol.for("FluidValue.get"),Ls=Symbol.for("FluidValue.observers"),Ir=e=>!!(e&&e[Lc]),mr=e=>e&&e[Lc]?e[Lc]():e,k6=e=>e[Ls]||null;function QW(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ic(e,t){const n=e[Ls];n&&n.forEach(r=>{QW(r,t)})}var IC=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");JW(this,e)}},JW=(e,t)=>AC(e,Lc,t);function il(e,t){if(e[Lc]){let n=e[Ls];n||AC(e,Ls,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ac(e,t){const n=e[Ls];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ls]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var AC=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,j6=new RegExp(`(${$1.source})(%|[a-z]+)`,"i"),tZ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,af=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,NC=e=>{const[t,n]=nZ(e);if(!t||yv())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&af.test(n))return NC(n);if(n)return n}return e},nZ=e=>{const t=af.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},t2,rZ=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,FC=e=>{t2||(t2=Ro?new RegExp(`(${Object.keys(Ro).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>mr(o).replace(af,NC).replace(eZ,O6).replace(t2,O6)),n=t.map(o=>o.match($1).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Pc({...e,output:o}));return o=>{var l;const a=!j6.test(t[0])&&((l=t.find(c=>j6.test(c)))==null?void 0:l.replace($1,""));let s=0;return t[0].replace($1,()=>`${i[s++](o)}${a||""}`).replace(tZ,rZ)}},wv="react-spring: ",DC=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${wv}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},iZ=DC(console.warn);function oZ(){iZ(`${wv}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var aZ=DC(console.warn);function sZ(){aZ(`${wv}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function sf(e){return Ue.str(e)&&(e[0]=="#"||/\d/.test(e)||!yv()&&af.test(e)||e in(Ro||{}))}var sa=yv()?S.useEffect:S.useLayoutEffect,lZ=()=>{const e=S.useRef(!1);return sa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Sv(){const e=S.useState()[1],t=lZ();return()=>{t.current&&e(Math.random())}}function cZ(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&uZ(t,o.inputs)||(o={inputs:t,result:e()}):o=n,S.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function uZ(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var $v=e=>S.useEffect(e,dZ),dZ=[];function rh(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Nc=Symbol.for("Animated:node"),fZ=e=>!!e&&e[Nc]===e,vi=e=>e&&e[Nc],Mv=(e,t)=>kW(e,Nc,t),lf=e=>e&&e[Nc]&&e[Nc].getPayload(),zC=class{constructor(){Mv(this,this)}getPayload(){return this.payload||[]}},mu=class extends zC{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ue.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ue.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ue.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Fc=class extends mu{constructor(e){super(0),this._string=null,this._toString=Pc({output:[e,e]})}static create(e){return new Fc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ue.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Pc({output:[this.getValue(),e]})),this._value=0,super.reset()}},X1={dependencies:null},cf=class extends zC{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ci(this.source,(n,r)=>{fZ(n)?t[r]=n.getValue(e):Ir(n)?t[r]=mr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&_t(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ci(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){X1.dependencies&&Ir(e)&&X1.dependencies.add(e);const t=lf(e);t&&_t(t,n=>this.add(n))}},BC=class extends cf{constructor(e){super(e)}static create(e){return new BC(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(hZ)),!0)}};function hZ(e){return(sf(e)?Fc:mu).create(e)}function ih(e){const t=vi(e);return t?t.constructor:Ue.arr(e)?BC:sf(e)?Fc:mu}var P6=(e,t)=>{const n=!Ue.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,i)=>{const o=S.useRef(null),a=n&&S.useCallback(m=>{o.current=mZ(i,m)},[i]),[s,l]=vZ(r,t),c=Sv(),u=()=>{const m=o.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},d=new gZ(u,l),f=S.useRef();sa(()=>(f.current=d,_t(l,m=>il(m,d)),()=>{f.current&&(_t(f.current.deps,m=>Ac(m,f.current)),Et.cancel(f.current.update))})),S.useEffect(u,[]),$v(()=>()=>{const m=f.current;_t(m.deps,g=>Ac(g,m))});const h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},gZ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Et.write(this.update)}};function vZ(e,t){const n=new Set;return X1.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new cf(e),X1.dependencies=null,[e,n]}function mZ(e,t){return e&&(Ue.fun(e)?e(t):e.current=t),t}var L6=Symbol.for("AnimatedComponent"),pZ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new cf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=I6(a)||"Anonymous";return Ue.str(a)?a=o[a]||(o[a]=P6(a,i)):a=a[L6]||(a[L6]=P6(a,i)),a.displayName=`Animated(${s})`,a};return Ci(e,(a,s)=>{Ue.arr(e)&&(s=I6(a)),o[s]=o(a)}),{animated:o}},I6=e=>Ue.str(e)?e:e&&Ue.str(e.displayName)?e.displayName:Ue.fun(e)&&e.name||null;function pr(e,...t){return Ue.fun(e)?e(...t):e}var mc=(e,t)=>e===!0||!!(t&&e&&(Ue.fun(e)?e(t):fr(e).includes(t))),WC=(e,t)=>Ue.obj(e)?t&&e[t]:e,ZC=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,bZ=e=>e,uf=(e,t=bZ)=>{let n=yZ;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);Ue.und(o)||(r[i]=o)}return r},yZ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xZ={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function CZ(e){const t={};let n=0;if(Ci(e,(r,i)=>{xZ[i]||(t[i]=r,n++)}),n)return t}function _v(e){const t=CZ(e);if(t){const n={to:t};return Ci(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Dc(e){return e=mr(e),Ue.arr(e)?e.map(Dc):sf(e)?li.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function UC(e){for(const t in e)return!0;return!1}function oh(e){return Ue.fun(e)||Ue.arr(e)&&Ue.obj(e[0])}function ah(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function qC(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Aa={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},sh={...Aa.default,mass:1,damping:1,easing:XW.linear,clamp:!1},wZ=class{constructor(){this.velocity=0,Object.assign(this,sh)}};function SZ(e,t,n){n&&(n={...n},A6(n,t),t={...n,...t}),A6(e,t),Object.assign(e,t);for(const a in sh)e[a]==null&&(e[a]=sh[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return Ue.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function A6(e,t){if(!Ue.und(t.decay))e.duration=void 0;else{const n=!Ue.und(t.tension)||!Ue.und(t.friction);(n||!Ue.und(t.frequency)||!Ue.und(t.damping)||!Ue.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var N6=[],$Z=class{constructor(){this.changed=!1,this.values=N6,this.toValues=null,this.fromValues=N6,this.config=new wZ,this.immediate=!1}};function GC(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=mc(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{Ue.und(n.pause)||(i.paused=mc(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=i.paused||mc(m,t)),l=pr(n.delay||0,t),m?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-Et.now()}function f(){l>0&&!li.skipAnimation?(i.delayed=!0,c=Et.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(m){s(m)}}})}var Ev=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ms(e.get()):t.every(n=>n.noop)?YC(e.get()):Jr(e.get(),t.every(n=>n.finished)),YC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ms=e=>({value:e,cancelled:!0,finished:!1});function KC(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=uf(t,(v,b)=>b==="onRest"?void 0:v);let u,d;const f=new Promise((v,b)=>(u=v,d=b)),h=v=>{const b=i<=(n.cancelId||0)&&Ms(r)||i!==n.asyncId&&Jr(r,!1);if(b)throw v.result=b,d(v),v},m=(v,b)=>{const y=new F6,C=new D6;return(async()=>{if(li.skipAnimation)throw zc(n),C.result=Jr(r,!1),d(C),C;h(y);const $=Ue.obj(v)?{...v}:{...b,to:v};$.parentId=i,Ci(c,(M,R)=>{Ue.und($[R])&&($[R]=M)});const w=await r.start($);return h(y),n.paused&&await new Promise(M=>{n.resumeQueue.add(M)}),w})()};let g;if(li.skipAnimation)return zc(n),Jr(r,!1);try{let v;Ue.arr(e)?v=(async b=>{for(const y of b)await m(y)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(u),f]),g=Jr(r.get(),!0,!1)}catch(v){if(v instanceof F6)g=v.result;else if(v instanceof D6)g=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Ue.fun(a)&&Et.batchedUpdates(()=>{a(g,r,r.item)}),g})()}function zc(e,t){gc(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var F6=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},D6=class extends Error{constructor(){super("SkipAnimationSignal")}},lh=e=>e instanceof Hv,MZ=1,Hv=class extends IC{constructor(){super(...arguments),this.id=MZ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vi(this);return e&&e.getValue()}to(...e){return li.to(this,e)}interpolate(...e){return oZ(),li.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ic(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rf.sort(this),Ic(this,{type:"priority",parent:this,priority:e})}},ya=Symbol.for("SpringPhase"),XC=1,ch=2,uh=4,n2=e=>(e[ya]&XC)>0,wo=e=>(e[ya]&ch)>0,Ll=e=>(e[ya]&uh)>0,z6=(e,t)=>t?e[ya]|=ch|XC:e[ya]&=~ch,B6=(e,t)=>t?e[ya]|=uh:e[ya]&=~uh,_Z=class extends Hv{constructor(e,t){if(super(),this.animation=new $Z,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ue.und(e)||!Ue.und(t)){const n=Ue.obj(e)?{...e}:{...t,from:e};Ue.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wo(this)||this._state.asyncTo)||Ll(this)}get goal(){return mr(this.animation.to)}get velocity(){const e=vi(this);return e instanceof mu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return n2(this)}get isAnimating(){return wo(this)}get isPaused(){return Ll(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=lf(r.to);!a&&Ir(r.to)&&(i=fr(mr(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Fc?1:a?a[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=Ue.arr(o.velocity)?o.velocity[u]:o.velocity;let b;const y=o.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(Ue.und(o.duration))if(o.decay){const C=o.decay===!0?.998:o.decay,$=Math.exp(-(1-C)*m);h=g+v/(1-C)*(1-$),f=Math.abs(c.lastPosition-h)<=y,b=v*$}else{b=c.lastVelocity==null?v:c.lastVelocity;const C=o.restVelocity||y/10,$=o.clamp?0:o.bounce,w=!Ue.und($),M=g==d?c.v0>0:g<d;let R,E=!1;const _=1,O=Math.ceil(e/_);for(let k=0;k<O&&(R=Math.abs(b)>C,!(!R&&(f=Math.abs(d-h)<=y,f)));++k){w&&(E=h==d||h>d==M,E&&(b=-b*$,h=d));const A=-o.tension*1e-6*(h-d),j=-o.friction*.001*b,H=(A+j)/o.mass;b=b+H*_,h=h+b*_}}else{let C=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,m=c.elapsedTime+=e)),C=(o.progress||0)+m/this._memoizedDuration,C=C>1?1:C<0?0:C,c.durationProgress=C),h=g+o.easing(C)*(d-g),b=(h-c.lastPosition)/e,f=C==1}c.lastVelocity=b,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,o.round)&&(n=!0)});const s=vi(this),l=s.getValue();if(t){const c=mr(r.to);(l!==c||n)&&!o.decay?(s.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Et.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wo(this)){const{to:e,config:t}=this.animation;Et.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ue.und(e)?(n=this.queue||[],this.queue=[]):n=[Ue.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Ev(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),zc(this._state,e&&this._lastCallId),Et.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ue.obj(n)?n[t]:n,(n==null||oh(n))&&(n=void 0),r=Ue.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return n2(this)||(e.reverse&&([n,r]=[r,n]),r=mr(r),Ue.und(r)?vi(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,uf(e,(a,s)=>/^on/.test(s)?WC(a,n):a)),Z6(this,e,"onProps"),Al(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return GC(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ll(this)||(B6(this,!0),sc(o.pauseQueue),Al(this,"onPause",Jr(this,Il(this,this.animation.to)),this))},resume:()=>{Ll(this)&&(B6(this,!1),wo(this)&&this._resume(),sc(o.resumeQueue),Al(this,"onResume",Jr(this,Il(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=QC(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ms(this));const r=!Ue.und(e.to),i=!Ue.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ms(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||Ue.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!ro(d,c);f&&(s.from=d),d=mr(d);const h=!ro(u,l);h&&this._focus(u);const m=oh(t.to),{config:g}=s,{decay:v,velocity:b}=g;(r||i)&&(g.velocity=0),t.config&&!m&&SZ(g,pr(t.config,o),t.config!==a.config?pr(a.config,o):void 0);let y=vi(this);if(!y||Ue.und(u))return n(Jr(this,!0));const C=Ue.und(t.reset)?i&&!t.default:!Ue.und(d)&&mc(t.reset,o),$=C?d:this.get(),w=Dc(u),M=Ue.num(w)||Ue.arr(w)||sf(w),R=!m&&(!M||mc(a.immediate||t.immediate,o));if(h){const k=ih(u);if(k!==y.constructor)if(R)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${k.name}, as the "to" prop suggests`)}const E=y.constructor;let _=Ir(u),O=!1;if(!_){const k=C||!n2(this)&&f;(h||k)&&(O=ro(Dc($),w),_=!O),(!ro(s.immediate,R)&&!R||!ro(g.decay,v)||!ro(g.velocity,b))&&(_=!0)}if(O&&wo(this)&&(s.changed&&!C?_=!0:_||this._stop(l)),!m&&((_||Ir(l))&&(s.values=y.getPayload(),s.toValues=Ir(u)?null:E==Fc?[1]:fr(w)),s.immediate!=R&&(s.immediate=R,!R&&!C&&this._set(l)),_)){const{onRest:k}=s;_t(HZ,j=>Z6(this,t,j));const A=Jr(this,Il(this,l));sc(this._pendingCalls,A),this._pendingCalls.add(n),s.changed&&Et.batchedUpdates(()=>{var j;s.changed=!C,k==null||k(A,this),C?pr(a.onRest,A):(j=s.onStart)==null||j.call(s,A,this)})}C&&this._set($),m?n(KC(t.to,t,this._state,this)):_?this._start():wo(this)&&!h?this._pendingCalls.add(n):n(YC($))}_focus(e){const t=this.animation;e!==t.to&&(k6(this)&&this._detach(),t.to=e,k6(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ir(t)&&(il(t,this),lh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ir(e)&&Ac(e,this)}_set(e,t=!0){const n=mr(e);if(!Ue.und(n)){const r=vi(this);if(!r||!ro(n,r.getValue())){const i=ih(n);!r||r.constructor!=i?Mv(this,i.create(n)):r.setValue(n),r&&Et.batchedUpdates(()=>{this._onChange(n,t)})}}return vi(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Al(this,"onStart",Jr(this,Il(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pr(this.animation.onChange,e,this)),pr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;vi(this).reset(mr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wo(this)||(z6(this,!0),Ll(this)||this._resume())}_resume(){li.skipAnimation?this.finish():rf.start(this)}_stop(e,t){if(wo(this)){z6(this,!1);const n=this.animation;_t(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ic(this,{type:"idle",parent:this});const r=t?Ms(this.get()):Jr(this.get(),Il(this,e??n.to));sc(this._pendingCalls,r),n.changed&&(n.changed=!1,Al(this,"onRest",r,this))}}};function Il(e,t){const n=Dc(t),r=Dc(e.get());return ro(r,n)}function QC(e,t=e.loop,n=e.to){const r=pr(t);if(r){const i=r!==!0&&_v(r),o=(i||e).reverse,a=!i||i.reset;return Bc({...e,loop:t,default:!1,pause:void 0,to:!o||oh(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Bc(e){const{to:t,from:n}=e=_v(e),r=new Set;return Ue.obj(t)&&W6(t,r),Ue.obj(n)&&W6(n,r),e.keys=r.size?Array.from(r):null,e}function EZ(e){const t=Bc(e);return Ue.und(t.default)&&(t.default=uf(t)),t}function W6(e,t){Ci(e,(n,r)=>n!=null&&t.add(r))}var HZ=["onStart","onRest","onChange","onPause","onResume"];function Z6(e,t,n){e.animation[n]=t[n]!==ZC(t,n)?WC(t[n],e.key):void 0}function Al(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var OZ=["onStart","onChange","onRest"],VZ=1,JC=class{constructor(e,t){this.id=VZ++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ue.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bc(e)),this}start(e){let{queue:t}=this;return e?t=fr(e).map(Bc):this.queue=[],this._flush?this._flush(this,t):(iw(this,t),dh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;_t(fr(t),r=>n[r].stop(!!e))}else zc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ue.und(e))this.start({pause:!0});else{const t=this.springs;_t(fr(e),n=>t[n].pause())}return this}resume(e){if(Ue.und(e))this.start({pause:!1});else{const t=this.springs;_t(fr(e),n=>t[n].resume())}return this}each(e){Ci(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gc(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gc(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,gc(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Et.onFrame(this._onFrame)}};function dh(e,t){return Promise.all(t.map(n=>ew(e,n))).then(n=>Ev(e,n))}async function ew(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Ue.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=Ue.arr(i)||Ue.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):_t(OZ,g=>{const v=t[g];if(Ue.fun(v)){const b=e._events[g];t[g]=({finished:y,cancelled:C})=>{const $=b.get(v);$?(y||($.finished=!1),C&&($.cancelled=!0)):b.set(v,{value:null,finished:y||!1,cancelled:C||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,sc(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||ZC(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(GC(++e._lastAsyncId,{props:t,state:d,actions:{pause:th,resume:th,start(g,v){h?(zc(d,e._lastAsyncId),v(Ms(e))):(g.onRest=s,v(KC(u,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const m=Ev(e,await Promise.all(f));if(a&&m.finished&&!(n&&m.noop)){const g=QC(t,a,i);if(g)return iw(e,[g]),ew(e,g,!0)}return l&&Et.batchedUpdates(()=>l(m,e,e.item)),m}function fh(e,t){const n={...e.springs};return t&&_t(fr(t),r=>{Ue.und(r.keys)&&(r=Bc(r)),Ue.obj(r.to)||(r={...r,to:void 0}),rw(n,r,i=>nw(i))}),tw(e,n),n}function tw(e,t){Ci(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,il(n,e))})}function nw(e,t){const n=new _Z;return n.key=e,t&&il(n,t),n}function rw(e,t,n){t.keys&&_t(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iw(e,t){_t(t,n=>{rw(e.springs,n,r=>nw(r,e))})}var pu=({children:e,...t})=>{const n=S.useContext(Q1),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=cZ(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Q1;return x.createElement(o,{value:t},e)},Q1=RZ(pu,{});pu.Provider=Q1.Provider;pu.Consumer=Q1.Consumer;function RZ(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ow=()=>{const e=[],t=function(r){sZ();const i=[];return _t(e,(o,a)=>{if(Ue.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return _t(e,r=>r.pause(...arguments)),this},t.resume=function(){return _t(e,r=>r.resume(...arguments)),this},t.set=function(r){_t(e,(i,o)=>{const a=Ue.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return _t(e,(o,a)=>{if(Ue.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return _t(e,r=>r.stop(...arguments)),this},t.update=function(r){return _t(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Ue.fun(r)?r(o,i):r};return t._getProps=n,t};function aw(e,t,n){const r=Ue.fun(t)&&t;r&&!n&&(n=[]);const i=S.useMemo(()=>r||arguments.length==3?ow():void 0,[]),o=S.useRef(0),a=Sv(),s=S.useMemo(()=>({ctrls:[],queue:[],flush(b,y){const C=fh(b,y);return o.current>0&&!s.queue.length&&!Object.keys(C).some(w=>!b.springs[w])?dh(b,y):new Promise(w=>{tw(b,C),s.queue.push(()=>{w(dh(b,y))}),a()})}}),[]),l=S.useRef([...s.ctrls]),c=[],u=rh(e)||0;S.useMemo(()=>{_t(l.current.slice(e,u),b=>{ah(b,i),b.stop(!0)}),l.current.length=e,d(u,e)},[e]),S.useMemo(()=>{d(0,Math.min(u,e))},n);function d(b,y){for(let C=b;C<y;C++){const $=l.current[C]||(l.current[C]=new JC(null,s.flush)),w=r?r(C,$):t[C];w&&(c[C]=EZ(w))}}const f=l.current.map((b,y)=>fh(b,c[y])),h=S.useContext(pu),m=rh(h),g=h!==m&&UC(h);sa(()=>{o.current++,s.ctrls=l.current;const{queue:b}=s;b.length&&(s.queue=[],_t(b,y=>y())),_t(l.current,(y,C)=>{i==null||i.add(y),g&&y.start({default:h});const $=c[C];$&&(qC(y,$.ref),y.ref?y.queue.push($):y.start($))})}),$v(()=>()=>{_t(s.ctrls,b=>b.stop(!0))});const v=f.map(b=>({...b}));return i?[v,i]:v}function Qt(e,t){const n=Ue.fun(e),[[r],i]=aw(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function xr(e,t,n){const r=Ue.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?ow():void 0,[]),h=fr(e),m=[],g=S.useRef(null),v=i?null:g.current;sa(()=>{g.current=m}),$v(()=>(_t(m,H=>{f==null||f.add(H.ctrl),H.ctrl.ref=f}),()=>{_t(g.current,H=>{H.expired&&clearTimeout(H.expirationId),ah(H.ctrl,f),H.ctrl.stop(!0)})}));const b=kZ(h,r?r():t,v),y=i&&g.current||[];sa(()=>_t(y,({ctrl:H,item:T,key:P})=>{ah(H,f),pr(c,T,P)}));const C=[];if(v&&_t(v,(H,T)=>{H.expired?(clearTimeout(H.expirationId),y.push(H)):(T=C[T]=b.indexOf(H.key),~T&&(m[T]=H))}),_t(h,(H,T)=>{m[T]||(m[T]={key:b[T],item:H,phase:"mount",ctrl:new JC},m[T].ctrl.item=H)}),C.length){let H=-1;const{leave:T}=r?r():t;_t(C,(P,V)=>{const I=v[V];~P?(H=m.indexOf(I),m[H]={...I,item:h[P]}):T&&m.splice(++H,0,I)})}Ue.fun(o)&&m.sort((H,T)=>o(H.item,T.item));let $=-a;const w=Sv(),M=uf(t),R=new Map,E=S.useRef(new Map),_=S.useRef(!1);_t(m,(H,T)=>{const P=H.key,V=H.phase,I=r?r():t;let L,N;const z=pr(I.delay||0,P);if(V=="mount")L=I.enter,N="enter";else{const ee=b.indexOf(P)<0;if(V!="leave")if(ee)L=I.leave,N="leave";else if(L=I.update)N="update";else return;else if(!ee)L=I.enter,N="enter";else return}if(L=pr(L,H.item,T),L=Ue.obj(L)?_v(L):{to:L},!L.config){const ee=d||M.config;L.config=pr(ee,H.item,T,N)}$+=a;const q={...M,delay:z+$,ref:u,immediate:I.immediate,reset:!1,...L};if(N=="enter"&&Ue.und(q.from)){const ee=r?r():t,Q=Ue.und(ee.initial)||v?ee.from:ee.initial;q.from=pr(Q,H.item,T)}const{onResolve:G}=q;q.onResolve=ee=>{pr(G,ee);const Q=g.current,K=Q.find(J=>J.key===P);if(K&&!(ee.cancelled&&K.phase!="update")&&K.ctrl.idle){const J=Q.every(W=>W.ctrl.idle);if(K.phase=="leave"){const W=pr(s,K.item);if(W!==!1){const Z=W===!0?0:W;if(K.expired=!0,!J&&Z>0){Z<=2147483647&&(K.expirationId=setTimeout(w,Z));return}}}J&&Q.some(W=>W.expired)&&(E.current.delete(K),l&&(_.current=!0),w())}};const Y=fh(H.ctrl,q);N==="leave"&&l?E.current.set(H,{phase:N,springs:Y,payload:q}):R.set(H,{phase:N,springs:Y,payload:q})});const O=S.useContext(pu),k=rh(O),A=O!==k&&UC(O);sa(()=>{A&&_t(m,H=>{H.ctrl.start({default:O})})},[O]),_t(R,(H,T)=>{if(E.current.size){const P=m.findIndex(V=>V.key===T.key);m.splice(P,1)}}),sa(()=>{_t(E.current.size?E.current:R,({phase:H,payload:T},P)=>{const{ctrl:V}=P;P.phase=H,f==null||f.add(V),A&&H=="enter"&&V.start({default:O}),T&&(qC(V,T.ref),(V.ref||f)&&!_.current?V.update(T):(V.start(T),_.current&&(_.current=!1)))})},i?void 0:n);const j=H=>x.createElement(x.Fragment,null,m.map((T,P)=>{const{springs:V}=R.get(T)||T.ctrl,I=H({...V},T.item,T,P);return I&&I.type?x.createElement(I.type,{...I.props,key:Ue.str(T.key)||Ue.num(T.key)?T.key:T.ctrl.id,ref:I.ref}):I}));return f?[j,f]:j}var TZ=1;function kZ(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):TZ++})}return Ue.und(n)?e:Ue.fun(n)?e.map(n):fr(n)}var sw=class extends Hv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Pc(...t);const n=this._get(),r=ih(n);Mv(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ro(t,n)||(vi(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&U6(this._active)&&r2(this)}_get(){const e=Ue.arr(this.source)?this.source.map(mr):fr(mr(this.source));return this.calc(...e)}_start(){this.idle&&!U6(this._active)&&(this.idle=!1,_t(lf(this),e=>{e.done=!1}),li.skipAnimation?(Et.batchedUpdates(()=>this.advance()),r2(this)):rf.start(this))}_attach(){let e=1;_t(fr(this.source),t=>{Ir(t)&&il(t,this),lh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){_t(fr(this.source),e=>{Ir(e)&&Ac(e,this)}),this._active.clear(),r2(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=fr(this.source).reduce((t,n)=>Math.max(t,(lh(n)?n.priority:0)+1),0))}};function jZ(e){return e.idle!==!1}function U6(e){return!e.size||Array.from(e).every(jZ)}function r2(e){e.idle||(e.idle=!0,_t(lf(e),t=>{t.done=!0}),Ic(e,{type:"idle",parent:e}))}var Vn=(e,...t)=>new sw(e,t);li.assign({createStringInterpolator:FC,to:(e,t)=>new sw(e,t)});var lw=/^--/;function PZ(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!lw.test(e)&&!(pc.hasOwnProperty(e)&&pc[e])?t+"px":(""+t).trim()}var q6={};function LZ(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:q6[f]||(q6[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=PZ(f,i[f]);lw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var pc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},IZ=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),AZ=["Webkit","Ms","Moz","O"];pc=Object.keys(pc).reduce((e,t)=>(AZ.forEach(n=>e[IZ(n,t)]=e[t]),e),pc);var NZ=/^(matrix|translate|scale|rotate|skew)/,FZ=/^(translate)/,DZ=/^(rotate|skew)/,i2=(e,t)=>Ue.num(e)&&e!==0?e+t:e,M1=(e,t)=>Ue.arr(e)?e.every(n=>M1(n,t)):Ue.num(e)?e===t:parseFloat(e)===t,zZ=class extends cf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>i2(s,"px")).join(",")})`,M1(a,0)])),Ci(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(NZ.test(s)){if(delete r[s],Ue.und(a))return;const l=FZ.test(s)?"px":DZ.test(s)?"deg":"";i.push(fr(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${i2(f,l)})`,M1(f,0)]:c=>[`${s}(${c.map(u=>i2(u,l)).join(",")})`,M1(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new BZ(i,o)),super(r)}},BZ=class extends IC{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return _t(this.inputs,(n,r)=>{const i=mr(n[0]),[o,a]=this.transforms[r](Ue.arr(i)?i:n.map(mr));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&_t(this.inputs,t=>_t(t,n=>Ir(n)&&il(n,this)))}observerRemoved(e){e==0&&_t(this.inputs,t=>_t(t,n=>Ir(n)&&Ac(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ic(this,e)}},WZ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];li.assign({batchedUpdates:co.unstable_batchedUpdates,createStringInterpolator:FC,colors:AW});var ZZ=pZ(WZ,{applyAnimatedValues:LZ,createAnimatedStyle:e=>new zZ(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),et=ZZ.animated;function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}var UZ={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},G6=function(e,t){return"translate("+e+"px, "+t+"px)"},cw=S.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Wt(),a=Fn(),s=a.animate,l=a.config,c=YS(),u=c[0],d=c[1],f=S.useRef(!1),h=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),b=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,b-=d.height+14):r==="right"?(v+=14,b-=d.height/2):r==="bottom"?(v-=d.width/2,b+=14):r==="left"?(v-=d.width+14,b-=d.height/2):r==="center"&&(v-=d.width/2,b-=d.height/2),h={transform:G6(v,b)},f.current||(m=!0),f.current=[v,b]);var y=Qt({to:h,config:l,immediate:!s||m}),C=xa({},UZ,o.tooltip.wrapper,{transform:(t=y.transform)!=null?t:G6(v,b),opacity:y.transform?1:0});return p.jsx(et.div,{ref:u,style:C,children:i})});cw.displayName="TooltipWrapper";var J1=S.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return p.jsx("span",{style:xa({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Is=S.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Wt(),u=Lo(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=p.jsxs("div",{style:c.tooltip.basic,children:[a&&p.jsx(J1,{color:s,style:c.tooltip.chip}),d!==void 0?p.jsxs("span",{children:[n,": ",p.jsx("strong",{children:""+d})]}):n]})}return p.jsx("div",{style:c.tooltip.container,children:t})}),qZ={width:"100%",borderCollapse:"collapse"},uw=S.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Wt();return i.length?(t=typeof o=="function"?o():p.jsxs("div",{children:[n&&n,p.jsx("table",{style:xa({},qZ,a.tooltip.table),children:p.jsx("tbody",{children:i.map(function(s,l){return p.jsx("tr",{children:s.map(function(c,u){return p.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),p.jsx("div",{style:a.tooltip.container,children:t})):null});uw.displayName="TableTooltip";var hh=S.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Wt(),a=Fn(),s=a.animate,l=a.config,c=S.useMemo(function(){return xa({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Qt({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return p.jsx(et.line,xa({},u,{fill:"none",style:c}))});hh.displayName="CrosshairLine";var gh=S.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),p.jsxs(p.Fragment,{children:[t&&p.jsx(hh,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&p.jsx(hh,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});gh.displayName="Crosshair";var dw=S.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),vh={isVisible:!1,position:[null,null],content:null,anchor:null},fw=S.createContext(vh),GZ=function(e){var t=S.useState(vh),n=t[0],r=t[1],i=S.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=S.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,m=h.clientX,g=h.clientY,v=(m-u.left)*f,b=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,b],anchor:c,content:s})},[e,r]),a=S.useCallback(function(){r(vh)},[r]);return{actions:S.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},ci=function(){var e=S.useContext(dw);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},YZ=function(){var e=S.useContext(fw);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},KZ=function(e){return e.isVisible},XZ=function(){var e=YZ();return KZ(e)?p.jsx(cw,{position:e.position,anchor:e.anchor,children:e.content}):null},QZ=function(e){var t=e.container,n=e.children,r=GZ(t),i=r.actions,o=r.state;return p.jsx(dw.Provider,{value:i,children:p.jsx(fw.Provider,{value:o,children:n})})},JZ=ef;function eU(){this.__data__=new JZ,this.size=0}var tU=eU;function nU(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rU=nU;function iU(e){return this.__data__.get(e)}var oU=iU;function aU(e){return this.__data__.has(e)}var sU=aU,lU=ef,cU=lv,uU=cv,dU=200;function fU(e,t){var n=this.__data__;if(n instanceof lU){var r=n.__data__;if(!cU||r.length<dU-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new uU(r)}return n.set(e,t),this.size=n.size,this}var hU=fU,gU=ef,vU=tU,mU=rU,pU=oU,bU=sU,yU=hU;function ol(e){var t=this.__data__=new gU(e);this.size=t.size}ol.prototype.clear=vU;ol.prototype.delete=mU;ol.prototype.get=pU;ol.prototype.has=bU;ol.prototype.set=yU;var df=ol,xU=Ia,CU=function(){try{var e=xU(Object,"defineProperty");return e({},"",{}),e}catch{}}(),hw=CU,Y6=hw;function wU(e,t,n){t=="__proto__"&&Y6?Y6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ov=wU,SU=Ov,$U=hu;function MU(e,t,n){(n!==void 0&&!$U(e[t],n)||n===void 0&&!(t in e))&&SU(e,t,n)}var gw=MU;function _U(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var EU=_U,HU=EU,OU=HU(),vw=OU,ed={exports:{}};ed.exports;(function(e,t){var n=$i,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(ed,ed.exports);var mw=ed.exports,VU=$i,RU=VU.Uint8Array,pw=RU,K6=pw;function TU(e){var t=new e.constructor(e.byteLength);return new K6(t).set(new K6(e)),t}var Vv=TU,kU=Vv;function jU(e,t){var n=t?kU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var bw=jU;function PU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var yw=PU,LU=Mi,X6=Object.create,IU=function(){function e(){}return function(t){if(!LU(t))return{};if(X6)return X6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),AU=IU;function NU(e,t){return function(n){return e(t(n))}}var xw=NU,FU=xw,DU=FU(Object.getPrototypeOf,Object),Rv=DU,zU=Object.prototype;function BU(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zU;return e===n}var Tv=BU,WU=AU,ZU=Rv,UU=Tv;function qU(e){return typeof e.constructor=="function"&&!UU(e)?WU(ZU(e)):{}}var Cw=qU;function GU(e){return e!=null&&typeof e=="object"}var Gr=GU,YU=po,KU=Gr,XU="[object Arguments]";function QU(e){return KU(e)&&YU(e)==XU}var JU=QU,Q6=JU,eq=Gr,ww=Object.prototype,tq=ww.hasOwnProperty,nq=ww.propertyIsEnumerable,rq=Q6(function(){return arguments}())?Q6:function(e){return eq(e)&&tq.call(e,"callee")&&!nq.call(e,"callee")},ff=rq,iq=Array.isArray,Cr=iq,oq=9007199254740991;function aq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oq}var kv=aq,sq=Xd,lq=kv;function cq(e){return e!=null&&lq(e.length)&&!sq(e)}var al=cq,uq=al,dq=Gr;function fq(e){return dq(e)&&uq(e)}var Sw=fq,td={exports:{}};function hq(){return!1}var gq=hq;td.exports;(function(e,t){var n=$i,r=gq,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(td,td.exports);var hf=td.exports,vq=po,mq=Rv,pq=Gr,bq="[object Object]",yq=Function.prototype,xq=Object.prototype,$w=yq.toString,Cq=xq.hasOwnProperty,wq=$w.call(Object);function Sq(e){if(!pq(e)||vq(e)!=bq)return!1;var t=mq(e);if(t===null)return!0;var n=Cq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$w.call(n)==wq}var jv=Sq;const Zo=Cn(jv);var $q=po,Mq=kv,_q=Gr,Eq="[object Arguments]",Hq="[object Array]",Oq="[object Boolean]",Vq="[object Date]",Rq="[object Error]",Tq="[object Function]",kq="[object Map]",jq="[object Number]",Pq="[object Object]",Lq="[object RegExp]",Iq="[object Set]",Aq="[object String]",Nq="[object WeakMap]",Fq="[object ArrayBuffer]",Dq="[object DataView]",zq="[object Float32Array]",Bq="[object Float64Array]",Wq="[object Int8Array]",Zq="[object Int16Array]",Uq="[object Int32Array]",qq="[object Uint8Array]",Gq="[object Uint8ClampedArray]",Yq="[object Uint16Array]",Kq="[object Uint32Array]",vn={};vn[zq]=vn[Bq]=vn[Wq]=vn[Zq]=vn[Uq]=vn[qq]=vn[Gq]=vn[Yq]=vn[Kq]=!0;vn[Eq]=vn[Hq]=vn[Fq]=vn[Oq]=vn[Dq]=vn[Vq]=vn[Rq]=vn[Tq]=vn[kq]=vn[jq]=vn[Pq]=vn[Lq]=vn[Iq]=vn[Aq]=vn[Nq]=!1;function Xq(e){return _q(e)&&Mq(e.length)&&!!vn[$q(e)]}var Qq=Xq;function Jq(e){return function(t){return e(t)}}var sl=Jq,nd={exports:{}};nd.exports;(function(e,t){var n=yC,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(nd,nd.exports);var gf=nd.exports,eG=Qq,tG=sl,J6=gf,e7=J6&&J6.isTypedArray,nG=e7?tG(e7):eG,Pv=nG;function rG(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Mw=rG,iG=Ov,oG=hu,aG=Object.prototype,sG=aG.hasOwnProperty;function lG(e,t,n){var r=e[t];(!(sG.call(e,t)&&oG(r,n))||n===void 0&&!(t in e))&&iG(e,t,n)}var Lv=lG,cG=Lv,uG=Ov;function dG(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?uG(n,s,l):cG(n,s,l)}return n}var ll=dG;function fG(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hG=fG,gG=9007199254740991,vG=/^(?:0|[1-9]\d*)$/;function mG(e,t){var n=typeof e;return t=t??gG,!!t&&(n=="number"||n!="symbol"&&vG.test(e))&&e>-1&&e%1==0&&e<t}var vf=mG,pG=hG,bG=ff,yG=Cr,xG=hf,CG=vf,wG=Pv,SG=Object.prototype,$G=SG.hasOwnProperty;function MG(e,t){var n=yG(e),r=!n&&bG(e),i=!n&&!r&&xG(e),o=!n&&!r&&!i&&wG(e),a=n||r||i||o,s=a?pG(e.length,String):[],l=s.length;for(var c in e)(t||$G.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||CG(c,l)))&&s.push(c);return s}var _w=MG;function _G(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var EG=_G,HG=Mi,OG=Tv,VG=EG,RG=Object.prototype,TG=RG.hasOwnProperty;function kG(e){if(!HG(e))return VG(e);var t=OG(e),n=[];for(var r in e)r=="constructor"&&(t||!TG.call(e,r))||n.push(r);return n}var jG=kG,PG=_w,LG=jG,IG=al;function AG(e){return IG(e)?PG(e,!0):LG(e)}var bu=AG,NG=ll,FG=bu;function DG(e){return NG(e,FG(e))}var zG=DG,t7=gw,BG=mw,WG=bw,ZG=yw,UG=Cw,n7=ff,r7=Cr,qG=Sw,GG=hf,YG=Xd,KG=Mi,XG=jv,QG=Pv,i7=Mw,JG=zG;function eY(e,t,n,r,i,o,a){var s=i7(e,n),l=i7(t,n),c=a.get(l);if(c){t7(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=r7(l),h=!f&&GG(l),m=!f&&!h&&QG(l);u=l,f||h||m?r7(s)?u=s:qG(s)?u=ZG(s):h?(d=!1,u=BG(l,!0)):m?(d=!1,u=WG(l,!0)):u=[]:XG(l)||n7(l)?(u=s,n7(s)?u=JG(s):(!KG(s)||YG(s))&&(u=UG(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),t7(e,n,u)}var tY=eY,nY=df,rY=gw,iY=vw,oY=tY,aY=Mi,sY=bu,lY=Mw;function Ew(e,t,n,r,i){e!==t&&iY(t,function(o,a){if(i||(i=new nY),aY(o))oY(e,t,a,n,Ew,r,i);else{var s=r?r(lY(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),rY(e,a,s)}},sY)}var cY=Ew;function uY(e){return e}var mf=uY;function dY(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var fY=dY,hY=fY,o7=Math.max;function gY(e,t,n){return t=o7(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=o7(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),hY(e,this,s)}}var Hw=gY;function vY(e){return function(){return e}}var mY=vY,pY=mY,a7=hw,bY=mf,yY=a7?function(e,t){return a7(e,"toString",{configurable:!0,enumerable:!1,value:pY(t),writable:!0})}:bY,xY=yY,CY=800,wY=16,SY=Date.now;function $Y(e){var t=0,n=0;return function(){var r=SY(),i=wY-(r-n);if(n=r,i>0){if(++t>=CY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MY=$Y,_Y=xY,EY=MY,HY=EY(_Y),Ow=HY,OY=mf,VY=Hw,RY=Ow;function TY(e,t){return RY(VY(e,t,OY),e+"")}var Iv=TY,kY=hu,jY=al,PY=vf,LY=Mi;function IY(e,t,n){if(!LY(n))return!1;var r=typeof t;return(r=="number"?jY(n)&&PY(t,n.length):r=="string"&&t in n)?kY(n[t],e):!1}var Vw=IY,AY=Iv,NY=Vw;function FY(e){return AY(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&NY(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var DY=FY,zY=cY,BY=DY,WY=BY(function(e,t,n){zY(e,t,n)}),ZY=WY;const Av=Cn(ZY);var UY=po,qY=Gr,GY="[object Symbol]";function YY(e){return typeof e=="symbol"||qY(e)&&UY(e)==GY}var pf=YY,KY=Cr,XY=pf,QY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JY=/^\w*$/;function eK(e,t){if(KY(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||XY(e)?!0:JY.test(e)||!QY.test(e)||t!=null&&e in Object(t)}var Nv=eK,Rw=cv,tK="Expected a function";function Fv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tK);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fv.Cache||Rw),n}Fv.Cache=Rw;var nK=Fv,rK=nK,iK=500;function oK(e){var t=rK(e,function(r){return n.size===iK&&n.clear(),r}),n=t.cache;return t}var aK=oK,sK=aK,lK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cK=/\\(\\)?/g,uK=sK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lK,function(n,r,i,o){t.push(i?o.replace(cK,"$1"):r||n)}),t}),dK=uK;function fK(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var bf=fK,s7=Js,hK=bf,gK=Cr,vK=pf,mK=1/0,l7=s7?s7.prototype:void 0,c7=l7?l7.toString:void 0;function Tw(e){if(typeof e=="string")return e;if(gK(e))return hK(e,Tw)+"";if(vK(e))return c7?c7.call(e):"";var t=e+"";return t=="0"&&1/e==-mK?"-0":t}var pK=Tw,bK=pK;function yK(e){return e==null?"":bK(e)}var yu=yK,xK=Cr,CK=Nv,wK=dK,SK=yu;function $K(e,t){return xK(e)?e:CK(e,t)?[e]:wK(SK(e))}var cl=$K,MK=pf,_K=1/0;function EK(e){if(typeof e=="string"||MK(e))return e;var t=e+"";return t=="0"&&1/e==-_K?"-0":t}var ul=EK,HK=cl,OK=ul;function VK(e,t){t=HK(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[OK(t[n++])];return n&&n==r?e:void 0}var xu=VK,RK=xu;function TK(e,t,n){var r=e==null?void 0:RK(e,t);return r===void 0?n:r}var kw=TK;const yn=Cn(kw);var kK=Lv,jK=cl,PK=vf,u7=Mi,LK=ul;function IK(e,t,n,r){if(!u7(e))return e;t=jK(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=LK(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=u7(u)?u:PK(t[i+1])?[]:{})}kK(s,l,c),s=s[l]}return e}var jw=IK,AK=jw;function NK(e,t,n){return e==null?e:AK(e,t,n)}var FK=NK;const ni=Cn(FK);function yf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dl(){}var Ca=.7,As=1/Ca,_s="\\s*([+-]?\\d+)\\s*",Wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DK=/^#([0-9a-f]{3,8})$/,zK=new RegExp(`^rgb\\(${_s},${_s},${_s}\\)$`),BK=new RegExp(`^rgb\\(${xi},${xi},${xi}\\)$`),WK=new RegExp(`^rgba\\(${_s},${_s},${_s},${Wc}\\)$`),ZK=new RegExp(`^rgba\\(${xi},${xi},${xi},${Wc}\\)$`),UK=new RegExp(`^hsl\\(${Wc},${xi},${xi}\\)$`),qK=new RegExp(`^hsla\\(${Wc},${xi},${xi},${Wc}\\)$`),d7={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yf(dl,Zc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f7,formatHex:f7,formatHex8:GK,formatHsl:YK,formatRgb:h7,toString:h7});function f7(){return this.rgb().formatHex()}function GK(){return this.rgb().formatHex8()}function YK(){return Lw(this).formatHsl()}function h7(){return this.rgb().formatRgb()}function Zc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DK.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?g7(t):n===3?new ar(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?n1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?n1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=zK.exec(e))?new ar(t[1],t[2],t[3],1):(t=BK.exec(e))?new ar(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WK.exec(e))?n1(t[1],t[2],t[3],t[4]):(t=ZK.exec(e))?n1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UK.exec(e))?p7(t[1],t[2]/100,t[3]/100,1):(t=qK.exec(e))?p7(t[1],t[2]/100,t[3]/100,t[4]):d7.hasOwnProperty(e)?g7(d7[e]):e==="transparent"?new ar(NaN,NaN,NaN,0):null}function g7(e){return new ar(e>>16&255,e>>8&255,e&255,1)}function n1(e,t,n,r){return r<=0&&(e=t=n=NaN),new ar(e,t,n,r)}function Pw(e){return e instanceof dl||(e=Zc(e)),e?(e=e.rgb(),new ar(e.r,e.g,e.b,e.opacity)):new ar}function jo(e,t,n,r){return arguments.length===1?Pw(e):new ar(e,t,n,r??1)}function ar(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}yf(ar,jo,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ar(ga(this.r),ga(this.g),ga(this.b),rd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v7,formatHex:v7,formatHex8:KK,formatRgb:m7,toString:m7}));function v7(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function KK(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function m7(){const e=rd(this.opacity);return`${e===1?"rgb(":"rgba("}${ga(this.r)}, ${ga(this.g)}, ${ga(this.b)}${e===1?")":`, ${e})`}`}function rd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ga(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=ga(e),(e<16?"0":"")+e.toString(16)}function p7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ei(e,t,n,r)}function Lw(e){if(e instanceof ei)return new ei(e.h,e.s,e.l,e.opacity);if(e instanceof dl||(e=Zc(e)),!e)return new ei;if(e instanceof ei)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ei(a,s,l,e.opacity)}function XK(e,t,n,r){return arguments.length===1?Lw(e):new ei(e,t,n,r??1)}function ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yf(ei,XK,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ar(o2(e>=240?e-240:e+120,i,r),o2(e,i,r),o2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ei(b7(this.h),r1(this.s),r1(this.l),rd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rd(this.opacity);return`${e===1?"hsl(":"hsla("}${b7(this.h)}, ${r1(this.s)*100}%, ${r1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function b7(e){return e=(e||0)%360,e<0?e+360:e}function r1(e){return Math.max(0,Math.min(1,e||0))}function o2(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const QK=Math.PI/180,JK=180/Math.PI;var Iw=-.14861,zv=1.78277,Bv=-.29227,xf=-.90649,Uc=1.97294,y7=Uc*xf,x7=Uc*zv,C7=zv*Bv-xf*Iw;function eX(e){if(e instanceof va)return new va(e.h,e.s,e.l,e.opacity);e instanceof ar||(e=Pw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(C7*r+y7*t-x7*n)/(C7+y7-x7),o=r-i,a=(Uc*(n-i)-Bv*o)/xf,s=Math.sqrt(a*a+o*o)/(Uc*i*(1-i)),l=s?Math.atan2(a,o)*JK-120:NaN;return new va(l<0?l+360:l,s,i,e.opacity)}function wi(e,t,n,r){return arguments.length===1?eX(e):new va(e,t,n,r??1)}function va(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yf(va,wi,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new va(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new va(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*QK,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ar(255*(t+n*(Iw*r+zv*i)),255*(t+n*(Bv*r+xf*i)),255*(t+n*(Uc*r)),this.opacity)}}));function tX(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function nX(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return tX((n-r/t)*t,a,i,o,s)}}const Cf=e=>()=>e;function Aw(e,t){return function(n){return e+n*t}}function rX(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function iX(e,t){var n=t-e;return n?Aw(e,n>180||n<-180?n-360*Math.round(n/360):n):Cf(isNaN(e)?t:e)}function oX(e){return(e=+e)==1?Es:function(t,n){return n-t?rX(t,n,e):Cf(isNaN(t)?n:t)}}function Es(e,t){var n=t-e;return n?Aw(e,n):Cf(isNaN(e)?t:e)}const w7=function e(t){var n=oX(t);function r(i,o){var a=n((i=jo(i)).r,(o=jo(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=Es(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function aX(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=jo(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var sX=aX(nX);function lX(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function cX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uX(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=fl(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function dX(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function id(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function fX(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=fl(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a2=new RegExp(mh.source,"g");function hX(e){return function(){return e}}function gX(e){return function(t){return e(t)+""}}function wf(e,t){var n=mh.lastIndex=a2.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=mh.exec(e))&&(i=a2.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:id(r,i)})),n=a2.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?gX(l[0].x):hX(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function fl(e,t){var n=typeof t,r;return t==null||n==="boolean"?Cf(t):(n==="number"?id:n==="string"?(r=Zc(t))?(t=r,w7):wf:t instanceof Zc?w7:t instanceof Date?dX:cX(t)?lX:Array.isArray(t)?uX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?fX:id)(e,t)}function Wv(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Nw(e){return function t(n){n=+n;function r(i,o){var a=e((i=wi(i)).h,(o=wi(o)).h),s=Es(i.s,o.s),l=Es(i.l,o.l),c=Es(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}Nw(iX);var Zv=Nw(Es);function vX(e,t){t===void 0&&(t=e,e=fl);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}var mX=po,pX=Cr,bX=Gr,yX="[object String]";function xX(e){return typeof e=="string"||!pX(e)&&bX(e)&&mX(e)==yX}var CX=xX;const Sf=Cn(CX);function wX(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Fw=wX;const ue=Cn(Fw);function _1(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function SX(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Uv(e){let t,n,r;e.length!==2?(t=_1,n=(s,l)=>_1(e(s),l),r=(s,l)=>e(s)-l):(t=e===_1||e===SX?e:$X,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function $X(){return 0}function MX(e){return e===null?NaN:+e}const _X=Uv(_1),Dw=_X.right;Uv(MX).center;class S7 extends Map{constructor(t,n=OX){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get($7(this,t))}has(t){return super.has($7(this,t))}set(t,n){return super.set(EX(this,t),n)}delete(t){return super.delete(HX(this,t))}}function $7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function EX({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function HX({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OX(e){return e!==null&&typeof e=="object"?e.valueOf():e}const VX=Math.sqrt(50),RX=Math.sqrt(10),TX=Math.sqrt(2);function od(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=VX?10:o>=RX?5:o>=TX?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?od(e,t,n*2):[s,l,c]}function ph(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?od(t,e,n):od(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function bh(e,t,n){return t=+t,e=+e,n=+n,od(e,t,n)[2]}function yh(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?bh(t,e,n):bh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function kX(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Uo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function zw(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const M7=Symbol("implicit");function _r(){var e=new S7,t=[],n=[],r=M7;function i(o){let a=e.get(o);if(a===void 0){if(r!==M7)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new S7;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return _r(t,n).unknown(r)},Uo.apply(i,arguments),i}function Ns(){var e=_r().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,m=h?i:r,g=h?r:i;o=(g-m)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),m+=(g-m-o*(f-l))*u,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var v=kX(f).map(function(b){return m+o*b});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Ns(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Uo.apply(d(),arguments)}function Bw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Bw(t())},e}function Ww(){return Bw(Ns.apply(null,arguments).paddingInner(1))}function jX(e){return function(){return e}}function PX(e){return+e}var _7=[0,1];function pi(e){return e}function xh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jX(isNaN(t)?NaN:.5)}function LX(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function IX(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=xh(i,r),o=n(a,o)):(r=xh(r,i),o=n(o,a)),function(s){return o(r(s))}}function AX(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=xh(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Dw(e,s,1,r)-1;return o[l](i[l](s))}}function $f(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qv(){var e=_7,t=_7,n=fl,r,i,o,a=pi,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==pi&&(a=LX(e[0],e[f-1])),s=f>2?AX:IX,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),id)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PX),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=Wv,u()},d.clamp=function(f){return arguments.length?(a=f?!0:pi,u()):a!==pi},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function Zw(){return qv()(pi,pi)}function NX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fs(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function FX(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function DX(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var zX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qc(e){if(!(t=zX.exec(e)))throw new Error("invalid format: "+e);var t;return new Gv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qc.prototype=Gv.prototype;function Gv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Gv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function BX(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Uw;function WX(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Uw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ad(e,Math.max(0,t+o-1))[0]}function E7(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:NX,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>E7(e*100,t),r:E7,s:WX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function O7(e){return e}var V7=Array.prototype.map,R7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZX(e){var t=e.grouping===void 0||e.thousands===void 0?O7:FX(V7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?O7:DX(V7.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qc(d);var f=d.fill,h=d.align,m=d.sign,g=d.symbol,v=d.zero,b=d.width,y=d.comma,C=d.precision,$=d.trim,w=d.type;w==="n"?(y=!0,w="g"):H7[w]||(C===void 0&&(C=12),$=!0,w="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var M=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=g==="$"?r:/[%p]/.test(w)?a:"",E=H7[w],_=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(k){var A=M,j=R,H,T,P;if(w==="c")j=E(k)+j,k="";else{k=+k;var V=k<0||1/k<0;if(k=isNaN(k)?l:E(Math.abs(k),C),$&&(k=BX(k)),V&&+k==0&&m!=="+"&&(V=!1),A=(V?m==="("?m:s:m==="-"||m==="("?"":m)+A,j=(w==="s"?R7[8+Uw/3]:"")+j+(V&&m==="("?")":""),_){for(H=-1,T=k.length;++H<T;)if(P=k.charCodeAt(H),48>P||P>57){j=(P===46?i+k.slice(H+1):k.slice(H))+j,k=k.slice(0,H);break}}}y&&!v&&(k=t(k,1/0));var I=A.length+k.length+j.length,L=I<b?new Array(b-I+1).join(f):"";switch(y&&v&&(k=t(L+k,L.length?b-j.length:1/0),L=""),h){case"<":k=A+k+j+L;break;case"=":k=A+L+k+j;break;case"^":k=L.slice(0,I=L.length>>1)+A+k+j+L.slice(I);break;default:k=L+A+k+j;break}return o(k)}return O.toString=function(){return d+""},O}function u(d,f){var h=c((d=qc(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Fs(f)/3)))*3,g=Math.pow(10,-m),v=R7[8+m/3];return function(b){return h(g*b)+v}}return{format:c,formatPrefix:u}}var i1,Yv,qw;UX({thousands:",",grouping:[3],currency:["$",""]});function UX(e){return i1=ZX(e),Yv=i1.format,qw=i1.formatPrefix,i1}function qX(e){return Math.max(0,-Fs(Math.abs(e)))}function GX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fs(t)/3)))*3-Fs(Math.abs(e)))}function YX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fs(t)-Fs(e))+1}function KX(e,t,n,r){var i=yh(e,t,n),o;switch(r=qc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=GX(i,a))&&(r.precision=o),qw(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=YX(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qX(i))&&(r.precision=o-(r.type==="%")*2);break}}return Yv(r)}function Cu(e){var t=e.domain;return e.ticks=function(n){var r=t();return ph(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return KX(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=bh(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function qo(){var e=Zw();return e.copy=function(){return $f(e,qo())},Uo.apply(e,arguments),Cu(e)}function Gw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function T7(e){return Math.log(e)}function k7(e){return Math.exp(e)}function XX(e){return-Math.log(-e)}function QX(e){return-Math.exp(-e)}function JX(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eQ(e){return e===10?JX:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function j7(e){return(t,n)=>-e(-t,n)}function nQ(e){const t=e(T7,k7),n=t.domain;let r=10,i,o;function a(){return i=tQ(r),o=eQ(r),n()[0]<0?(i=j7(i),o=j7(o),e(XX,QX)):e(T7,k7),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),m,g;const v=s==null?10:+s;let b=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(m=1;m<r;++m)if(g=f<0?m/o(-f):m*o(f),!(g<c)){if(g>u)break;b.push(g)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/o(-f):m*o(f),!(g<c)){if(g>u)break;b.push(g)}b.length*2<v&&(b=ph(c,u,v))}else b=ph(f,h,Math.min(h-f,v)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qc(l)).precision==null&&(l.trim=!0),l=Yv(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Gw(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Kv(){const e=nQ(qv()).domain([1,10]);return e.copy=()=>$f(e,Kv()).base(e.base()),Uo.apply(e,arguments),e}function P7(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function L7(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function rQ(e){var t=1,n=e(P7(t),L7(t));return n.constant=function(r){return arguments.length?e(P7(t=+r),L7(t)):t},Cu(n)}function Xv(){var e=rQ(qv());return e.copy=function(){return $f(e,Xv()).constant(e.constant())},Uo.apply(e,arguments)}function Yw(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Dw(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Yw().domain([e,t]).range(i).unknown(o)},Uo.apply(Cu(a),arguments)}const s2=new Date,l2=new Date;function Nn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Nn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(s2.setTime(+o),l2.setTime(+a),e(s2),e(l2),Math.floor(n(s2,l2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const sd=Nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sd);sd.range;const oo=1e3,Nr=oo*60,ao=Nr*60,fo=ao*24,Qv=fo*7,I7=fo*30,c2=fo*365,ca=Nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*oo)},(e,t)=>(t-e)/oo,e=>e.getUTCSeconds());ca.range;const Jv=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oo)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getMinutes());Jv.range;const e5=Nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCMinutes());e5.range;const t5=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oo-e.getMinutes()*Nr)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getHours());t5.range;const n5=Nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getUTCHours());n5.range;const wu=Nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nr)/fo,e=>e.getDate()-1);wu.range;const Mf=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>e.getUTCDate()-1);Mf.range;const Kw=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>Math.floor(e/fo));Kw.range;function Na(e){return Nn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/Qv)}const _f=Na(0),ld=Na(1),iQ=Na(2),oQ=Na(3),Ds=Na(4),aQ=Na(5),sQ=Na(6);_f.range;ld.range;iQ.range;oQ.range;Ds.range;aQ.range;sQ.range;function Fa(e){return Nn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Qv)}const Ef=Fa(0),cd=Fa(1),lQ=Fa(2),cQ=Fa(3),zs=Fa(4),uQ=Fa(5),dQ=Fa(6);Ef.range;cd.range;lQ.range;cQ.range;zs.range;uQ.range;dQ.range;const r5=Nn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());r5.range;const i5=Nn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());i5.range;const ho=Nn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ho.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ho.range;const go=Nn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());go.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});go.range;function Xw(e,t,n,r,i,o){const a=[[ca,1,oo],[ca,5,5*oo],[ca,15,15*oo],[ca,30,30*oo],[o,1,Nr],[o,5,5*Nr],[o,15,15*Nr],[o,30,30*Nr],[i,1,ao],[i,3,3*ao],[i,6,6*ao],[i,12,12*ao],[r,1,fo],[r,2,2*fo],[n,1,Qv],[t,1,I7],[t,3,3*I7],[e,1,c2]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),m=h?h.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,h=Uv(([,,v])=>v).right(a,f);if(h===a.length)return e.every(yh(c/c2,u/c2,d));if(h===0)return sd.every(Math.max(yh(c,u,d),1));const[m,g]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return m.every(g)}return[s,l]}const[fQ,hQ]=Xw(go,i5,Ef,Kw,n5,e5),[gQ,vQ]=Xw(ho,r5,_f,wu,t5,Jv);function u2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function d2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Nl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mQ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Fl(i),u=Dl(i),d=Fl(o),f=Dl(o),h=Fl(a),m=Dl(a),g=Fl(s),v=Dl(s),b=Fl(l),y=Dl(l),C={a:V,A:I,b:L,B:N,c:null,d:B7,e:B7,f:NQ,g:YQ,G:XQ,H:LQ,I:IQ,j:AQ,L:Qw,m:FQ,M:DQ,p:z,q,Q:U7,s:q7,S:zQ,u:BQ,U:WQ,V:ZQ,w:UQ,W:qQ,x:null,X:null,y:GQ,Y:KQ,Z:QQ,"%":Z7},$={a:G,A:Y,b:ee,B:Q,c:null,d:W7,e:W7,f:nJ,g:fJ,G:gJ,H:JQ,I:eJ,j:tJ,L:eS,m:rJ,M:iJ,p:K,q:J,Q:U7,s:q7,S:oJ,u:aJ,U:sJ,V:lJ,w:cJ,W:uJ,x:null,X:null,y:dJ,Y:hJ,Z:vJ,"%":Z7},w={a:O,A:k,b:A,B:j,c:H,d:D7,e:D7,f:TQ,g:F7,G:N7,H:z7,I:z7,j:HQ,L:RQ,m:EQ,M:OQ,p:_,q:_Q,Q:jQ,s:PQ,S:VQ,u:CQ,U:wQ,V:SQ,w:xQ,W:$Q,x:T,X:P,y:F7,Y:N7,Z:MQ,"%":kQ};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),$.x=M(n,$),$.X=M(r,$),$.c=M(t,$);function M(W,Z){return function(U){var F=[],re=-1,B=0,ie=W.length,oe,ve,xe;for(U instanceof Date||(U=new Date(+U));++re<ie;)W.charCodeAt(re)===37&&(F.push(W.slice(B,re)),(ve=A7[oe=W.charAt(++re)])!=null?oe=W.charAt(++re):ve=oe==="e"?" ":"0",(xe=Z[oe])&&(oe=xe(U,ve)),F.push(oe),B=re+1);return F.push(W.slice(B,re)),F.join("")}}function R(W,Z){return function(U){var F=Nl(1900,void 0,1),re=E(F,W,U+="",0),B,ie;if(re!=U.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(B=d2(Nl(F.y,0,1)),ie=B.getUTCDay(),B=ie>4||ie===0?cd.ceil(B):cd(B),B=Mf.offset(B,(F.V-1)*7),F.y=B.getUTCFullYear(),F.m=B.getUTCMonth(),F.d=B.getUTCDate()+(F.w+6)%7):(B=u2(Nl(F.y,0,1)),ie=B.getDay(),B=ie>4||ie===0?ld.ceil(B):ld(B),B=wu.offset(B,(F.V-1)*7),F.y=B.getFullYear(),F.m=B.getMonth(),F.d=B.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),ie="Z"in F?d2(Nl(F.y,0,1)).getUTCDay():u2(Nl(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(ie+5)%7:F.w+F.U*7-(ie+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,d2(F)):u2(F)}}function E(W,Z,U,F){for(var re=0,B=Z.length,ie=U.length,oe,ve;re<B;){if(F>=ie)return-1;if(oe=Z.charCodeAt(re++),oe===37){if(oe=Z.charAt(re++),ve=w[oe in A7?Z.charAt(re++):oe],!ve||(F=ve(W,U,F))<0)return-1}else if(oe!=U.charCodeAt(F++))return-1}return F}function _(W,Z,U){var F=c.exec(Z.slice(U));return F?(W.p=u.get(F[0].toLowerCase()),U+F[0].length):-1}function O(W,Z,U){var F=h.exec(Z.slice(U));return F?(W.w=m.get(F[0].toLowerCase()),U+F[0].length):-1}function k(W,Z,U){var F=d.exec(Z.slice(U));return F?(W.w=f.get(F[0].toLowerCase()),U+F[0].length):-1}function A(W,Z,U){var F=b.exec(Z.slice(U));return F?(W.m=y.get(F[0].toLowerCase()),U+F[0].length):-1}function j(W,Z,U){var F=g.exec(Z.slice(U));return F?(W.m=v.get(F[0].toLowerCase()),U+F[0].length):-1}function H(W,Z,U){return E(W,t,Z,U)}function T(W,Z,U){return E(W,n,Z,U)}function P(W,Z,U){return E(W,r,Z,U)}function V(W){return a[W.getDay()]}function I(W){return o[W.getDay()]}function L(W){return l[W.getMonth()]}function N(W){return s[W.getMonth()]}function z(W){return i[+(W.getHours()>=12)]}function q(W){return 1+~~(W.getMonth()/3)}function G(W){return a[W.getUTCDay()]}function Y(W){return o[W.getUTCDay()]}function ee(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function J(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Z=M(W+="",C);return Z.toString=function(){return W},Z},parse:function(W){var Z=R(W+="",!1);return Z.toString=function(){return W},Z},utcFormat:function(W){var Z=M(W+="",$);return Z.toString=function(){return W},Z},utcParse:function(W){var Z=R(W+="",!0);return Z.toString=function(){return W},Z}}}var A7={"-":"",_:" ",0:"0"},Yn=/^\s*\d+/,pQ=/^%/,bQ=/[\\^$*+?|[\]().{}]/g;function zt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function yQ(e){return e.replace(bQ,"\\$&")}function Fl(e){return new RegExp("^(?:"+e.map(yQ).join("|")+")","i")}function Dl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function xQ(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function CQ(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function N7(e,t,n){var r=Yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function F7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function MQ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _Q(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function EQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function HQ(e,t,n){var r=Yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function z7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function OQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function RQ(e,t,n){var r=Yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function TQ(e,t,n){var r=Yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function kQ(e,t,n){var r=pQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jQ(e,t,n){var r=Yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function PQ(e,t,n){var r=Yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B7(e,t){return zt(e.getDate(),t,2)}function LQ(e,t){return zt(e.getHours(),t,2)}function IQ(e,t){return zt(e.getHours()%12||12,t,2)}function AQ(e,t){return zt(1+wu.count(ho(e),e),t,3)}function Qw(e,t){return zt(e.getMilliseconds(),t,3)}function NQ(e,t){return Qw(e,t)+"000"}function FQ(e,t){return zt(e.getMonth()+1,t,2)}function DQ(e,t){return zt(e.getMinutes(),t,2)}function zQ(e,t){return zt(e.getSeconds(),t,2)}function BQ(e){var t=e.getDay();return t===0?7:t}function WQ(e,t){return zt(_f.count(ho(e)-1,e),t,2)}function Jw(e){var t=e.getDay();return t>=4||t===0?Ds(e):Ds.ceil(e)}function ZQ(e,t){return e=Jw(e),zt(Ds.count(ho(e),e)+(ho(e).getDay()===4),t,2)}function UQ(e){return e.getDay()}function qQ(e,t){return zt(ld.count(ho(e)-1,e),t,2)}function GQ(e,t){return zt(e.getFullYear()%100,t,2)}function YQ(e,t){return e=Jw(e),zt(e.getFullYear()%100,t,2)}function KQ(e,t){return zt(e.getFullYear()%1e4,t,4)}function XQ(e,t){var n=e.getDay();return e=n>=4||n===0?Ds(e):Ds.ceil(e),zt(e.getFullYear()%1e4,t,4)}function QQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zt(t/60|0,"0",2)+zt(t%60,"0",2)}function W7(e,t){return zt(e.getUTCDate(),t,2)}function JQ(e,t){return zt(e.getUTCHours(),t,2)}function eJ(e,t){return zt(e.getUTCHours()%12||12,t,2)}function tJ(e,t){return zt(1+Mf.count(go(e),e),t,3)}function eS(e,t){return zt(e.getUTCMilliseconds(),t,3)}function nJ(e,t){return eS(e,t)+"000"}function rJ(e,t){return zt(e.getUTCMonth()+1,t,2)}function iJ(e,t){return zt(e.getUTCMinutes(),t,2)}function oJ(e,t){return zt(e.getUTCSeconds(),t,2)}function aJ(e){var t=e.getUTCDay();return t===0?7:t}function sJ(e,t){return zt(Ef.count(go(e)-1,e),t,2)}function tS(e){var t=e.getUTCDay();return t>=4||t===0?zs(e):zs.ceil(e)}function lJ(e,t){return e=tS(e),zt(zs.count(go(e),e)+(go(e).getUTCDay()===4),t,2)}function cJ(e){return e.getUTCDay()}function uJ(e,t){return zt(cd.count(go(e)-1,e),t,2)}function dJ(e,t){return zt(e.getUTCFullYear()%100,t,2)}function fJ(e,t){return e=tS(e),zt(e.getUTCFullYear()%100,t,2)}function hJ(e,t){return zt(e.getUTCFullYear()%1e4,t,4)}function gJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zs(e):zs.ceil(e),zt(e.getUTCFullYear()%1e4,t,4)}function vJ(){return"+0000"}function Z7(){return"%"}function U7(e){return+e}function q7(e){return Math.floor(+e/1e3)}var ls,nS,rS;mJ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mJ(e){return ls=mQ(e),nS=ls.format,ls.parse,rS=ls.utcFormat,ls.utcParse,ls}function pJ(e){return new Date(e)}function bJ(e){return e instanceof Date?+e:+new Date(+e)}function o5(e,t,n,r,i,o,a,s,l,c){var u=Zw(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),y=c("%b %d"),C=c("%B"),$=c("%Y");function w(M){return(l(M)<M?h:s(M)<M?m:a(M)<M?g:o(M)<M?v:r(M)<M?i(M)<M?b:y:n(M)<M?C:$)(M)}return u.invert=function(M){return new Date(d(M))},u.domain=function(M){return arguments.length?f(Array.from(M,bJ)):f().map(pJ)},u.ticks=function(M){var R=f();return e(R[0],R[R.length-1],M??10)},u.tickFormat=function(M,R){return R==null?w:c(R)},u.nice=function(M){var R=f();return(!M||typeof M.range!="function")&&(M=t(R[0],R[R.length-1],M??10)),M?f(Gw(R,M)):u},u.copy=function(){return $f(u,o5(e,t,n,r,i,o,a,s,l,c))},u}function iS(){return Uo.apply(o5(gQ,vQ,ho,r5,_f,wu,t5,Jv,ca,nS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oS(){return Uo.apply(o5(fQ,hQ,go,i5,Ef,Mf,n5,e5,ca,rS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yJ(){var e=0,t=1,n,r,i,o,a=pi,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,m;return arguments.length?([h,m]=f,a=d(h,m),c):[a(0),a(1)]}}return c.range=u(fl),c.rangeRound=u(Wv),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function aS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sS(){var e=Cu(yJ()(pi));return e.copy=function(){return aS(e,sS())},zw.apply(e,arguments)}function xJ(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=pi,u,d=!1,f;function h(g){return isNaN(g=+g)?f:(g=.5+((g=+u(g))-o)*(r*g<r*o?s:l),c(d?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,n]=g,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(g){return arguments.length?(d=!!g,h):d},h.interpolator=function(g){return arguments.length?(c=g,h):c};function m(g){return function(v){var b,y,C;return arguments.length?([b,y,C]=v,c=vX(g,[b,y,C]),h):[c(0),c(.5),c(1)]}}return h.range=m(fl),h.rangeRound=m(Wv),h.unknown=function(g){return arguments.length?(f=g,h):f},function(g){return u=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function Ch(){var e=Cu(xJ()(pi));return e.copy=function(){return aS(e,Ch())},zw.apply(e,arguments)}function Vt(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const hl=Vt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),gl=Vt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),vl=Vt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),ml=Vt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pl=Vt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),bl=Vt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),yl=Vt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),xl=Vt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bo=Vt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),a5=Vt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ln=e=>sX(e[e.length-1]);var _i=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vt);const s5=ln(_i);var Ei=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vt);const l5=ln(Ei);var Hi=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vt);const c5=ln(Hi);var Oi=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vt);const u5=ln(Oi);var Vi=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vt);const d5=ln(Vi);var Ri=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vt);const f5=ln(Ri);var Ti=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vt);const h5=ln(Ti);var ki=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vt);const g5=ln(ki);var ji=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vt);const v5=ln(ji);var Pi=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vt);const m5=ln(Pi);var Li=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vt);const p5=ln(Li);var Ii=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vt);const b5=ln(Ii);var Ai=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vt);const y5=ln(Ai);var Ni=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vt);const x5=ln(Ni);var Fi=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vt);const C5=ln(Fi);var Di=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vt);const w5=ln(Di);var zi=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vt);const S5=ln(zi);var Bi=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vt);const $5=ln(Bi);var Wi=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vt);const M5=ln(Wi);var Zi=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vt);const _5=ln(Zi);var Ui=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vt);const E5=ln(Ui);var qi=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vt);const H5=ln(qi);var Gi=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vt);const O5=ln(Gi);var Yi=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vt);const V5=ln(Yi);var Ki=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vt);const R5=ln(Ki);var Xi=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vt);const T5=ln(Xi);var Qi=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vt);const k5=ln(Qi);function j5(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const P5=Zv(wi(300,.5,0),wi(-240,.5,1));var L5=Zv(wi(-100,.75,.35),wi(80,1.5,.8)),I5=Zv(wi(260,.75,.35),wi(80,1.5,.8)),o1=wi();function A5(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return o1.h=360*e-100,o1.s=1.5-1.5*t,o1.l=.8-.9*t,o1+""}var a1=jo(),CJ=Math.PI/3,wJ=Math.PI*2/3;function N5(e){var t;return e=(.5-e)*Math.PI,a1.r=255*(t=Math.sin(e))*t,a1.g=255*(t=Math.sin(e+CJ))*t,a1.b=255*(t=Math.sin(e+wJ))*t,a1+""}function F5(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Hf(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const D5=Hf(Vt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var z5=Hf(Vt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),B5=Hf(Vt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),W5=Hf(Vt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),SJ=uv,$J=wC,MJ=SC,_J=bf,EJ=sl,HJ=dv,OJ=200;function VJ(e,t,n,r){var i=-1,o=$J,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=_J(t,EJ(n))),r?(o=MJ,a=!1):t.length>=OJ&&(o=HJ,a=!1,t=new SJ(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var RJ=VJ,TJ=RJ,kJ=Iv,jJ=Sw,PJ=kJ(function(e,t){return jJ(e)?TJ(e,t):[]}),LJ=PJ;const Cl=Cn(LJ);function Pt(e){return function(){return e}}const G7=Math.abs,tr=Math.atan2,Xo=Math.cos,IJ=Math.max,f2=Math.min,hi=Math.sin,ys=Math.sqrt,ir=1e-12,Gc=Math.PI,ud=Gc/2,E1=2*Gc;function AJ(e){return e>1?0:e<-1?Gc:Math.acos(e)}function Y7(e){return e>=1?ud:e<=-1?-ud:Math.asin(e)}const wh=Math.PI,Sh=2*wh,ea=1e-6,NJ=Sh-ea;function lS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function FJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lS;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let DJ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lS:FJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ea)if(!(Math.abs(d*l-c*u)>ea)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,m=i-s,g=l*l+c*c,v=h*h+m*m,b=Math.sqrt(g),y=Math.sqrt(f),C=o*Math.tan((wh-Math.acos((g+f-v)/(2*b*y)))/2),$=C/y,w=C/b;Math.abs($-1)>ea&&this._append`L${t+$*u},${n+$*d}`,this._append`A${o},${o},0,0,${+(d*h>u*m)},${this._x1=t+w*l},${this._y1=n+w*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ea||Math.abs(this._y1-u)>ea)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Sh+Sh),f>NJ?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ea&&this._append`A${r},${r},0,${+(f>=wh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Z5(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new DJ(t)}function zJ(e){return e.innerRadius}function BJ(e){return e.outerRadius}function WJ(e){return e.startAngle}function ZJ(e){return e.endAngle}function UJ(e){return e&&e.padAngle}function qJ(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<ir))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function s1(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/ys(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,m=n+u,g=r+d,v=(f+m)/2,b=(h+g)/2,y=m-f,C=g-h,$=y*y+C*C,w=i-o,M=f*g-m*h,R=(C<0?-1:1)*ys(IJ(0,w*w*$-M*M)),E=(M*C-y*R)/$,_=(-M*y-C*R)/$,O=(M*C+y*R)/$,k=(-M*y+C*R)/$,A=E-v,j=_-b,H=O-v,T=k-b;return A*A+j*j>H*H+T*T&&(E=O,_=k),{cx:E,cy:_,x01:-u,y01:-d,x11:E*(i/w-1),y11:_*(i/w-1)}}function GJ(){var e=zJ,t=BJ,n=Pt(0),r=null,i=WJ,o=ZJ,a=UJ,s=null,l=Z5(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),m=i.apply(this,arguments)-ud,g=o.apply(this,arguments)-ud,v=G7(g-m),b=g>m;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>ir))s.moveTo(0,0);else if(v>E1-ir)s.moveTo(h*Xo(m),h*hi(m)),s.arc(0,0,h,m,g,!b),f>ir&&(s.moveTo(f*Xo(g),f*hi(g)),s.arc(0,0,f,g,m,b));else{var y=m,C=g,$=m,w=g,M=v,R=v,E=a.apply(this,arguments)/2,_=E>ir&&(r?+r.apply(this,arguments):ys(f*f+h*h)),O=f2(G7(h-f)/2,+n.apply(this,arguments)),k=O,A=O,j,H;if(_>ir){var T=Y7(_/f*hi(E)),P=Y7(_/h*hi(E));(M-=T*2)>ir?(T*=b?1:-1,$+=T,w-=T):(M=0,$=w=(m+g)/2),(R-=P*2)>ir?(P*=b?1:-1,y+=P,C-=P):(R=0,y=C=(m+g)/2)}var V=h*Xo(y),I=h*hi(y),L=f*Xo(w),N=f*hi(w);if(O>ir){var z=h*Xo(C),q=h*hi(C),G=f*Xo($),Y=f*hi($),ee;if(v<Gc)if(ee=qJ(V,I,G,Y,z,q,L,N)){var Q=V-ee[0],K=I-ee[1],J=z-ee[0],W=q-ee[1],Z=1/hi(AJ((Q*J+K*W)/(ys(Q*Q+K*K)*ys(J*J+W*W)))/2),U=ys(ee[0]*ee[0]+ee[1]*ee[1]);k=f2(O,(f-U)/(Z-1)),A=f2(O,(h-U)/(Z+1))}else k=A=0}R>ir?A>ir?(j=s1(G,Y,V,I,h,A,b),H=s1(z,q,L,N,h,A,b),s.moveTo(j.cx+j.x01,j.cy+j.y01),A<O?s.arc(j.cx,j.cy,A,tr(j.y01,j.x01),tr(H.y01,H.x01),!b):(s.arc(j.cx,j.cy,A,tr(j.y01,j.x01),tr(j.y11,j.x11),!b),s.arc(0,0,h,tr(j.cy+j.y11,j.cx+j.x11),tr(H.cy+H.y11,H.cx+H.x11),!b),s.arc(H.cx,H.cy,A,tr(H.y11,H.x11),tr(H.y01,H.x01),!b))):(s.moveTo(V,I),s.arc(0,0,h,y,C,!b)):s.moveTo(V,I),!(f>ir)||!(M>ir)?s.lineTo(L,N):k>ir?(j=s1(L,N,z,q,f,-k,b),H=s1(V,I,G,Y,f,-k,b),s.lineTo(j.cx+j.x01,j.cy+j.y01),k<O?s.arc(j.cx,j.cy,k,tr(j.y01,j.x01),tr(H.y01,H.x01),!b):(s.arc(j.cx,j.cy,k,tr(j.y01,j.x01),tr(j.y11,j.x11),!b),s.arc(0,0,f,tr(j.cy+j.y11,j.cx+j.x11),tr(H.cy+H.y11,H.cx+H.x11),b),s.arc(H.cx,H.cy,k,tr(H.y11,H.x11),tr(H.y01,H.x01),!b))):s.arc(0,0,f,w,$,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Gc/2;return[Xo(d)*u,hi(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Pt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Pt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Pt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Pt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Pt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Pt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Of(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cS(e){this._context=e}cS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Su(e){return new cS(e)}function uS(e){return e[0]}function dS(e){return e[1]}function Yc(e,t){var n=Pt(!0),r=null,i=Su,o=null,a=Z5(s);e=typeof e=="function"?e:e===void 0?uS:Pt(e),t=typeof t=="function"?t:t===void 0?dS:Pt(t);function s(l){var c,u=(l=Of(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function fS(e,t,n){var r=null,i=Pt(!0),o=null,a=Su,s=null,l=Z5(c);e=typeof e=="function"?e:e===void 0?uS:Pt(+e),t=typeof t=="function"?t:Pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?dS:Pt(+n);function c(d){var f,h,m,g=(d=Of(d)).length,v,b=!1,y,C=new Array(g),$=new Array(g);for(o==null&&(s=a(y=l())),f=0;f<=g;++f){if(!(f<g&&i(v=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=h;--m)s.point(C[m],$[m]);s.lineEnd(),s.areaEnd()}b&&(C[f]=+e(v,f,d),$[f]=+t(v,f,d),s.point(r?+r(v,f,d):C[f],n?+n(v,f,d):$[f]))}if(y)return s=null,y+""||null}function u(){return Yc().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Pt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Pt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function YJ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function KJ(e){return e}function XJ(){var e=KJ,t=YJ,n=null,r=Pt(0),i=Pt(E1),o=Pt(0);function a(s){var l,c=(s=Of(s)).length,u,d,f=0,h=new Array(c),m=new Array(c),g=+r.apply(this,arguments),v=Math.min(E1,Math.max(-E1,i.apply(this,arguments)-g)),b,y=Math.min(Math.abs(v)/c,o.apply(this,arguments)),C=y*(v<0?-1:1),$;for(l=0;l<c;++l)($=m[h[l]=l]=+e(s[l],l,s))>0&&(f+=$);for(t!=null?h.sort(function(w,M){return t(m[w],m[M])}):n!=null&&h.sort(function(w,M){return n(s[w],s[M])}),l=0,d=f?(v-c*C)/f:0;l<c;++l,g=b)u=h[l],$=m[u],b=g+($>0?$*d:0)+C,m[u]={data:s[u],index:l,value:$,startAngle:g,endAngle:b,padAngle:y};return m}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:Pt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Pt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Pt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:Pt(+s),a):o},a}function Po(){}function dd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Vf(e){this._context=e}Vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:dd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function U5(e){return new Vf(e)}function hS(e){this._context=e}hS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q5(e){return new hS(e)}function gS(e){this._context=e}gS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G5(e){return new gS(e)}function vS(e,t){this._basis=new Vf(e),this._beta=t}vS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Y5=function e(t){function n(r){return t===1?new Vf(r):new vS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function fd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function K5(e,t){this._context=e,this._k=(1-t)/6}K5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const X5=function e(t){function n(r){return new K5(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Q5(e,t){this._context=e,this._k=(1-t)/6}Q5.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const J5=function e(t){function n(r){return new Q5(r,t)}return n.tension=function(r){return e(+r)},n}(0);function em(e,t){this._context=e,this._k=(1-t)/6}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const tm=function e(t){function n(r){return new em(r,t)}return n.tension=function(r){return e(+r)},n}(0);function nm(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ir){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ir){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function mS(e,t){this._context=e,this._alpha=t}mS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rm=function e(t){function n(r){return t?new mS(r,t):new K5(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pS(e,t){this._context=e,this._alpha=t}pS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const im=function e(t){function n(r){return t?new pS(r,t):new Q5(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function bS(e,t){this._context=e,this._alpha=t}bS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const om=function e(t){function n(r){return t?new bS(r,t):new em(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yS(e){this._context=e}yS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function am(e){return new yS(e)}function K7(e){return e<0?-1:1}function X7(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(K7(o)+K7(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Q7(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function h2(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function hd(e){this._context=e}hd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h2(this,this._t0,Q7(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h2(this,Q7(this,n=X7(this,e,t)),n);break;default:h2(this,this._t0,n=X7(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xS(e){this._context=new CS(e)}(xS.prototype=Object.create(hd.prototype)).point=function(e,t){hd.prototype.point.call(this,t,e)};function CS(e){this._context=e}CS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function $u(e){return new hd(e)}function Rf(e){return new xS(e)}function wS(e){this._context=e}wS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=J7(e),i=J7(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function J7(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function sm(e){return new wS(e)}function Tf(e,t){this._context=e,this._t=t}Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function lm(e){return new Tf(e,.5)}function cm(e){return new Tf(e,0)}function um(e){return new Tf(e,1)}function e8(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function t8(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function QJ(e,t){return e[t]}function JJ(e){const t=[];return t.key=e,t}function eee(){var e=Pt([]),t=t8,n=e8,r=QJ;function i(o){var a=Array.from(e.apply(this,arguments),JJ),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Of(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Pt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Pt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?t8:typeof o=="function"?o:Pt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??e8,i):n},i}function tee(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function nee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ree(e){return e=gd(Math.abs(e)),e?e[1]:NaN}function iee(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function oee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $h(e){if(!(t=aee.exec(e)))throw new Error("invalid format: "+e);var t;return new dm({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$h.prototype=dm.prototype;function dm(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function see(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var SS;function lee(e,t){var n=gd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(SS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+gd(e,Math.max(0,t+o-1))[0]}function n8(e,t){var n=gd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const r8={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:nee,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n8(e*100,t)},r:n8,s:lee,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function i8(e){return e}var o8=Array.prototype.map,a8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cee(e){var t=e.grouping===void 0||e.thousands===void 0?i8:iee(o8.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?i8:oee(o8.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=$h(d);var f=d.fill,h=d.align,m=d.sign,g=d.symbol,v=d.zero,b=d.width,y=d.comma,C=d.precision,$=d.trim,w=d.type;w==="n"?(y=!0,w="g"):r8[w]||(C===void 0&&(C=12),$=!0,w="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var M=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=g==="$"?r:/[%p]/.test(w)?a:"",E=r8[w],_=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(k){var A=M,j=R,H,T,P;if(w==="c")j=E(k)+j,k="";else{k=+k;var V=k<0||1/k<0;if(k=isNaN(k)?l:E(Math.abs(k),C),$&&(k=see(k)),V&&+k==0&&m!=="+"&&(V=!1),A=(V?m==="("?m:s:m==="-"||m==="("?"":m)+A,j=(w==="s"?a8[8+SS/3]:"")+j+(V&&m==="("?")":""),_){for(H=-1,T=k.length;++H<T;)if(P=k.charCodeAt(H),48>P||P>57){j=(P===46?i+k.slice(H+1):k.slice(H))+j,k=k.slice(0,H);break}}}y&&!v&&(k=t(k,1/0));var I=A.length+k.length+j.length,L=I<b?new Array(b-I+1).join(f):"";switch(y&&v&&(k=t(L+k,L.length?b-j.length:1/0),L=""),h){case"<":k=A+k+j+L;break;case"=":k=A+L+k+j;break;case"^":k=L.slice(0,I=L.length>>1)+A+k+j+L.slice(I);break;default:k=L+A+k+j;break}return o(k)}return O.toString=function(){return d+""},O}function u(d,f){var h=c((d=$h(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ree(f)/3)))*3,g=Math.pow(10,-m),v=a8[8+m/3];return function(b){return h(g*b)+v}}return{format:c,formatPrefix:u}}var l1,Da;uee({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function uee(e){return l1=cee(e),Da=l1.format,l1.formatPrefix,l1}var g2=new Date,v2=new Date;function yo(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return yo(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return g2.setTime(+o),v2.setTime(+a),e(g2),e(v2),Math.floor(n(g2,v2))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}const dee=1e3,fm=dee*60,fee=fm*60,hm=fee*24,$S=hm*7;var gm=yo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fm)/hm,e=>e.getDate()-1);gm.range;function za(e){return yo(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*fm)/$S})}var MS=za(0),vd=za(1),hee=za(2),gee=za(3),Bs=za(4),vee=za(5),mee=za(6);MS.range;vd.range;hee.range;gee.range;Bs.range;vee.range;mee.range;var wa=yo(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});wa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yo(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};wa.range;var vm=yo(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/hm},function(e){return e.getUTCDate()-1});vm.range;function Ba(e){return yo(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/$S})}var _S=Ba(0),md=Ba(1),pee=Ba(2),bee=Ba(3),Ws=Ba(4),yee=Ba(5),xee=Ba(6);_S.range;md.range;pee.range;bee.range;Ws.range;yee.range;xee.range;var Sa=yo(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yo(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Sa.range;function s8(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function ES(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function m2(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function p2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function b2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function zl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Cee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Bl(i),u=Wl(i),d=Bl(o),f=Wl(o),h=Bl(a),m=Wl(a),g=Bl(s),v=Wl(s),b=Bl(l),y=Wl(l),C={a:V,A:I,b:L,B:N,c:null,d:h8,e:h8,f:Wee,g:ete,G:nte,H:Dee,I:zee,j:Bee,L:HS,m:Zee,M:Uee,p:z,q,Q:m8,s:p8,S:qee,u:Gee,U:Yee,V:Kee,w:Xee,W:Qee,x:null,X:null,y:Jee,Y:tte,Z:rte,"%":v8},$={a:G,A:Y,b:ee,B:Q,c:null,d:g8,e:g8,f:ste,g:pte,G:yte,H:ite,I:ote,j:ate,L:VS,m:lte,M:cte,p:K,q:J,Q:m8,s:p8,S:ute,u:dte,U:fte,V:hte,w:gte,W:vte,x:null,X:null,y:mte,Y:bte,Z:xte,"%":v8},w={a:O,A:k,b:A,B:j,c:H,d:d8,e:d8,f:Iee,g:u8,G:c8,H:f8,I:f8,j:kee,L:Lee,m:Tee,M:jee,p:_,q:Ree,Q:Nee,s:Fee,S:Pee,u:_ee,U:Eee,V:Hee,w:Mee,W:Oee,x:T,X:P,y:u8,Y:c8,Z:Vee,"%":Aee};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),$.x=M(n,$),$.X=M(r,$),$.c=M(t,$);function M(W,Z){return function(U){var F=[],re=-1,B=0,ie=W.length,oe,ve,xe;for(U instanceof Date||(U=new Date(+U));++re<ie;)W.charCodeAt(re)===37&&(F.push(W.slice(B,re)),(ve=l8[oe=W.charAt(++re)])!=null?oe=W.charAt(++re):ve=oe==="e"?" ":"0",(xe=Z[oe])&&(oe=xe(U,ve)),F.push(oe),B=re+1);return F.push(W.slice(B,re)),F.join("")}}function R(W,Z){return function(U){var F=zl(1900,void 0,1),re=E(F,W,U+="",0),B,ie;if(re!=U.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(B=b2(zl(F.y,0,1)),ie=B.getUTCDay(),B=ie>4||ie===0?md.ceil(B):md(B),B=vm.offset(B,(F.V-1)*7),F.y=B.getUTCFullYear(),F.m=B.getUTCMonth(),F.d=B.getUTCDate()+(F.w+6)%7):(B=p2(zl(F.y,0,1)),ie=B.getDay(),B=ie>4||ie===0?vd.ceil(B):vd(B),B=gm.offset(B,(F.V-1)*7),F.y=B.getFullYear(),F.m=B.getMonth(),F.d=B.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),ie="Z"in F?b2(zl(F.y,0,1)).getUTCDay():p2(zl(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(ie+5)%7:F.w+F.U*7-(ie+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,b2(F)):p2(F)}}function E(W,Z,U,F){for(var re=0,B=Z.length,ie=U.length,oe,ve;re<B;){if(F>=ie)return-1;if(oe=Z.charCodeAt(re++),oe===37){if(oe=Z.charAt(re++),ve=w[oe in l8?Z.charAt(re++):oe],!ve||(F=ve(W,U,F))<0)return-1}else if(oe!=U.charCodeAt(F++))return-1}return F}function _(W,Z,U){var F=c.exec(Z.slice(U));return F?(W.p=u.get(F[0].toLowerCase()),U+F[0].length):-1}function O(W,Z,U){var F=h.exec(Z.slice(U));return F?(W.w=m.get(F[0].toLowerCase()),U+F[0].length):-1}function k(W,Z,U){var F=d.exec(Z.slice(U));return F?(W.w=f.get(F[0].toLowerCase()),U+F[0].length):-1}function A(W,Z,U){var F=b.exec(Z.slice(U));return F?(W.m=y.get(F[0].toLowerCase()),U+F[0].length):-1}function j(W,Z,U){var F=g.exec(Z.slice(U));return F?(W.m=v.get(F[0].toLowerCase()),U+F[0].length):-1}function H(W,Z,U){return E(W,t,Z,U)}function T(W,Z,U){return E(W,n,Z,U)}function P(W,Z,U){return E(W,r,Z,U)}function V(W){return a[W.getDay()]}function I(W){return o[W.getDay()]}function L(W){return l[W.getMonth()]}function N(W){return s[W.getMonth()]}function z(W){return i[+(W.getHours()>=12)]}function q(W){return 1+~~(W.getMonth()/3)}function G(W){return a[W.getUTCDay()]}function Y(W){return o[W.getUTCDay()]}function ee(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function J(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Z=M(W+="",C);return Z.toString=function(){return W},Z},parse:function(W){var Z=R(W+="",!1);return Z.toString=function(){return W},Z},utcFormat:function(W){var Z=M(W+="",$);return Z.toString=function(){return W},Z},utcParse:function(W){var Z=R(W+="",!0);return Z.toString=function(){return W},Z}}}var l8={"-":"",_:" ",0:"0"},Kn=/^\s*\d+/,wee=/^%/,See=/[\\^$*+?|[\]().{}]/g;function Bt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function $ee(e){return e.replace(See,"\\$&")}function Bl(e){return new RegExp("^(?:"+e.map($ee).join("|")+")","i")}function Wl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Mee(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _ee(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Eee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Oee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function c8(e,t,n){var r=Kn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function u8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Vee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ree(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Tee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function d8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kee(e,t,n){var r=Kn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function f8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=Kn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Iee(e,t,n){var r=Kn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Aee(e,t,n){var r=wee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nee(e,t,n){var r=Kn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Fee(e,t,n){var r=Kn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function h8(e,t){return Bt(e.getDate(),t,2)}function Dee(e,t){return Bt(e.getHours(),t,2)}function zee(e,t){return Bt(e.getHours()%12||12,t,2)}function Bee(e,t){return Bt(1+gm.count(wa(e),e),t,3)}function HS(e,t){return Bt(e.getMilliseconds(),t,3)}function Wee(e,t){return HS(e,t)+"000"}function Zee(e,t){return Bt(e.getMonth()+1,t,2)}function Uee(e,t){return Bt(e.getMinutes(),t,2)}function qee(e,t){return Bt(e.getSeconds(),t,2)}function Gee(e){var t=e.getDay();return t===0?7:t}function Yee(e,t){return Bt(MS.count(wa(e)-1,e),t,2)}function OS(e){var t=e.getDay();return t>=4||t===0?Bs(e):Bs.ceil(e)}function Kee(e,t){return e=OS(e),Bt(Bs.count(wa(e),e)+(wa(e).getDay()===4),t,2)}function Xee(e){return e.getDay()}function Qee(e,t){return Bt(vd.count(wa(e)-1,e),t,2)}function Jee(e,t){return Bt(e.getFullYear()%100,t,2)}function ete(e,t){return e=OS(e),Bt(e.getFullYear()%100,t,2)}function tte(e,t){return Bt(e.getFullYear()%1e4,t,4)}function nte(e,t){var n=e.getDay();return e=n>=4||n===0?Bs(e):Bs.ceil(e),Bt(e.getFullYear()%1e4,t,4)}function rte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Bt(t/60|0,"0",2)+Bt(t%60,"0",2)}function g8(e,t){return Bt(e.getUTCDate(),t,2)}function ite(e,t){return Bt(e.getUTCHours(),t,2)}function ote(e,t){return Bt(e.getUTCHours()%12||12,t,2)}function ate(e,t){return Bt(1+vm.count(Sa(e),e),t,3)}function VS(e,t){return Bt(e.getUTCMilliseconds(),t,3)}function ste(e,t){return VS(e,t)+"000"}function lte(e,t){return Bt(e.getUTCMonth()+1,t,2)}function cte(e,t){return Bt(e.getUTCMinutes(),t,2)}function ute(e,t){return Bt(e.getUTCSeconds(),t,2)}function dte(e){var t=e.getUTCDay();return t===0?7:t}function fte(e,t){return Bt(_S.count(Sa(e)-1,e),t,2)}function RS(e){var t=e.getUTCDay();return t>=4||t===0?Ws(e):Ws.ceil(e)}function hte(e,t){return e=RS(e),Bt(Ws.count(Sa(e),e)+(Sa(e).getUTCDay()===4),t,2)}function gte(e){return e.getUTCDay()}function vte(e,t){return Bt(md.count(Sa(e)-1,e),t,2)}function mte(e,t){return Bt(e.getUTCFullYear()%100,t,2)}function pte(e,t){return e=RS(e),Bt(e.getUTCFullYear()%100,t,2)}function bte(e,t){return Bt(e.getUTCFullYear()%1e4,t,4)}function yte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ws(e):Ws.ceil(e),Bt(e.getUTCFullYear()%1e4,t,4)}function xte(){return"+0000"}function v8(){return"%"}function m8(e){return+e}function p8(e){return Math.floor(+e/1e3)}var cs,Wa,mm,pm;Cte({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Cte(e){return cs=Cee(e),Wa=cs.format,mm=cs.parse,cs.utcFormat,pm=cs.utcParse,cs}var wte=xu,Ste=jw,$te=cl;function Mte(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wte(e,a);n(s,a)&&Ste(o,$te(a,e),s)}return o}var _te=Mte;function Ete(e,t){return e!=null&&t in Object(e)}var Hte=Ete,Ote=cl,Vte=ff,Rte=Cr,Tte=vf,kte=kv,jte=ul;function Pte(e,t,n){t=Ote(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=jte(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&kte(i)&&Tte(a,i)&&(Rte(e)||Vte(e)))}var Lte=Pte,Ite=Hte,Ate=Lte;function Nte(e,t){return e!=null&&Ate(e,t,Ite)}var TS=Nte,Fte=_te,Dte=TS;function zte(e,t){return Fte(e,t,function(n,r){return Dte(e,r)})}var Bte=zte;function Wte(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var bm=Wte,b8=Js,Zte=ff,Ute=Cr,y8=b8?b8.isConcatSpreadable:void 0;function qte(e){return Ute(e)||Zte(e)||!!(y8&&e&&e[y8])}var Gte=qte,Yte=bm,Kte=Gte;function kS(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Kte),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?kS(s,t-1,n,r,i):Yte(i,s):r||(i[i.length]=s)}return i}var jS=kS,Xte=jS;function Qte(e){var t=e==null?0:e.length;return t?Xte(e,1):[]}var Jte=Qte,ene=Jte,tne=Hw,nne=Ow;function rne(e){return nne(tne(e,void 0,ene),e+"")}var PS=rne,ine=Bte,one=PS,ane=one(function(e,t){return e==null?{}:ine(e,t)}),sne=ane;const LS=Cn(sne);function lne(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var cne=lne,une=uv,dne=cne,fne=dv,hne=1,gne=2;function vne(e,t,n,r,i,o){var a=n&hne,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&gne?new une:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=a?r(g,m,d,t,e,o):r(m,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!dne(t,function(b,y){if(!fne(h,y)&&(m===b||i(m,b,n,r,o)))return h.push(y)})){f=!1;break}}else if(!(m===g||i(m,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var IS=vne;function mne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var pne=mne,x8=Js,C8=pw,bne=hu,yne=IS,xne=pne,Cne=fv,wne=1,Sne=2,$ne="[object Boolean]",Mne="[object Date]",_ne="[object Error]",Ene="[object Map]",Hne="[object Number]",One="[object RegExp]",Vne="[object Set]",Rne="[object String]",Tne="[object Symbol]",kne="[object ArrayBuffer]",jne="[object DataView]",w8=x8?x8.prototype:void 0,y2=w8?w8.valueOf:void 0;function Pne(e,t,n,r,i,o,a){switch(n){case jne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kne:return!(e.byteLength!=t.byteLength||!o(new C8(e),new C8(t)));case $ne:case Mne:case Hne:return bne(+e,+t);case _ne:return e.name==t.name&&e.message==t.message;case One:case Rne:return e==t+"";case Ene:var s=xne;case Vne:var l=r&wne;if(s||(s=Cne),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Sne,a.set(e,t);var u=yne(s(e),s(t),r,i,o,a);return a.delete(e),u;case Tne:if(y2)return y2.call(e)==y2.call(t)}return!1}var Lne=Pne,Ine=bm,Ane=Cr;function Nne(e,t,n){var r=t(e);return Ane(e)?r:Ine(r,n(e))}var AS=Nne;function Fne(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var NS=Fne;function Dne(){return[]}var FS=Dne,zne=NS,Bne=FS,Wne=Object.prototype,Zne=Wne.propertyIsEnumerable,S8=Object.getOwnPropertySymbols,Une=S8?function(e){return e==null?[]:(e=Object(e),zne(S8(e),function(t){return Zne.call(e,t)}))}:Bne,ym=Une,qne=xw,Gne=qne(Object.keys,Object),Yne=Gne,Kne=Tv,Xne=Yne,Qne=Object.prototype,Jne=Qne.hasOwnProperty;function ere(e){if(!Kne(e))return Xne(e);var t=[];for(var n in Object(e))Jne.call(e,n)&&n!="constructor"&&t.push(n);return t}var tre=ere,nre=_w,rre=tre,ire=al;function ore(e){return ire(e)?nre(e):rre(e)}var Mu=ore,are=AS,sre=ym,lre=Mu;function cre(e){return are(e,lre,sre)}var DS=cre,$8=DS,ure=1,dre=Object.prototype,fre=dre.hasOwnProperty;function hre(e,t,n,r,i,o){var a=n&ure,s=$8(e),l=s.length,c=$8(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:fre.call(t,f)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=a?r(y,b,f,t,e,o):r(b,y,f,e,t,o);if(!(C===void 0?b===y||i(b,y,n,r,o):C)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var $=e.constructor,w=t.constructor;$!=w&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof w=="function"&&w instanceof w)&&(g=!1)}return o.delete(e),o.delete(t),g}var gre=hre,vre=Ia,mre=$i,pre=vre(mre,"DataView"),bre=pre,yre=Ia,xre=$i,Cre=yre(xre,"Promise"),wre=Cre,Sre=Ia,$re=$i,Mre=Sre($re,"WeakMap"),_re=Mre,Mh=bre,_h=lv,Eh=wre,Hh=$C,Oh=_re,zS=po,wl=CC,M8="[object Map]",Ere="[object Object]",_8="[object Promise]",E8="[object Set]",H8="[object WeakMap]",O8="[object DataView]",Hre=wl(Mh),Ore=wl(_h),Vre=wl(Eh),Rre=wl(Hh),Tre=wl(Oh),ta=zS;(Mh&&ta(new Mh(new ArrayBuffer(1)))!=O8||_h&&ta(new _h)!=M8||Eh&&ta(Eh.resolve())!=_8||Hh&&ta(new Hh)!=E8||Oh&&ta(new Oh)!=H8)&&(ta=function(e){var t=zS(e),n=t==Ere?e.constructor:void 0,r=n?wl(n):"";if(r)switch(r){case Hre:return O8;case Ore:return M8;case Vre:return _8;case Rre:return E8;case Tre:return H8}return t});var kf=ta,x2=df,kre=IS,jre=Lne,Pre=gre,V8=kf,R8=Cr,T8=hf,Lre=Pv,Ire=1,k8="[object Arguments]",j8="[object Array]",c1="[object Object]",Are=Object.prototype,P8=Are.hasOwnProperty;function Nre(e,t,n,r,i,o){var a=R8(e),s=R8(t),l=a?j8:V8(e),c=s?j8:V8(t);l=l==k8?c1:l,c=c==k8?c1:c;var u=l==c1,d=c==c1,f=l==c;if(f&&T8(e)){if(!T8(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new x2),a||Lre(e)?kre(e,t,n,r,i,o):jre(e,t,l,n,r,i,o);if(!(n&Ire)){var h=u&&P8.call(e,"__wrapped__"),m=d&&P8.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return o||(o=new x2),i(g,v,n,r,o)}}return f?(o||(o=new x2),Pre(e,t,n,r,i,o)):!1}var Fre=Nre,Dre=Fre,L8=Gr;function BS(e,t,n,r,i){return e===t?!0:e==null||t==null||!L8(e)&&!L8(t)?e!==e&&t!==t:Dre(e,t,n,r,BS,i)}var xm=BS,zre=xm;function Bre(e,t){return zre(e,t)}var Wre=Bre;const WS=Cn(Wre);var Zre={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",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}}};function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}function Vh(e,t){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vh(e,t)}function jf(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ure=["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"],qre=function(e,t){return Fr({},t,e)},Gre=function(e,t){var n=Av({},e,t);return Ure.forEach(function(r){ni(n,r,qre(yn(n,r),n.text))}),n},ZS=S.createContext(),US=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=S.useMemo(function(){var s=Sf(o)?Aa[o]:o;return{animate:r,config:s}},[r,o]);return p.jsx(ZS.Provider,{value:a,children:t})},I8={animate:D.bool,motionConfig:D.oneOfType([D.oneOf(Object.keys(Aa)),D.shape({mass:D.number,tension:D.number,friction:D.number,clamp:D.bool,precision:D.number,velocity:D.number,duration:D.number,easing:D.func})])};US.propTypes={children:D.node.isRequired,animate:I8.animate,config:I8.motionConfig};var Fn=function(){return S.useContext(ZS)},Pf=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var l=S.useRef();return S.useEffect(function(){l.current=s},[s]),l.current}(e),o=S.useMemo(function(){return wf(i,e)},[i,e]),a=Qt({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Vn(a,o)},Yre={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ue(_i),PRGn:ue(Ei),PiYG:ue(Hi),PuOr:ue(Oi),RdBu:ue(Vi),RdGy:ue(Ri),RdYlBu:ue(Ti),RdYlGn:ue(ki),spectral:ue(ji),blues:ue(qi),greens:ue(Gi),greys:ue(Yi),oranges:ue(Qi),purples:ue(Ki),reds:ue(Xi),BuGn:ue(Pi),BuPu:ue(Li),GnBu:ue(Ii),OrRd:ue(Ai),PuBuGn:ue(Ni),PuBu:ue(Fi),PuRd:ue(Di),RdPu:ue(zi),YlGnBu:ue(Bi),YlGn:ue(Wi),YlOrBr:ue(Zi),YlOrRd:ue(Ui)},Kre=Object.keys(Yre);ue(_i),ue(Ei),ue(Hi),ue(Oi),ue(Vi),ue(Ri),ue(Ti),ue(ki),ue(ji),ue(qi),ue(Gi),ue(Yi),ue(Qi),ue(Ki),ue(Xi),ue(Pi),ue(Li),ue(Ii),ue(Ai),ue(Ni),ue(Fi),ue(Di),ue(zi),ue(Bi),ue(Wi),ue(Zi),ue(Ui);D.oneOfType([D.oneOf(Kre),D.func,D.arrayOf(D.string)]);var Rh={basis:U5,basisClosed:q5,basisOpen:G5,bundle:Y5,cardinal:X5,cardinalClosed:J5,cardinalOpen:tm,catmullRom:rm,catmullRomClosed:im,catmullRomOpen:om,linear:Su,linearClosed:am,monotoneX:$u,monotoneY:Rf,natural:sm,step:lm,stepAfter:um,stepBefore:cm},Cm=Object.keys(Rh);Cm.filter(function(e){return e.endsWith("Closed")});Cl(Cm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Cl(Cm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var qS=function(e){if(!Rh[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Rh[e]};D.shape({top:D.number,right:D.number,bottom:D.number,left:D.number}).isRequired;var Xre=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];D.oneOf(Xre);_r(bo);var GS={top:0,right:0,bottom:0,left:0},Za=function(e,t,n){return n===void 0&&(n={}),S.useMemo(function(){var r=Fr({},GS,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},YS=function(){var e=S.useRef(null),t=S.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=S.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return S.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Qre=function(e){return S.useMemo(function(){return Gre(Zre,e)},[e])},Jre=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Wa(e.slice("5")):Da(e):function(t){return""+t}},Lo=function(e){return S.useMemo(function(){return Jre(e)},[e])},KS=S.createContext(),eie={},XS=function(e){var t=e.theme,n=t===void 0?eie:t,r=e.children,i=Qre(n);return p.jsx(KS.Provider,{value:i,children:r})};XS.propTypes={children:D.node.isRequired,theme:D.object};var Wt=function(){return S.useContext(KS)},tie=["outlineWidth","outlineColor","outlineOpacity"],wm=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,jf(e,tie)},QS=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?S.cloneElement(r,{},t):t};QS.propTypes={children:D.node.isRequired,condition:D.bool.isRequired,wrapper:D.element.isRequired};var nie={position:"relative"},Ua=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=S.useRef(null);return p.jsx(XS,{theme:n,children:p.jsx(US,{animate:s,config:l,children:p.jsx(QZ,{container:c,children:p.jsxs(QS,{condition:i,wrapper:p.jsx("div",{style:nie,ref:c}),children:[t,a&&p.jsx(XZ,{})]})})})})};Ua.propTypes={children:D.element.isRequired,isInteractive:D.bool,renderWrapper:D.bool,theme:D.object,animate:D.bool,motionConfig:D.string};D.func.isRequired,D.bool,D.bool,D.object.isRequired,D.bool.isRequired,D.string;var Go=function(e){var t=e.children,n=YS(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return p.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};Go.propTypes={children:D.func.isRequired};var rie=["id","colors"],JS=function(e){var t=e.id,n=e.colors,r=jf(e,rie);return p.jsx("linearGradient",Fr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return p.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};JS.propTypes={id:D.string.isRequired,colors:D.arrayOf(D.shape({offset:D.number.isRequired,color:D.string.isRequired,opacity:D.number})).isRequired,gradientTransform:D.string};var e$={linearGradient:JS},Zl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Th=S.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Zl.background:n,i=e.color,o=i===void 0?Zl.color:i,a=e.size,s=a===void 0?Zl.size:a,l=e.padding,c=l===void 0?Zl.padding:l,u=e.stagger,d=u===void 0?Zl.stagger:u,f=s+c,h=s/2,m=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:r}),p.jsx("circle",{cx:m+h,cy:m+h,r:h,fill:o}),d&&p.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})});Th.displayName="PatternDots",Th.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var Dr=function(e){return e*Math.PI/180},Lf=function(e){return 180*e/Math.PI},iie=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},ma=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},oie=function(e){var t=e%360;return t<0&&(t+=360),t},aie={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"}}},Ul={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},kh=S.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Ul.spacing:n,i=e.rotation,o=i===void 0?Ul.rotation:i,a=e.background,s=a===void 0?Ul.background:a,l=e.color,c=l===void 0?Ul.color:l,u=e.lineWidth,d=u===void 0?Ul.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=h,v=h;return f===0?m=`
|
|
463
|
+
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var F=U(K,Z,Y,ee,Q+"."+Z,n);if(F)return F}return null}return v(z)}function H(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(H);if(N===null||s(N))return!0;var z=d(N);if(z){var q=z.call(N),G;if(z!==N.entries){for(;!(G=q.next()).done;)if(!H(G.value))return!1}else for(;!(G=q.next()).done;){var Y=G.value;if(Y&&!H(Y[1]))return!1}}else return!1;return!0;default:return!1}}function T(N,z){return N==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function P(N){var z=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":T(z,N)?"symbol":z}function V(N){if(typeof N>"u"||N===null)return""+N;var z=P(N);if(z==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return z}function I(N){var z=V(N);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function L(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},X0}var Q0,M6;function _W(){if(M6)return Q0;M6=1;var e=hv();function t(){}function n(){}return n.resetWarningCache=t,Q0=function(){function r(a,s,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Q0}if(process.env.NODE_ENV!=="production"){var EW=_C(),HW=!0;J3.exports=MW()(EW.isElement,HW)}else J3.exports=_W()();var OW=J3.exports;const D=Cn(OW);var gv=vu(),Et=e=>gu(e,gv),vv=vu();Et.write=e=>gu(e,vv);var nf=vu();Et.onStart=e=>gu(e,nf);var mv=vu();Et.onFrame=e=>gu(e,mv);var pv=vu();Et.onFinish=e=>gu(e,pv);var $s=[];Et.setTimeout=(e,t)=>{const n=Et.now()+t,r=()=>{const o=$s.findIndex(a=>a.cancel==r);~o&&$s.splice(o,1),Vo-=~o?1:0},i={time:n,handler:e,cancel:r};return $s.splice(HC(n),0,i),Vo+=1,OC(),i};var HC=e=>~(~$s.findIndex(t=>t.time>e)||~$s.length);Et.cancel=e=>{nf.delete(e),mv.delete(e),pv.delete(e),gv.delete(e),vv.delete(e)};Et.sync=e=>{eh=!0,Et.batchedUpdates(e),eh=!1};Et.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Et.onStart(n)}return r.handler=e,r.cancel=()=>{nf.delete(n),t=null},r};var bv=typeof window<"u"?window.requestAnimationFrame:()=>{};Et.use=e=>bv=e;Et.now=typeof performance<"u"?()=>performance.now():Date.now;Et.batchedUpdates=e=>e();Et.catch=console.error;Et.frameLoop="always";Et.advance=()=>{Et.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RC()};var Oo=-1,Vo=0,eh=!1;function gu(e,t){eh?(t.delete(e),e(0)):(t.add(e),OC())}function OC(){Oo<0&&(Oo=0,Et.frameLoop!=="demand"&&bv(VC))}function VW(){Oo=-1}function VC(){~Oo&&(bv(VC),Et.batchedUpdates(RC))}function RC(){const e=Oo;Oo=Et.now();const t=HC(Oo);if(t&&(TC($s.splice(0,t),n=>n.handler()),Vo-=t),!Vo){VW();return}nf.flush(),gv.flush(e?Math.min(64,Oo-e):16.667),mv.flush(),vv.flush(),pv.flush()}function vu(){let e=new Set,t=e;return{add(n){Vo+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Vo-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Vo-=t.size,TC(t,r=>r(n)&&e.add(r)),Vo+=e.size,t=e)}}}function TC(e,t){e.forEach(n=>{try{t(n)}catch(r){Et.catch(r)}})}var RW=Object.defineProperty,TW=(e,t)=>{for(var n in t)RW(e,n,{get:t[n],enumerable:!0})},li={};TW(li,{assign:()=>jW,colors:()=>Ro,createStringInterpolator:()=>xv,skipAnimation:()=>jC,to:()=>kC,willAdvance:()=>Cv});function th(){}var kW=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ue={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ro(e,t){if(Ue.arr(e)){if(!Ue.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var _t=(e,t)=>e.forEach(t);function Ci(e,t,n){if(Ue.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var fr=e=>Ue.und(e)?[]:Ue.arr(e)?e:[e];function gc(e,t){if(e.size){const n=Array.from(e);e.clear(),_t(n,t)}}var sc=(e,...t)=>gc(e,n=>n(...t)),yv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),xv,kC,Ro=null,jC=!1,Cv=th,jW=e=>{e.to&&(kC=e.to),e.now&&(Et.now=e.now),e.colors!==void 0&&(Ro=e.colors),e.skipAnimation!=null&&(jC=e.skipAnimation),e.createStringInterpolator&&(xv=e.createStringInterpolator),e.requestAnimationFrame&&Et.use(e.requestAnimationFrame),e.batchedUpdates&&(Et.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Cv=e.willAdvance),e.frameLoop&&(Et.frameLoop=e.frameLoop)},vc=new Set,Ar=[],J0=[],G1=0,rf={get idle(){return!vc.size&&!Ar.length},start(e){G1>e.priority?(vc.add(e),Et.onStart(PW)):(PC(e),Et(nh))},advance:nh,sort(e){if(G1)Et.onFrame(()=>rf.sort(e));else{const t=Ar.indexOf(e);~t&&(Ar.splice(t,1),LC(e))}},clear(){Ar=[],vc.clear()}};function PW(){vc.forEach(PC),vc.clear(),Et(nh)}function PC(e){Ar.includes(e)||LC(e)}function LC(e){Ar.splice(LW(Ar,t=>t.priority>e.priority),0,e)}function nh(e){const t=J0;for(let n=0;n<Ar.length;n++){const r=Ar[n];G1=r.priority,r.idle||(Cv(r),r.advance(e),r.idle||t.push(r))}return G1=0,J0=Ar,J0.length=0,Ar=t,Ar.length>0}function LW(e,t){const n=e.findIndex(t);return n<0?e.length:n}var IW=(e,t,n)=>Math.min(Math.max(n,e),t),AW={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ti="[-+]?\\d*\\.?\\d+",Y1=ti+"%";function of(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var NW=new RegExp("rgb"+of(ti,ti,ti)),FW=new RegExp("rgba"+of(ti,ti,ti,ti)),DW=new RegExp("hsl"+of(ti,Y1,Y1)),zW=new RegExp("hsla"+of(ti,Y1,Y1,ti)),BW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ZW=/^#([0-9a-fA-F]{6})$/,UW=/^#([0-9a-fA-F]{8})$/;function qW(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ZW.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ro&&Ro[e]!==void 0?Ro[e]:(t=NW.exec(e))?(ss(t[1])<<24|ss(t[2])<<16|ss(t[3])<<8|255)>>>0:(t=FW.exec(e))?(ss(t[1])<<24|ss(t[2])<<16|ss(t[3])<<8|H6(t[4]))>>>0:(t=BW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UW.exec(e))?parseInt(t[1],16)>>>0:(t=WW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=DW.exec(e))?(_6(E6(t[1]),Ju(t[2]),Ju(t[3]))|255)>>>0:(t=zW.exec(e))?(_6(E6(t[1]),Ju(t[2]),Ju(t[3]))|H6(t[4]))>>>0:null}function e2(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _6(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=e2(i,r,e+1/3),a=e2(i,r,e),s=e2(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ss(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function E6(e){return(parseFloat(e)%360+360)%360/360}function H6(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ju(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function O6(e){let t=qW(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Pc=(e,t,n)=>{if(Ue.fun(e))return e;if(Ue.arr(e))return Pc({range:e,output:t,extrapolate:n});if(Ue.str(e.output[0]))return xv(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=YW(c,o);return GW(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function GW(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function YW(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var KW=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return IW(0,1,i/e)},K1=1.70158,e1=K1*1.525,V6=K1+1,R6=2*Math.PI/3,T6=2*Math.PI/4.5,t1=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,XW={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>V6*e*e*e-K1*e*e,easeOutBack:e=>1+V6*Math.pow(e-1,3)+K1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((e1+1)*2*e-e1)/2:(Math.pow(2*e-2,2)*((e1+1)*(e*2-2)+e1)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*R6),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*R6)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*T6))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*T6)/2+1,easeInBounce:e=>1-t1(1-e),easeOutBounce:t1,easeInOutBounce:e=>e<.5?(1-t1(1-2*e))/2:(1+t1(2*e-1))/2,steps:KW},Lc=Symbol.for("FluidValue.get"),Ls=Symbol.for("FluidValue.observers"),Ir=e=>!!(e&&e[Lc]),mr=e=>e&&e[Lc]?e[Lc]():e,k6=e=>e[Ls]||null;function QW(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ic(e,t){const n=e[Ls];n&&n.forEach(r=>{QW(r,t)})}var IC=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");JW(this,e)}},JW=(e,t)=>AC(e,Lc,t);function il(e,t){if(e[Lc]){let n=e[Ls];n||AC(e,Ls,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ac(e,t){const n=e[Ls];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ls]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var AC=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$1=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,j6=new RegExp(`(${$1.source})(%|[a-z]+)`,"i"),tZ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,af=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,NC=e=>{const[t,n]=nZ(e);if(!t||yv())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&af.test(n))return NC(n);if(n)return n}return e},nZ=e=>{const t=af.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},t2,rZ=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,FC=e=>{t2||(t2=Ro?new RegExp(`(${Object.keys(Ro).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>mr(o).replace(af,NC).replace(eZ,O6).replace(t2,O6)),n=t.map(o=>o.match($1).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Pc({...e,output:o}));return o=>{var l;const a=!j6.test(t[0])&&((l=t.find(c=>j6.test(c)))==null?void 0:l.replace($1,""));let s=0;return t[0].replace($1,()=>`${i[s++](o)}${a||""}`).replace(tZ,rZ)}},wv="react-spring: ",DC=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${wv}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},iZ=DC(console.warn);function oZ(){iZ(`${wv}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var aZ=DC(console.warn);function sZ(){aZ(`${wv}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function sf(e){return Ue.str(e)&&(e[0]=="#"||/\d/.test(e)||!yv()&&af.test(e)||e in(Ro||{}))}var sa=yv()?S.useEffect:S.useLayoutEffect,lZ=()=>{const e=S.useRef(!1);return sa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Sv(){const e=S.useState()[1],t=lZ();return()=>{t.current&&e(Math.random())}}function cZ(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&uZ(t,o.inputs)||(o={inputs:t,result:e()}):o=n,S.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function uZ(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var $v=e=>S.useEffect(e,dZ),dZ=[];function rh(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Nc=Symbol.for("Animated:node"),fZ=e=>!!e&&e[Nc]===e,vi=e=>e&&e[Nc],Mv=(e,t)=>kW(e,Nc,t),lf=e=>e&&e[Nc]&&e[Nc].getPayload(),zC=class{constructor(){Mv(this,this)}getPayload(){return this.payload||[]}},mu=class extends zC{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ue.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new mu(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ue.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ue.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Fc=class extends mu{constructor(e){super(0),this._string=null,this._toString=Pc({output:[e,e]})}static create(e){return new Fc(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ue.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Pc({output:[this.getValue(),e]})),this._value=0,super.reset()}},X1={dependencies:null},cf=class extends zC{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ci(this.source,(n,r)=>{fZ(n)?t[r]=n.getValue(e):Ir(n)?t[r]=mr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&_t(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ci(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){X1.dependencies&&Ir(e)&&X1.dependencies.add(e);const t=lf(e);t&&_t(t,n=>this.add(n))}},BC=class extends cf{constructor(e){super(e)}static create(e){return new BC(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(hZ)),!0)}};function hZ(e){return(sf(e)?Fc:mu).create(e)}function ih(e){const t=vi(e);return t?t.constructor:Ue.arr(e)?BC:sf(e)?Fc:mu}var P6=(e,t)=>{const n=!Ue.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,i)=>{const o=S.useRef(null),a=n&&S.useCallback(m=>{o.current=mZ(i,m)},[i]),[s,l]=vZ(r,t),c=Sv(),u=()=>{const m=o.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},d=new gZ(u,l),f=S.useRef();sa(()=>(f.current=d,_t(l,m=>il(m,d)),()=>{f.current&&(_t(f.current.deps,m=>Ac(m,f.current)),Et.cancel(f.current.update))})),S.useEffect(u,[]),$v(()=>()=>{const m=f.current;_t(m.deps,g=>Ac(g,m))});const h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},gZ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Et.write(this.update)}};function vZ(e,t){const n=new Set;return X1.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new cf(e),X1.dependencies=null,[e,n]}function mZ(e,t){return e&&(Ue.fun(e)?e(t):e.current=t),t}var L6=Symbol.for("AnimatedComponent"),pZ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new cf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=I6(a)||"Anonymous";return Ue.str(a)?a=o[a]||(o[a]=P6(a,i)):a=a[L6]||(a[L6]=P6(a,i)),a.displayName=`Animated(${s})`,a};return Ci(e,(a,s)=>{Ue.arr(e)&&(s=I6(a)),o[s]=o(a)}),{animated:o}},I6=e=>Ue.str(e)?e:e&&Ue.str(e.displayName)?e.displayName:Ue.fun(e)&&e.name||null;function pr(e,...t){return Ue.fun(e)?e(...t):e}var mc=(e,t)=>e===!0||!!(t&&e&&(Ue.fun(e)?e(t):fr(e).includes(t))),WC=(e,t)=>Ue.obj(e)?t&&e[t]:e,ZC=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,bZ=e=>e,uf=(e,t=bZ)=>{let n=yZ;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);Ue.und(o)||(r[i]=o)}return r},yZ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xZ={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function CZ(e){const t={};let n=0;if(Ci(e,(r,i)=>{xZ[i]||(t[i]=r,n++)}),n)return t}function _v(e){const t=CZ(e);if(t){const n={to:t};return Ci(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Dc(e){return e=mr(e),Ue.arr(e)?e.map(Dc):sf(e)?li.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function UC(e){for(const t in e)return!0;return!1}function oh(e){return Ue.fun(e)||Ue.arr(e)&&Ue.obj(e[0])}function ah(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function qC(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Aa={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},sh={...Aa.default,mass:1,damping:1,easing:XW.linear,clamp:!1},wZ=class{constructor(){this.velocity=0,Object.assign(this,sh)}};function SZ(e,t,n){n&&(n={...n},A6(n,t),t={...n,...t}),A6(e,t),Object.assign(e,t);for(const a in sh)e[a]==null&&(e[a]=sh[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return Ue.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function A6(e,t){if(!Ue.und(t.decay))e.duration=void 0;else{const n=!Ue.und(t.tension)||!Ue.und(t.friction);(n||!Ue.und(t.frequency)||!Ue.und(t.damping)||!Ue.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var N6=[],$Z=class{constructor(){this.changed=!1,this.values=N6,this.toValues=null,this.fromValues=N6,this.config=new wZ,this.immediate=!1}};function GC(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=mc(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{Ue.und(n.pause)||(i.paused=mc(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=i.paused||mc(m,t)),l=pr(n.delay||0,t),m?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-Et.now()}function f(){l>0&&!li.skipAnimation?(i.delayed=!0,c=Et.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(m){s(m)}}})}var Ev=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ms(e.get()):t.every(n=>n.noop)?YC(e.get()):Jr(e.get(),t.every(n=>n.finished)),YC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ms=e=>({value:e,cancelled:!0,finished:!1});function KC(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=uf(t,(v,b)=>b==="onRest"?void 0:v);let u,d;const f=new Promise((v,b)=>(u=v,d=b)),h=v=>{const b=i<=(n.cancelId||0)&&Ms(r)||i!==n.asyncId&&Jr(r,!1);if(b)throw v.result=b,d(v),v},m=(v,b)=>{const y=new F6,C=new D6;return(async()=>{if(li.skipAnimation)throw zc(n),C.result=Jr(r,!1),d(C),C;h(y);const $=Ue.obj(v)?{...v}:{...b,to:v};$.parentId=i,Ci(c,(M,R)=>{Ue.und($[R])&&($[R]=M)});const w=await r.start($);return h(y),n.paused&&await new Promise(M=>{n.resumeQueue.add(M)}),w})()};let g;if(li.skipAnimation)return zc(n),Jr(r,!1);try{let v;Ue.arr(e)?v=(async b=>{for(const y of b)await m(y)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(u),f]),g=Jr(r.get(),!0,!1)}catch(v){if(v instanceof F6)g=v.result;else if(v instanceof D6)g=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Ue.fun(a)&&Et.batchedUpdates(()=>{a(g,r,r.item)}),g})()}function zc(e,t){gc(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var F6=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},D6=class extends Error{constructor(){super("SkipAnimationSignal")}},lh=e=>e instanceof Hv,MZ=1,Hv=class extends IC{constructor(){super(...arguments),this.id=MZ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vi(this);return e&&e.getValue()}to(...e){return li.to(this,e)}interpolate(...e){return oZ(),li.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ic(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rf.sort(this),Ic(this,{type:"priority",parent:this,priority:e})}},ya=Symbol.for("SpringPhase"),XC=1,ch=2,uh=4,n2=e=>(e[ya]&XC)>0,wo=e=>(e[ya]&ch)>0,Ll=e=>(e[ya]&uh)>0,z6=(e,t)=>t?e[ya]|=ch|XC:e[ya]&=~ch,B6=(e,t)=>t?e[ya]|=uh:e[ya]&=~uh,_Z=class extends Hv{constructor(e,t){if(super(),this.animation=new $Z,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ue.und(e)||!Ue.und(t)){const n=Ue.obj(e)?{...e}:{...t,from:e};Ue.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wo(this)||this._state.asyncTo)||Ll(this)}get goal(){return mr(this.animation.to)}get velocity(){const e=vi(this);return e instanceof mu?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return n2(this)}get isAnimating(){return wo(this)}get isPaused(){return Ll(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=lf(r.to);!a&&Ir(r.to)&&(i=fr(mr(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==Fc?1:a?a[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=Ue.arr(o.velocity)?o.velocity[u]:o.velocity;let b;const y=o.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(Ue.und(o.duration))if(o.decay){const C=o.decay===!0?.998:o.decay,$=Math.exp(-(1-C)*m);h=g+v/(1-C)*(1-$),f=Math.abs(c.lastPosition-h)<=y,b=v*$}else{b=c.lastVelocity==null?v:c.lastVelocity;const C=o.restVelocity||y/10,$=o.clamp?0:o.bounce,w=!Ue.und($),M=g==d?c.v0>0:g<d;let R,E=!1;const _=1,O=Math.ceil(e/_);for(let k=0;k<O&&(R=Math.abs(b)>C,!(!R&&(f=Math.abs(d-h)<=y,f)));++k){w&&(E=h==d||h>d==M,E&&(b=-b*$,h=d));const A=-o.tension*1e-6*(h-d),j=-o.friction*.001*b,H=(A+j)/o.mass;b=b+H*_,h=h+b*_}}else{let C=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,m=c.elapsedTime+=e)),C=(o.progress||0)+m/this._memoizedDuration,C=C>1?1:C<0?0:C,c.durationProgress=C),h=g+o.easing(C)*(d-g),b=(h-c.lastPosition)/e,f=C==1}c.lastVelocity=b,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,o.round)&&(n=!0)});const s=vi(this),l=s.getValue();if(t){const c=mr(r.to);(l!==c||n)&&!o.decay?(s.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Et.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wo(this)){const{to:e,config:t}=this.animation;Et.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ue.und(e)?(n=this.queue||[],this.queue=[]):n=[Ue.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Ev(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),zc(this._state,e&&this._lastCallId),Et.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ue.obj(n)?n[t]:n,(n==null||oh(n))&&(n=void 0),r=Ue.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return n2(this)||(e.reverse&&([n,r]=[r,n]),r=mr(r),Ue.und(r)?vi(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,uf(e,(a,s)=>/^on/.test(s)?WC(a,n):a)),Z6(this,e,"onProps"),Al(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return GC(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ll(this)||(B6(this,!0),sc(o.pauseQueue),Al(this,"onPause",Jr(this,Il(this,this.animation.to)),this))},resume:()=>{Ll(this)&&(B6(this,!1),wo(this)&&this._resume(),sc(o.resumeQueue),Al(this,"onResume",Jr(this,Il(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=QC(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ms(this));const r=!Ue.und(e.to),i=!Ue.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ms(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||Ue.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!ro(d,c);f&&(s.from=d),d=mr(d);const h=!ro(u,l);h&&this._focus(u);const m=oh(t.to),{config:g}=s,{decay:v,velocity:b}=g;(r||i)&&(g.velocity=0),t.config&&!m&&SZ(g,pr(t.config,o),t.config!==a.config?pr(a.config,o):void 0);let y=vi(this);if(!y||Ue.und(u))return n(Jr(this,!0));const C=Ue.und(t.reset)?i&&!t.default:!Ue.und(d)&&mc(t.reset,o),$=C?d:this.get(),w=Dc(u),M=Ue.num(w)||Ue.arr(w)||sf(w),R=!m&&(!M||mc(a.immediate||t.immediate,o));if(h){const k=ih(u);if(k!==y.constructor)if(R)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${k.name}, as the "to" prop suggests`)}const E=y.constructor;let _=Ir(u),O=!1;if(!_){const k=C||!n2(this)&&f;(h||k)&&(O=ro(Dc($),w),_=!O),(!ro(s.immediate,R)&&!R||!ro(g.decay,v)||!ro(g.velocity,b))&&(_=!0)}if(O&&wo(this)&&(s.changed&&!C?_=!0:_||this._stop(l)),!m&&((_||Ir(l))&&(s.values=y.getPayload(),s.toValues=Ir(u)?null:E==Fc?[1]:fr(w)),s.immediate!=R&&(s.immediate=R,!R&&!C&&this._set(l)),_)){const{onRest:k}=s;_t(HZ,j=>Z6(this,t,j));const A=Jr(this,Il(this,l));sc(this._pendingCalls,A),this._pendingCalls.add(n),s.changed&&Et.batchedUpdates(()=>{var j;s.changed=!C,k==null||k(A,this),C?pr(a.onRest,A):(j=s.onStart)==null||j.call(s,A,this)})}C&&this._set($),m?n(KC(t.to,t,this._state,this)):_?this._start():wo(this)&&!h?this._pendingCalls.add(n):n(YC($))}_focus(e){const t=this.animation;e!==t.to&&(k6(this)&&this._detach(),t.to=e,k6(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ir(t)&&(il(t,this),lh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ir(e)&&Ac(e,this)}_set(e,t=!0){const n=mr(e);if(!Ue.und(n)){const r=vi(this);if(!r||!ro(n,r.getValue())){const i=ih(n);!r||r.constructor!=i?Mv(this,i.create(n)):r.setValue(n),r&&Et.batchedUpdates(()=>{this._onChange(n,t)})}}return vi(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Al(this,"onStart",Jr(this,Il(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),pr(this.animation.onChange,e,this)),pr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;vi(this).reset(mr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wo(this)||(z6(this,!0),Ll(this)||this._resume())}_resume(){li.skipAnimation?this.finish():rf.start(this)}_stop(e,t){if(wo(this)){z6(this,!1);const n=this.animation;_t(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ic(this,{type:"idle",parent:this});const r=t?Ms(this.get()):Jr(this.get(),Il(this,e??n.to));sc(this._pendingCalls,r),n.changed&&(n.changed=!1,Al(this,"onRest",r,this))}}};function Il(e,t){const n=Dc(t),r=Dc(e.get());return ro(r,n)}function QC(e,t=e.loop,n=e.to){const r=pr(t);if(r){const i=r!==!0&&_v(r),o=(i||e).reverse,a=!i||i.reset;return Bc({...e,loop:t,default:!1,pause:void 0,to:!o||oh(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Bc(e){const{to:t,from:n}=e=_v(e),r=new Set;return Ue.obj(t)&&W6(t,r),Ue.obj(n)&&W6(n,r),e.keys=r.size?Array.from(r):null,e}function EZ(e){const t=Bc(e);return Ue.und(t.default)&&(t.default=uf(t)),t}function W6(e,t){Ci(e,(n,r)=>n!=null&&t.add(r))}var HZ=["onStart","onRest","onChange","onPause","onResume"];function Z6(e,t,n){e.animation[n]=t[n]!==ZC(t,n)?WC(t[n],e.key):void 0}function Al(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var OZ=["onStart","onChange","onRest"],VZ=1,JC=class{constructor(e,t){this.id=VZ++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ue.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Bc(e)),this}start(e){let{queue:t}=this;return e?t=fr(e).map(Bc):this.queue=[],this._flush?this._flush(this,t):(iw(this,t),dh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;_t(fr(t),r=>n[r].stop(!!e))}else zc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ue.und(e))this.start({pause:!0});else{const t=this.springs;_t(fr(e),n=>t[n].pause())}return this}resume(e){if(Ue.und(e))this.start({pause:!1});else{const t=this.springs;_t(fr(e),n=>t[n].resume())}return this}each(e){Ci(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gc(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gc(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,gc(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Et.onFrame(this._onFrame)}};function dh(e,t){return Promise.all(t.map(n=>ew(e,n))).then(n=>Ev(e,n))}async function ew(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Ue.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=Ue.arr(i)||Ue.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):_t(OZ,g=>{const v=t[g];if(Ue.fun(v)){const b=e._events[g];t[g]=({finished:y,cancelled:C})=>{const $=b.get(v);$?(y||($.finished=!1),C&&($.cancelled=!0)):b.set(v,{value:null,finished:y||!1,cancelled:C||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,sc(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),h=t.cancel===!0||ZC(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(GC(++e._lastAsyncId,{props:t,state:d,actions:{pause:th,resume:th,start(g,v){h?(zc(d,e._lastAsyncId),v(Ms(e))):(g.onRest=s,v(KC(u,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const m=Ev(e,await Promise.all(f));if(a&&m.finished&&!(n&&m.noop)){const g=QC(t,a,i);if(g)return iw(e,[g]),ew(e,g,!0)}return l&&Et.batchedUpdates(()=>l(m,e,e.item)),m}function fh(e,t){const n={...e.springs};return t&&_t(fr(t),r=>{Ue.und(r.keys)&&(r=Bc(r)),Ue.obj(r.to)||(r={...r,to:void 0}),rw(n,r,i=>nw(i))}),tw(e,n),n}function tw(e,t){Ci(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,il(n,e))})}function nw(e,t){const n=new _Z;return n.key=e,t&&il(n,t),n}function rw(e,t,n){t.keys&&_t(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function iw(e,t){_t(t,n=>{rw(e.springs,n,r=>nw(r,e))})}var pu=({children:e,...t})=>{const n=S.useContext(Q1),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=cZ(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=Q1;return x.createElement(o,{value:t},e)},Q1=RZ(pu,{});pu.Provider=Q1.Provider;pu.Consumer=Q1.Consumer;function RZ(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ow=()=>{const e=[],t=function(r){sZ();const i=[];return _t(e,(o,a)=>{if(Ue.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return _t(e,r=>r.pause(...arguments)),this},t.resume=function(){return _t(e,r=>r.resume(...arguments)),this},t.set=function(r){_t(e,(i,o)=>{const a=Ue.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return _t(e,(o,a)=>{if(Ue.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return _t(e,r=>r.stop(...arguments)),this},t.update=function(r){return _t(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Ue.fun(r)?r(o,i):r};return t._getProps=n,t};function aw(e,t,n){const r=Ue.fun(t)&&t;r&&!n&&(n=[]);const i=S.useMemo(()=>r||arguments.length==3?ow():void 0,[]),o=S.useRef(0),a=Sv(),s=S.useMemo(()=>({ctrls:[],queue:[],flush(b,y){const C=fh(b,y);return o.current>0&&!s.queue.length&&!Object.keys(C).some(w=>!b.springs[w])?dh(b,y):new Promise(w=>{tw(b,C),s.queue.push(()=>{w(dh(b,y))}),a()})}}),[]),l=S.useRef([...s.ctrls]),c=[],u=rh(e)||0;S.useMemo(()=>{_t(l.current.slice(e,u),b=>{ah(b,i),b.stop(!0)}),l.current.length=e,d(u,e)},[e]),S.useMemo(()=>{d(0,Math.min(u,e))},n);function d(b,y){for(let C=b;C<y;C++){const $=l.current[C]||(l.current[C]=new JC(null,s.flush)),w=r?r(C,$):t[C];w&&(c[C]=EZ(w))}}const f=l.current.map((b,y)=>fh(b,c[y])),h=S.useContext(pu),m=rh(h),g=h!==m&&UC(h);sa(()=>{o.current++,s.ctrls=l.current;const{queue:b}=s;b.length&&(s.queue=[],_t(b,y=>y())),_t(l.current,(y,C)=>{i==null||i.add(y),g&&y.start({default:h});const $=c[C];$&&(qC(y,$.ref),y.ref?y.queue.push($):y.start($))})}),$v(()=>()=>{_t(s.ctrls,b=>b.stop(!0))});const v=f.map(b=>({...b}));return i?[v,i]:v}function Qt(e,t){const n=Ue.fun(e),[[r],i]=aw(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function xr(e,t,n){const r=Ue.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?ow():void 0,[]),h=fr(e),m=[],g=S.useRef(null),v=i?null:g.current;sa(()=>{g.current=m}),$v(()=>(_t(m,H=>{f==null||f.add(H.ctrl),H.ctrl.ref=f}),()=>{_t(g.current,H=>{H.expired&&clearTimeout(H.expirationId),ah(H.ctrl,f),H.ctrl.stop(!0)})}));const b=kZ(h,r?r():t,v),y=i&&g.current||[];sa(()=>_t(y,({ctrl:H,item:T,key:P})=>{ah(H,f),pr(c,T,P)}));const C=[];if(v&&_t(v,(H,T)=>{H.expired?(clearTimeout(H.expirationId),y.push(H)):(T=C[T]=b.indexOf(H.key),~T&&(m[T]=H))}),_t(h,(H,T)=>{m[T]||(m[T]={key:b[T],item:H,phase:"mount",ctrl:new JC},m[T].ctrl.item=H)}),C.length){let H=-1;const{leave:T}=r?r():t;_t(C,(P,V)=>{const I=v[V];~P?(H=m.indexOf(I),m[H]={...I,item:h[P]}):T&&m.splice(++H,0,I)})}Ue.fun(o)&&m.sort((H,T)=>o(H.item,T.item));let $=-a;const w=Sv(),M=uf(t),R=new Map,E=S.useRef(new Map),_=S.useRef(!1);_t(m,(H,T)=>{const P=H.key,V=H.phase,I=r?r():t;let L,N;const z=pr(I.delay||0,P);if(V=="mount")L=I.enter,N="enter";else{const ee=b.indexOf(P)<0;if(V!="leave")if(ee)L=I.leave,N="leave";else if(L=I.update)N="update";else return;else if(!ee)L=I.enter,N="enter";else return}if(L=pr(L,H.item,T),L=Ue.obj(L)?_v(L):{to:L},!L.config){const ee=d||M.config;L.config=pr(ee,H.item,T,N)}$+=a;const q={...M,delay:z+$,ref:u,immediate:I.immediate,reset:!1,...L};if(N=="enter"&&Ue.und(q.from)){const ee=r?r():t,Q=Ue.und(ee.initial)||v?ee.from:ee.initial;q.from=pr(Q,H.item,T)}const{onResolve:G}=q;q.onResolve=ee=>{pr(G,ee);const Q=g.current,K=Q.find(J=>J.key===P);if(K&&!(ee.cancelled&&K.phase!="update")&&K.ctrl.idle){const J=Q.every(W=>W.ctrl.idle);if(K.phase=="leave"){const W=pr(s,K.item);if(W!==!1){const Z=W===!0?0:W;if(K.expired=!0,!J&&Z>0){Z<=2147483647&&(K.expirationId=setTimeout(w,Z));return}}}J&&Q.some(W=>W.expired)&&(E.current.delete(K),l&&(_.current=!0),w())}};const Y=fh(H.ctrl,q);N==="leave"&&l?E.current.set(H,{phase:N,springs:Y,payload:q}):R.set(H,{phase:N,springs:Y,payload:q})});const O=S.useContext(pu),k=rh(O),A=O!==k&&UC(O);sa(()=>{A&&_t(m,H=>{H.ctrl.start({default:O})})},[O]),_t(R,(H,T)=>{if(E.current.size){const P=m.findIndex(V=>V.key===T.key);m.splice(P,1)}}),sa(()=>{_t(E.current.size?E.current:R,({phase:H,payload:T},P)=>{const{ctrl:V}=P;P.phase=H,f==null||f.add(V),A&&H=="enter"&&V.start({default:O}),T&&(qC(V,T.ref),(V.ref||f)&&!_.current?V.update(T):(V.start(T),_.current&&(_.current=!1)))})},i?void 0:n);const j=H=>x.createElement(x.Fragment,null,m.map((T,P)=>{const{springs:V}=R.get(T)||T.ctrl,I=H({...V},T.item,T,P);return I&&I.type?x.createElement(I.type,{...I.props,key:Ue.str(T.key)||Ue.num(T.key)?T.key:T.ctrl.id,ref:I.ref}):I}));return f?[j,f]:j}var TZ=1;function kZ(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):TZ++})}return Ue.und(n)?e:Ue.fun(n)?e.map(n):fr(n)}var sw=class extends Hv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Pc(...t);const n=this._get(),r=ih(n);Mv(this,r.create(n))}advance(e){const t=this._get(),n=this.get();ro(t,n)||(vi(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&U6(this._active)&&r2(this)}_get(){const e=Ue.arr(this.source)?this.source.map(mr):fr(mr(this.source));return this.calc(...e)}_start(){this.idle&&!U6(this._active)&&(this.idle=!1,_t(lf(this),e=>{e.done=!1}),li.skipAnimation?(Et.batchedUpdates(()=>this.advance()),r2(this)):rf.start(this))}_attach(){let e=1;_t(fr(this.source),t=>{Ir(t)&&il(t,this),lh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){_t(fr(this.source),e=>{Ir(e)&&Ac(e,this)}),this._active.clear(),r2(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=fr(this.source).reduce((t,n)=>Math.max(t,(lh(n)?n.priority:0)+1),0))}};function jZ(e){return e.idle!==!1}function U6(e){return!e.size||Array.from(e).every(jZ)}function r2(e){e.idle||(e.idle=!0,_t(lf(e),t=>{t.done=!0}),Ic(e,{type:"idle",parent:e}))}var Vn=(e,...t)=>new sw(e,t);li.assign({createStringInterpolator:FC,to:(e,t)=>new sw(e,t)});var lw=/^--/;function PZ(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!lw.test(e)&&!(pc.hasOwnProperty(e)&&pc[e])?t+"px":(""+t).trim()}var q6={};function LZ(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:q6[f]||(q6[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=PZ(f,i[f]);lw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var pc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},IZ=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),AZ=["Webkit","Ms","Moz","O"];pc=Object.keys(pc).reduce((e,t)=>(AZ.forEach(n=>e[IZ(n,t)]=e[t]),e),pc);var NZ=/^(matrix|translate|scale|rotate|skew)/,FZ=/^(translate)/,DZ=/^(rotate|skew)/,i2=(e,t)=>Ue.num(e)&&e!==0?e+t:e,M1=(e,t)=>Ue.arr(e)?e.every(n=>M1(n,t)):Ue.num(e)?e===t:parseFloat(e)===t,zZ=class extends cf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>i2(s,"px")).join(",")})`,M1(a,0)])),Ci(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(NZ.test(s)){if(delete r[s],Ue.und(a))return;const l=FZ.test(s)?"px":DZ.test(s)?"deg":"";i.push(fr(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${i2(f,l)})`,M1(f,0)]:c=>[`${s}(${c.map(u=>i2(u,l)).join(",")})`,M1(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new BZ(i,o)),super(r)}},BZ=class extends IC{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return _t(this.inputs,(n,r)=>{const i=mr(n[0]),[o,a]=this.transforms[r](Ue.arr(i)?i:n.map(mr));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&_t(this.inputs,t=>_t(t,n=>Ir(n)&&il(n,this)))}observerRemoved(e){e==0&&_t(this.inputs,t=>_t(t,n=>Ir(n)&&Ac(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ic(this,e)}},WZ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];li.assign({batchedUpdates:co.unstable_batchedUpdates,createStringInterpolator:FC,colors:AW});var ZZ=pZ(WZ,{applyAnimatedValues:LZ,createAnimatedStyle:e=>new zZ(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),et=ZZ.animated;function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}var UZ={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},G6=function(e,t){return"translate("+e+"px, "+t+"px)"},cw=S.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Zt(),a=Fn(),s=a.animate,l=a.config,c=YS(),u=c[0],d=c[1],f=S.useRef(!1),h=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),b=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,b-=d.height+14):r==="right"?(v+=14,b-=d.height/2):r==="bottom"?(v-=d.width/2,b+=14):r==="left"?(v-=d.width+14,b-=d.height/2):r==="center"&&(v-=d.width/2,b-=d.height/2),h={transform:G6(v,b)},f.current||(m=!0),f.current=[v,b]);var y=Qt({to:h,config:l,immediate:!s||m}),C=xa({},UZ,o.tooltip.wrapper,{transform:(t=y.transform)!=null?t:G6(v,b),opacity:y.transform?1:0});return p.jsx(et.div,{ref:u,style:C,children:i})});cw.displayName="TooltipWrapper";var J1=S.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return p.jsx("span",{style:xa({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Is=S.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Zt(),u=Lo(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=p.jsxs("div",{style:c.tooltip.basic,children:[a&&p.jsx(J1,{color:s,style:c.tooltip.chip}),d!==void 0?p.jsxs("span",{children:[n,": ",p.jsx("strong",{children:""+d})]}):n]})}return p.jsx("div",{style:c.tooltip.container,children:t})}),qZ={width:"100%",borderCollapse:"collapse"},uw=S.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Zt();return i.length?(t=typeof o=="function"?o():p.jsxs("div",{children:[n&&n,p.jsx("table",{style:xa({},qZ,a.tooltip.table),children:p.jsx("tbody",{children:i.map(function(s,l){return p.jsx("tr",{children:s.map(function(c,u){return p.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),p.jsx("div",{style:a.tooltip.container,children:t})):null});uw.displayName="TableTooltip";var hh=S.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Zt(),a=Fn(),s=a.animate,l=a.config,c=S.useMemo(function(){return xa({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Qt({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return p.jsx(et.line,xa({},u,{fill:"none",style:c}))});hh.displayName="CrosshairLine";var gh=S.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),p.jsxs(p.Fragment,{children:[t&&p.jsx(hh,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&p.jsx(hh,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});gh.displayName="Crosshair";var dw=S.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),vh={isVisible:!1,position:[null,null],content:null,anchor:null},fw=S.createContext(vh),GZ=function(e){var t=S.useState(vh),n=t[0],r=t[1],i=S.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=S.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,m=h.clientX,g=h.clientY,v=(m-u.left)*f,b=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,b],anchor:c,content:s})},[e,r]),a=S.useCallback(function(){r(vh)},[r]);return{actions:S.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},ci=function(){var e=S.useContext(dw);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},YZ=function(){var e=S.useContext(fw);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},KZ=function(e){return e.isVisible},XZ=function(){var e=YZ();return KZ(e)?p.jsx(cw,{position:e.position,anchor:e.anchor,children:e.content}):null},QZ=function(e){var t=e.container,n=e.children,r=GZ(t),i=r.actions,o=r.state;return p.jsx(dw.Provider,{value:i,children:p.jsx(fw.Provider,{value:o,children:n})})},JZ=ef;function eU(){this.__data__=new JZ,this.size=0}var tU=eU;function nU(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rU=nU;function iU(e){return this.__data__.get(e)}var oU=iU;function aU(e){return this.__data__.has(e)}var sU=aU,lU=ef,cU=lv,uU=cv,dU=200;function fU(e,t){var n=this.__data__;if(n instanceof lU){var r=n.__data__;if(!cU||r.length<dU-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new uU(r)}return n.set(e,t),this.size=n.size,this}var hU=fU,gU=ef,vU=tU,mU=rU,pU=oU,bU=sU,yU=hU;function ol(e){var t=this.__data__=new gU(e);this.size=t.size}ol.prototype.clear=vU;ol.prototype.delete=mU;ol.prototype.get=pU;ol.prototype.has=bU;ol.prototype.set=yU;var df=ol,xU=Ia,CU=function(){try{var e=xU(Object,"defineProperty");return e({},"",{}),e}catch{}}(),hw=CU,Y6=hw;function wU(e,t,n){t=="__proto__"&&Y6?Y6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ov=wU,SU=Ov,$U=hu;function MU(e,t,n){(n!==void 0&&!$U(e[t],n)||n===void 0&&!(t in e))&&SU(e,t,n)}var gw=MU;function _U(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var EU=_U,HU=EU,OU=HU(),vw=OU,ed={exports:{}};ed.exports;(function(e,t){var n=$i,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(ed,ed.exports);var mw=ed.exports,VU=$i,RU=VU.Uint8Array,pw=RU,K6=pw;function TU(e){var t=new e.constructor(e.byteLength);return new K6(t).set(new K6(e)),t}var Vv=TU,kU=Vv;function jU(e,t){var n=t?kU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var bw=jU;function PU(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var yw=PU,LU=Mi,X6=Object.create,IU=function(){function e(){}return function(t){if(!LU(t))return{};if(X6)return X6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),AU=IU;function NU(e,t){return function(n){return e(t(n))}}var xw=NU,FU=xw,DU=FU(Object.getPrototypeOf,Object),Rv=DU,zU=Object.prototype;function BU(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zU;return e===n}var Tv=BU,WU=AU,ZU=Rv,UU=Tv;function qU(e){return typeof e.constructor=="function"&&!UU(e)?WU(ZU(e)):{}}var Cw=qU;function GU(e){return e!=null&&typeof e=="object"}var Gr=GU,YU=po,KU=Gr,XU="[object Arguments]";function QU(e){return KU(e)&&YU(e)==XU}var JU=QU,Q6=JU,eq=Gr,ww=Object.prototype,tq=ww.hasOwnProperty,nq=ww.propertyIsEnumerable,rq=Q6(function(){return arguments}())?Q6:function(e){return eq(e)&&tq.call(e,"callee")&&!nq.call(e,"callee")},ff=rq,iq=Array.isArray,Cr=iq,oq=9007199254740991;function aq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oq}var kv=aq,sq=Xd,lq=kv;function cq(e){return e!=null&&lq(e.length)&&!sq(e)}var al=cq,uq=al,dq=Gr;function fq(e){return dq(e)&&uq(e)}var Sw=fq,td={exports:{}};function hq(){return!1}var gq=hq;td.exports;(function(e,t){var n=$i,r=gq,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(td,td.exports);var hf=td.exports,vq=po,mq=Rv,pq=Gr,bq="[object Object]",yq=Function.prototype,xq=Object.prototype,$w=yq.toString,Cq=xq.hasOwnProperty,wq=$w.call(Object);function Sq(e){if(!pq(e)||vq(e)!=bq)return!1;var t=mq(e);if(t===null)return!0;var n=Cq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$w.call(n)==wq}var jv=Sq;const Zo=Cn(jv);var $q=po,Mq=kv,_q=Gr,Eq="[object Arguments]",Hq="[object Array]",Oq="[object Boolean]",Vq="[object Date]",Rq="[object Error]",Tq="[object Function]",kq="[object Map]",jq="[object Number]",Pq="[object Object]",Lq="[object RegExp]",Iq="[object Set]",Aq="[object String]",Nq="[object WeakMap]",Fq="[object ArrayBuffer]",Dq="[object DataView]",zq="[object Float32Array]",Bq="[object Float64Array]",Wq="[object Int8Array]",Zq="[object Int16Array]",Uq="[object Int32Array]",qq="[object Uint8Array]",Gq="[object Uint8ClampedArray]",Yq="[object Uint16Array]",Kq="[object Uint32Array]",vn={};vn[zq]=vn[Bq]=vn[Wq]=vn[Zq]=vn[Uq]=vn[qq]=vn[Gq]=vn[Yq]=vn[Kq]=!0;vn[Eq]=vn[Hq]=vn[Fq]=vn[Oq]=vn[Dq]=vn[Vq]=vn[Rq]=vn[Tq]=vn[kq]=vn[jq]=vn[Pq]=vn[Lq]=vn[Iq]=vn[Aq]=vn[Nq]=!1;function Xq(e){return _q(e)&&Mq(e.length)&&!!vn[$q(e)]}var Qq=Xq;function Jq(e){return function(t){return e(t)}}var sl=Jq,nd={exports:{}};nd.exports;(function(e,t){var n=yC,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(nd,nd.exports);var gf=nd.exports,eG=Qq,tG=sl,J6=gf,e7=J6&&J6.isTypedArray,nG=e7?tG(e7):eG,Pv=nG;function rG(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Mw=rG,iG=Ov,oG=hu,aG=Object.prototype,sG=aG.hasOwnProperty;function lG(e,t,n){var r=e[t];(!(sG.call(e,t)&&oG(r,n))||n===void 0&&!(t in e))&&iG(e,t,n)}var Lv=lG,cG=Lv,uG=Ov;function dG(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?uG(n,s,l):cG(n,s,l)}return n}var ll=dG;function fG(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hG=fG,gG=9007199254740991,vG=/^(?:0|[1-9]\d*)$/;function mG(e,t){var n=typeof e;return t=t??gG,!!t&&(n=="number"||n!="symbol"&&vG.test(e))&&e>-1&&e%1==0&&e<t}var vf=mG,pG=hG,bG=ff,yG=Cr,xG=hf,CG=vf,wG=Pv,SG=Object.prototype,$G=SG.hasOwnProperty;function MG(e,t){var n=yG(e),r=!n&&bG(e),i=!n&&!r&&xG(e),o=!n&&!r&&!i&&wG(e),a=n||r||i||o,s=a?pG(e.length,String):[],l=s.length;for(var c in e)(t||$G.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||CG(c,l)))&&s.push(c);return s}var _w=MG;function _G(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var EG=_G,HG=Mi,OG=Tv,VG=EG,RG=Object.prototype,TG=RG.hasOwnProperty;function kG(e){if(!HG(e))return VG(e);var t=OG(e),n=[];for(var r in e)r=="constructor"&&(t||!TG.call(e,r))||n.push(r);return n}var jG=kG,PG=_w,LG=jG,IG=al;function AG(e){return IG(e)?PG(e,!0):LG(e)}var bu=AG,NG=ll,FG=bu;function DG(e){return NG(e,FG(e))}var zG=DG,t7=gw,BG=mw,WG=bw,ZG=yw,UG=Cw,n7=ff,r7=Cr,qG=Sw,GG=hf,YG=Xd,KG=Mi,XG=jv,QG=Pv,i7=Mw,JG=zG;function eY(e,t,n,r,i,o,a){var s=i7(e,n),l=i7(t,n),c=a.get(l);if(c){t7(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=r7(l),h=!f&&GG(l),m=!f&&!h&&QG(l);u=l,f||h||m?r7(s)?u=s:qG(s)?u=ZG(s):h?(d=!1,u=BG(l,!0)):m?(d=!1,u=WG(l,!0)):u=[]:XG(l)||n7(l)?(u=s,n7(s)?u=JG(s):(!KG(s)||YG(s))&&(u=UG(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),t7(e,n,u)}var tY=eY,nY=df,rY=gw,iY=vw,oY=tY,aY=Mi,sY=bu,lY=Mw;function Ew(e,t,n,r,i){e!==t&&iY(t,function(o,a){if(i||(i=new nY),aY(o))oY(e,t,a,n,Ew,r,i);else{var s=r?r(lY(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),rY(e,a,s)}},sY)}var cY=Ew;function uY(e){return e}var mf=uY;function dY(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var fY=dY,hY=fY,o7=Math.max;function gY(e,t,n){return t=o7(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=o7(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),hY(e,this,s)}}var Hw=gY;function vY(e){return function(){return e}}var mY=vY,pY=mY,a7=hw,bY=mf,yY=a7?function(e,t){return a7(e,"toString",{configurable:!0,enumerable:!1,value:pY(t),writable:!0})}:bY,xY=yY,CY=800,wY=16,SY=Date.now;function $Y(e){var t=0,n=0;return function(){var r=SY(),i=wY-(r-n);if(n=r,i>0){if(++t>=CY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MY=$Y,_Y=xY,EY=MY,HY=EY(_Y),Ow=HY,OY=mf,VY=Hw,RY=Ow;function TY(e,t){return RY(VY(e,t,OY),e+"")}var Iv=TY,kY=hu,jY=al,PY=vf,LY=Mi;function IY(e,t,n){if(!LY(n))return!1;var r=typeof t;return(r=="number"?jY(n)&&PY(t,n.length):r=="string"&&t in n)?kY(n[t],e):!1}var Vw=IY,AY=Iv,NY=Vw;function FY(e){return AY(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&NY(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var DY=FY,zY=cY,BY=DY,WY=BY(function(e,t,n){zY(e,t,n)}),ZY=WY;const Av=Cn(ZY);var UY=po,qY=Gr,GY="[object Symbol]";function YY(e){return typeof e=="symbol"||qY(e)&&UY(e)==GY}var pf=YY,KY=Cr,XY=pf,QY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JY=/^\w*$/;function eK(e,t){if(KY(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||XY(e)?!0:JY.test(e)||!QY.test(e)||t!=null&&e in Object(t)}var Nv=eK,Rw=cv,tK="Expected a function";function Fv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tK);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fv.Cache||Rw),n}Fv.Cache=Rw;var nK=Fv,rK=nK,iK=500;function oK(e){var t=rK(e,function(r){return n.size===iK&&n.clear(),r}),n=t.cache;return t}var aK=oK,sK=aK,lK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cK=/\\(\\)?/g,uK=sK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lK,function(n,r,i,o){t.push(i?o.replace(cK,"$1"):r||n)}),t}),dK=uK;function fK(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var bf=fK,s7=Js,hK=bf,gK=Cr,vK=pf,mK=1/0,l7=s7?s7.prototype:void 0,c7=l7?l7.toString:void 0;function Tw(e){if(typeof e=="string")return e;if(gK(e))return hK(e,Tw)+"";if(vK(e))return c7?c7.call(e):"";var t=e+"";return t=="0"&&1/e==-mK?"-0":t}var pK=Tw,bK=pK;function yK(e){return e==null?"":bK(e)}var yu=yK,xK=Cr,CK=Nv,wK=dK,SK=yu;function $K(e,t){return xK(e)?e:CK(e,t)?[e]:wK(SK(e))}var cl=$K,MK=pf,_K=1/0;function EK(e){if(typeof e=="string"||MK(e))return e;var t=e+"";return t=="0"&&1/e==-_K?"-0":t}var ul=EK,HK=cl,OK=ul;function VK(e,t){t=HK(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[OK(t[n++])];return n&&n==r?e:void 0}var xu=VK,RK=xu;function TK(e,t,n){var r=e==null?void 0:RK(e,t);return r===void 0?n:r}var kw=TK;const yn=Cn(kw);var kK=Lv,jK=cl,PK=vf,u7=Mi,LK=ul;function IK(e,t,n,r){if(!u7(e))return e;t=jK(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=LK(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=u7(u)?u:PK(t[i+1])?[]:{})}kK(s,l,c),s=s[l]}return e}var jw=IK,AK=jw;function NK(e,t,n){return e==null?e:AK(e,t,n)}var FK=NK;const ni=Cn(FK);function yf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dl(){}var Ca=.7,As=1/Ca,_s="\\s*([+-]?\\d+)\\s*",Wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DK=/^#([0-9a-f]{3,8})$/,zK=new RegExp(`^rgb\\(${_s},${_s},${_s}\\)$`),BK=new RegExp(`^rgb\\(${xi},${xi},${xi}\\)$`),WK=new RegExp(`^rgba\\(${_s},${_s},${_s},${Wc}\\)$`),ZK=new RegExp(`^rgba\\(${xi},${xi},${xi},${Wc}\\)$`),UK=new RegExp(`^hsl\\(${Wc},${xi},${xi}\\)$`),qK=new RegExp(`^hsla\\(${Wc},${xi},${xi},${Wc}\\)$`),d7={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yf(dl,Zc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f7,formatHex:f7,formatHex8:GK,formatHsl:YK,formatRgb:h7,toString:h7});function f7(){return this.rgb().formatHex()}function GK(){return this.rgb().formatHex8()}function YK(){return Lw(this).formatHsl()}function h7(){return this.rgb().formatRgb()}function Zc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DK.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?g7(t):n===3?new ar(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?n1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?n1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=zK.exec(e))?new ar(t[1],t[2],t[3],1):(t=BK.exec(e))?new ar(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WK.exec(e))?n1(t[1],t[2],t[3],t[4]):(t=ZK.exec(e))?n1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UK.exec(e))?p7(t[1],t[2]/100,t[3]/100,1):(t=qK.exec(e))?p7(t[1],t[2]/100,t[3]/100,t[4]):d7.hasOwnProperty(e)?g7(d7[e]):e==="transparent"?new ar(NaN,NaN,NaN,0):null}function g7(e){return new ar(e>>16&255,e>>8&255,e&255,1)}function n1(e,t,n,r){return r<=0&&(e=t=n=NaN),new ar(e,t,n,r)}function Pw(e){return e instanceof dl||(e=Zc(e)),e?(e=e.rgb(),new ar(e.r,e.g,e.b,e.opacity)):new ar}function jo(e,t,n,r){return arguments.length===1?Pw(e):new ar(e,t,n,r??1)}function ar(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}yf(ar,jo,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ar(ga(this.r),ga(this.g),ga(this.b),rd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v7,formatHex:v7,formatHex8:KK,formatRgb:m7,toString:m7}));function v7(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function KK(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function m7(){const e=rd(this.opacity);return`${e===1?"rgb(":"rgba("}${ga(this.r)}, ${ga(this.g)}, ${ga(this.b)}${e===1?")":`, ${e})`}`}function rd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ga(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=ga(e),(e<16?"0":"")+e.toString(16)}function p7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ei(e,t,n,r)}function Lw(e){if(e instanceof ei)return new ei(e.h,e.s,e.l,e.opacity);if(e instanceof dl||(e=Zc(e)),!e)return new ei;if(e instanceof ei)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ei(a,s,l,e.opacity)}function XK(e,t,n,r){return arguments.length===1?Lw(e):new ei(e,t,n,r??1)}function ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yf(ei,XK,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ar(o2(e>=240?e-240:e+120,i,r),o2(e,i,r),o2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ei(b7(this.h),r1(this.s),r1(this.l),rd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rd(this.opacity);return`${e===1?"hsl(":"hsla("}${b7(this.h)}, ${r1(this.s)*100}%, ${r1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function b7(e){return e=(e||0)%360,e<0?e+360:e}function r1(e){return Math.max(0,Math.min(1,e||0))}function o2(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const QK=Math.PI/180,JK=180/Math.PI;var Iw=-.14861,zv=1.78277,Bv=-.29227,xf=-.90649,Uc=1.97294,y7=Uc*xf,x7=Uc*zv,C7=zv*Bv-xf*Iw;function eX(e){if(e instanceof va)return new va(e.h,e.s,e.l,e.opacity);e instanceof ar||(e=Pw(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(C7*r+y7*t-x7*n)/(C7+y7-x7),o=r-i,a=(Uc*(n-i)-Bv*o)/xf,s=Math.sqrt(a*a+o*o)/(Uc*i*(1-i)),l=s?Math.atan2(a,o)*JK-120:NaN;return new va(l<0?l+360:l,s,i,e.opacity)}function wi(e,t,n,r){return arguments.length===1?eX(e):new va(e,t,n,r??1)}function va(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}yf(va,wi,Dv(dl,{brighter(e){return e=e==null?As:Math.pow(As,e),new va(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new va(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*QK,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ar(255*(t+n*(Iw*r+zv*i)),255*(t+n*(Bv*r+xf*i)),255*(t+n*(Uc*r)),this.opacity)}}));function tX(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function nX(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return tX((n-r/t)*t,a,i,o,s)}}const Cf=e=>()=>e;function Aw(e,t){return function(n){return e+n*t}}function rX(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function iX(e,t){var n=t-e;return n?Aw(e,n>180||n<-180?n-360*Math.round(n/360):n):Cf(isNaN(e)?t:e)}function oX(e){return(e=+e)==1?Es:function(t,n){return n-t?rX(t,n,e):Cf(isNaN(t)?n:t)}}function Es(e,t){var n=t-e;return n?Aw(e,n):Cf(isNaN(e)?t:e)}const w7=function e(t){var n=oX(t);function r(i,o){var a=n((i=jo(i)).r,(o=jo(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=Es(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function aX(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=jo(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var sX=aX(nX);function lX(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function cX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uX(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=fl(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function dX(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function id(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function fX(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=fl(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a2=new RegExp(mh.source,"g");function hX(e){return function(){return e}}function gX(e){return function(t){return e(t)+""}}function wf(e,t){var n=mh.lastIndex=a2.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=mh.exec(e))&&(i=a2.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:id(r,i)})),n=a2.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?gX(l[0].x):hX(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function fl(e,t){var n=typeof t,r;return t==null||n==="boolean"?Cf(t):(n==="number"?id:n==="string"?(r=Zc(t))?(t=r,w7):wf:t instanceof Zc?w7:t instanceof Date?dX:cX(t)?lX:Array.isArray(t)?uX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?fX:id)(e,t)}function Wv(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Nw(e){return function t(n){n=+n;function r(i,o){var a=e((i=wi(i)).h,(o=wi(o)).h),s=Es(i.s,o.s),l=Es(i.l,o.l),c=Es(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}Nw(iX);var Zv=Nw(Es);function vX(e,t){t===void 0&&(t=e,e=fl);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}var mX=po,pX=Cr,bX=Gr,yX="[object String]";function xX(e){return typeof e=="string"||!pX(e)&&bX(e)&&mX(e)==yX}var CX=xX;const Sf=Cn(CX);function wX(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Fw=wX;const ue=Cn(Fw);function _1(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function SX(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Uv(e){let t,n,r;e.length!==2?(t=_1,n=(s,l)=>_1(e(s),l),r=(s,l)=>e(s)-l):(t=e===_1||e===SX?e:$X,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function $X(){return 0}function MX(e){return e===null?NaN:+e}const _X=Uv(_1),Dw=_X.right;Uv(MX).center;class S7 extends Map{constructor(t,n=OX){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get($7(this,t))}has(t){return super.has($7(this,t))}set(t,n){return super.set(EX(this,t),n)}delete(t){return super.delete(HX(this,t))}}function $7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function EX({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function HX({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OX(e){return e!==null&&typeof e=="object"?e.valueOf():e}const VX=Math.sqrt(50),RX=Math.sqrt(10),TX=Math.sqrt(2);function od(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=VX?10:o>=RX?5:o>=TX?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?od(e,t,n*2):[s,l,c]}function ph(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?od(t,e,n):od(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function bh(e,t,n){return t=+t,e=+e,n=+n,od(e,t,n)[2]}function yh(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?bh(t,e,n):bh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function kX(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Uo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function zw(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const M7=Symbol("implicit");function _r(){var e=new S7,t=[],n=[],r=M7;function i(o){let a=e.get(o);if(a===void 0){if(r!==M7)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new S7;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return _r(t,n).unknown(r)},Uo.apply(i,arguments),i}function Ns(){var e=_r().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,m=h?i:r,g=h?r:i;o=(g-m)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),m+=(g-m-o*(f-l))*u,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var v=kX(f).map(function(b){return m+o*b});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Ns(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Uo.apply(d(),arguments)}function Bw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Bw(t())},e}function Ww(){return Bw(Ns.apply(null,arguments).paddingInner(1))}function jX(e){return function(){return e}}function PX(e){return+e}var _7=[0,1];function pi(e){return e}function xh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jX(isNaN(t)?NaN:.5)}function LX(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function IX(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=xh(i,r),o=n(a,o)):(r=xh(r,i),o=n(o,a)),function(s){return o(r(s))}}function AX(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=xh(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Dw(e,s,1,r)-1;return o[l](i[l](s))}}function $f(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qv(){var e=_7,t=_7,n=fl,r,i,o,a=pi,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==pi&&(a=LX(e[0],e[f-1])),s=f>2?AX:IX,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),id)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PX),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=Wv,u()},d.clamp=function(f){return arguments.length?(a=f?!0:pi,u()):a!==pi},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function Zw(){return qv()(pi,pi)}function NX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ad(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fs(e){return e=ad(Math.abs(e)),e?e[1]:NaN}function FX(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function DX(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var zX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qc(e){if(!(t=zX.exec(e)))throw new Error("invalid format: "+e);var t;return new Gv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qc.prototype=Gv.prototype;function Gv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Gv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function BX(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Uw;function WX(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Uw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ad(e,Math.max(0,t+o-1))[0]}function E7(e,t){var n=ad(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:NX,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>E7(e*100,t),r:E7,s:WX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function O7(e){return e}var V7=Array.prototype.map,R7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZX(e){var t=e.grouping===void 0||e.thousands===void 0?O7:FX(V7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?O7:DX(V7.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qc(d);var f=d.fill,h=d.align,m=d.sign,g=d.symbol,v=d.zero,b=d.width,y=d.comma,C=d.precision,$=d.trim,w=d.type;w==="n"?(y=!0,w="g"):H7[w]||(C===void 0&&(C=12),$=!0,w="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var M=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=g==="$"?r:/[%p]/.test(w)?a:"",E=H7[w],_=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(k){var A=M,j=R,H,T,P;if(w==="c")j=E(k)+j,k="";else{k=+k;var V=k<0||1/k<0;if(k=isNaN(k)?l:E(Math.abs(k),C),$&&(k=BX(k)),V&&+k==0&&m!=="+"&&(V=!1),A=(V?m==="("?m:s:m==="-"||m==="("?"":m)+A,j=(w==="s"?R7[8+Uw/3]:"")+j+(V&&m==="("?")":""),_){for(H=-1,T=k.length;++H<T;)if(P=k.charCodeAt(H),48>P||P>57){j=(P===46?i+k.slice(H+1):k.slice(H))+j,k=k.slice(0,H);break}}}y&&!v&&(k=t(k,1/0));var I=A.length+k.length+j.length,L=I<b?new Array(b-I+1).join(f):"";switch(y&&v&&(k=t(L+k,L.length?b-j.length:1/0),L=""),h){case"<":k=A+k+j+L;break;case"=":k=A+L+k+j;break;case"^":k=L.slice(0,I=L.length>>1)+A+k+j+L.slice(I);break;default:k=L+A+k+j;break}return o(k)}return O.toString=function(){return d+""},O}function u(d,f){var h=c((d=qc(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Fs(f)/3)))*3,g=Math.pow(10,-m),v=R7[8+m/3];return function(b){return h(g*b)+v}}return{format:c,formatPrefix:u}}var i1,Yv,qw;UX({thousands:",",grouping:[3],currency:["$",""]});function UX(e){return i1=ZX(e),Yv=i1.format,qw=i1.formatPrefix,i1}function qX(e){return Math.max(0,-Fs(Math.abs(e)))}function GX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fs(t)/3)))*3-Fs(Math.abs(e)))}function YX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fs(t)-Fs(e))+1}function KX(e,t,n,r){var i=yh(e,t,n),o;switch(r=qc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=GX(i,a))&&(r.precision=o),qw(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=YX(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qX(i))&&(r.precision=o-(r.type==="%")*2);break}}return Yv(r)}function Cu(e){var t=e.domain;return e.ticks=function(n){var r=t();return ph(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return KX(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=bh(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function qo(){var e=Zw();return e.copy=function(){return $f(e,qo())},Uo.apply(e,arguments),Cu(e)}function Gw(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function T7(e){return Math.log(e)}function k7(e){return Math.exp(e)}function XX(e){return-Math.log(-e)}function QX(e){return-Math.exp(-e)}function JX(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eQ(e){return e===10?JX:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function j7(e){return(t,n)=>-e(-t,n)}function nQ(e){const t=e(T7,k7),n=t.domain;let r=10,i,o;function a(){return i=tQ(r),o=eQ(r),n()[0]<0?(i=j7(i),o=j7(o),e(XX,QX)):e(T7,k7),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),m,g;const v=s==null?10:+s;let b=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(m=1;m<r;++m)if(g=f<0?m/o(-f):m*o(f),!(g<c)){if(g>u)break;b.push(g)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/o(-f):m*o(f),!(g<c)){if(g>u)break;b.push(g)}b.length*2<v&&(b=ph(c,u,v))}else b=ph(f,h,Math.min(h-f,v)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qc(l)).precision==null&&(l.trim=!0),l=Yv(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Gw(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Kv(){const e=nQ(qv()).domain([1,10]);return e.copy=()=>$f(e,Kv()).base(e.base()),Uo.apply(e,arguments),e}function P7(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function L7(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function rQ(e){var t=1,n=e(P7(t),L7(t));return n.constant=function(r){return arguments.length?e(P7(t=+r),L7(t)):t},Cu(n)}function Xv(){var e=rQ(qv());return e.copy=function(){return $f(e,Xv()).constant(e.constant())},Uo.apply(e,arguments)}function Yw(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Dw(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Yw().domain([e,t]).range(i).unknown(o)},Uo.apply(Cu(a),arguments)}const s2=new Date,l2=new Date;function Nn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>Nn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(s2.setTime(+o),l2.setTime(+a),e(s2),e(l2),Math.floor(n(s2,l2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const sd=Nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sd);sd.range;const oo=1e3,Nr=oo*60,ao=Nr*60,fo=ao*24,Qv=fo*7,I7=fo*30,c2=fo*365,ca=Nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*oo)},(e,t)=>(t-e)/oo,e=>e.getUTCSeconds());ca.range;const Jv=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oo)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getMinutes());Jv.range;const e5=Nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCMinutes());e5.range;const t5=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oo-e.getMinutes()*Nr)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getHours());t5.range;const n5=Nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ao)},(e,t)=>(t-e)/ao,e=>e.getUTCHours());n5.range;const wu=Nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nr)/fo,e=>e.getDate()-1);wu.range;const Mf=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>e.getUTCDate()-1);Mf.range;const Kw=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fo,e=>Math.floor(e/fo));Kw.range;function Na(e){return Nn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/Qv)}const _f=Na(0),ld=Na(1),iQ=Na(2),oQ=Na(3),Ds=Na(4),aQ=Na(5),sQ=Na(6);_f.range;ld.range;iQ.range;oQ.range;Ds.range;aQ.range;sQ.range;function Fa(e){return Nn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Qv)}const Ef=Fa(0),cd=Fa(1),lQ=Fa(2),cQ=Fa(3),zs=Fa(4),uQ=Fa(5),dQ=Fa(6);Ef.range;cd.range;lQ.range;cQ.range;zs.range;uQ.range;dQ.range;const r5=Nn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());r5.range;const i5=Nn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());i5.range;const ho=Nn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ho.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ho.range;const go=Nn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());go.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});go.range;function Xw(e,t,n,r,i,o){const a=[[ca,1,oo],[ca,5,5*oo],[ca,15,15*oo],[ca,30,30*oo],[o,1,Nr],[o,5,5*Nr],[o,15,15*Nr],[o,30,30*Nr],[i,1,ao],[i,3,3*ao],[i,6,6*ao],[i,12,12*ao],[r,1,fo],[r,2,2*fo],[n,1,Qv],[t,1,I7],[t,3,3*I7],[e,1,c2]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),m=h?h.range(c,+u+1):[];return f?m.reverse():m}function l(c,u,d){const f=Math.abs(u-c)/d,h=Uv(([,,v])=>v).right(a,f);if(h===a.length)return e.every(yh(c/c2,u/c2,d));if(h===0)return sd.every(Math.max(yh(c,u,d),1));const[m,g]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return m.every(g)}return[s,l]}const[fQ,hQ]=Xw(go,i5,Ef,Kw,n5,e5),[gQ,vQ]=Xw(ho,r5,_f,wu,t5,Jv);function u2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function d2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Nl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mQ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Fl(i),u=Dl(i),d=Fl(o),f=Dl(o),h=Fl(a),m=Dl(a),g=Fl(s),v=Dl(s),b=Fl(l),y=Dl(l),C={a:V,A:I,b:L,B:N,c:null,d:B7,e:B7,f:NQ,g:YQ,G:XQ,H:LQ,I:IQ,j:AQ,L:Qw,m:FQ,M:DQ,p:z,q,Q:U7,s:q7,S:zQ,u:BQ,U:WQ,V:ZQ,w:UQ,W:qQ,x:null,X:null,y:GQ,Y:KQ,Z:QQ,"%":Z7},$={a:G,A:Y,b:ee,B:Q,c:null,d:W7,e:W7,f:nJ,g:fJ,G:gJ,H:JQ,I:eJ,j:tJ,L:eS,m:rJ,M:iJ,p:K,q:J,Q:U7,s:q7,S:oJ,u:aJ,U:sJ,V:lJ,w:cJ,W:uJ,x:null,X:null,y:dJ,Y:hJ,Z:vJ,"%":Z7},w={a:O,A:k,b:A,B:j,c:H,d:D7,e:D7,f:TQ,g:F7,G:N7,H:z7,I:z7,j:HQ,L:RQ,m:EQ,M:OQ,p:_,q:_Q,Q:jQ,s:PQ,S:VQ,u:CQ,U:wQ,V:SQ,w:xQ,W:$Q,x:T,X:P,y:F7,Y:N7,Z:MQ,"%":kQ};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),$.x=M(n,$),$.X=M(r,$),$.c=M(t,$);function M(W,Z){return function(U){var F=[],re=-1,B=0,ie=W.length,oe,ve,xe;for(U instanceof Date||(U=new Date(+U));++re<ie;)W.charCodeAt(re)===37&&(F.push(W.slice(B,re)),(ve=A7[oe=W.charAt(++re)])!=null?oe=W.charAt(++re):ve=oe==="e"?" ":"0",(xe=Z[oe])&&(oe=xe(U,ve)),F.push(oe),B=re+1);return F.push(W.slice(B,re)),F.join("")}}function R(W,Z){return function(U){var F=Nl(1900,void 0,1),re=E(F,W,U+="",0),B,ie;if(re!=U.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(B=d2(Nl(F.y,0,1)),ie=B.getUTCDay(),B=ie>4||ie===0?cd.ceil(B):cd(B),B=Mf.offset(B,(F.V-1)*7),F.y=B.getUTCFullYear(),F.m=B.getUTCMonth(),F.d=B.getUTCDate()+(F.w+6)%7):(B=u2(Nl(F.y,0,1)),ie=B.getDay(),B=ie>4||ie===0?ld.ceil(B):ld(B),B=wu.offset(B,(F.V-1)*7),F.y=B.getFullYear(),F.m=B.getMonth(),F.d=B.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),ie="Z"in F?d2(Nl(F.y,0,1)).getUTCDay():u2(Nl(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(ie+5)%7:F.w+F.U*7-(ie+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,d2(F)):u2(F)}}function E(W,Z,U,F){for(var re=0,B=Z.length,ie=U.length,oe,ve;re<B;){if(F>=ie)return-1;if(oe=Z.charCodeAt(re++),oe===37){if(oe=Z.charAt(re++),ve=w[oe in A7?Z.charAt(re++):oe],!ve||(F=ve(W,U,F))<0)return-1}else if(oe!=U.charCodeAt(F++))return-1}return F}function _(W,Z,U){var F=c.exec(Z.slice(U));return F?(W.p=u.get(F[0].toLowerCase()),U+F[0].length):-1}function O(W,Z,U){var F=h.exec(Z.slice(U));return F?(W.w=m.get(F[0].toLowerCase()),U+F[0].length):-1}function k(W,Z,U){var F=d.exec(Z.slice(U));return F?(W.w=f.get(F[0].toLowerCase()),U+F[0].length):-1}function A(W,Z,U){var F=b.exec(Z.slice(U));return F?(W.m=y.get(F[0].toLowerCase()),U+F[0].length):-1}function j(W,Z,U){var F=g.exec(Z.slice(U));return F?(W.m=v.get(F[0].toLowerCase()),U+F[0].length):-1}function H(W,Z,U){return E(W,t,Z,U)}function T(W,Z,U){return E(W,n,Z,U)}function P(W,Z,U){return E(W,r,Z,U)}function V(W){return a[W.getDay()]}function I(W){return o[W.getDay()]}function L(W){return l[W.getMonth()]}function N(W){return s[W.getMonth()]}function z(W){return i[+(W.getHours()>=12)]}function q(W){return 1+~~(W.getMonth()/3)}function G(W){return a[W.getUTCDay()]}function Y(W){return o[W.getUTCDay()]}function ee(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function J(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Z=M(W+="",C);return Z.toString=function(){return W},Z},parse:function(W){var Z=R(W+="",!1);return Z.toString=function(){return W},Z},utcFormat:function(W){var Z=M(W+="",$);return Z.toString=function(){return W},Z},utcParse:function(W){var Z=R(W+="",!0);return Z.toString=function(){return W},Z}}}var A7={"-":"",_:" ",0:"0"},Yn=/^\s*\d+/,pQ=/^%/,bQ=/[\\^$*+?|[\]().{}]/g;function Bt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function yQ(e){return e.replace(bQ,"\\$&")}function Fl(e){return new RegExp("^(?:"+e.map(yQ).join("|")+")","i")}function Dl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function xQ(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function CQ(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function N7(e,t,n){var r=Yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function F7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function MQ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _Q(e,t,n){var r=Yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function EQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function HQ(e,t,n){var r=Yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function z7(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function OQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VQ(e,t,n){var r=Yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function RQ(e,t,n){var r=Yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function TQ(e,t,n){var r=Yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function kQ(e,t,n){var r=pQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jQ(e,t,n){var r=Yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function PQ(e,t,n){var r=Yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B7(e,t){return Bt(e.getDate(),t,2)}function LQ(e,t){return Bt(e.getHours(),t,2)}function IQ(e,t){return Bt(e.getHours()%12||12,t,2)}function AQ(e,t){return Bt(1+wu.count(ho(e),e),t,3)}function Qw(e,t){return Bt(e.getMilliseconds(),t,3)}function NQ(e,t){return Qw(e,t)+"000"}function FQ(e,t){return Bt(e.getMonth()+1,t,2)}function DQ(e,t){return Bt(e.getMinutes(),t,2)}function zQ(e,t){return Bt(e.getSeconds(),t,2)}function BQ(e){var t=e.getDay();return t===0?7:t}function WQ(e,t){return Bt(_f.count(ho(e)-1,e),t,2)}function Jw(e){var t=e.getDay();return t>=4||t===0?Ds(e):Ds.ceil(e)}function ZQ(e,t){return e=Jw(e),Bt(Ds.count(ho(e),e)+(ho(e).getDay()===4),t,2)}function UQ(e){return e.getDay()}function qQ(e,t){return Bt(ld.count(ho(e)-1,e),t,2)}function GQ(e,t){return Bt(e.getFullYear()%100,t,2)}function YQ(e,t){return e=Jw(e),Bt(e.getFullYear()%100,t,2)}function KQ(e,t){return Bt(e.getFullYear()%1e4,t,4)}function XQ(e,t){var n=e.getDay();return e=n>=4||n===0?Ds(e):Ds.ceil(e),Bt(e.getFullYear()%1e4,t,4)}function QQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Bt(t/60|0,"0",2)+Bt(t%60,"0",2)}function W7(e,t){return Bt(e.getUTCDate(),t,2)}function JQ(e,t){return Bt(e.getUTCHours(),t,2)}function eJ(e,t){return Bt(e.getUTCHours()%12||12,t,2)}function tJ(e,t){return Bt(1+Mf.count(go(e),e),t,3)}function eS(e,t){return Bt(e.getUTCMilliseconds(),t,3)}function nJ(e,t){return eS(e,t)+"000"}function rJ(e,t){return Bt(e.getUTCMonth()+1,t,2)}function iJ(e,t){return Bt(e.getUTCMinutes(),t,2)}function oJ(e,t){return Bt(e.getUTCSeconds(),t,2)}function aJ(e){var t=e.getUTCDay();return t===0?7:t}function sJ(e,t){return Bt(Ef.count(go(e)-1,e),t,2)}function tS(e){var t=e.getUTCDay();return t>=4||t===0?zs(e):zs.ceil(e)}function lJ(e,t){return e=tS(e),Bt(zs.count(go(e),e)+(go(e).getUTCDay()===4),t,2)}function cJ(e){return e.getUTCDay()}function uJ(e,t){return Bt(cd.count(go(e)-1,e),t,2)}function dJ(e,t){return Bt(e.getUTCFullYear()%100,t,2)}function fJ(e,t){return e=tS(e),Bt(e.getUTCFullYear()%100,t,2)}function hJ(e,t){return Bt(e.getUTCFullYear()%1e4,t,4)}function gJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zs(e):zs.ceil(e),Bt(e.getUTCFullYear()%1e4,t,4)}function vJ(){return"+0000"}function Z7(){return"%"}function U7(e){return+e}function q7(e){return Math.floor(+e/1e3)}var ls,nS,rS;mJ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mJ(e){return ls=mQ(e),nS=ls.format,ls.parse,rS=ls.utcFormat,ls.utcParse,ls}function pJ(e){return new Date(e)}function bJ(e){return e instanceof Date?+e:+new Date(+e)}function o5(e,t,n,r,i,o,a,s,l,c){var u=Zw(),d=u.invert,f=u.domain,h=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),y=c("%b %d"),C=c("%B"),$=c("%Y");function w(M){return(l(M)<M?h:s(M)<M?m:a(M)<M?g:o(M)<M?v:r(M)<M?i(M)<M?b:y:n(M)<M?C:$)(M)}return u.invert=function(M){return new Date(d(M))},u.domain=function(M){return arguments.length?f(Array.from(M,bJ)):f().map(pJ)},u.ticks=function(M){var R=f();return e(R[0],R[R.length-1],M??10)},u.tickFormat=function(M,R){return R==null?w:c(R)},u.nice=function(M){var R=f();return(!M||typeof M.range!="function")&&(M=t(R[0],R[R.length-1],M??10)),M?f(Gw(R,M)):u},u.copy=function(){return $f(u,o5(e,t,n,r,i,o,a,s,l,c))},u}function iS(){return Uo.apply(o5(gQ,vQ,ho,r5,_f,wu,t5,Jv,ca,nS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oS(){return Uo.apply(o5(fQ,hQ,go,i5,Ef,Mf,n5,e5,ca,rS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function yJ(){var e=0,t=1,n,r,i,o,a=pi,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var h,m;return arguments.length?([h,m]=f,a=d(h,m),c):[a(0),a(1)]}}return c.range=u(fl),c.rangeRound=u(Wv),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function aS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sS(){var e=Cu(yJ()(pi));return e.copy=function(){return aS(e,sS())},zw.apply(e,arguments)}function xJ(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=pi,u,d=!1,f;function h(g){return isNaN(g=+g)?f:(g=.5+((g=+u(g))-o)*(r*g<r*o?s:l),c(d?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,n]=g,i=u(e=+e),o=u(t=+t),a=u(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(g){return arguments.length?(d=!!g,h):d},h.interpolator=function(g){return arguments.length?(c=g,h):c};function m(g){return function(v){var b,y,C;return arguments.length?([b,y,C]=v,c=vX(g,[b,y,C]),h):[c(0),c(.5),c(1)]}}return h.range=m(fl),h.rangeRound=m(Wv),h.unknown=function(g){return arguments.length?(f=g,h):f},function(g){return u=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,h}}function Ch(){var e=Cu(xJ()(pi));return e.copy=function(){return aS(e,Ch())},zw.apply(e,arguments)}function Vt(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const hl=Vt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),gl=Vt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),vl=Vt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),ml=Vt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pl=Vt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),bl=Vt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),yl=Vt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),xl=Vt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bo=Vt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),a5=Vt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),ln=e=>sX(e[e.length-1]);var _i=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vt);const s5=ln(_i);var Ei=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vt);const l5=ln(Ei);var Hi=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vt);const c5=ln(Hi);var Oi=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vt);const u5=ln(Oi);var Vi=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vt);const d5=ln(Vi);var Ri=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vt);const f5=ln(Ri);var Ti=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vt);const h5=ln(Ti);var ki=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vt);const g5=ln(ki);var ji=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vt);const v5=ln(ji);var Pi=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vt);const m5=ln(Pi);var Li=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vt);const p5=ln(Li);var Ii=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vt);const b5=ln(Ii);var Ai=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vt);const y5=ln(Ai);var Ni=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vt);const x5=ln(Ni);var Fi=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vt);const C5=ln(Fi);var Di=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vt);const w5=ln(Di);var zi=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vt);const S5=ln(zi);var Bi=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vt);const $5=ln(Bi);var Wi=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vt);const M5=ln(Wi);var Zi=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vt);const _5=ln(Zi);var Ui=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vt);const E5=ln(Ui);var qi=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vt);const H5=ln(qi);var Gi=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vt);const O5=ln(Gi);var Yi=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vt);const V5=ln(Yi);var Ki=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vt);const R5=ln(Ki);var Xi=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vt);const T5=ln(Xi);var Qi=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vt);const k5=ln(Qi);function j5(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const P5=Zv(wi(300,.5,0),wi(-240,.5,1));var L5=Zv(wi(-100,.75,.35),wi(80,1.5,.8)),I5=Zv(wi(260,.75,.35),wi(80,1.5,.8)),o1=wi();function A5(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return o1.h=360*e-100,o1.s=1.5-1.5*t,o1.l=.8-.9*t,o1+""}var a1=jo(),CJ=Math.PI/3,wJ=Math.PI*2/3;function N5(e){var t;return e=(.5-e)*Math.PI,a1.r=255*(t=Math.sin(e))*t,a1.g=255*(t=Math.sin(e+CJ))*t,a1.b=255*(t=Math.sin(e+wJ))*t,a1+""}function F5(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Hf(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const D5=Hf(Vt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var z5=Hf(Vt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),B5=Hf(Vt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),W5=Hf(Vt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),SJ=uv,$J=wC,MJ=SC,_J=bf,EJ=sl,HJ=dv,OJ=200;function VJ(e,t,n,r){var i=-1,o=$J,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=_J(t,EJ(n))),r?(o=MJ,a=!1):t.length>=OJ&&(o=HJ,a=!1,t=new SJ(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var RJ=VJ,TJ=RJ,kJ=Iv,jJ=Sw,PJ=kJ(function(e,t){return jJ(e)?TJ(e,t):[]}),LJ=PJ;const Cl=Cn(LJ);function Pt(e){return function(){return e}}const G7=Math.abs,tr=Math.atan2,Xo=Math.cos,IJ=Math.max,f2=Math.min,hi=Math.sin,ys=Math.sqrt,ir=1e-12,Gc=Math.PI,ud=Gc/2,E1=2*Gc;function AJ(e){return e>1?0:e<-1?Gc:Math.acos(e)}function Y7(e){return e>=1?ud:e<=-1?-ud:Math.asin(e)}const wh=Math.PI,Sh=2*wh,ea=1e-6,NJ=Sh-ea;function lS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function FJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lS;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let DJ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lS:FJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>ea)if(!(Math.abs(d*l-c*u)>ea)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,m=i-s,g=l*l+c*c,v=h*h+m*m,b=Math.sqrt(g),y=Math.sqrt(f),C=o*Math.tan((wh-Math.acos((g+f-v)/(2*b*y)))/2),$=C/y,w=C/b;Math.abs($-1)>ea&&this._append`L${t+$*u},${n+$*d}`,this._append`A${o},${o},0,0,${+(d*h>u*m)},${this._x1=t+w*l},${this._y1=n+w*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ea||Math.abs(this._y1-u)>ea)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Sh+Sh),f>NJ?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>ea&&this._append`A${r},${r},0,${+(f>=wh)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Z5(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new DJ(t)}function zJ(e){return e.innerRadius}function BJ(e){return e.outerRadius}function WJ(e){return e.startAngle}function ZJ(e){return e.endAngle}function UJ(e){return e&&e.padAngle}function qJ(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<ir))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function s1(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/ys(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,m=n+u,g=r+d,v=(f+m)/2,b=(h+g)/2,y=m-f,C=g-h,$=y*y+C*C,w=i-o,M=f*g-m*h,R=(C<0?-1:1)*ys(IJ(0,w*w*$-M*M)),E=(M*C-y*R)/$,_=(-M*y-C*R)/$,O=(M*C+y*R)/$,k=(-M*y+C*R)/$,A=E-v,j=_-b,H=O-v,T=k-b;return A*A+j*j>H*H+T*T&&(E=O,_=k),{cx:E,cy:_,x01:-u,y01:-d,x11:E*(i/w-1),y11:_*(i/w-1)}}function GJ(){var e=zJ,t=BJ,n=Pt(0),r=null,i=WJ,o=ZJ,a=UJ,s=null,l=Z5(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),m=i.apply(this,arguments)-ud,g=o.apply(this,arguments)-ud,v=G7(g-m),b=g>m;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>ir))s.moveTo(0,0);else if(v>E1-ir)s.moveTo(h*Xo(m),h*hi(m)),s.arc(0,0,h,m,g,!b),f>ir&&(s.moveTo(f*Xo(g),f*hi(g)),s.arc(0,0,f,g,m,b));else{var y=m,C=g,$=m,w=g,M=v,R=v,E=a.apply(this,arguments)/2,_=E>ir&&(r?+r.apply(this,arguments):ys(f*f+h*h)),O=f2(G7(h-f)/2,+n.apply(this,arguments)),k=O,A=O,j,H;if(_>ir){var T=Y7(_/f*hi(E)),P=Y7(_/h*hi(E));(M-=T*2)>ir?(T*=b?1:-1,$+=T,w-=T):(M=0,$=w=(m+g)/2),(R-=P*2)>ir?(P*=b?1:-1,y+=P,C-=P):(R=0,y=C=(m+g)/2)}var V=h*Xo(y),I=h*hi(y),L=f*Xo(w),N=f*hi(w);if(O>ir){var z=h*Xo(C),q=h*hi(C),G=f*Xo($),Y=f*hi($),ee;if(v<Gc)if(ee=qJ(V,I,G,Y,z,q,L,N)){var Q=V-ee[0],K=I-ee[1],J=z-ee[0],W=q-ee[1],Z=1/hi(AJ((Q*J+K*W)/(ys(Q*Q+K*K)*ys(J*J+W*W)))/2),U=ys(ee[0]*ee[0]+ee[1]*ee[1]);k=f2(O,(f-U)/(Z-1)),A=f2(O,(h-U)/(Z+1))}else k=A=0}R>ir?A>ir?(j=s1(G,Y,V,I,h,A,b),H=s1(z,q,L,N,h,A,b),s.moveTo(j.cx+j.x01,j.cy+j.y01),A<O?s.arc(j.cx,j.cy,A,tr(j.y01,j.x01),tr(H.y01,H.x01),!b):(s.arc(j.cx,j.cy,A,tr(j.y01,j.x01),tr(j.y11,j.x11),!b),s.arc(0,0,h,tr(j.cy+j.y11,j.cx+j.x11),tr(H.cy+H.y11,H.cx+H.x11),!b),s.arc(H.cx,H.cy,A,tr(H.y11,H.x11),tr(H.y01,H.x01),!b))):(s.moveTo(V,I),s.arc(0,0,h,y,C,!b)):s.moveTo(V,I),!(f>ir)||!(M>ir)?s.lineTo(L,N):k>ir?(j=s1(L,N,z,q,f,-k,b),H=s1(V,I,G,Y,f,-k,b),s.lineTo(j.cx+j.x01,j.cy+j.y01),k<O?s.arc(j.cx,j.cy,k,tr(j.y01,j.x01),tr(H.y01,H.x01),!b):(s.arc(j.cx,j.cy,k,tr(j.y01,j.x01),tr(j.y11,j.x11),!b),s.arc(0,0,f,tr(j.cy+j.y11,j.cx+j.x11),tr(H.cy+H.y11,H.cx+H.x11),b),s.arc(H.cx,H.cy,k,tr(H.y11,H.x11),tr(H.y01,H.x01),!b))):s.arc(0,0,f,w,$,b)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Gc/2;return[Xo(d)*u,hi(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Pt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Pt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Pt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Pt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Pt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Pt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Of(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cS(e){this._context=e}cS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Su(e){return new cS(e)}function uS(e){return e[0]}function dS(e){return e[1]}function Yc(e,t){var n=Pt(!0),r=null,i=Su,o=null,a=Z5(s);e=typeof e=="function"?e:e===void 0?uS:Pt(e),t=typeof t=="function"?t:t===void 0?dS:Pt(t);function s(l){var c,u=(l=Of(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function fS(e,t,n){var r=null,i=Pt(!0),o=null,a=Su,s=null,l=Z5(c);e=typeof e=="function"?e:e===void 0?uS:Pt(+e),t=typeof t=="function"?t:Pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?dS:Pt(+n);function c(d){var f,h,m,g=(d=Of(d)).length,v,b=!1,y,C=new Array(g),$=new Array(g);for(o==null&&(s=a(y=l())),f=0;f<=g;++f){if(!(f<g&&i(v=d[f],f,d))===b)if(b=!b)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=h;--m)s.point(C[m],$[m]);s.lineEnd(),s.areaEnd()}b&&(C[f]=+e(v,f,d),$[f]=+t(v,f,d),s.point(r?+r(v,f,d):C[f],n?+n(v,f,d):$[f]))}if(y)return s=null,y+""||null}function u(){return Yc().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Pt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Pt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function YJ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function KJ(e){return e}function XJ(){var e=KJ,t=YJ,n=null,r=Pt(0),i=Pt(E1),o=Pt(0);function a(s){var l,c=(s=Of(s)).length,u,d,f=0,h=new Array(c),m=new Array(c),g=+r.apply(this,arguments),v=Math.min(E1,Math.max(-E1,i.apply(this,arguments)-g)),b,y=Math.min(Math.abs(v)/c,o.apply(this,arguments)),C=y*(v<0?-1:1),$;for(l=0;l<c;++l)($=m[h[l]=l]=+e(s[l],l,s))>0&&(f+=$);for(t!=null?h.sort(function(w,M){return t(m[w],m[M])}):n!=null&&h.sort(function(w,M){return n(s[w],s[M])}),l=0,d=f?(v-c*C)/f:0;l<c;++l,g=b)u=h[l],$=m[u],b=g+($>0?$*d:0)+C,m[u]={data:s[u],index:l,value:$,startAngle:g,endAngle:b,padAngle:y};return m}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:Pt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Pt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Pt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:Pt(+s),a):o},a}function Po(){}function dd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Vf(e){this._context=e}Vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:dd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function U5(e){return new Vf(e)}function hS(e){this._context=e}hS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q5(e){return new hS(e)}function gS(e){this._context=e}gS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:dd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G5(e){return new gS(e)}function vS(e,t){this._basis=new Vf(e),this._beta=t}vS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Y5=function e(t){function n(r){return t===1?new Vf(r):new vS(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function fd(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function K5(e,t){this._context=e,this._k=(1-t)/6}K5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const X5=function e(t){function n(r){return new K5(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Q5(e,t){this._context=e,this._k=(1-t)/6}Q5.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const J5=function e(t){function n(r){return new Q5(r,t)}return n.tension=function(r){return e(+r)},n}(0);function em(e,t){this._context=e,this._k=(1-t)/6}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const tm=function e(t){function n(r){return new em(r,t)}return n.tension=function(r){return e(+r)},n}(0);function nm(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ir){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ir){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function mS(e,t){this._context=e,this._alpha=t}mS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rm=function e(t){function n(r){return t?new mS(r,t):new K5(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pS(e,t){this._context=e,this._alpha=t}pS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const im=function e(t){function n(r){return t?new pS(r,t):new Q5(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function bS(e,t){this._context=e,this._alpha=t}bS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nm(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const om=function e(t){function n(r){return t?new bS(r,t):new em(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yS(e){this._context=e}yS.prototype={areaStart:Po,areaEnd:Po,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function am(e){return new yS(e)}function K7(e){return e<0?-1:1}function X7(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(K7(o)+K7(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Q7(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function h2(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function hd(e){this._context=e}hd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h2(this,this._t0,Q7(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h2(this,Q7(this,n=X7(this,e,t)),n);break;default:h2(this,this._t0,n=X7(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xS(e){this._context=new CS(e)}(xS.prototype=Object.create(hd.prototype)).point=function(e,t){hd.prototype.point.call(this,t,e)};function CS(e){this._context=e}CS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function $u(e){return new hd(e)}function Rf(e){return new xS(e)}function wS(e){this._context=e}wS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=J7(e),i=J7(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function J7(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function sm(e){return new wS(e)}function Tf(e,t){this._context=e,this._t=t}Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function lm(e){return new Tf(e,.5)}function cm(e){return new Tf(e,0)}function um(e){return new Tf(e,1)}function e8(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function t8(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function QJ(e,t){return e[t]}function JJ(e){const t=[];return t.key=e,t}function eee(){var e=Pt([]),t=t8,n=e8,r=QJ;function i(o){var a=Array.from(e.apply(this,arguments),JJ),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Of(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Pt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Pt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?t8:typeof o=="function"?o:Pt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??e8,i):n},i}function tee(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function nee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gd(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ree(e){return e=gd(Math.abs(e)),e?e[1]:NaN}function iee(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function oee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $h(e){if(!(t=aee.exec(e)))throw new Error("invalid format: "+e);var t;return new dm({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$h.prototype=dm.prototype;function dm(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function see(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var SS;function lee(e,t){var n=gd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(SS=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+gd(e,Math.max(0,t+o-1))[0]}function n8(e,t){var n=gd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const r8={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:nee,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n8(e*100,t)},r:n8,s:lee,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function i8(e){return e}var o8=Array.prototype.map,a8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cee(e){var t=e.grouping===void 0||e.thousands===void 0?i8:iee(o8.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?i8:oee(o8.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=$h(d);var f=d.fill,h=d.align,m=d.sign,g=d.symbol,v=d.zero,b=d.width,y=d.comma,C=d.precision,$=d.trim,w=d.type;w==="n"?(y=!0,w="g"):r8[w]||(C===void 0&&(C=12),$=!0,w="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var M=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=g==="$"?r:/[%p]/.test(w)?a:"",E=r8[w],_=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(k){var A=M,j=R,H,T,P;if(w==="c")j=E(k)+j,k="";else{k=+k;var V=k<0||1/k<0;if(k=isNaN(k)?l:E(Math.abs(k),C),$&&(k=see(k)),V&&+k==0&&m!=="+"&&(V=!1),A=(V?m==="("?m:s:m==="-"||m==="("?"":m)+A,j=(w==="s"?a8[8+SS/3]:"")+j+(V&&m==="("?")":""),_){for(H=-1,T=k.length;++H<T;)if(P=k.charCodeAt(H),48>P||P>57){j=(P===46?i+k.slice(H+1):k.slice(H))+j,k=k.slice(0,H);break}}}y&&!v&&(k=t(k,1/0));var I=A.length+k.length+j.length,L=I<b?new Array(b-I+1).join(f):"";switch(y&&v&&(k=t(L+k,L.length?b-j.length:1/0),L=""),h){case"<":k=A+k+j+L;break;case"=":k=A+L+k+j;break;case"^":k=L.slice(0,I=L.length>>1)+A+k+j+L.slice(I);break;default:k=L+A+k+j;break}return o(k)}return O.toString=function(){return d+""},O}function u(d,f){var h=c((d=$h(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ree(f)/3)))*3,g=Math.pow(10,-m),v=a8[8+m/3];return function(b){return h(g*b)+v}}return{format:c,formatPrefix:u}}var l1,Da;uee({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function uee(e){return l1=cee(e),Da=l1.format,l1.formatPrefix,l1}var g2=new Date,v2=new Date;function yo(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return yo(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return g2.setTime(+o),v2.setTime(+a),e(g2),e(v2),Math.floor(n(g2,v2))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}const dee=1e3,fm=dee*60,fee=fm*60,hm=fee*24,$S=hm*7;var gm=yo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fm)/hm,e=>e.getDate()-1);gm.range;function za(e){return yo(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*fm)/$S})}var MS=za(0),vd=za(1),hee=za(2),gee=za(3),Bs=za(4),vee=za(5),mee=za(6);MS.range;vd.range;hee.range;gee.range;Bs.range;vee.range;mee.range;var wa=yo(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});wa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yo(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};wa.range;var vm=yo(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/hm},function(e){return e.getUTCDate()-1});vm.range;function Ba(e){return yo(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/$S})}var _S=Ba(0),md=Ba(1),pee=Ba(2),bee=Ba(3),Ws=Ba(4),yee=Ba(5),xee=Ba(6);_S.range;md.range;pee.range;bee.range;Ws.range;yee.range;xee.range;var Sa=yo(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yo(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Sa.range;function s8(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function ES(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function m2(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function p2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function b2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function zl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Cee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Bl(i),u=Wl(i),d=Bl(o),f=Wl(o),h=Bl(a),m=Wl(a),g=Bl(s),v=Wl(s),b=Bl(l),y=Wl(l),C={a:V,A:I,b:L,B:N,c:null,d:h8,e:h8,f:Wee,g:ete,G:nte,H:Dee,I:zee,j:Bee,L:HS,m:Zee,M:Uee,p:z,q,Q:m8,s:p8,S:qee,u:Gee,U:Yee,V:Kee,w:Xee,W:Qee,x:null,X:null,y:Jee,Y:tte,Z:rte,"%":v8},$={a:G,A:Y,b:ee,B:Q,c:null,d:g8,e:g8,f:ste,g:pte,G:yte,H:ite,I:ote,j:ate,L:VS,m:lte,M:cte,p:K,q:J,Q:m8,s:p8,S:ute,u:dte,U:fte,V:hte,w:gte,W:vte,x:null,X:null,y:mte,Y:bte,Z:xte,"%":v8},w={a:O,A:k,b:A,B:j,c:H,d:d8,e:d8,f:Iee,g:u8,G:c8,H:f8,I:f8,j:kee,L:Lee,m:Tee,M:jee,p:_,q:Ree,Q:Nee,s:Fee,S:Pee,u:_ee,U:Eee,V:Hee,w:Mee,W:Oee,x:T,X:P,y:u8,Y:c8,Z:Vee,"%":Aee};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),$.x=M(n,$),$.X=M(r,$),$.c=M(t,$);function M(W,Z){return function(U){var F=[],re=-1,B=0,ie=W.length,oe,ve,xe;for(U instanceof Date||(U=new Date(+U));++re<ie;)W.charCodeAt(re)===37&&(F.push(W.slice(B,re)),(ve=l8[oe=W.charAt(++re)])!=null?oe=W.charAt(++re):ve=oe==="e"?" ":"0",(xe=Z[oe])&&(oe=xe(U,ve)),F.push(oe),B=re+1);return F.push(W.slice(B,re)),F.join("")}}function R(W,Z){return function(U){var F=zl(1900,void 0,1),re=E(F,W,U+="",0),B,ie;if(re!=U.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(B=b2(zl(F.y,0,1)),ie=B.getUTCDay(),B=ie>4||ie===0?md.ceil(B):md(B),B=vm.offset(B,(F.V-1)*7),F.y=B.getUTCFullYear(),F.m=B.getUTCMonth(),F.d=B.getUTCDate()+(F.w+6)%7):(B=p2(zl(F.y,0,1)),ie=B.getDay(),B=ie>4||ie===0?vd.ceil(B):vd(B),B=gm.offset(B,(F.V-1)*7),F.y=B.getFullYear(),F.m=B.getMonth(),F.d=B.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),ie="Z"in F?b2(zl(F.y,0,1)).getUTCDay():p2(zl(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(ie+5)%7:F.w+F.U*7-(ie+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,b2(F)):p2(F)}}function E(W,Z,U,F){for(var re=0,B=Z.length,ie=U.length,oe,ve;re<B;){if(F>=ie)return-1;if(oe=Z.charCodeAt(re++),oe===37){if(oe=Z.charAt(re++),ve=w[oe in l8?Z.charAt(re++):oe],!ve||(F=ve(W,U,F))<0)return-1}else if(oe!=U.charCodeAt(F++))return-1}return F}function _(W,Z,U){var F=c.exec(Z.slice(U));return F?(W.p=u.get(F[0].toLowerCase()),U+F[0].length):-1}function O(W,Z,U){var F=h.exec(Z.slice(U));return F?(W.w=m.get(F[0].toLowerCase()),U+F[0].length):-1}function k(W,Z,U){var F=d.exec(Z.slice(U));return F?(W.w=f.get(F[0].toLowerCase()),U+F[0].length):-1}function A(W,Z,U){var F=b.exec(Z.slice(U));return F?(W.m=y.get(F[0].toLowerCase()),U+F[0].length):-1}function j(W,Z,U){var F=g.exec(Z.slice(U));return F?(W.m=v.get(F[0].toLowerCase()),U+F[0].length):-1}function H(W,Z,U){return E(W,t,Z,U)}function T(W,Z,U){return E(W,n,Z,U)}function P(W,Z,U){return E(W,r,Z,U)}function V(W){return a[W.getDay()]}function I(W){return o[W.getDay()]}function L(W){return l[W.getMonth()]}function N(W){return s[W.getMonth()]}function z(W){return i[+(W.getHours()>=12)]}function q(W){return 1+~~(W.getMonth()/3)}function G(W){return a[W.getUTCDay()]}function Y(W){return o[W.getUTCDay()]}function ee(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function J(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Z=M(W+="",C);return Z.toString=function(){return W},Z},parse:function(W){var Z=R(W+="",!1);return Z.toString=function(){return W},Z},utcFormat:function(W){var Z=M(W+="",$);return Z.toString=function(){return W},Z},utcParse:function(W){var Z=R(W+="",!0);return Z.toString=function(){return W},Z}}}var l8={"-":"",_:" ",0:"0"},Kn=/^\s*\d+/,wee=/^%/,See=/[\\^$*+?|[\]().{}]/g;function Wt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function $ee(e){return e.replace(See,"\\$&")}function Bl(e){return new RegExp("^(?:"+e.map($ee).join("|")+")","i")}function Wl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Mee(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _ee(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Eee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Oee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function c8(e,t,n){var r=Kn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function u8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Vee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ree(e,t,n){var r=Kn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Tee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function d8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kee(e,t,n){var r=Kn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function f8(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=Kn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=Kn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Iee(e,t,n){var r=Kn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Aee(e,t,n){var r=wee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nee(e,t,n){var r=Kn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Fee(e,t,n){var r=Kn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function h8(e,t){return Wt(e.getDate(),t,2)}function Dee(e,t){return Wt(e.getHours(),t,2)}function zee(e,t){return Wt(e.getHours()%12||12,t,2)}function Bee(e,t){return Wt(1+gm.count(wa(e),e),t,3)}function HS(e,t){return Wt(e.getMilliseconds(),t,3)}function Wee(e,t){return HS(e,t)+"000"}function Zee(e,t){return Wt(e.getMonth()+1,t,2)}function Uee(e,t){return Wt(e.getMinutes(),t,2)}function qee(e,t){return Wt(e.getSeconds(),t,2)}function Gee(e){var t=e.getDay();return t===0?7:t}function Yee(e,t){return Wt(MS.count(wa(e)-1,e),t,2)}function OS(e){var t=e.getDay();return t>=4||t===0?Bs(e):Bs.ceil(e)}function Kee(e,t){return e=OS(e),Wt(Bs.count(wa(e),e)+(wa(e).getDay()===4),t,2)}function Xee(e){return e.getDay()}function Qee(e,t){return Wt(vd.count(wa(e)-1,e),t,2)}function Jee(e,t){return Wt(e.getFullYear()%100,t,2)}function ete(e,t){return e=OS(e),Wt(e.getFullYear()%100,t,2)}function tte(e,t){return Wt(e.getFullYear()%1e4,t,4)}function nte(e,t){var n=e.getDay();return e=n>=4||n===0?Bs(e):Bs.ceil(e),Wt(e.getFullYear()%1e4,t,4)}function rte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Wt(t/60|0,"0",2)+Wt(t%60,"0",2)}function g8(e,t){return Wt(e.getUTCDate(),t,2)}function ite(e,t){return Wt(e.getUTCHours(),t,2)}function ote(e,t){return Wt(e.getUTCHours()%12||12,t,2)}function ate(e,t){return Wt(1+vm.count(Sa(e),e),t,3)}function VS(e,t){return Wt(e.getUTCMilliseconds(),t,3)}function ste(e,t){return VS(e,t)+"000"}function lte(e,t){return Wt(e.getUTCMonth()+1,t,2)}function cte(e,t){return Wt(e.getUTCMinutes(),t,2)}function ute(e,t){return Wt(e.getUTCSeconds(),t,2)}function dte(e){var t=e.getUTCDay();return t===0?7:t}function fte(e,t){return Wt(_S.count(Sa(e)-1,e),t,2)}function RS(e){var t=e.getUTCDay();return t>=4||t===0?Ws(e):Ws.ceil(e)}function hte(e,t){return e=RS(e),Wt(Ws.count(Sa(e),e)+(Sa(e).getUTCDay()===4),t,2)}function gte(e){return e.getUTCDay()}function vte(e,t){return Wt(md.count(Sa(e)-1,e),t,2)}function mte(e,t){return Wt(e.getUTCFullYear()%100,t,2)}function pte(e,t){return e=RS(e),Wt(e.getUTCFullYear()%100,t,2)}function bte(e,t){return Wt(e.getUTCFullYear()%1e4,t,4)}function yte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ws(e):Ws.ceil(e),Wt(e.getUTCFullYear()%1e4,t,4)}function xte(){return"+0000"}function v8(){return"%"}function m8(e){return+e}function p8(e){return Math.floor(+e/1e3)}var cs,Wa,mm,pm;Cte({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Cte(e){return cs=Cee(e),Wa=cs.format,mm=cs.parse,cs.utcFormat,pm=cs.utcParse,cs}var wte=xu,Ste=jw,$te=cl;function Mte(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wte(e,a);n(s,a)&&Ste(o,$te(a,e),s)}return o}var _te=Mte;function Ete(e,t){return e!=null&&t in Object(e)}var Hte=Ete,Ote=cl,Vte=ff,Rte=Cr,Tte=vf,kte=kv,jte=ul;function Pte(e,t,n){t=Ote(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=jte(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&kte(i)&&Tte(a,i)&&(Rte(e)||Vte(e)))}var Lte=Pte,Ite=Hte,Ate=Lte;function Nte(e,t){return e!=null&&Ate(e,t,Ite)}var TS=Nte,Fte=_te,Dte=TS;function zte(e,t){return Fte(e,t,function(n,r){return Dte(e,r)})}var Bte=zte;function Wte(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var bm=Wte,b8=Js,Zte=ff,Ute=Cr,y8=b8?b8.isConcatSpreadable:void 0;function qte(e){return Ute(e)||Zte(e)||!!(y8&&e&&e[y8])}var Gte=qte,Yte=bm,Kte=Gte;function kS(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Kte),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?kS(s,t-1,n,r,i):Yte(i,s):r||(i[i.length]=s)}return i}var jS=kS,Xte=jS;function Qte(e){var t=e==null?0:e.length;return t?Xte(e,1):[]}var Jte=Qte,ene=Jte,tne=Hw,nne=Ow;function rne(e){return nne(tne(e,void 0,ene),e+"")}var PS=rne,ine=Bte,one=PS,ane=one(function(e,t){return e==null?{}:ine(e,t)}),sne=ane;const LS=Cn(sne);function lne(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var cne=lne,une=uv,dne=cne,fne=dv,hne=1,gne=2;function vne(e,t,n,r,i,o){var a=n&hne,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&gne?new une:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=a?r(g,m,d,t,e,o):r(m,g,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!dne(t,function(b,y){if(!fne(h,y)&&(m===b||i(m,b,n,r,o)))return h.push(y)})){f=!1;break}}else if(!(m===g||i(m,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var IS=vne;function mne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var pne=mne,x8=Js,C8=pw,bne=hu,yne=IS,xne=pne,Cne=fv,wne=1,Sne=2,$ne="[object Boolean]",Mne="[object Date]",_ne="[object Error]",Ene="[object Map]",Hne="[object Number]",One="[object RegExp]",Vne="[object Set]",Rne="[object String]",Tne="[object Symbol]",kne="[object ArrayBuffer]",jne="[object DataView]",w8=x8?x8.prototype:void 0,y2=w8?w8.valueOf:void 0;function Pne(e,t,n,r,i,o,a){switch(n){case jne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kne:return!(e.byteLength!=t.byteLength||!o(new C8(e),new C8(t)));case $ne:case Mne:case Hne:return bne(+e,+t);case _ne:return e.name==t.name&&e.message==t.message;case One:case Rne:return e==t+"";case Ene:var s=xne;case Vne:var l=r&wne;if(s||(s=Cne),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Sne,a.set(e,t);var u=yne(s(e),s(t),r,i,o,a);return a.delete(e),u;case Tne:if(y2)return y2.call(e)==y2.call(t)}return!1}var Lne=Pne,Ine=bm,Ane=Cr;function Nne(e,t,n){var r=t(e);return Ane(e)?r:Ine(r,n(e))}var AS=Nne;function Fne(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var NS=Fne;function Dne(){return[]}var FS=Dne,zne=NS,Bne=FS,Wne=Object.prototype,Zne=Wne.propertyIsEnumerable,S8=Object.getOwnPropertySymbols,Une=S8?function(e){return e==null?[]:(e=Object(e),zne(S8(e),function(t){return Zne.call(e,t)}))}:Bne,ym=Une,qne=xw,Gne=qne(Object.keys,Object),Yne=Gne,Kne=Tv,Xne=Yne,Qne=Object.prototype,Jne=Qne.hasOwnProperty;function ere(e){if(!Kne(e))return Xne(e);var t=[];for(var n in Object(e))Jne.call(e,n)&&n!="constructor"&&t.push(n);return t}var tre=ere,nre=_w,rre=tre,ire=al;function ore(e){return ire(e)?nre(e):rre(e)}var Mu=ore,are=AS,sre=ym,lre=Mu;function cre(e){return are(e,lre,sre)}var DS=cre,$8=DS,ure=1,dre=Object.prototype,fre=dre.hasOwnProperty;function hre(e,t,n,r,i,o){var a=n&ure,s=$8(e),l=s.length,c=$8(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:fre.call(t,f)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=a?r(y,b,f,t,e,o):r(b,y,f,e,t,o);if(!(C===void 0?b===y||i(b,y,n,r,o):C)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var $=e.constructor,w=t.constructor;$!=w&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof w=="function"&&w instanceof w)&&(g=!1)}return o.delete(e),o.delete(t),g}var gre=hre,vre=Ia,mre=$i,pre=vre(mre,"DataView"),bre=pre,yre=Ia,xre=$i,Cre=yre(xre,"Promise"),wre=Cre,Sre=Ia,$re=$i,Mre=Sre($re,"WeakMap"),_re=Mre,Mh=bre,_h=lv,Eh=wre,Hh=$C,Oh=_re,zS=po,wl=CC,M8="[object Map]",Ere="[object Object]",_8="[object Promise]",E8="[object Set]",H8="[object WeakMap]",O8="[object DataView]",Hre=wl(Mh),Ore=wl(_h),Vre=wl(Eh),Rre=wl(Hh),Tre=wl(Oh),ta=zS;(Mh&&ta(new Mh(new ArrayBuffer(1)))!=O8||_h&&ta(new _h)!=M8||Eh&&ta(Eh.resolve())!=_8||Hh&&ta(new Hh)!=E8||Oh&&ta(new Oh)!=H8)&&(ta=function(e){var t=zS(e),n=t==Ere?e.constructor:void 0,r=n?wl(n):"";if(r)switch(r){case Hre:return O8;case Ore:return M8;case Vre:return _8;case Rre:return E8;case Tre:return H8}return t});var kf=ta,x2=df,kre=IS,jre=Lne,Pre=gre,V8=kf,R8=Cr,T8=hf,Lre=Pv,Ire=1,k8="[object Arguments]",j8="[object Array]",c1="[object Object]",Are=Object.prototype,P8=Are.hasOwnProperty;function Nre(e,t,n,r,i,o){var a=R8(e),s=R8(t),l=a?j8:V8(e),c=s?j8:V8(t);l=l==k8?c1:l,c=c==k8?c1:c;var u=l==c1,d=c==c1,f=l==c;if(f&&T8(e)){if(!T8(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new x2),a||Lre(e)?kre(e,t,n,r,i,o):jre(e,t,l,n,r,i,o);if(!(n&Ire)){var h=u&&P8.call(e,"__wrapped__"),m=d&&P8.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return o||(o=new x2),i(g,v,n,r,o)}}return f?(o||(o=new x2),Pre(e,t,n,r,i,o)):!1}var Fre=Nre,Dre=Fre,L8=Gr;function BS(e,t,n,r,i){return e===t?!0:e==null||t==null||!L8(e)&&!L8(t)?e!==e&&t!==t:Dre(e,t,n,r,BS,i)}var xm=BS,zre=xm;function Bre(e,t){return zre(e,t)}var Wre=Bre;const WS=Cn(Wre);var Zre={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",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}}};function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}function Vh(e,t){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vh(e,t)}function jf(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ure=["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"],qre=function(e,t){return Fr({},t,e)},Gre=function(e,t){var n=Av({},e,t);return Ure.forEach(function(r){ni(n,r,qre(yn(n,r),n.text))}),n},ZS=S.createContext(),US=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=S.useMemo(function(){var s=Sf(o)?Aa[o]:o;return{animate:r,config:s}},[r,o]);return p.jsx(ZS.Provider,{value:a,children:t})},I8={animate:D.bool,motionConfig:D.oneOfType([D.oneOf(Object.keys(Aa)),D.shape({mass:D.number,tension:D.number,friction:D.number,clamp:D.bool,precision:D.number,velocity:D.number,duration:D.number,easing:D.func})])};US.propTypes={children:D.node.isRequired,animate:I8.animate,config:I8.motionConfig};var Fn=function(){return S.useContext(ZS)},Pf=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var l=S.useRef();return S.useEffect(function(){l.current=s},[s]),l.current}(e),o=S.useMemo(function(){return wf(i,e)},[i,e]),a=Qt({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Vn(a,o)},Yre={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ue(_i),PRGn:ue(Ei),PiYG:ue(Hi),PuOr:ue(Oi),RdBu:ue(Vi),RdGy:ue(Ri),RdYlBu:ue(Ti),RdYlGn:ue(ki),spectral:ue(ji),blues:ue(qi),greens:ue(Gi),greys:ue(Yi),oranges:ue(Qi),purples:ue(Ki),reds:ue(Xi),BuGn:ue(Pi),BuPu:ue(Li),GnBu:ue(Ii),OrRd:ue(Ai),PuBuGn:ue(Ni),PuBu:ue(Fi),PuRd:ue(Di),RdPu:ue(zi),YlGnBu:ue(Bi),YlGn:ue(Wi),YlOrBr:ue(Zi),YlOrRd:ue(Ui)},Kre=Object.keys(Yre);ue(_i),ue(Ei),ue(Hi),ue(Oi),ue(Vi),ue(Ri),ue(Ti),ue(ki),ue(ji),ue(qi),ue(Gi),ue(Yi),ue(Qi),ue(Ki),ue(Xi),ue(Pi),ue(Li),ue(Ii),ue(Ai),ue(Ni),ue(Fi),ue(Di),ue(zi),ue(Bi),ue(Wi),ue(Zi),ue(Ui);D.oneOfType([D.oneOf(Kre),D.func,D.arrayOf(D.string)]);var Rh={basis:U5,basisClosed:q5,basisOpen:G5,bundle:Y5,cardinal:X5,cardinalClosed:J5,cardinalOpen:tm,catmullRom:rm,catmullRomClosed:im,catmullRomOpen:om,linear:Su,linearClosed:am,monotoneX:$u,monotoneY:Rf,natural:sm,step:lm,stepAfter:um,stepBefore:cm},Cm=Object.keys(Rh);Cm.filter(function(e){return e.endsWith("Closed")});Cl(Cm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Cl(Cm,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var qS=function(e){if(!Rh[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Rh[e]};D.shape({top:D.number,right:D.number,bottom:D.number,left:D.number}).isRequired;var Xre=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];D.oneOf(Xre);_r(bo);var GS={top:0,right:0,bottom:0,left:0},Za=function(e,t,n){return n===void 0&&(n={}),S.useMemo(function(){var r=Fr({},GS,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},YS=function(){var e=S.useRef(null),t=S.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=S.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return S.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Qre=function(e){return S.useMemo(function(){return Gre(Zre,e)},[e])},Jre=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Wa(e.slice("5")):Da(e):function(t){return""+t}},Lo=function(e){return S.useMemo(function(){return Jre(e)},[e])},KS=S.createContext(),eie={},XS=function(e){var t=e.theme,n=t===void 0?eie:t,r=e.children,i=Qre(n);return p.jsx(KS.Provider,{value:i,children:r})};XS.propTypes={children:D.node.isRequired,theme:D.object};var Zt=function(){return S.useContext(KS)},tie=["outlineWidth","outlineColor","outlineOpacity"],wm=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,jf(e,tie)},QS=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?S.cloneElement(r,{},t):t};QS.propTypes={children:D.node.isRequired,condition:D.bool.isRequired,wrapper:D.element.isRequired};var nie={position:"relative"},Ua=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=S.useRef(null);return p.jsx(XS,{theme:n,children:p.jsx(US,{animate:s,config:l,children:p.jsx(QZ,{container:c,children:p.jsxs(QS,{condition:i,wrapper:p.jsx("div",{style:nie,ref:c}),children:[t,a&&p.jsx(XZ,{})]})})})})};Ua.propTypes={children:D.element.isRequired,isInteractive:D.bool,renderWrapper:D.bool,theme:D.object,animate:D.bool,motionConfig:D.string};D.func.isRequired,D.bool,D.bool,D.object.isRequired,D.bool.isRequired,D.string;var Go=function(e){var t=e.children,n=YS(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return p.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};Go.propTypes={children:D.func.isRequired};var rie=["id","colors"],JS=function(e){var t=e.id,n=e.colors,r=jf(e,rie);return p.jsx("linearGradient",Fr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return p.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};JS.propTypes={id:D.string.isRequired,colors:D.arrayOf(D.shape({offset:D.number.isRequired,color:D.string.isRequired,opacity:D.number})).isRequired,gradientTransform:D.string};var e$={linearGradient:JS},Zl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Th=S.memo(function(e){var t=e.id,n=e.background,r=n===void 0?Zl.background:n,i=e.color,o=i===void 0?Zl.color:i,a=e.size,s=a===void 0?Zl.size:a,l=e.padding,c=l===void 0?Zl.padding:l,u=e.stagger,d=u===void 0?Zl.stagger:u,f=s+c,h=s/2,m=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:r}),p.jsx("circle",{cx:m+h,cy:m+h,r:h,fill:o}),d&&p.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})});Th.displayName="PatternDots",Th.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var Dr=function(e){return e*Math.PI/180},Lf=function(e){return 180*e/Math.PI},iie=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},ma=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},oie=function(e){var t=e%360;return t<0&&(t+=360),t},aie={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"}}},Ul={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},kh=S.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Ul.spacing:n,i=e.rotation,o=i===void 0?Ul.rotation:i,a=e.background,s=a===void 0?Ul.background:a,l=e.color,c=l===void 0?Ul.color:l,u=e.lineWidth,d=u===void 0?Ul.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=h,v=h;return f===0?m=`
|
|
464
464
|
M 0 0 L `+g+` 0
|
|
465
465
|
M 0 `+v+" L "+g+" "+v+`
|
|
466
466
|
`:f===90?m=`
|
|
@@ -474,7 +474,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var F=U(K,Z,Y,ee,Q+"."+Z
|
|
|
474
474
|
M `+-g+" "+v+" L "+g+" "+-v+`
|
|
475
475
|
M `+-g+" "+2*v+" L "+2*g+" "+-v+`
|
|
476
476
|
M 0 `+2*v+" L "+2*g+` 0
|
|
477
|
-
`),p.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),p.jsx("path",{d:m,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})});kh.displayName="PatternLines",kh.propTypes={id:D.string.isRequired,spacing:D.number.isRequired,rotation:D.number.isRequired,background:D.string.isRequired,color:D.string.isRequired,lineWidth:D.number.isRequired};var ql={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},jh=S.memo(function(e){var t=e.id,n=e.color,r=n===void 0?ql.color:n,i=e.background,o=i===void 0?ql.background:i,a=e.size,s=a===void 0?ql.size:a,l=e.padding,c=l===void 0?ql.padding:l,u=e.stagger,d=u===void 0?ql.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:o}),p.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&p.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})});jh.displayName="PatternSquares",jh.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var t$={patternDots:Th,patternLines:kh,patternSquares:jh},sie=["type"],Ph=Fr({},e$,t$),n$=function(e){var t=e.defs;return!t||t.length<1?null:p.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=jf(n,sie);return Ph[r]?S.createElement(Ph[r],Fr({key:i.id},i)):null})})};n$.propTypes={defs:D.arrayOf(D.shape({type:D.oneOf(Object.keys(Ph)).isRequired,id:D.string.isRequired}))};var lie=S.memo(n$),Sl=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,u=e.isFocusable,d=
|
|
477
|
+
`),p.jsxs("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:g,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),p.jsx("path",{d:m,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})});kh.displayName="PatternLines",kh.propTypes={id:D.string.isRequired,spacing:D.number.isRequired,rotation:D.number.isRequired,background:D.string.isRequired,color:D.string.isRequired,lineWidth:D.number.isRequired};var ql={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},jh=S.memo(function(e){var t=e.id,n=e.color,r=n===void 0?ql.color:n,i=e.background,o=i===void 0?ql.background:i,a=e.size,s=a===void 0?ql.size:a,l=e.padding,c=l===void 0?ql.padding:l,u=e.stagger,d=u===void 0?ql.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:o}),p.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&p.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})});jh.displayName="PatternSquares",jh.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var t$={patternDots:Th,patternLines:kh,patternSquares:jh},sie=["type"],Ph=Fr({},e$,t$),n$=function(e){var t=e.defs;return!t||t.length<1?null:p.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=jf(n,sie);return Ph[r]?S.createElement(Ph[r],Fr({key:i.id},i)):null})})};n$.propTypes={defs:D.arrayOf(D.shape({type:D.oneOf(Object.keys(Ph)).isRequired,id:D.string.isRequired}))};var lie=S.memo(n$),Sl=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,u=e.isFocusable,d=Zt();return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,focusable:u,tabIndex:u?0:void 0,children:[p.jsx(lie,{defs:i}),p.jsx("rect",{width:t,height:n,fill:d.background}),p.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:o})]})};Sl.propTypes={width:D.number.isRequired,height:D.number.isRequired,margin:D.shape({top:D.number.isRequired,left:D.number.isRequired}).isRequired,defs:D.array,children:D.oneOfType([D.arrayOf(D.node),D.node]).isRequired,role:D.string,isFocusable:D.bool,ariaLabel:D.string,ariaLabelledBy:D.string,ariaDescribedBy:D.string};var r$=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return p.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};r$.propTypes={size:D.number.isRequired,color:D.string.isRequired,borderWidth:D.number.isRequired,borderColor:D.string.isRequired};var cie=S.memo(r$),i$=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?cie:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,m=h===void 0?-12:h,g=Zt(),v=Fn(),b=v.animate,y=v.config,C=Qt({transform:"translate("+t+", "+n+")",config:y,immediate:!b});return p.jsxs(et.g,{transform:C.transform,style:{pointerEvents:"none"},children:[S.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&p.jsx("text",{textAnchor:f,y:m,style:wm(g.dots.text),children:u})]})};i$.propTypes={x:D.number.isRequired,y:D.number.isRequired,datum:D.object.isRequired,size:D.number.isRequired,color:D.string.isRequired,borderWidth:D.number.isRequired,borderColor:D.string.isRequired,symbol:D.oneOfType([D.func,D.object]),label:D.oneOfType([D.string,D.number]),labelTextAnchor:D.oneOf(["start","middle","end"]),labelYOffset:D.number};var uie=S.memo(i$),o$=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendPosition,u=c===void 0?"top-right":c,d=e.legendOffsetX,f=d===void 0?14:d,h=e.legendOffsetY,m=h===void 0?14:h,g=e.legendOrientation,v=g===void 0?"horizontal":g,b=Zt(),y=0,C=0,$=0,w=0;r==="y"?($=i(o),C=t):(y=i(o),w=n);var M=null;if(l){var R=function(E){var _=E.axis,O=E.width,k=E.height,A=E.position,j=E.offsetX,H=E.offsetY,T=E.orientation,P=0,V=0,I=T==="vertical"?-90:0,L="start";if(_==="x")switch(A){case"top-left":P=-j,V=H,L="end";break;case"top":V=-H,L=T==="horizontal"?"middle":"start";break;case"top-right":P=j,V=H,L=T==="horizontal"?"start":"end";break;case"right":P=j,V=k/2,L=T==="horizontal"?"start":"middle";break;case"bottom-right":P=j,V=k-H,L="start";break;case"bottom":V=k+H,L=T==="horizontal"?"middle":"end";break;case"bottom-left":V=k-H,P=-j,L=T==="horizontal"?"end":"start";break;case"left":P=-j,V=k/2,L=T==="horizontal"?"end":"middle"}else switch(A){case"top-left":P=j,V=-H,L="start";break;case"top":P=O/2,V=-H,L=T==="horizontal"?"middle":"start";break;case"top-right":P=O-j,V=-H,L=T==="horizontal"?"end":"start";break;case"right":P=O+j,L=T==="horizontal"?"start":"middle";break;case"bottom-right":P=O-j,V=H,L="end";break;case"bottom":P=O/2,V=H,L=T==="horizontal"?"middle":"end";break;case"bottom-left":P=j,V=H,L=T==="horizontal"?"start":"end";break;case"left":P=-j,L=T==="horizontal"?"end":"middle"}return{x:P,y:V,rotation:I,textAnchor:L}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:m,orientation:v});M=p.jsx("text",{transform:"translate("+R.x+", "+R.y+") rotate("+R.rotation+")",textAnchor:R.textAnchor,dominantBaseline:"central",style:s,children:l})}return p.jsxs("g",{transform:"translate("+y+", "+$+")",children:[p.jsx("line",{x1:0,x2:C,y1:0,y2:w,stroke:b.markers.lineColor,strokeWidth:b.markers.lineStrokeWidth,style:a}),M]})};o$.propTypes={width:D.number.isRequired,height:D.number.isRequired,axis:D.oneOf(["x","y"]).isRequired,scale:D.func.isRequired,value:D.oneOfType([D.number,D.string,D.instanceOf(Date)]).isRequired,lineStyle:D.object,textStyle:D.object,legend:D.string,legendPosition:D.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:D.number.isRequired,legendOffsetY:D.number.isRequired,legendOrientation:D.oneOf(["horizontal","vertical"]).isRequired};var die=S.memo(o$),a$=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return p.jsx(die,Fr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null};a$.propTypes={width:D.number.isRequired,height:D.number.isRequired,xScale:D.func.isRequired,yScale:D.func.isRequired,markers:D.arrayOf(D.shape({axis:D.oneOf(["x","y"]).isRequired,value:D.oneOfType([D.number,D.string,D.instanceOf(Date)]).isRequired,lineStyle:D.object,textStyle:D.object}))};var s$=S.memo(a$),fie=["theme","renderWrapper","animate","motionConfig"],l$=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Vh(n,r),i.prototype.render=function(){var o=this.props,a=o.theme,s=o.renderWrapper,l=o.animate,c=o.motionConfig,u=jf(o,fie);return p.jsx(Ua,{theme:a,renderWrapper:s,isInteractive:u.isInteractive,animate:l,motionConfig:c,children:p.jsx(e,Fr({},u))})},i}(S.Component)},hie=function(e,t){var n=el(e)?e:function(r){return yn(r,e)};return n},gie=function(e){return el(e)?e:function(t){return yn(t,e)}},bi=function(e){return S.useMemo(function(){return gie(e)},[e])},vie=function(e,t,n,r){var i=n-e,o=r-t;return i*=i,o*=o,Math.sqrt(i+o)},c$=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},Sm=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},mie=Object.keys(e$),pie=Object.keys(t$),bie=function(e,t,n){if(e==="*")return!0;if(el(e))return e(t);if(Zo(e)){var r=n?yn(t,n):t;return WS(LS(r,Object.keys(e)),e)}return!1},$m=function(e,t,n,r){var i={},o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,l=i.targetKey,c=l===void 0?"fill":l,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h=function(){var g=n[m],v=g.id,b=g.match;if(bie(b,f,o)){var y=e.find(function(O){return O.id===v});if(y){if(pie.includes(y.type))if(y.background==="inherit"||y.color==="inherit"){var C=yn(f,s),$=y.background,w=y.color,M=v;y.background==="inherit"&&(M=M+".bg."+C,$=C),y.color==="inherit"&&(M=M+".fg."+C,w=C),ni(f,c,"url(#"+M+")"),d[M]||(u.push(Fr({},y,{id:M,background:$,color:w})),d[M]=1)}else ni(f,c,"url(#"+v+")");else if(mie.includes(y.type))if(y.colors.map(function(O){return O.color}).includes("inherit")){var R=yn(f,s),E=v,_=Fr({},y,{colors:y.colors.map(function(O,k){return O.color!=="inherit"?O:(E=E+"."+k+"."+R,Fr({},O,{color:O.color==="inherit"?R:O.color}))})});_.id=E,ni(f,c,"url(#"+E+")"),d[E]||(u.push(_),d[E]=1)}else ni(f,c,"url(#"+v+")")}return"break"}},m=0;m<n.length&&h()!=="break";m++);})),u};function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pd.apply(this,arguments)}function A8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yie(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return A8(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?A8(i,o):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
478
478
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u$={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:hl,accent:gl,dark2:vl,paired:ml,pastel1:pl,pastel2:bl,set1:yl,set2:xl,set3:bo,tableau10:a5},xie=Object.keys(u$),d$={brown_blueGreen:_i,purpleRed_green:Ei,pink_yellowGreen:Hi,purple_orange:Oi,red_blue:Vi,red_grey:Ri,red_yellow_blue:Ti,red_yellow_green:ki,spectral:ji},Cie=Object.keys(d$),wie={brown_blueGreen:s5,purpleRed_green:l5,pink_yellowGreen:c5,purple_orange:u5,red_blue:d5,red_grey:f5,red_yellow_blue:h5,red_yellow_green:g5,spectral:v5},f$={blues:qi,greens:Gi,greys:Yi,oranges:Qi,purples:Ki,reds:Xi,blue_green:Pi,blue_purple:Li,green_blue:Ii,orange_red:Ai,purple_blue_green:Ni,purple_blue:Fi,purple_red:Di,red_purple:zi,yellow_green_blue:Bi,yellow_green:Wi,yellow_orange_brown:Zi,yellow_orange_red:Ui},Sie=Object.keys(f$),$ie={blues:H5,greens:O5,greys:V5,oranges:k5,purples:R5,reds:T5,turbo:F5,viridis:D5,inferno:B5,magma:z5,plasma:W5,cividis:j5,warm:L5,cool:I5,cubehelixDefault:P5,blue_green:m5,blue_purple:p5,green_blue:b5,orange_red:y5,purple_blue_green:x5,purple_blue:C5,purple_red:w5,red_purple:S5,yellow_green_blue:$5,yellow_green:M5,yellow_orange_brown:_5,yellow_orange_red:E5},C2=pd({},u$,d$,f$),Mie=function(e){return xie.includes(e)},_ie=function(e){return Cie.includes(e)},Eie=function(e){return Sie.includes(e)},Hie={rainbow:A5,sinebow:N5};pd({},wie,$ie,Hie);var Oie=function(e,t){if(typeof e=="function")return e;if(Zo(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=yn(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return yn(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push(function(d){return d.brighter(u)});else if(c==="darker")o.push(function(d){return d.darker(u)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=yie(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(c,u){return u(c)},jo(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},Hr=function(e,t){return S.useMemo(function(){return Oie(e,t)},[e,t])};D.oneOfType([D.string,D.func,D.shape({theme:D.string.isRequired}),D.shape({from:D.string.isRequired,modifiers:D.arrayOf(D.array)})]);var Vie=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return yn(d,t)};if(Array.isArray(e)){var r=_r(e),i=function(d){return r(n(d))};return i.scale=r,i}if(Zo(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return yn(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Mie(e.scheme)){var o=_r(C2[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(_ie(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=_r(C2[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Eie(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=_r(C2[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},_u=function(e,t){return S.useMemo(function(){return Vie(e,t)},[e,t])},Rie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return p.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},Tie=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return p.jsx("g",{transform:"translate("+t+","+n+")",children:p.jsx("path",{d:`
|
|
479
479
|
M`+r/2+` 0
|
|
480
480
|
L`+.8*r+" "+r/2+`
|
|
@@ -486,7 +486,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
486
486
|
L`+r+" "+r+`
|
|
487
487
|
L0 `+r+`
|
|
488
488
|
L`+r/2+` 0
|
|
489
|
-
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}var Pie={top:0,right:0,bottom:0,left:0},Mm=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:ua({},Pie,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},h$=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},g$=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Lie={circle:Rie,diamond:Tie,square:kie,triangle:jie},Iie=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,m=e.width,g=e.height,v=e.data,b=e.direction,y=b===void 0?"left-to-right":b,C=e.justify,$=C!==void 0&&C,w=e.textColor,M=e.background,R=M===void 0?"transparent":M,E=e.opacity,_=E===void 0?1:E,O=e.symbolShape,k=O===void 0?"square":O,A=e.symbolSize,j=A===void 0?16:A,H=e.symbolSpacing,T=H===void 0?8:H,P=e.symbolBorderWidth,V=P===void 0?0:P,I=e.symbolBorderColor,L=I===void 0?"transparent":I,N=e.onClick,z=e.onMouseEnter,q=e.onMouseLeave,G=e.toggleSerie,Y=e.effects,ee=S.useState({}),Q=ee[0],K=ee[1],J=Wt(),W=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on==="hover"}).reduce(function(me,ge){return ua({},me,ge.style)},{});K(Se)}z==null||z(v,ye)},[z,v,Y]),Z=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on!=="hover"}).reduce(function(me,ge){return ua({},me,ge.style)},{});K(Se)}q==null||q(v,ye)},[q,v,Y]),U=g$({direction:y,justify:$,symbolSize:(t=Q.symbolSize)!=null?t:j,symbolSpacing:T,width:m,height:g}),F=U.symbolX,re=U.symbolY,B=U.labelX,ie=U.labelY,oe=U.labelAnchor,ve=U.labelAlignment,xe=[N,z,q,G].some(function(ye){return ye!==void 0}),pe=typeof k=="function"?k:Lie[k];return p.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=Q.itemOpacity)!=null?n:_},children:[p.jsx("rect",{width:m,height:g,fill:(r=Q.itemBackground)!=null?r:R,style:{cursor:xe?"pointer":"auto"},onClick:function(ye){N==null||N(v,ye),G==null||G(v.id)},onMouseEnter:W,onMouseLeave:Z}),x.createElement(pe,ua({id:v.id,x:F,y:re,size:(i=Q.symbolSize)!=null?i:j,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:V,borderColor:(l=Q.symbolBorderColor)!=null?l:L},v.hidden?J.legends.hidden.symbol:void 0)),p.jsx("text",{textAnchor:oe,style:ua({},wm(J.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:w)!=null?u:J.legends.text.fill)!=null?c:"black",dominantBaseline:ve,pointerEvents:"none",userSelect:"none"},v.hidden?J.legends.hidden.text:void 0),x:B,y:ie,children:v.label})]})},Aie=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemTextColor,v=e.itemBackground,b=v===void 0?"transparent":v,y=e.itemOpacity,C=y===void 0?1:y,$=e.symbolShape,w=e.symbolSize,M=e.symbolSpacing,R=e.symbolBorderWidth,E=e.symbolBorderColor,_=e.onClick,O=e.onMouseEnter,k=e.onMouseLeave,A=e.toggleSerie,j=Mm({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:m,direction:i,padding:a}).padding,H=i==="row"?c+m:0,T=i==="column"?u+m:0;return p.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(P,V){return p.jsx(Iie,{data:P,x:V*H+j.left,y:V*T+j.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:b,opacity:C,symbolShape:$,symbolSize:w,symbolSpacing:M,symbolBorderWidth:R,symbolBorderColor:E,onClick:_,onMouseEnter:O,onMouseLeave:k,toggleSerie:A},V)})})},If=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemWidth,v=e.itemHeight,b=e.itemDirection,y=e.itemTextColor,C=e.itemBackground,$=e.itemOpacity,w=e.symbolShape,M=e.symbolSize,R=e.symbolSpacing,E=e.symbolBorderWidth,_=e.symbolBorderColor,O=e.onClick,k=e.onMouseEnter,A=e.onMouseLeave,j=e.toggleSerie,H=e.effects,T=Mm({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:v,direction:c,padding:d}),P=T.width,V=T.height,I=h$({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:P,height:V}),L=I.x,N=I.y;return p.jsx(Aie,{data:t,x:L,y:N,direction:c,padding:d,justify:f,effects:H,itemsSpacing:m,itemWidth:g,itemHeight:v,itemDirection:b,itemTextColor:y,itemBackground:C,itemOpacity:$,symbolShape:w,symbolSize:M,symbolSpacing:R,symbolBorderWidth:E,symbolBorderColor:_,onClick:O,onMouseEnter:k,onMouseLeave:A,toggleSerie:typeof j=="boolean"?void 0:j})},Nie={start:"left",middle:"center",end:"right"},v$=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,m=h!==void 0&&h,g=t.itemsSpacing,v=g===void 0?0:g,b=t.itemWidth,y=t.itemHeight,C=t.itemDirection,$=C===void 0?"left-to-right":C,w=t.itemTextColor,M=t.symbolSize,R=M===void 0?16:M,E=t.symbolSpacing,_=E===void 0?8:E,O=t.theme,k=Mm({itemCount:n.length,itemWidth:b,itemHeight:y,itemsSpacing:v,direction:u,padding:f}),A=k.width,j=k.height,H=k.padding,T=h$({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:A,height:j}),P=T.x,V=T.y,I=u==="row"?b+v:0,L=u==="column"?y+v:0;e.save(),e.translate(P,V),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(N,z){var q,G,Y=z*I+H.left,ee=z*L+H.top,Q=g$({direction:$,justify:m,symbolSize:R,symbolSpacing:_,width:b,height:y}),K=Q.symbolX,J=Q.symbolY,W=Q.labelX,Z=Q.labelY,U=Q.labelAnchor,F=Q.labelAlignment;e.fillStyle=(q=N.color)!=null?q:"black",e.fillRect(Y+K,ee+J,R,R),e.textAlign=Nie[U],F==="central"&&(e.textBaseline="middle"),e.fillStyle=(G=w??O.legends.text.fill)!=null?G:"black",e.fillText(String(N.label),Y+W,ee+Z)}),e.restore()};function Fie(e){return e.target.depth}function Die(e){return e.depth}function zie(e,t){return t-1-e.height}function m$(e,t){return e.sourceLinks.length?e.depth:t-1}function Bie(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?ES(e.sourceLinks,Fie)-1:0}function u1(e){return function(){return e}}function N8(e,t){return bd(e.source,t.source)||e.index-t.index}function F8(e,t){return bd(e.target,t.target)||e.index-t.index}function bd(e,t){return e.y0-t.y0}function w2(e){return e.value}function Wie(e){return e.index}function Zie(e){return e.nodes}function Uie(e){return e.links}function D8(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function z8({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function qie(){let e=0,t=0,n=1,r=1,i=24,o=8,a,s=Wie,l=m$,c,u,d=Zie,f=Uie,h=6;function m(){const T={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return g(T),v(T),b(T),y(T),w(T),z8(T),T}m.update=function(T){return z8(T),T},m.nodeId=function(T){return arguments.length?(s=typeof T=="function"?T:u1(T),m):s},m.nodeAlign=function(T){return arguments.length?(l=typeof T=="function"?T:u1(T),m):l},m.nodeSort=function(T){return arguments.length?(c=T,m):c},m.nodeWidth=function(T){return arguments.length?(i=+T,m):i},m.nodePadding=function(T){return arguments.length?(o=a=+T,m):o},m.nodes=function(T){return arguments.length?(d=typeof T=="function"?T:u1(T),m):d},m.links=function(T){return arguments.length?(f=typeof T=="function"?T:u1(T),m):f},m.linkSort=function(T){return arguments.length?(u=T,m):u},m.size=function(T){return arguments.length?(e=t=0,n=+T[0],r=+T[1],m):[n-e,r-t]},m.extent=function(T){return arguments.length?(e=+T[0][0],n=+T[1][0],t=+T[0][1],r=+T[1][1],m):[[e,t],[n,r]]},m.iterations=function(T){return arguments.length?(h=+T,m):h};function g({nodes:T,links:P}){for(const[I,L]of T.entries())L.index=I,L.sourceLinks=[],L.targetLinks=[];const V=new Map(T.map((I,L)=>[s(I,L,T),I]));for(const[I,L]of P.entries()){L.index=I;let{source:N,target:z}=L;typeof N!="object"&&(N=L.source=D8(V,N)),typeof z!="object"&&(z=L.target=D8(V,z)),N.sourceLinks.push(L),z.targetLinks.push(L)}if(u!=null)for(const{sourceLinks:I,targetLinks:L}of T)I.sort(u),L.sort(u)}function v({nodes:T}){for(const P of T)P.value=P.fixedValue===void 0?Math.max(m2(P.sourceLinks,w2),m2(P.targetLinks,w2)):P.fixedValue}function b({nodes:T}){const P=T.length;let V=new Set(T),I=new Set,L=0;for(;V.size;){for(const N of V){N.depth=L;for(const{target:z}of N.sourceLinks)I.add(z)}if(++L>P)throw new Error("circular link");V=I,I=new Set}}function y({nodes:T}){const P=T.length;let V=new Set(T),I=new Set,L=0;for(;V.size;){for(const N of V){N.height=L;for(const{source:z}of N.targetLinks)I.add(z)}if(++L>P)throw new Error("circular link");V=I,I=new Set}}function C({nodes:T}){const P=s8(T,L=>L.depth)+1,V=(n-e-i)/(P-1),I=new Array(P);for(const L of T){const N=Math.max(0,Math.min(P-1,Math.floor(l.call(null,L,P))));L.layer=N,L.x0=e+N*V,L.x1=L.x0+i,I[N]?I[N].push(L):I[N]=[L]}if(c)for(const L of I)L.sort(c);return I}function $(T){const P=ES(T,V=>(r-t-(V.length-1)*a)/m2(V,w2));for(const V of T){let I=t;for(const L of V){L.y0=I,L.y1=I+L.value*P,I=L.y1+a;for(const N of L.sourceLinks)N.width=N.value*P}I=(r-I+a)/(V.length+1);for(let L=0;L<V.length;++L){const N=V[L];N.y0+=I*(L+1),N.y1+=I*(L+1)}A(V)}}function w(T){const P=C(T);a=Math.min(o,(r-t)/(s8(P,V=>V.length)-1)),$(P);for(let V=0;V<h;++V){const I=Math.pow(.99,V),L=Math.max(1-I,(V+1)/h);R(P,I,L),M(P,I,L)}}function M(T,P,V){for(let I=1,L=T.length;I<L;++I){const N=T[I];for(const z of N){let q=0,G=0;for(const{source:ee,value:Q}of z.targetLinks){let K=Q*(z.layer-ee.layer);q+=j(ee,z)*K,G+=K}if(!(G>0))continue;let Y=(q/G-z.y0)*P;z.y0+=Y,z.y1+=Y,k(z)}c===void 0&&N.sort(bd),E(N,V)}}function R(T,P,V){for(let I=T.length,L=I-2;L>=0;--L){const N=T[L];for(const z of N){let q=0,G=0;for(const{target:ee,value:Q}of z.sourceLinks){let K=Q*(ee.layer-z.layer);q+=H(z,ee)*K,G+=K}if(!(G>0))continue;let Y=(q/G-z.y0)*P;z.y0+=Y,z.y1+=Y,k(z)}c===void 0&&N.sort(bd),E(N,V)}}function E(T,P){const V=T.length>>1,I=T[V];O(T,I.y0-a,V-1,P),_(T,I.y1+a,V+1,P),O(T,r,T.length-1,P),_(T,t,0,P)}function _(T,P,V,I){for(;V<T.length;++V){const L=T[V],N=(P-L.y0)*I;N>1e-6&&(L.y0+=N,L.y1+=N),P=L.y1+a}}function O(T,P,V,I){for(;V>=0;--V){const L=T[V],N=(L.y1-P)*I;N>1e-6&&(L.y0-=N,L.y1-=N),P=L.y0-a}}function k({sourceLinks:T,targetLinks:P}){if(u===void 0){for(const{source:{sourceLinks:V}}of P)V.sort(F8);for(const{target:{targetLinks:V}}of T)V.sort(N8)}}function A(T){if(u===void 0)for(const{sourceLinks:P,targetLinks:V}of T)P.sort(F8),V.sort(N8)}function j(T,P){let V=T.y0-(T.sourceLinks.length-1)*a/2;for(const{target:I,width:L}of T.sourceLinks){if(I===P)break;V+=L+a}for(const{source:I,width:L}of P.targetLinks){if(I===T)break;V-=L}return V}function H(T,P){let V=P.y0-(P.targetLinks.length-1)*a/2;for(const{source:I,width:L}of P.targetLinks){if(I===T)break;V+=L+a}for(const{target:I,width:L}of T.sourceLinks){if(I===P)break;V-=L}return V}return m}function Gie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Yie=Gie,Kie=ll,Xie=Mu;function Qie(e,t){return e&&Kie(t,Xie(t),e)}var Jie=Qie,eoe=ll,toe=bu;function noe(e,t){return e&&eoe(t,toe(t),e)}var roe=noe,ioe=ll,ooe=ym;function aoe(e,t){return ioe(e,ooe(e),t)}var soe=aoe,loe=bm,coe=Rv,uoe=ym,doe=FS,foe=Object.getOwnPropertySymbols,hoe=foe?function(e){for(var t=[];e;)loe(t,uoe(e)),e=coe(e);return t}:doe,p$=hoe,goe=ll,voe=p$;function moe(e,t){return goe(e,voe(e),t)}var poe=moe,boe=AS,yoe=p$,xoe=bu;function Coe(e){return boe(e,xoe,yoe)}var b$=Coe,woe=Object.prototype,Soe=woe.hasOwnProperty;function $oe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Soe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Moe=$oe,_oe=Vv;function Eoe(e,t){var n=t?_oe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Hoe=Eoe,Ooe=/\w*$/;function Voe(e){var t=new e.constructor(e.source,Ooe.exec(e));return t.lastIndex=e.lastIndex,t}var Roe=Voe,B8=Js,W8=B8?B8.prototype:void 0,Z8=W8?W8.valueOf:void 0;function Toe(e){return Z8?Object(Z8.call(e)):{}}var koe=Toe,joe=Vv,Poe=Hoe,Loe=Roe,Ioe=koe,Aoe=bw,Noe="[object Boolean]",Foe="[object Date]",Doe="[object Map]",zoe="[object Number]",Boe="[object RegExp]",Woe="[object Set]",Zoe="[object String]",Uoe="[object Symbol]",qoe="[object ArrayBuffer]",Goe="[object DataView]",Yoe="[object Float32Array]",Koe="[object Float64Array]",Xoe="[object Int8Array]",Qoe="[object Int16Array]",Joe="[object Int32Array]",eae="[object Uint8Array]",tae="[object Uint8ClampedArray]",nae="[object Uint16Array]",rae="[object Uint32Array]";function iae(e,t,n){var r=e.constructor;switch(t){case qoe:return joe(e);case Noe:case Foe:return new r(+e);case Goe:return Poe(e,n);case Yoe:case Koe:case Xoe:case Qoe:case Joe:case eae:case tae:case nae:case rae:return Aoe(e,n);case Doe:return new r;case zoe:case Zoe:return new r(e);case Boe:return Loe(e);case Woe:return new r;case Uoe:return Ioe(e)}}var oae=iae,aae=kf,sae=Gr,lae="[object Map]";function cae(e){return sae(e)&&aae(e)==lae}var uae=cae,dae=uae,fae=sl,U8=gf,q8=U8&&U8.isMap,hae=q8?fae(q8):dae,gae=hae,vae=kf,mae=Gr,pae="[object Set]";function bae(e){return mae(e)&&vae(e)==pae}var yae=bae,xae=yae,Cae=sl,G8=gf,Y8=G8&&G8.isSet,wae=Y8?Cae(Y8):xae,Sae=wae,$ae=df,Mae=Yie,_ae=Lv,Eae=Jie,Hae=roe,Oae=mw,Vae=yw,Rae=soe,Tae=poe,kae=DS,jae=b$,Pae=kf,Lae=Moe,Iae=oae,Aae=Cw,Nae=Cr,Fae=hf,Dae=gae,zae=Mi,Bae=Sae,Wae=Mu,Zae=bu,Uae=1,qae=2,Gae=4,y$="[object Arguments]",Yae="[object Array]",Kae="[object Boolean]",Xae="[object Date]",Qae="[object Error]",x$="[object Function]",Jae="[object GeneratorFunction]",ese="[object Map]",tse="[object Number]",C$="[object Object]",nse="[object RegExp]",rse="[object Set]",ise="[object String]",ose="[object Symbol]",ase="[object WeakMap]",sse="[object ArrayBuffer]",lse="[object DataView]",cse="[object Float32Array]",use="[object Float64Array]",dse="[object Int8Array]",fse="[object Int16Array]",hse="[object Int32Array]",gse="[object Uint8Array]",vse="[object Uint8ClampedArray]",mse="[object Uint16Array]",pse="[object Uint32Array]",un={};un[y$]=un[Yae]=un[sse]=un[lse]=un[Kae]=un[Xae]=un[cse]=un[use]=un[dse]=un[fse]=un[hse]=un[ese]=un[tse]=un[C$]=un[nse]=un[rse]=un[ise]=un[ose]=un[gse]=un[vse]=un[mse]=un[pse]=!0;un[Qae]=un[x$]=un[ase]=!1;function H1(e,t,n,r,i,o){var a,s=t&Uae,l=t&qae,c=t&Gae;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!zae(e))return e;var u=Nae(e);if(u){if(a=Lae(e),!s)return Vae(e,a)}else{var d=Pae(e),f=d==x$||d==Jae;if(Fae(e))return Oae(e,s);if(d==C$||d==y$||f&&!i){if(a=l||f?{}:Aae(e),!s)return l?Tae(e,Hae(a,e)):Rae(e,Eae(a,e))}else{if(!un[d])return i?e:{};a=Iae(e,d,s)}}o||(o=new $ae);var h=o.get(e);if(h)return h;o.set(e,a),Bae(e)?e.forEach(function(v){a.add(H1(v,t,n,v,e,o))}):Dae(e)&&e.forEach(function(v,b){a.set(b,H1(v,t,n,b,e,o))});var m=c?l?jae:kae:l?Zae:Wae,g=u?void 0:m(e);return Mae(g||e,function(v,b){g&&(b=v,v=e[b]),_ae(a,b,H1(v,t,n,b,e,o))}),a}var w$=H1,bse=w$,yse=1,xse=4;function Cse(e){return bse(e,yse|xse)}var wse=Cse;const S$=Cn(wse);function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}var S2={container:{display:"flex",alignItems:"center"},sourceChip:{marginRight:7},targetChip:{marginLeft:7,marginRight:7}},Sse={center:Bie,justify:m$,start:Die,end:zie},$se=function(e){return Sse[e]},At={layout:"horizontal",align:"center",sort:"auto",colors:{scheme:"nivo"},nodeOpacity:.75,nodeHoverOpacity:1,nodeHoverOthersOpacity:.15,nodeThickness:12,nodeSpacing:12,nodeInnerPadding:0,nodeBorderWidth:1,nodeBorderColor:{from:"color",modifiers:[["darker",.5]]},nodeBorderRadius:0,linkOpacity:.25,linkHoverOpacity:.6,linkHoverOthersOpacity:.15,linkContract:0,linkBlendMode:"multiply",enableLinkGradient:!1,enableLabels:!0,label:"id",labelPosition:"inside",labelPadding:9,labelOrientation:"horizontal",labelTextColor:{from:"color",modifiers:[["darker",.8]]},isInteractive:!0,nodeTooltip:function(e){var t=e.node;return p.jsx(Is,{id:t.label,enableChip:!0,color:t.color})},linkTooltip:function(e){var t=e.link;return p.jsx(Is,{id:p.jsxs("span",{style:S2.container,children:[p.jsx(J1,{color:t.source.color,style:S2.sourceChip}),p.jsx("strong",{children:t.source.label})," > ",p.jsx("strong",{children:t.target.label}),p.jsx(J1,{color:t.target.color,style:S2.targetChip}),p.jsx("strong",{children:t.formattedValue})]})})},legends:[],layers:["links","nodes","labels","legends"],role:"img",animate:!0,motionConfig:"gentle"},Mse=function(e){return e.id},_se=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=e.width,o=e.height,a=e.sort,s=e.align,l=e.colors,c=e.nodeThickness,u=e.nodeSpacing,d=e.nodeInnerPadding,f=e.nodeBorderColor,h=e.label,m=e.labelTextColor,g=S.useState(null),v=g[0],b=g[1],y=S.useState(null),C=y[0],$=y[1],w=S.useMemo(function(){if(a!=="auto")return a==="input"?null:a==="ascending"?function(I,L){return I.value-L.value}:a==="descending"?function(I,L){return L.value-I.value}:a},[a]),M=a==="input"?null:void 0,R=S.useMemo(function(){return typeof s=="function"?s:$se(s)},[s]),E=Wt(),_=_u(l,"id"),O=Hr(f,E),k=bi(h),A=Hr(m,E),j=Lo(n),H=S.useMemo(function(){return function(I){var L=I.data,N=I.formatValue,z=I.layout,q=I.alignFunction,G=I.sortFunction,Y=I.linkSortMode,ee=I.nodeThickness,Q=I.nodeSpacing,K=I.nodeInnerPadding,J=I.width,W=I.height,Z=I.getColor,U=I.getLabel,F=qie().nodeAlign(q).nodeSort(G).linkSort(Y).nodeWidth(ee).nodePadding(Q).size(z==="horizontal"?[J,W]:[W,J]).nodeId(Mse),re=S$(L);return F(re),re.nodes.forEach(function(B){if(B.color=Z(B),B.label=U(B),B.formattedValue=N(B.value),z==="horizontal")B.x=B.x0+K,B.y=B.y0,B.width=Math.max(B.x1-B.x0-2*K,0),B.height=Math.max(B.y1-B.y0,0);else{B.x=B.y0,B.y=B.x0+K,B.width=Math.max(B.y1-B.y0,0),B.height=Math.max(B.x1-B.x0-2*K,0);var ie=B.x0,oe=B.x1;B.x0=B.y0,B.x1=B.y1,B.y0=ie,B.y1=oe}}),re.links.forEach(function(B){B.formattedValue=N(B.value),B.color=B.source.color,B.pos0=B.y0,B.pos1=B.y1,B.thickness=B.width,delete B.y0,delete B.y1,delete B.width}),re}({data:t,formatValue:j,layout:r,alignFunction:R,sortFunction:w,linkSortMode:M,nodeThickness:c,nodeSpacing:u,nodeInnerPadding:d,width:i,height:o,getColor:_,getLabel:k})},[t,j,r,R,w,M,c,u,d,i,o,_,k]),T=H.nodes,P=H.links,V=S.useMemo(function(){return T.map(function(I){return{id:I.id,label:I.label,color:I.color}})},[T]);return{nodes:T,links:P,legendData:V,getNodeBorderColor:O,currentNode:v,setCurrentNode:b,currentLink:C,setCurrentLink:$,getLabelTextColor:A}},Ese=function(e){var t=e.node,n=e.x,r=e.y,i=e.width,o=e.height,a=e.color,s=e.opacity,l=e.borderWidth,c=e.borderColor,u=e.borderRadius,d=e.setCurrent,f=e.isInteractive,h=e.onClick,m=e.tooltip,g=Fn(),v=g.animate,b=g.config,y=Qt({x:n,y:r,width:i,height:o,opacity:s,color:a,config:b,immediate:!v}),C=ci(),$=C.showTooltipFromEvent,w=C.hideTooltip,M=S.useCallback(function(O){d(t),$(S.createElement(m,{node:t}),O,"left")},[d,t,$,m]),R=S.useCallback(function(O){$(S.createElement(m,{node:t}),O,"left")},[$,t,m]),E=S.useCallback(function(){d(null),w()},[d,w]),_=S.useCallback(function(O){h==null||h(t,O)},[h,t]);return p.jsx(et.rect,{x:y.x,y:y.y,rx:u,ry:u,width:y.width.to(function(O){return Math.max(O,0)}),height:y.height.to(function(O){return Math.max(O,0)}),fill:y.color,fillOpacity:y.opacity,strokeWidth:l,stroke:c,strokeOpacity:s,onMouseEnter:f?M:void 0,onMouseMove:f?R:void 0,onMouseLeave:f?E:void 0,onClick:f?_:void 0})},Hse=function(e){var t=e.nodes,n=e.nodeOpacity,r=e.nodeHoverOpacity,i=e.nodeHoverOthersOpacity,o=e.borderWidth,a=e.getBorderColor,s=e.borderRadius,l=e.setCurrentNode,c=e.currentNode,u=e.currentLink,d=e.isCurrentNode,f=e.isInteractive,h=e.onClick,m=e.tooltip,g=function(v){return c||u?d(v)?r:i:n};return p.jsx(p.Fragment,{children:t.map(function(v){return p.jsx(Ese,{node:v,x:v.x,y:v.y,width:v.width,height:v.height,color:v.color,opacity:g(v),borderWidth:o,borderColor:a(v),borderRadius:s,setCurrent:l,isInteractive:f,onClick:h,tooltip:m},v.id)})})},Ose=function(e){var t=e.id,n=e.layout,r=e.startColor,i=e.endColor;return p.jsxs("linearGradient",$a({id:t,spreadMethod:"pad"},n==="horizontal"?{x1:"0%",x2:"100%",y1:"0%",y2:"0%"}:{x1:"0%",x2:"0%",y1:"0%",y2:"100%"},{children:[p.jsx("stop",{offset:"0%",stopColor:r}),p.jsx("stop",{offset:"100%",stopColor:i})]}))},Vse=function(e){var t=e.link,n=e.layout,r=e.path,i=e.color,o=e.opacity,a=e.blendMode,s=e.enableGradient,l=e.setCurrent,c=e.tooltip,u=e.isInteractive,d=e.onClick,f=t.source.id+"."+t.target.id+"."+t.index,h=Fn(),m=h.animate,g=h.config,v=Pf(r),b=Qt({color:i,opacity:o,config:g,immediate:!m}),y=ci(),C=y.showTooltipFromEvent,$=y.hideTooltip,w=S.useCallback(function(_){l(t),C(S.createElement(c,{link:t}),_,"left")},[l,t,C,c]),M=S.useCallback(function(_){C(S.createElement(c,{link:t}),_,"left")},[C,t,c]),R=S.useCallback(function(){l(null),$()},[l,$]),E=S.useCallback(function(_){d==null||d(t,_)},[d,t]);return p.jsxs(p.Fragment,{children:[s&&p.jsx(Ose,{id:f,layout:n,startColor:t.startColor||t.source.color,endColor:t.endColor||t.target.color}),p.jsx(et.path,{fill:s?'url("#'+encodeURI(f)+'")':b.color,d:v,fillOpacity:b.opacity,onMouseEnter:u?w:void 0,onMouseMove:u?M:void 0,onMouseLeave:u?R:void 0,onClick:u?E:void 0,style:{mixBlendMode:a}})]})},Rse=function(e){var t=e.links,n=e.layout,r=e.linkOpacity,i=e.linkHoverOpacity,o=e.linkHoverOthersOpacity,a=e.linkContract,s=e.linkBlendMode,l=e.enableLinkGradient,c=e.setCurrentLink,u=e.currentLink,d=e.currentNode,f=e.isCurrentLink,h=e.isInteractive,m=e.onClick,g=e.tooltip,v=function(y){return d||u?f(y)?i:o:r},b=S.useMemo(function(){return n==="horizontal"?(y=Yc().curve($u),function(C,$){var w=Math.max(1,C.thickness-2*$)/2,M=.12*(C.target.x0-C.source.x1),R=[[C.source.x1,C.pos0-w],[C.source.x1+M,C.pos0-w],[C.target.x0-M,C.pos1-w],[C.target.x0,C.pos1-w],[C.target.x0,C.pos1+w],[C.target.x0-M,C.pos1+w],[C.source.x1+M,C.pos0+w],[C.source.x1,C.pos0+w],[C.source.x1,C.pos0-w]];return y(R)+"Z"}):function(){var C=Yc().curve(Rf);return function($,w){var M=Math.max(1,$.thickness-2*w)/2,R=.12*($.target.y0-$.source.y1),E=[[$.pos0+M,$.source.y1],[$.pos0+M,$.source.y1+R],[$.pos1+M,$.target.y0-R],[$.pos1+M,$.target.y0],[$.pos1-M,$.target.y0],[$.pos1-M,$.target.y0-R],[$.pos0-M,$.source.y1+R],[$.pos0-M,$.source.y1],[$.pos0+M,$.source.y1]];return C(E)+"Z"}}();var y},[n]);return p.jsx(p.Fragment,{children:t.map(function(y){return p.jsx(Vse,{link:y,layout:n,path:b(y,a),color:y.color,opacity:v(y),blendMode:s,enableGradient:l,setCurrent:c,isInteractive:h,onClick:m,tooltip:g},y.source.id+"."+y.target.id+"."+y.index)})})},Tse=function(e){var t=e.nodes,n=e.layout,r=e.width,i=e.height,o=e.labelPosition,a=e.labelPadding,s=e.labelOrientation,l=e.getLabelTextColor,c=Wt(),u=s==="vertical"?-90:0,d=t.map(function(v){var b,y,C;return n==="horizontal"?(y=v.y+v.height/2,v.x<r/2?o==="inside"?(b=v.x1+a,C=s==="vertical"?"middle":"start"):(b=v.x-a,C=s==="vertical"?"middle":"end"):o==="inside"?(b=v.x-a,C=s==="vertical"?"middle":"end"):(b=v.x1+a,C=s==="vertical"?"middle":"start")):n==="vertical"&&(b=v.x+v.width/2,v.y<i/2?o==="inside"?(y=v.y1+a,C=s==="vertical"?"end":"middle"):(y=v.y-a,C=s==="vertical"?"start":"middle"):o==="inside"?(y=v.y-a,C=s==="vertical"?"start":"middle"):(y=v.y1+a,C=s==="vertical"?"end":"middle")),{id:v.id,label:v.label,x:b,y,textAnchor:C,color:l(v)}}),f=Fn(),h=f.animate,m=f.config,g=aw(d.length,d.map(function(v){return{transform:"translate("+v.x+", "+v.y+") rotate("+u+")",color:v.color,config:m,immediate:!h}}));return p.jsx(p.Fragment,{children:g.map(function(v,b){var y=d[b];return p.jsx(et.text,{dominantBaseline:"central",textAnchor:y.textAnchor,transform:v.transform,style:$a({},c.labels.text,{fill:v.color,pointerEvents:"none"}),children:y.label},y.id)})})},kse=["isInteractive","animate","motionConfig","theme","renderWrapper"],jse=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=r===void 0?At.layout:r,o=e.sort,a=o===void 0?At.sort:o,s=e.align,l=s===void 0?At.align:s,c=e.width,u=e.height,d=e.margin,f=e.colors,h=f===void 0?At.colors:f,m=e.nodeThickness,g=m===void 0?At.nodeThickness:m,v=e.nodeSpacing,b=v===void 0?At.nodeThickness:v,y=e.nodeInnerPadding,C=y===void 0?At.nodeInnerPadding:y,$=e.nodeBorderColor,w=$===void 0?At.nodeBorderColor:$,M=e.nodeOpacity,R=M===void 0?At.nodeOpacity:M,E=e.nodeHoverOpacity,_=E===void 0?At.nodeHoverOpacity:E,O=e.nodeHoverOthersOpacity,k=O===void 0?At.nodeHoverOthersOpacity:O,A=e.nodeBorderWidth,j=A===void 0?At.nodeBorderWidth:A,H=e.nodeBorderRadius,T=H===void 0?At.nodeBorderRadius:H,P=e.linkOpacity,V=P===void 0?At.linkOpacity:P,I=e.linkHoverOpacity,L=I===void 0?At.linkHoverOpacity:I,N=e.linkHoverOthersOpacity,z=N===void 0?At.linkHoverOthersOpacity:N,q=e.linkContract,G=q===void 0?At.linkContract:q,Y=e.linkBlendMode,ee=Y===void 0?At.linkBlendMode:Y,Q=e.enableLinkGradient,K=Q===void 0?At.enableLinkGradient:Q,J=e.enableLabels,W=J===void 0?At.enableLabels:J,Z=e.labelPosition,U=Z===void 0?At.labelPosition:Z,F=e.labelPadding,re=F===void 0?At.labelPadding:F,B=e.labelOrientation,ie=B===void 0?At.labelOrientation:B,oe=e.label,ve=oe===void 0?At.label:oe,xe=e.labelTextColor,pe=xe===void 0?At.labelTextColor:xe,ye=e.nodeTooltip,Se=ye===void 0?At.nodeTooltip:ye,me=e.linkTooltip,ge=me===void 0?At.linkTooltip:me,ce=e.isInteractive,$e=ce===void 0?At.isInteractive:ce,he=e.onClick,Ae=e.legends,Ie=Ae===void 0?At.legends:Ae,Re=e.layers,ke=Re===void 0?At.layers:Re,Ye=e.role,Xe=Ye===void 0?At.role:Ye,Fe=e.ariaLabel,je=e.ariaLabelledBy,Qe=e.ariaDescribedBy,Ze=Za(c,u,d),qe=Ze.margin,de=Ze.innerWidth,Ee=Ze.innerHeight,Ke=Ze.outerWidth,nt=Ze.outerHeight,Ne=_se({data:t,valueFormat:n,layout:i,width:de,height:Ee,sort:a,align:l,colors:h,nodeThickness:g,nodeSpacing:b,nodeInnerPadding:C,nodeBorderColor:w,label:ve,labelTextColor:pe}),ze=Ne.nodes,De=Ne.links,Je=Ne.legendData,tt=Ne.getNodeBorderColor,Be=Ne.currentNode,Pe=Ne.setCurrentNode,ct=Ne.currentLink,pt=Ne.setCurrentLink,He=Ne.getLabelTextColor,fe=function(){return!1},we=function(){return!1};if(ct&&(fe=function(rt){var X=rt.id;return X===ct.source.id||X===ct.target.id},we=function(rt){var X=rt.source,ae=rt.target;return X.id===ct.source.id&&ae.id===ct.target.id}),Be){var Oe=[Be.id];De.filter(function(rt){var X=rt.source,ae=rt.target;return X.id===Be.id||ae.id===Be.id}).forEach(function(rt){var X=rt.source,ae=rt.target;Oe.push(X.id),Oe.push(ae.id)}),Oe=Q3(Oe),fe=function(rt){var X=rt.id;return Oe.includes(X)},we=function(rt){var X=rt.source,ae=rt.target;return X.id===Be.id||ae.id===Be.id}}var Ge={links:De,nodes:ze,margin:qe,width:c,height:u,outerWidth:Ke,outerHeight:nt},We={links:null,nodes:null,labels:null,legends:null};return ke.includes("links")&&(We.links=p.jsx(Rse,{links:De,layout:i,linkContract:G,linkOpacity:V,linkHoverOpacity:L,linkHoverOthersOpacity:z,linkBlendMode:ee,enableLinkGradient:K,setCurrentLink:pt,currentNode:Be,currentLink:ct,isCurrentLink:we,isInteractive:$e,onClick:he,tooltip:ge},"links")),ke.includes("nodes")&&(We.nodes=p.jsx(Hse,{nodes:ze,nodeOpacity:R,nodeHoverOpacity:_,nodeHoverOthersOpacity:k,borderWidth:j,borderRadius:T,getBorderColor:tt,setCurrentNode:Pe,currentNode:Be,currentLink:ct,isCurrentNode:fe,isInteractive:$e,onClick:he,tooltip:Se},"nodes")),ke.includes("labels")&&W&&(We.labels=p.jsx(Tse,{nodes:ze,layout:i,width:de,height:Ee,labelPosition:U,labelPadding:re,labelOrientation:ie,getLabelTextColor:He},"labels")),ke.includes("legends")&&(We.legends=p.jsx(S.Fragment,{children:Ie.map(function(rt,X){return p.jsx(If,$a({},rt,{containerWidth:de,containerHeight:Ee,data:Je}),"legend"+X)})},"legends")),p.jsx(Sl,{width:Ke,height:nt,margin:qe,role:Xe,ariaLabel:Fe,ariaLabelledBy:je,ariaDescribedBy:Qe,children:ke.map(function(rt,X){var ae;return typeof rt=="function"?p.jsx(S.Fragment,{children:S.createElement(rt,Ge)},X):(ae=We==null?void 0:We[rt])!=null?ae:null})})},Pse=function(e){var t=e.isInteractive,n=t===void 0?At.isInteractive:t,r=e.animate,i=r===void 0?At.animate:r,o=e.motionConfig,a=o===void 0?At.motionConfig:o,s=e.theme,l=e.renderWrapper,c=function(u,d){if(u==null)return{};var f,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)f=g[h],d.indexOf(f)>=0||(m[f]=u[f]);return m}(e,kse);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(jse,$a({isInteractive:n},c))})},$$=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(Pse,$a({width:n,height:r},e))}})};const Lse={background:"white",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px",font:"var(--gf-label-lg-default)"},Zn=({id:e=null,style:t={},body:n=null})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{id:e,style:{...Lse,...t},children:n||p.jsx("span",{children:"Custom tooltip"})})]}),Ise=({sankeyData:e,linktooltip:t=null,nodetooltip:n=null,customStyle:r={},customMargin:i={}})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{style:{width:"100%",height:600,...r},children:p.jsx($$,{labelPosition:"outside",data:e,margin:{top:20,right:120,bottom:20,left:120,...i},nodeTooltip:({node:o})=>p.jsx(Zn,{body:(n==null?void 0:n({node:o}))||p.jsx("span",{children:"Sankey node tooltip"})}),linkTooltip:({link:o})=>p.jsx(Zn,{body:(t==null?void 0:t({link:o}))||p.jsx("span",{children:"Sankey link tooltip"})})})})]});function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}var Ase={pointerEvents:"none"},Nse=function(e){var t=e.label,n=e.style,r=Wt();return p.jsx(et.g,{transform:n.transform,opacity:n.progress,style:Ase,children:p.jsx(et.text,{textAnchor:"middle",dominantBaseline:"central",style:dn({},r.labels.text,{fill:n.textColor}),children:t})})},M$=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},Fse=function(e,t){return e.filter(function(n){return Math.abs(Lf(n.arc.endAngle-n.arc.startAngle))>=t})},Dse={startAngle:{enter:function(e){return dn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return dn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return dn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return dn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return dn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return dn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return dn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return dn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return dn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return dn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return dn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return dn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},_$=function(e,t){return S.useMemo(function(){var n=Dse[e];return{enter:function(r){return dn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return dn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return dn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},zse=function(e,t){var n=iie(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return ma(n,r)},Bse=function(e){return function(t,n,r,i){return Vn([t,n,r,i],function(o,a,s,l){var c=zse({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Wse=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=_$(n,r);return{transition:xr(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:Bse(t)}},Zse=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,c=l===void 0?Nse:l,u=bi(i),d=Wt(),f=Hr(s,d),h=S.useMemo(function(){return n.filter(function(y){return Math.abs(Lf(y.arc.endAngle-y.arc.startAngle))>=a})},[n,a]),m=Wse(h,o,r),g=m.transition,v=m.interpolate,b=c;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(y,C){return S.createElement(b,{key:C.id,datum:C,label:u(C),style:dn({},y,{transform:v(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textColor:f(C)})})})})},Use=function(e){var t=e.label,n=e.style,r=Wt();return p.jsxs(et.g,{opacity:n.opacity,children:[p.jsx(et.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),p.jsx(et.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:dn({},r.labels.text,{fill:n.textColor}),children:t})]})},qse=function(e){var t=M$(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},E$=function(e,t,n,r){var i,o,a=M$(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=ma(a,e.outerRadius+t),l=ma(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:l.x+r,y:l.y}):(i="before",o={x:l.x-r,y:l.y}),{side:i,points:[s,l,o]}},Gse=Yc().x(function(e){return e.x}).y(function(e){return e.y}),Yse=function(e,t,n,r,i,o,a){return Vn([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var m=E$({startAngle:s,endAngle:l,innerRadius:c,outerRadius:u},d,f,h).points;return Gse(m)})},Kse=function(e,t,n,r){return Vn([e,t,n,r],function(i,o,a,s){return qse({startAngle:i,endAngle:o,innerRadius:a,outerRadius:s})})},Xse=function(e,t,n,r,i,o,a,s){return Vn([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,m,g){var v=E$({startAngle:l,endAngle:c,innerRadius:u,outerRadius:d},f,h,m),b=v.points,y=v.side,C=b[2];return y==="before"?C.x-=g:C.x+=g,"translate("+C.x+","+C.y+")"})},Qse=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,m=Wt(),g=Hr(c,m),v=Hr(u,m),b=function(C,$){return S.useMemo(function(){return Fse(C,$)},[C,$])}(t,s),y=function(C){var $=C.offset,w=C.diagonalLength,M=C.straightLength,R=C.textOffset,E=C.getLinkColor,_=C.getTextColor;return S.useMemo(function(){return{enter:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:R,linkColor:E(O),textColor:_(O),opacity:0}},update:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:w,straightLength:M,textOffset:R,linkColor:E(O),textColor:_(O),opacity:1}},leave:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:R,linkColor:E(O),textColor:_(O),opacity:0}}}},[w,M,R,E,_,$])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:g,getTextColor:v});return{transition:xr(b,{keys:function(C){return C.id},initial:y.update,from:y.enter,enter:y.update,update:y.update,leave:y.leave,config:h,immediate:!f}),interpolateLink:Yse,interpolateTextAnchor:Kse,interpolateTextPosition:Xse}},Jse=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?Use:f,m=bi(r),g=Qse({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=g.transition,b=g.interpolateLink,y=g.interpolateTextAnchor,C=g.interpolateTextPosition,$=h;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,M){return S.createElement($,{key:M.id,datum:M,label:m(M),style:dn({},w,{thickness:l,path:b(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength),textAnchor:y(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textPosition:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength,w.textOffset)})})})})},ele=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=S.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=S.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=S.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=S.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return p.jsx(et.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0})},tle=function(e,t,n,r,i){return Vn([e,t,n,r],function(o,a,s,l){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},nle=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=_$(t,n);return{transition:xr(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:tle}},rle=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?ele:d,h=Wt(),m=Hr(o,h),g=nle(n,u,{enter:function(C){return{opacity:0,color:C.color,borderColor:m(C)}},update:function(C){return{opacity:1,color:C.color,borderColor:m(C)}},leave:function(C){return{opacity:0,color:C.color,borderColor:m(C)}}}),v=g.transition,b=g.interpolate,y=f;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(C,$){return S.createElement(y,{key:$.id,datum:$,style:dn({},C,{borderWidth:i,path:b(C.startAngle,C.endAngle,C.innerRadius,C.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},ile=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=ma(Dr(r),n);a.push([s.x,s.y]);var l=ma(Dr(i),n);a.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=ma(Dr(c),n);a.push([u.x,u.y])}a=a.map(function(v){var b=v[0],y=v[1];return[e+b,t+y]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),h=Math.min.apply(Math,d),m=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:m-h,height:Math.max.apply(Math,f)-g}},ole=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return S.useMemo(function(){return GJ().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])};function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Io.apply(this,arguments)}function H$(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var K8,ale=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return p.jsx(p.Fragment,{children:r.map(function(a,s){var l;return p.jsx(If,Io({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},bt={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,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 p.jsx(Is,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(K8=window.devicePixelRatio)!=null?K8:1},sle=["points"],lle=function(e){var t=e.data,n=e.id,r=n===void 0?bt.id:n,i=e.value,o=i===void 0?bt.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?bt.colors:s,c=bi(r),u=bi(o),d=Lo(a),f=_u(l,"id");return S.useMemo(function(){return t.map(function(h){var m,g=c(h),v=u(h),b={id:g,label:(m=h.label)!=null?m:g,hidden:!1,value:v,formattedValue:d(v),data:h};return Io({},b,{color:f(b)})})},[t,c,u,d,f])},cle=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=S.useMemo(function(){var b=XJ().value(function(y){return y.value}).startAngle(Dr(n)).endAngle(Dr(r)).padAngle(Dr(a));return s||b.sortValues(null),b},[n,r,a,s]),m=S.useMemo(function(){var b=t.filter(function(y){return!d.includes(y.id)});return{dataWithArc:h(b).map(function(y){var C=Math.abs(y.endAngle-y.startAngle);return Io({},y.data,{arc:{index:y.index,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:l===y.data.id?i-c:i,outerRadius:l===y.data.id?o+u:o,thickness:o-i,padAngle:y.padAngle,angle:C,angleDeg:Lf(C)}})}),legendData:t.map(function(y){return{id:y.id,label:y.label,color:y.color,hidden:d.includes(y.id),data:y}})}},[h,t,d,l,i,c,o,u]),g=m.legendData,v=S.useRef(f);return S.useEffect(function(){typeof v.current=="function"&&v.current(g)},[v,g]),m},ule=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=S.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:S.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},dle=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?bt.innerRadius:i,a=e.startAngle,s=a===void 0?bt.startAngle:a,l=e.endAngle,c=l===void 0?bt.endAngle:l,u=e.padAngle,d=u===void 0?bt.padAngle:u,f=e.sortByValue,h=f===void 0?bt.sortByValue:f,m=e.cornerRadius,g=m===void 0?bt.cornerRadius:m,v=e.fit,b=v===void 0?bt.fit:v,y=e.activeInnerRadiusOffset,C=y===void 0?bt.activeInnerRadiusOffset:y,$=e.activeOuterRadiusOffset,w=$===void 0?bt.activeOuterRadiusOffset:$,M=e.activeId,R=e.onActiveIdChange,E=e.defaultActiveId,_=e.forwardLegendData,O=ule({activeId:M,onActiveIdChange:R,defaultActiveId:E}),k=O.activeId,A=O.setActiveId,j=S.useState([]),H=j[0],T=j[1],P=S.useMemo(function(){var L,N=Math.min(n,r)/2,z=N*Math.min(o,1),q=n/2,G=r/2;if(b){var Y=ile(q,G,N,s-90,c-90),ee=Y.points,Q=H$(Y,sle),K=Math.min(n/Q.width,r/Q.height),J={width:Q.width*K,height:Q.height*K};J.x=(n-J.width)/2,J.y=(r-J.height)/2,q=(q-Q.x)/Q.width*Q.width*K+J.x,G=(G-Q.y)/Q.height*Q.height*K+J.y,L={box:Q,ratio:K,points:ee},N*=K,z*=K}return{centerX:q,centerY:G,radius:N,innerRadius:z,debug:L}},[n,r,o,s,c,b]),V=cle({data:t,startAngle:s,endAngle:c,innerRadius:P.innerRadius,outerRadius:P.radius,padAngle:d,sortByValue:h,activeId:k,activeInnerRadiusOffset:C,activeOuterRadiusOffset:w,hiddenIds:H,forwardLegendData:_}),I=S.useCallback(function(L){T(function(N){return N.indexOf(L)>-1?N.filter(function(z){return z!==L}):[].concat(N,[L])})},[]);return Io({arcGenerator:ole({cornerRadius:g,padAngle:Dr(d)}),activeId:k,setActiveId:A,toggleSerie:I},V,P)},fle=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return S.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},hle=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,m=ci(),g=m.showTooltipFromEvent,v=m.hideTooltip,b=S.useMemo(function(){if(a)return function(w,M){s==null||s(w,M)}},[a,s]),y=S.useMemo(function(){if(a)return function(w,M){g(S.createElement(f,{datum:w}),M),d(w.id),l==null||l(w,M)}},[a,g,d,l,f]),C=S.useMemo(function(){if(a)return function(w,M){g(S.createElement(f,{datum:w}),M),c==null||c(w,M)}},[a,g,c,f]),$=S.useMemo(function(){if(a)return function(w,M){v(),d(null),u==null||u(w,M)}},[a,v,d,u]);return p.jsx(rle,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:b,onMouseEnter:y,onMouseMove:C,onMouseLeave:$})},gle=["isInteractive","animate","motionConfig","theme","renderWrapper"],vle=function(e){var t=e.data,n=e.id,r=n===void 0?bt.id:n,i=e.value,o=i===void 0?bt.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?bt.sortByValue:s,c=e.layers,u=c===void 0?bt.layers:c,d=e.startAngle,f=d===void 0?bt.startAngle:d,h=e.endAngle,m=h===void 0?bt.endAngle:h,g=e.padAngle,v=g===void 0?bt.padAngle:g,b=e.fit,y=b===void 0?bt.fit:b,C=e.innerRadius,$=C===void 0?bt.innerRadius:C,w=e.cornerRadius,M=w===void 0?bt.cornerRadius:w,R=e.activeInnerRadiusOffset,E=R===void 0?bt.activeInnerRadiusOffset:R,_=e.activeOuterRadiusOffset,O=_===void 0?bt.activeOuterRadiusOffset:_,k=e.width,A=e.height,j=e.margin,H=e.colors,T=H===void 0?bt.colors:H,P=e.borderWidth,V=P===void 0?bt.borderWidth:P,I=e.borderColor,L=I===void 0?bt.borderColor:I,N=e.enableArcLabels,z=N===void 0?bt.enableArcLabels:N,q=e.arcLabel,G=q===void 0?bt.arcLabel:q,Y=e.arcLabelsSkipAngle,ee=Y===void 0?bt.arcLabelsSkipAngle:Y,Q=e.arcLabelsTextColor,K=Q===void 0?bt.arcLabelsTextColor:Q,J=e.arcLabelsRadiusOffset,W=J===void 0?bt.arcLabelsRadiusOffset:J,Z=e.arcLabelsComponent,U=e.enableArcLinkLabels,F=U===void 0?bt.enableArcLinkLabels:U,re=e.arcLinkLabel,B=re===void 0?bt.arcLinkLabel:re,ie=e.arcLinkLabelsSkipAngle,oe=ie===void 0?bt.arcLinkLabelsSkipAngle:ie,ve=e.arcLinkLabelsOffset,xe=ve===void 0?bt.arcLinkLabelsOffset:ve,pe=e.arcLinkLabelsDiagonalLength,ye=pe===void 0?bt.arcLinkLabelsDiagonalLength:pe,Se=e.arcLinkLabelsStraightLength,me=Se===void 0?bt.arcLinkLabelsStraightLength:Se,ge=e.arcLinkLabelsThickness,ce=ge===void 0?bt.arcLinkLabelsThickness:ge,$e=e.arcLinkLabelsTextOffset,he=$e===void 0?bt.arcLinkLabelsTextOffset:$e,Ae=e.arcLinkLabelsTextColor,Ie=Ae===void 0?bt.arcLinkLabelsTextColor:Ae,Re=e.arcLinkLabelsColor,ke=Re===void 0?bt.arcLinkLabelsColor:Re,Ye=e.arcLinkLabelComponent,Xe=e.defs,Fe=Xe===void 0?bt.defs:Xe,je=e.fill,Qe=je===void 0?bt.fill:je,Ze=e.isInteractive,qe=Ze===void 0?bt.isInteractive:Ze,de=e.onClick,Ee=e.onMouseEnter,Ke=e.onMouseMove,nt=e.onMouseLeave,Ne=e.tooltip,ze=Ne===void 0?bt.tooltip:Ne,De=e.activeId,Je=e.onActiveIdChange,tt=e.defaultActiveId,Be=e.transitionMode,Pe=Be===void 0?bt.transitionMode:Be,ct=e.legends,pt=ct===void 0?bt.legends:ct,He=e.forwardLegendData,fe=e.role,we=fe===void 0?bt.role:fe,Oe=Za(k,A,j),Ge=Oe.outerWidth,We=Oe.outerHeight,rt=Oe.margin,X=Oe.innerWidth,ae=Oe.innerHeight,se=lle({data:t,id:r,value:o,valueFormat:a,colors:T}),Ve=dle({data:se,width:X,height:ae,fit:y,innerRadius:$,startAngle:f,endAngle:m,padAngle:v,sortByValue:l,cornerRadius:M,activeInnerRadiusOffset:E,activeOuterRadiusOffset:O,activeId:De,onActiveIdChange:Je,defaultActiveId:tt,forwardLegendData:He}),it=Ve.dataWithArc,at=Ve.legendData,st=Ve.arcGenerator,ft=Ve.centerX,be=Ve.centerY,Ce=Ve.radius,Te=Ve.innerRadius,ot=Ve.setActiveId,vt=Ve.toggleSerie,Ct=$m(Fe,it,Qe),ht={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(ht.arcs=p.jsx(hle,{center:[ft,be],data:it,arcGenerator:st,borderWidth:V,borderColor:L,isInteractive:qe,onClick:de,onMouseEnter:Ee,onMouseMove:Ke,onMouseLeave:nt,setActiveId:ot,tooltip:ze,transitionMode:Pe},"arcs")),F&&u.includes("arcLinkLabels")&&(ht.arcLinkLabels=p.jsx(Jse,{center:[ft,be],data:it,label:B,skipAngle:oe,offset:xe,diagonalLength:ye,straightLength:me,strokeWidth:ce,textOffset:he,textColor:Ie,linkColor:ke,component:Ye},"arcLinkLabels")),z&&u.includes("arcLabels")&&(ht.arcLabels=p.jsx(Zse,{center:[ft,be],data:it,label:G,radiusOffset:W,skipAngle:ee,textColor:K,transitionMode:Pe,component:Z},"arcLabels")),pt.length>0&&u.includes("legends")&&(ht.legends=p.jsx(ale,{width:X,height:ae,data:at,legends:pt,toggleSerie:vt},"legends"));var Ot=fle({dataWithArc:it,arcGenerator:st,centerX:ft,centerY:be,radius:Ce,innerRadius:Te});return p.jsx(Sl,{width:Ge,height:We,margin:rt,defs:Ct,role:we,children:u.map(function(rn,It){return ht[rn]!==void 0?ht[rn]:typeof rn=="function"?p.jsx(S.Fragment,{children:S.createElement(rn,Ot)},It):null})})},mle=function(e){var t=e.isInteractive,n=t===void 0?bt.isInteractive:t,r=e.animate,i=r===void 0?bt.animate:r,o=e.motionConfig,a=o===void 0?bt.motionConfig:o,s=e.theme,l=e.renderWrapper,c=H$(e,gle);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(vle,Io({isInteractive:n},c))})},ple=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(mle,Io({width:n,height:r},e))}})};const ble=yt.span`
|
|
489
|
+
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}var Pie={top:0,right:0,bottom:0,left:0},Mm=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:ua({},Pie,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},h$=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},g$=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Lie={circle:Rie,diamond:Tie,square:kie,triangle:jie},Iie=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,m=e.width,g=e.height,v=e.data,b=e.direction,y=b===void 0?"left-to-right":b,C=e.justify,$=C!==void 0&&C,w=e.textColor,M=e.background,R=M===void 0?"transparent":M,E=e.opacity,_=E===void 0?1:E,O=e.symbolShape,k=O===void 0?"square":O,A=e.symbolSize,j=A===void 0?16:A,H=e.symbolSpacing,T=H===void 0?8:H,P=e.symbolBorderWidth,V=P===void 0?0:P,I=e.symbolBorderColor,L=I===void 0?"transparent":I,N=e.onClick,z=e.onMouseEnter,q=e.onMouseLeave,G=e.toggleSerie,Y=e.effects,ee=S.useState({}),Q=ee[0],K=ee[1],J=Zt(),W=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on==="hover"}).reduce(function(me,ge){return ua({},me,ge.style)},{});K(Se)}z==null||z(v,ye)},[z,v,Y]),Z=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on!=="hover"}).reduce(function(me,ge){return ua({},me,ge.style)},{});K(Se)}q==null||q(v,ye)},[q,v,Y]),U=g$({direction:y,justify:$,symbolSize:(t=Q.symbolSize)!=null?t:j,symbolSpacing:T,width:m,height:g}),F=U.symbolX,re=U.symbolY,B=U.labelX,ie=U.labelY,oe=U.labelAnchor,ve=U.labelAlignment,xe=[N,z,q,G].some(function(ye){return ye!==void 0}),pe=typeof k=="function"?k:Lie[k];return p.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=Q.itemOpacity)!=null?n:_},children:[p.jsx("rect",{width:m,height:g,fill:(r=Q.itemBackground)!=null?r:R,style:{cursor:xe?"pointer":"auto"},onClick:function(ye){N==null||N(v,ye),G==null||G(v.id)},onMouseEnter:W,onMouseLeave:Z}),x.createElement(pe,ua({id:v.id,x:F,y:re,size:(i=Q.symbolSize)!=null?i:j,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:V,borderColor:(l=Q.symbolBorderColor)!=null?l:L},v.hidden?J.legends.hidden.symbol:void 0)),p.jsx("text",{textAnchor:oe,style:ua({},wm(J.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:w)!=null?u:J.legends.text.fill)!=null?c:"black",dominantBaseline:ve,pointerEvents:"none",userSelect:"none"},v.hidden?J.legends.hidden.text:void 0),x:B,y:ie,children:v.label})]})},Aie=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemTextColor,v=e.itemBackground,b=v===void 0?"transparent":v,y=e.itemOpacity,C=y===void 0?1:y,$=e.symbolShape,w=e.symbolSize,M=e.symbolSpacing,R=e.symbolBorderWidth,E=e.symbolBorderColor,_=e.onClick,O=e.onMouseEnter,k=e.onMouseLeave,A=e.toggleSerie,j=Mm({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:m,direction:i,padding:a}).padding,H=i==="row"?c+m:0,T=i==="column"?u+m:0;return p.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(P,V){return p.jsx(Iie,{data:P,x:V*H+j.left,y:V*T+j.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:b,opacity:C,symbolShape:$,symbolSize:w,symbolSpacing:M,symbolBorderWidth:R,symbolBorderColor:E,onClick:_,onMouseEnter:O,onMouseLeave:k,toggleSerie:A},V)})})},If=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemWidth,v=e.itemHeight,b=e.itemDirection,y=e.itemTextColor,C=e.itemBackground,$=e.itemOpacity,w=e.symbolShape,M=e.symbolSize,R=e.symbolSpacing,E=e.symbolBorderWidth,_=e.symbolBorderColor,O=e.onClick,k=e.onMouseEnter,A=e.onMouseLeave,j=e.toggleSerie,H=e.effects,T=Mm({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:v,direction:c,padding:d}),P=T.width,V=T.height,I=h$({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:P,height:V}),L=I.x,N=I.y;return p.jsx(Aie,{data:t,x:L,y:N,direction:c,padding:d,justify:f,effects:H,itemsSpacing:m,itemWidth:g,itemHeight:v,itemDirection:b,itemTextColor:y,itemBackground:C,itemOpacity:$,symbolShape:w,symbolSize:M,symbolSpacing:R,symbolBorderWidth:E,symbolBorderColor:_,onClick:O,onMouseEnter:k,onMouseLeave:A,toggleSerie:typeof j=="boolean"?void 0:j})},Nie={start:"left",middle:"center",end:"right"},v$=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,m=h!==void 0&&h,g=t.itemsSpacing,v=g===void 0?0:g,b=t.itemWidth,y=t.itemHeight,C=t.itemDirection,$=C===void 0?"left-to-right":C,w=t.itemTextColor,M=t.symbolSize,R=M===void 0?16:M,E=t.symbolSpacing,_=E===void 0?8:E,O=t.theme,k=Mm({itemCount:n.length,itemWidth:b,itemHeight:y,itemsSpacing:v,direction:u,padding:f}),A=k.width,j=k.height,H=k.padding,T=h$({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:A,height:j}),P=T.x,V=T.y,I=u==="row"?b+v:0,L=u==="column"?y+v:0;e.save(),e.translate(P,V),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(N,z){var q,G,Y=z*I+H.left,ee=z*L+H.top,Q=g$({direction:$,justify:m,symbolSize:R,symbolSpacing:_,width:b,height:y}),K=Q.symbolX,J=Q.symbolY,W=Q.labelX,Z=Q.labelY,U=Q.labelAnchor,F=Q.labelAlignment;e.fillStyle=(q=N.color)!=null?q:"black",e.fillRect(Y+K,ee+J,R,R),e.textAlign=Nie[U],F==="central"&&(e.textBaseline="middle"),e.fillStyle=(G=w??O.legends.text.fill)!=null?G:"black",e.fillText(String(N.label),Y+W,ee+Z)}),e.restore()};function Fie(e){return e.target.depth}function Die(e){return e.depth}function zie(e,t){return t-1-e.height}function m$(e,t){return e.sourceLinks.length?e.depth:t-1}function Bie(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?ES(e.sourceLinks,Fie)-1:0}function u1(e){return function(){return e}}function N8(e,t){return bd(e.source,t.source)||e.index-t.index}function F8(e,t){return bd(e.target,t.target)||e.index-t.index}function bd(e,t){return e.y0-t.y0}function w2(e){return e.value}function Wie(e){return e.index}function Zie(e){return e.nodes}function Uie(e){return e.links}function D8(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function z8({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function qie(){let e=0,t=0,n=1,r=1,i=24,o=8,a,s=Wie,l=m$,c,u,d=Zie,f=Uie,h=6;function m(){const T={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return g(T),v(T),b(T),y(T),w(T),z8(T),T}m.update=function(T){return z8(T),T},m.nodeId=function(T){return arguments.length?(s=typeof T=="function"?T:u1(T),m):s},m.nodeAlign=function(T){return arguments.length?(l=typeof T=="function"?T:u1(T),m):l},m.nodeSort=function(T){return arguments.length?(c=T,m):c},m.nodeWidth=function(T){return arguments.length?(i=+T,m):i},m.nodePadding=function(T){return arguments.length?(o=a=+T,m):o},m.nodes=function(T){return arguments.length?(d=typeof T=="function"?T:u1(T),m):d},m.links=function(T){return arguments.length?(f=typeof T=="function"?T:u1(T),m):f},m.linkSort=function(T){return arguments.length?(u=T,m):u},m.size=function(T){return arguments.length?(e=t=0,n=+T[0],r=+T[1],m):[n-e,r-t]},m.extent=function(T){return arguments.length?(e=+T[0][0],n=+T[1][0],t=+T[0][1],r=+T[1][1],m):[[e,t],[n,r]]},m.iterations=function(T){return arguments.length?(h=+T,m):h};function g({nodes:T,links:P}){for(const[I,L]of T.entries())L.index=I,L.sourceLinks=[],L.targetLinks=[];const V=new Map(T.map((I,L)=>[s(I,L,T),I]));for(const[I,L]of P.entries()){L.index=I;let{source:N,target:z}=L;typeof N!="object"&&(N=L.source=D8(V,N)),typeof z!="object"&&(z=L.target=D8(V,z)),N.sourceLinks.push(L),z.targetLinks.push(L)}if(u!=null)for(const{sourceLinks:I,targetLinks:L}of T)I.sort(u),L.sort(u)}function v({nodes:T}){for(const P of T)P.value=P.fixedValue===void 0?Math.max(m2(P.sourceLinks,w2),m2(P.targetLinks,w2)):P.fixedValue}function b({nodes:T}){const P=T.length;let V=new Set(T),I=new Set,L=0;for(;V.size;){for(const N of V){N.depth=L;for(const{target:z}of N.sourceLinks)I.add(z)}if(++L>P)throw new Error("circular link");V=I,I=new Set}}function y({nodes:T}){const P=T.length;let V=new Set(T),I=new Set,L=0;for(;V.size;){for(const N of V){N.height=L;for(const{source:z}of N.targetLinks)I.add(z)}if(++L>P)throw new Error("circular link");V=I,I=new Set}}function C({nodes:T}){const P=s8(T,L=>L.depth)+1,V=(n-e-i)/(P-1),I=new Array(P);for(const L of T){const N=Math.max(0,Math.min(P-1,Math.floor(l.call(null,L,P))));L.layer=N,L.x0=e+N*V,L.x1=L.x0+i,I[N]?I[N].push(L):I[N]=[L]}if(c)for(const L of I)L.sort(c);return I}function $(T){const P=ES(T,V=>(r-t-(V.length-1)*a)/m2(V,w2));for(const V of T){let I=t;for(const L of V){L.y0=I,L.y1=I+L.value*P,I=L.y1+a;for(const N of L.sourceLinks)N.width=N.value*P}I=(r-I+a)/(V.length+1);for(let L=0;L<V.length;++L){const N=V[L];N.y0+=I*(L+1),N.y1+=I*(L+1)}A(V)}}function w(T){const P=C(T);a=Math.min(o,(r-t)/(s8(P,V=>V.length)-1)),$(P);for(let V=0;V<h;++V){const I=Math.pow(.99,V),L=Math.max(1-I,(V+1)/h);R(P,I,L),M(P,I,L)}}function M(T,P,V){for(let I=1,L=T.length;I<L;++I){const N=T[I];for(const z of N){let q=0,G=0;for(const{source:ee,value:Q}of z.targetLinks){let K=Q*(z.layer-ee.layer);q+=j(ee,z)*K,G+=K}if(!(G>0))continue;let Y=(q/G-z.y0)*P;z.y0+=Y,z.y1+=Y,k(z)}c===void 0&&N.sort(bd),E(N,V)}}function R(T,P,V){for(let I=T.length,L=I-2;L>=0;--L){const N=T[L];for(const z of N){let q=0,G=0;for(const{target:ee,value:Q}of z.sourceLinks){let K=Q*(ee.layer-z.layer);q+=H(z,ee)*K,G+=K}if(!(G>0))continue;let Y=(q/G-z.y0)*P;z.y0+=Y,z.y1+=Y,k(z)}c===void 0&&N.sort(bd),E(N,V)}}function E(T,P){const V=T.length>>1,I=T[V];O(T,I.y0-a,V-1,P),_(T,I.y1+a,V+1,P),O(T,r,T.length-1,P),_(T,t,0,P)}function _(T,P,V,I){for(;V<T.length;++V){const L=T[V],N=(P-L.y0)*I;N>1e-6&&(L.y0+=N,L.y1+=N),P=L.y1+a}}function O(T,P,V,I){for(;V>=0;--V){const L=T[V],N=(L.y1-P)*I;N>1e-6&&(L.y0-=N,L.y1-=N),P=L.y0-a}}function k({sourceLinks:T,targetLinks:P}){if(u===void 0){for(const{source:{sourceLinks:V}}of P)V.sort(F8);for(const{target:{targetLinks:V}}of T)V.sort(N8)}}function A(T){if(u===void 0)for(const{sourceLinks:P,targetLinks:V}of T)P.sort(F8),V.sort(N8)}function j(T,P){let V=T.y0-(T.sourceLinks.length-1)*a/2;for(const{target:I,width:L}of T.sourceLinks){if(I===P)break;V+=L+a}for(const{source:I,width:L}of P.targetLinks){if(I===T)break;V-=L}return V}function H(T,P){let V=P.y0-(P.targetLinks.length-1)*a/2;for(const{source:I,width:L}of P.targetLinks){if(I===T)break;V+=L+a}for(const{target:I,width:L}of T.sourceLinks){if(I===P)break;V-=L}return V}return m}function Gie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Yie=Gie,Kie=ll,Xie=Mu;function Qie(e,t){return e&&Kie(t,Xie(t),e)}var Jie=Qie,eoe=ll,toe=bu;function noe(e,t){return e&&eoe(t,toe(t),e)}var roe=noe,ioe=ll,ooe=ym;function aoe(e,t){return ioe(e,ooe(e),t)}var soe=aoe,loe=bm,coe=Rv,uoe=ym,doe=FS,foe=Object.getOwnPropertySymbols,hoe=foe?function(e){for(var t=[];e;)loe(t,uoe(e)),e=coe(e);return t}:doe,p$=hoe,goe=ll,voe=p$;function moe(e,t){return goe(e,voe(e),t)}var poe=moe,boe=AS,yoe=p$,xoe=bu;function Coe(e){return boe(e,xoe,yoe)}var b$=Coe,woe=Object.prototype,Soe=woe.hasOwnProperty;function $oe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Soe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Moe=$oe,_oe=Vv;function Eoe(e,t){var n=t?_oe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Hoe=Eoe,Ooe=/\w*$/;function Voe(e){var t=new e.constructor(e.source,Ooe.exec(e));return t.lastIndex=e.lastIndex,t}var Roe=Voe,B8=Js,W8=B8?B8.prototype:void 0,Z8=W8?W8.valueOf:void 0;function Toe(e){return Z8?Object(Z8.call(e)):{}}var koe=Toe,joe=Vv,Poe=Hoe,Loe=Roe,Ioe=koe,Aoe=bw,Noe="[object Boolean]",Foe="[object Date]",Doe="[object Map]",zoe="[object Number]",Boe="[object RegExp]",Woe="[object Set]",Zoe="[object String]",Uoe="[object Symbol]",qoe="[object ArrayBuffer]",Goe="[object DataView]",Yoe="[object Float32Array]",Koe="[object Float64Array]",Xoe="[object Int8Array]",Qoe="[object Int16Array]",Joe="[object Int32Array]",eae="[object Uint8Array]",tae="[object Uint8ClampedArray]",nae="[object Uint16Array]",rae="[object Uint32Array]";function iae(e,t,n){var r=e.constructor;switch(t){case qoe:return joe(e);case Noe:case Foe:return new r(+e);case Goe:return Poe(e,n);case Yoe:case Koe:case Xoe:case Qoe:case Joe:case eae:case tae:case nae:case rae:return Aoe(e,n);case Doe:return new r;case zoe:case Zoe:return new r(e);case Boe:return Loe(e);case Woe:return new r;case Uoe:return Ioe(e)}}var oae=iae,aae=kf,sae=Gr,lae="[object Map]";function cae(e){return sae(e)&&aae(e)==lae}var uae=cae,dae=uae,fae=sl,U8=gf,q8=U8&&U8.isMap,hae=q8?fae(q8):dae,gae=hae,vae=kf,mae=Gr,pae="[object Set]";function bae(e){return mae(e)&&vae(e)==pae}var yae=bae,xae=yae,Cae=sl,G8=gf,Y8=G8&&G8.isSet,wae=Y8?Cae(Y8):xae,Sae=wae,$ae=df,Mae=Yie,_ae=Lv,Eae=Jie,Hae=roe,Oae=mw,Vae=yw,Rae=soe,Tae=poe,kae=DS,jae=b$,Pae=kf,Lae=Moe,Iae=oae,Aae=Cw,Nae=Cr,Fae=hf,Dae=gae,zae=Mi,Bae=Sae,Wae=Mu,Zae=bu,Uae=1,qae=2,Gae=4,y$="[object Arguments]",Yae="[object Array]",Kae="[object Boolean]",Xae="[object Date]",Qae="[object Error]",x$="[object Function]",Jae="[object GeneratorFunction]",ese="[object Map]",tse="[object Number]",C$="[object Object]",nse="[object RegExp]",rse="[object Set]",ise="[object String]",ose="[object Symbol]",ase="[object WeakMap]",sse="[object ArrayBuffer]",lse="[object DataView]",cse="[object Float32Array]",use="[object Float64Array]",dse="[object Int8Array]",fse="[object Int16Array]",hse="[object Int32Array]",gse="[object Uint8Array]",vse="[object Uint8ClampedArray]",mse="[object Uint16Array]",pse="[object Uint32Array]",un={};un[y$]=un[Yae]=un[sse]=un[lse]=un[Kae]=un[Xae]=un[cse]=un[use]=un[dse]=un[fse]=un[hse]=un[ese]=un[tse]=un[C$]=un[nse]=un[rse]=un[ise]=un[ose]=un[gse]=un[vse]=un[mse]=un[pse]=!0;un[Qae]=un[x$]=un[ase]=!1;function H1(e,t,n,r,i,o){var a,s=t&Uae,l=t&qae,c=t&Gae;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!zae(e))return e;var u=Nae(e);if(u){if(a=Lae(e),!s)return Vae(e,a)}else{var d=Pae(e),f=d==x$||d==Jae;if(Fae(e))return Oae(e,s);if(d==C$||d==y$||f&&!i){if(a=l||f?{}:Aae(e),!s)return l?Tae(e,Hae(a,e)):Rae(e,Eae(a,e))}else{if(!un[d])return i?e:{};a=Iae(e,d,s)}}o||(o=new $ae);var h=o.get(e);if(h)return h;o.set(e,a),Bae(e)?e.forEach(function(v){a.add(H1(v,t,n,v,e,o))}):Dae(e)&&e.forEach(function(v,b){a.set(b,H1(v,t,n,b,e,o))});var m=c?l?jae:kae:l?Zae:Wae,g=u?void 0:m(e);return Mae(g||e,function(v,b){g&&(b=v,v=e[b]),_ae(a,b,H1(v,t,n,b,e,o))}),a}var w$=H1,bse=w$,yse=1,xse=4;function Cse(e){return bse(e,yse|xse)}var wse=Cse;const S$=Cn(wse);function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}var S2={container:{display:"flex",alignItems:"center"},sourceChip:{marginRight:7},targetChip:{marginLeft:7,marginRight:7}},Sse={center:Bie,justify:m$,start:Die,end:zie},$se=function(e){return Sse[e]},At={layout:"horizontal",align:"center",sort:"auto",colors:{scheme:"nivo"},nodeOpacity:.75,nodeHoverOpacity:1,nodeHoverOthersOpacity:.15,nodeThickness:12,nodeSpacing:12,nodeInnerPadding:0,nodeBorderWidth:1,nodeBorderColor:{from:"color",modifiers:[["darker",.5]]},nodeBorderRadius:0,linkOpacity:.25,linkHoverOpacity:.6,linkHoverOthersOpacity:.15,linkContract:0,linkBlendMode:"multiply",enableLinkGradient:!1,enableLabels:!0,label:"id",labelPosition:"inside",labelPadding:9,labelOrientation:"horizontal",labelTextColor:{from:"color",modifiers:[["darker",.8]]},isInteractive:!0,nodeTooltip:function(e){var t=e.node;return p.jsx(Is,{id:t.label,enableChip:!0,color:t.color})},linkTooltip:function(e){var t=e.link;return p.jsx(Is,{id:p.jsxs("span",{style:S2.container,children:[p.jsx(J1,{color:t.source.color,style:S2.sourceChip}),p.jsx("strong",{children:t.source.label})," > ",p.jsx("strong",{children:t.target.label}),p.jsx(J1,{color:t.target.color,style:S2.targetChip}),p.jsx("strong",{children:t.formattedValue})]})})},legends:[],layers:["links","nodes","labels","legends"],role:"img",animate:!0,motionConfig:"gentle"},Mse=function(e){return e.id},_se=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=e.width,o=e.height,a=e.sort,s=e.align,l=e.colors,c=e.nodeThickness,u=e.nodeSpacing,d=e.nodeInnerPadding,f=e.nodeBorderColor,h=e.label,m=e.labelTextColor,g=S.useState(null),v=g[0],b=g[1],y=S.useState(null),C=y[0],$=y[1],w=S.useMemo(function(){if(a!=="auto")return a==="input"?null:a==="ascending"?function(I,L){return I.value-L.value}:a==="descending"?function(I,L){return L.value-I.value}:a},[a]),M=a==="input"?null:void 0,R=S.useMemo(function(){return typeof s=="function"?s:$se(s)},[s]),E=Zt(),_=_u(l,"id"),O=Hr(f,E),k=bi(h),A=Hr(m,E),j=Lo(n),H=S.useMemo(function(){return function(I){var L=I.data,N=I.formatValue,z=I.layout,q=I.alignFunction,G=I.sortFunction,Y=I.linkSortMode,ee=I.nodeThickness,Q=I.nodeSpacing,K=I.nodeInnerPadding,J=I.width,W=I.height,Z=I.getColor,U=I.getLabel,F=qie().nodeAlign(q).nodeSort(G).linkSort(Y).nodeWidth(ee).nodePadding(Q).size(z==="horizontal"?[J,W]:[W,J]).nodeId(Mse),re=S$(L);return F(re),re.nodes.forEach(function(B){if(B.color=Z(B),B.label=U(B),B.formattedValue=N(B.value),z==="horizontal")B.x=B.x0+K,B.y=B.y0,B.width=Math.max(B.x1-B.x0-2*K,0),B.height=Math.max(B.y1-B.y0,0);else{B.x=B.y0,B.y=B.x0+K,B.width=Math.max(B.y1-B.y0,0),B.height=Math.max(B.x1-B.x0-2*K,0);var ie=B.x0,oe=B.x1;B.x0=B.y0,B.x1=B.y1,B.y0=ie,B.y1=oe}}),re.links.forEach(function(B){B.formattedValue=N(B.value),B.color=B.source.color,B.pos0=B.y0,B.pos1=B.y1,B.thickness=B.width,delete B.y0,delete B.y1,delete B.width}),re}({data:t,formatValue:j,layout:r,alignFunction:R,sortFunction:w,linkSortMode:M,nodeThickness:c,nodeSpacing:u,nodeInnerPadding:d,width:i,height:o,getColor:_,getLabel:k})},[t,j,r,R,w,M,c,u,d,i,o,_,k]),T=H.nodes,P=H.links,V=S.useMemo(function(){return T.map(function(I){return{id:I.id,label:I.label,color:I.color}})},[T]);return{nodes:T,links:P,legendData:V,getNodeBorderColor:O,currentNode:v,setCurrentNode:b,currentLink:C,setCurrentLink:$,getLabelTextColor:A}},Ese=function(e){var t=e.node,n=e.x,r=e.y,i=e.width,o=e.height,a=e.color,s=e.opacity,l=e.borderWidth,c=e.borderColor,u=e.borderRadius,d=e.setCurrent,f=e.isInteractive,h=e.onClick,m=e.tooltip,g=Fn(),v=g.animate,b=g.config,y=Qt({x:n,y:r,width:i,height:o,opacity:s,color:a,config:b,immediate:!v}),C=ci(),$=C.showTooltipFromEvent,w=C.hideTooltip,M=S.useCallback(function(O){d(t),$(S.createElement(m,{node:t}),O,"left")},[d,t,$,m]),R=S.useCallback(function(O){$(S.createElement(m,{node:t}),O,"left")},[$,t,m]),E=S.useCallback(function(){d(null),w()},[d,w]),_=S.useCallback(function(O){h==null||h(t,O)},[h,t]);return p.jsx(et.rect,{x:y.x,y:y.y,rx:u,ry:u,width:y.width.to(function(O){return Math.max(O,0)}),height:y.height.to(function(O){return Math.max(O,0)}),fill:y.color,fillOpacity:y.opacity,strokeWidth:l,stroke:c,strokeOpacity:s,onMouseEnter:f?M:void 0,onMouseMove:f?R:void 0,onMouseLeave:f?E:void 0,onClick:f?_:void 0})},Hse=function(e){var t=e.nodes,n=e.nodeOpacity,r=e.nodeHoverOpacity,i=e.nodeHoverOthersOpacity,o=e.borderWidth,a=e.getBorderColor,s=e.borderRadius,l=e.setCurrentNode,c=e.currentNode,u=e.currentLink,d=e.isCurrentNode,f=e.isInteractive,h=e.onClick,m=e.tooltip,g=function(v){return c||u?d(v)?r:i:n};return p.jsx(p.Fragment,{children:t.map(function(v){return p.jsx(Ese,{node:v,x:v.x,y:v.y,width:v.width,height:v.height,color:v.color,opacity:g(v),borderWidth:o,borderColor:a(v),borderRadius:s,setCurrent:l,isInteractive:f,onClick:h,tooltip:m},v.id)})})},Ose=function(e){var t=e.id,n=e.layout,r=e.startColor,i=e.endColor;return p.jsxs("linearGradient",$a({id:t,spreadMethod:"pad"},n==="horizontal"?{x1:"0%",x2:"100%",y1:"0%",y2:"0%"}:{x1:"0%",x2:"0%",y1:"0%",y2:"100%"},{children:[p.jsx("stop",{offset:"0%",stopColor:r}),p.jsx("stop",{offset:"100%",stopColor:i})]}))},Vse=function(e){var t=e.link,n=e.layout,r=e.path,i=e.color,o=e.opacity,a=e.blendMode,s=e.enableGradient,l=e.setCurrent,c=e.tooltip,u=e.isInteractive,d=e.onClick,f=t.source.id+"."+t.target.id+"."+t.index,h=Fn(),m=h.animate,g=h.config,v=Pf(r),b=Qt({color:i,opacity:o,config:g,immediate:!m}),y=ci(),C=y.showTooltipFromEvent,$=y.hideTooltip,w=S.useCallback(function(_){l(t),C(S.createElement(c,{link:t}),_,"left")},[l,t,C,c]),M=S.useCallback(function(_){C(S.createElement(c,{link:t}),_,"left")},[C,t,c]),R=S.useCallback(function(){l(null),$()},[l,$]),E=S.useCallback(function(_){d==null||d(t,_)},[d,t]);return p.jsxs(p.Fragment,{children:[s&&p.jsx(Ose,{id:f,layout:n,startColor:t.startColor||t.source.color,endColor:t.endColor||t.target.color}),p.jsx(et.path,{fill:s?'url("#'+encodeURI(f)+'")':b.color,d:v,fillOpacity:b.opacity,onMouseEnter:u?w:void 0,onMouseMove:u?M:void 0,onMouseLeave:u?R:void 0,onClick:u?E:void 0,style:{mixBlendMode:a}})]})},Rse=function(e){var t=e.links,n=e.layout,r=e.linkOpacity,i=e.linkHoverOpacity,o=e.linkHoverOthersOpacity,a=e.linkContract,s=e.linkBlendMode,l=e.enableLinkGradient,c=e.setCurrentLink,u=e.currentLink,d=e.currentNode,f=e.isCurrentLink,h=e.isInteractive,m=e.onClick,g=e.tooltip,v=function(y){return d||u?f(y)?i:o:r},b=S.useMemo(function(){return n==="horizontal"?(y=Yc().curve($u),function(C,$){var w=Math.max(1,C.thickness-2*$)/2,M=.12*(C.target.x0-C.source.x1),R=[[C.source.x1,C.pos0-w],[C.source.x1+M,C.pos0-w],[C.target.x0-M,C.pos1-w],[C.target.x0,C.pos1-w],[C.target.x0,C.pos1+w],[C.target.x0-M,C.pos1+w],[C.source.x1+M,C.pos0+w],[C.source.x1,C.pos0+w],[C.source.x1,C.pos0-w]];return y(R)+"Z"}):function(){var C=Yc().curve(Rf);return function($,w){var M=Math.max(1,$.thickness-2*w)/2,R=.12*($.target.y0-$.source.y1),E=[[$.pos0+M,$.source.y1],[$.pos0+M,$.source.y1+R],[$.pos1+M,$.target.y0-R],[$.pos1+M,$.target.y0],[$.pos1-M,$.target.y0],[$.pos1-M,$.target.y0-R],[$.pos0-M,$.source.y1+R],[$.pos0-M,$.source.y1],[$.pos0+M,$.source.y1]];return C(E)+"Z"}}();var y},[n]);return p.jsx(p.Fragment,{children:t.map(function(y){return p.jsx(Vse,{link:y,layout:n,path:b(y,a),color:y.color,opacity:v(y),blendMode:s,enableGradient:l,setCurrent:c,isInteractive:h,onClick:m,tooltip:g},y.source.id+"."+y.target.id+"."+y.index)})})},Tse=function(e){var t=e.nodes,n=e.layout,r=e.width,i=e.height,o=e.labelPosition,a=e.labelPadding,s=e.labelOrientation,l=e.getLabelTextColor,c=Zt(),u=s==="vertical"?-90:0,d=t.map(function(v){var b,y,C;return n==="horizontal"?(y=v.y+v.height/2,v.x<r/2?o==="inside"?(b=v.x1+a,C=s==="vertical"?"middle":"start"):(b=v.x-a,C=s==="vertical"?"middle":"end"):o==="inside"?(b=v.x-a,C=s==="vertical"?"middle":"end"):(b=v.x1+a,C=s==="vertical"?"middle":"start")):n==="vertical"&&(b=v.x+v.width/2,v.y<i/2?o==="inside"?(y=v.y1+a,C=s==="vertical"?"end":"middle"):(y=v.y-a,C=s==="vertical"?"start":"middle"):o==="inside"?(y=v.y-a,C=s==="vertical"?"start":"middle"):(y=v.y1+a,C=s==="vertical"?"end":"middle")),{id:v.id,label:v.label,x:b,y,textAnchor:C,color:l(v)}}),f=Fn(),h=f.animate,m=f.config,g=aw(d.length,d.map(function(v){return{transform:"translate("+v.x+", "+v.y+") rotate("+u+")",color:v.color,config:m,immediate:!h}}));return p.jsx(p.Fragment,{children:g.map(function(v,b){var y=d[b];return p.jsx(et.text,{dominantBaseline:"central",textAnchor:y.textAnchor,transform:v.transform,style:$a({},c.labels.text,{fill:v.color,pointerEvents:"none"}),children:y.label},y.id)})})},kse=["isInteractive","animate","motionConfig","theme","renderWrapper"],jse=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=r===void 0?At.layout:r,o=e.sort,a=o===void 0?At.sort:o,s=e.align,l=s===void 0?At.align:s,c=e.width,u=e.height,d=e.margin,f=e.colors,h=f===void 0?At.colors:f,m=e.nodeThickness,g=m===void 0?At.nodeThickness:m,v=e.nodeSpacing,b=v===void 0?At.nodeThickness:v,y=e.nodeInnerPadding,C=y===void 0?At.nodeInnerPadding:y,$=e.nodeBorderColor,w=$===void 0?At.nodeBorderColor:$,M=e.nodeOpacity,R=M===void 0?At.nodeOpacity:M,E=e.nodeHoverOpacity,_=E===void 0?At.nodeHoverOpacity:E,O=e.nodeHoverOthersOpacity,k=O===void 0?At.nodeHoverOthersOpacity:O,A=e.nodeBorderWidth,j=A===void 0?At.nodeBorderWidth:A,H=e.nodeBorderRadius,T=H===void 0?At.nodeBorderRadius:H,P=e.linkOpacity,V=P===void 0?At.linkOpacity:P,I=e.linkHoverOpacity,L=I===void 0?At.linkHoverOpacity:I,N=e.linkHoverOthersOpacity,z=N===void 0?At.linkHoverOthersOpacity:N,q=e.linkContract,G=q===void 0?At.linkContract:q,Y=e.linkBlendMode,ee=Y===void 0?At.linkBlendMode:Y,Q=e.enableLinkGradient,K=Q===void 0?At.enableLinkGradient:Q,J=e.enableLabels,W=J===void 0?At.enableLabels:J,Z=e.labelPosition,U=Z===void 0?At.labelPosition:Z,F=e.labelPadding,re=F===void 0?At.labelPadding:F,B=e.labelOrientation,ie=B===void 0?At.labelOrientation:B,oe=e.label,ve=oe===void 0?At.label:oe,xe=e.labelTextColor,pe=xe===void 0?At.labelTextColor:xe,ye=e.nodeTooltip,Se=ye===void 0?At.nodeTooltip:ye,me=e.linkTooltip,ge=me===void 0?At.linkTooltip:me,ce=e.isInteractive,$e=ce===void 0?At.isInteractive:ce,he=e.onClick,Ae=e.legends,Ie=Ae===void 0?At.legends:Ae,Re=e.layers,ke=Re===void 0?At.layers:Re,Ye=e.role,Xe=Ye===void 0?At.role:Ye,Fe=e.ariaLabel,je=e.ariaLabelledBy,Qe=e.ariaDescribedBy,Ze=Za(c,u,d),qe=Ze.margin,de=Ze.innerWidth,Ee=Ze.innerHeight,Ke=Ze.outerWidth,nt=Ze.outerHeight,Ne=_se({data:t,valueFormat:n,layout:i,width:de,height:Ee,sort:a,align:l,colors:h,nodeThickness:g,nodeSpacing:b,nodeInnerPadding:C,nodeBorderColor:w,label:ve,labelTextColor:pe}),ze=Ne.nodes,De=Ne.links,Je=Ne.legendData,tt=Ne.getNodeBorderColor,Be=Ne.currentNode,Pe=Ne.setCurrentNode,ct=Ne.currentLink,pt=Ne.setCurrentLink,He=Ne.getLabelTextColor,fe=function(){return!1},we=function(){return!1};if(ct&&(fe=function(rt){var X=rt.id;return X===ct.source.id||X===ct.target.id},we=function(rt){var X=rt.source,ae=rt.target;return X.id===ct.source.id&&ae.id===ct.target.id}),Be){var Oe=[Be.id];De.filter(function(rt){var X=rt.source,ae=rt.target;return X.id===Be.id||ae.id===Be.id}).forEach(function(rt){var X=rt.source,ae=rt.target;Oe.push(X.id),Oe.push(ae.id)}),Oe=Q3(Oe),fe=function(rt){var X=rt.id;return Oe.includes(X)},we=function(rt){var X=rt.source,ae=rt.target;return X.id===Be.id||ae.id===Be.id}}var Ge={links:De,nodes:ze,margin:qe,width:c,height:u,outerWidth:Ke,outerHeight:nt},We={links:null,nodes:null,labels:null,legends:null};return ke.includes("links")&&(We.links=p.jsx(Rse,{links:De,layout:i,linkContract:G,linkOpacity:V,linkHoverOpacity:L,linkHoverOthersOpacity:z,linkBlendMode:ee,enableLinkGradient:K,setCurrentLink:pt,currentNode:Be,currentLink:ct,isCurrentLink:we,isInteractive:$e,onClick:he,tooltip:ge},"links")),ke.includes("nodes")&&(We.nodes=p.jsx(Hse,{nodes:ze,nodeOpacity:R,nodeHoverOpacity:_,nodeHoverOthersOpacity:k,borderWidth:j,borderRadius:T,getBorderColor:tt,setCurrentNode:Pe,currentNode:Be,currentLink:ct,isCurrentNode:fe,isInteractive:$e,onClick:he,tooltip:Se},"nodes")),ke.includes("labels")&&W&&(We.labels=p.jsx(Tse,{nodes:ze,layout:i,width:de,height:Ee,labelPosition:U,labelPadding:re,labelOrientation:ie,getLabelTextColor:He},"labels")),ke.includes("legends")&&(We.legends=p.jsx(S.Fragment,{children:Ie.map(function(rt,X){return p.jsx(If,$a({},rt,{containerWidth:de,containerHeight:Ee,data:Je}),"legend"+X)})},"legends")),p.jsx(Sl,{width:Ke,height:nt,margin:qe,role:Xe,ariaLabel:Fe,ariaLabelledBy:je,ariaDescribedBy:Qe,children:ke.map(function(rt,X){var ae;return typeof rt=="function"?p.jsx(S.Fragment,{children:S.createElement(rt,Ge)},X):(ae=We==null?void 0:We[rt])!=null?ae:null})})},Pse=function(e){var t=e.isInteractive,n=t===void 0?At.isInteractive:t,r=e.animate,i=r===void 0?At.animate:r,o=e.motionConfig,a=o===void 0?At.motionConfig:o,s=e.theme,l=e.renderWrapper,c=function(u,d){if(u==null)return{};var f,h,m={},g=Object.keys(u);for(h=0;h<g.length;h++)f=g[h],d.indexOf(f)>=0||(m[f]=u[f]);return m}(e,kse);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(jse,$a({isInteractive:n},c))})},$$=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(Pse,$a({width:n,height:r},e))}})};const Lse={background:"white",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px",font:"var(--gf-label-lg-default)"},Zn=({id:e=null,style:t={},body:n=null})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{id:e,style:{...Lse,...t},children:n||p.jsx("span",{children:"Custom tooltip"})})]}),Ise=({sankeyData:e,linktooltip:t=null,nodetooltip:n=null,customStyle:r={},customMargin:i={}})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{style:{width:"100%",height:600,...r},children:p.jsx($$,{labelPosition:"outside",data:e,margin:{top:20,right:120,bottom:20,left:120,...i},nodeTooltip:({node:o})=>p.jsx(Zn,{body:(n==null?void 0:n({node:o}))||p.jsx("span",{children:"Sankey node tooltip"})}),linkTooltip:({link:o})=>p.jsx(Zn,{body:(t==null?void 0:t({link:o}))||p.jsx("span",{children:"Sankey link tooltip"})})})})]});function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(this,arguments)}var Ase={pointerEvents:"none"},Nse=function(e){var t=e.label,n=e.style,r=Zt();return p.jsx(et.g,{transform:n.transform,opacity:n.progress,style:Ase,children:p.jsx(et.text,{textAnchor:"middle",dominantBaseline:"central",style:dn({},r.labels.text,{fill:n.textColor}),children:t})})},M$=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},Fse=function(e,t){return e.filter(function(n){return Math.abs(Lf(n.arc.endAngle-n.arc.startAngle))>=t})},Dse={startAngle:{enter:function(e){return dn({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return dn({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return dn({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return dn({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return dn({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return dn({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return dn({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return dn({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return dn({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return dn({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return dn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return dn({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return dn({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},_$=function(e,t){return S.useMemo(function(){var n=Dse[e];return{enter:function(r){return dn({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return dn({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return dn({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},zse=function(e,t){var n=iie(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return ma(n,r)},Bse=function(e){return function(t,n,r,i){return Vn([t,n,r,i],function(o,a,s,l){var c=zse({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},Wse=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=_$(n,r);return{transition:xr(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:Bse(t)}},Zse=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.textColor,l=e.component,c=l===void 0?Nse:l,u=bi(i),d=Zt(),f=Hr(s,d),h=S.useMemo(function(){return n.filter(function(y){return Math.abs(Lf(y.arc.endAngle-y.arc.startAngle))>=a})},[n,a]),m=Wse(h,o,r),g=m.transition,v=m.interpolate,b=c;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(y,C){return S.createElement(b,{key:C.id,datum:C,label:u(C),style:dn({},y,{transform:v(y.startAngle,y.endAngle,y.innerRadius,y.outerRadius),textColor:f(C)})})})})},Use=function(e){var t=e.label,n=e.style,r=Zt();return p.jsxs(et.g,{opacity:n.opacity,children:[p.jsx(et.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),p.jsx(et.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:dn({},r.labels.text,{fill:n.textColor}),children:t})]})},qse=function(e){var t=M$(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},E$=function(e,t,n,r){var i,o,a=M$(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=ma(a,e.outerRadius+t),l=ma(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:l.x+r,y:l.y}):(i="before",o={x:l.x-r,y:l.y}),{side:i,points:[s,l,o]}},Gse=Yc().x(function(e){return e.x}).y(function(e){return e.y}),Yse=function(e,t,n,r,i,o,a){return Vn([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var m=E$({startAngle:s,endAngle:l,innerRadius:c,outerRadius:u},d,f,h).points;return Gse(m)})},Kse=function(e,t,n,r){return Vn([e,t,n,r],function(i,o,a,s){return qse({startAngle:i,endAngle:o,innerRadius:a,outerRadius:s})})},Xse=function(e,t,n,r,i,o,a,s){return Vn([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,m,g){var v=E$({startAngle:l,endAngle:c,innerRadius:u,outerRadius:d},f,h,m),b=v.points,y=v.side,C=b[2];return y==="before"?C.x-=g:C.x+=g,"translate("+C.x+","+C.y+")"})},Qse=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,m=Zt(),g=Hr(c,m),v=Hr(u,m),b=function(C,$){return S.useMemo(function(){return Fse(C,$)},[C,$])}(t,s),y=function(C){var $=C.offset,w=C.diagonalLength,M=C.straightLength,R=C.textOffset,E=C.getLinkColor,_=C.getTextColor;return S.useMemo(function(){return{enter:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:R,linkColor:E(O),textColor:_(O),opacity:0}},update:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:w,straightLength:M,textOffset:R,linkColor:E(O),textColor:_(O),opacity:1}},leave:function(O){return{startAngle:O.arc.startAngle,endAngle:O.arc.endAngle,innerRadius:O.arc.innerRadius,outerRadius:O.arc.outerRadius,offset:$,diagonalLength:0,straightLength:0,textOffset:R,linkColor:E(O),textColor:_(O),opacity:0}}}},[w,M,R,E,_,$])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:g,getTextColor:v});return{transition:xr(b,{keys:function(C){return C.id},initial:y.update,from:y.enter,enter:y.update,update:y.update,leave:y.leave,config:h,immediate:!f}),interpolateLink:Yse,interpolateTextAnchor:Kse,interpolateTextPosition:Xse}},Jse=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?Use:f,m=bi(r),g=Qse({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=g.transition,b=g.interpolateLink,y=g.interpolateTextAnchor,C=g.interpolateTextPosition,$=h;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(w,M){return S.createElement($,{key:M.id,datum:M,label:m(M),style:dn({},w,{thickness:l,path:b(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength),textAnchor:y(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textPosition:C(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,w.offset,w.diagonalLength,w.straightLength,w.textOffset)})})})})},ele=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=S.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=S.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=S.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=S.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return p.jsx(et.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0})},tle=function(e,t,n,r,i){return Vn([e,t,n,r],function(o,a,s,l){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},nle=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=_$(t,n);return{transition:xr(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:tle}},rle=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?ele:d,h=Zt(),m=Hr(o,h),g=nle(n,u,{enter:function(C){return{opacity:0,color:C.color,borderColor:m(C)}},update:function(C){return{opacity:1,color:C.color,borderColor:m(C)}},leave:function(C){return{opacity:0,color:C.color,borderColor:m(C)}}}),v=g.transition,b=g.interpolate,y=f;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(C,$){return S.createElement(y,{key:$.id,datum:$,style:dn({},C,{borderWidth:i,path:b(C.startAngle,C.endAngle,C.innerRadius,C.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},ile=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=ma(Dr(r),n);a.push([s.x,s.y]);var l=ma(Dr(i),n);a.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=ma(Dr(c),n);a.push([u.x,u.y])}a=a.map(function(v){var b=v[0],y=v[1];return[e+b,t+y]}),o&&a.push([e,t]);var d=a.map(function(v){return v[0]}),f=a.map(function(v){return v[1]}),h=Math.min.apply(Math,d),m=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:m-h,height:Math.max.apply(Math,f)-g}},ole=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return S.useMemo(function(){return GJ().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])};function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Io.apply(this,arguments)}function H$(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var K8,ale=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return p.jsx(p.Fragment,{children:r.map(function(a,s){var l;return p.jsx(If,Io({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},bt={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,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 p.jsx(Is,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(K8=window.devicePixelRatio)!=null?K8:1},sle=["points"],lle=function(e){var t=e.data,n=e.id,r=n===void 0?bt.id:n,i=e.value,o=i===void 0?bt.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?bt.colors:s,c=bi(r),u=bi(o),d=Lo(a),f=_u(l,"id");return S.useMemo(function(){return t.map(function(h){var m,g=c(h),v=u(h),b={id:g,label:(m=h.label)!=null?m:g,hidden:!1,value:v,formattedValue:d(v),data:h};return Io({},b,{color:f(b)})})},[t,c,u,d,f])},cle=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=S.useMemo(function(){var b=XJ().value(function(y){return y.value}).startAngle(Dr(n)).endAngle(Dr(r)).padAngle(Dr(a));return s||b.sortValues(null),b},[n,r,a,s]),m=S.useMemo(function(){var b=t.filter(function(y){return!d.includes(y.id)});return{dataWithArc:h(b).map(function(y){var C=Math.abs(y.endAngle-y.startAngle);return Io({},y.data,{arc:{index:y.index,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:l===y.data.id?i-c:i,outerRadius:l===y.data.id?o+u:o,thickness:o-i,padAngle:y.padAngle,angle:C,angleDeg:Lf(C)}})}),legendData:t.map(function(y){return{id:y.id,label:y.label,color:y.color,hidden:d.includes(y.id),data:y}})}},[h,t,d,l,i,c,o,u]),g=m.legendData,v=S.useRef(f);return S.useEffect(function(){typeof v.current=="function"&&v.current(g)},[v,g]),m},ule=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=S.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:S.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},dle=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?bt.innerRadius:i,a=e.startAngle,s=a===void 0?bt.startAngle:a,l=e.endAngle,c=l===void 0?bt.endAngle:l,u=e.padAngle,d=u===void 0?bt.padAngle:u,f=e.sortByValue,h=f===void 0?bt.sortByValue:f,m=e.cornerRadius,g=m===void 0?bt.cornerRadius:m,v=e.fit,b=v===void 0?bt.fit:v,y=e.activeInnerRadiusOffset,C=y===void 0?bt.activeInnerRadiusOffset:y,$=e.activeOuterRadiusOffset,w=$===void 0?bt.activeOuterRadiusOffset:$,M=e.activeId,R=e.onActiveIdChange,E=e.defaultActiveId,_=e.forwardLegendData,O=ule({activeId:M,onActiveIdChange:R,defaultActiveId:E}),k=O.activeId,A=O.setActiveId,j=S.useState([]),H=j[0],T=j[1],P=S.useMemo(function(){var L,N=Math.min(n,r)/2,z=N*Math.min(o,1),q=n/2,G=r/2;if(b){var Y=ile(q,G,N,s-90,c-90),ee=Y.points,Q=H$(Y,sle),K=Math.min(n/Q.width,r/Q.height),J={width:Q.width*K,height:Q.height*K};J.x=(n-J.width)/2,J.y=(r-J.height)/2,q=(q-Q.x)/Q.width*Q.width*K+J.x,G=(G-Q.y)/Q.height*Q.height*K+J.y,L={box:Q,ratio:K,points:ee},N*=K,z*=K}return{centerX:q,centerY:G,radius:N,innerRadius:z,debug:L}},[n,r,o,s,c,b]),V=cle({data:t,startAngle:s,endAngle:c,innerRadius:P.innerRadius,outerRadius:P.radius,padAngle:d,sortByValue:h,activeId:k,activeInnerRadiusOffset:C,activeOuterRadiusOffset:w,hiddenIds:H,forwardLegendData:_}),I=S.useCallback(function(L){T(function(N){return N.indexOf(L)>-1?N.filter(function(z){return z!==L}):[].concat(N,[L])})},[]);return Io({arcGenerator:ole({cornerRadius:g,padAngle:Dr(d)}),activeId:k,setActiveId:A,toggleSerie:I},V,P)},fle=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return S.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},hle=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,m=ci(),g=m.showTooltipFromEvent,v=m.hideTooltip,b=S.useMemo(function(){if(a)return function(w,M){s==null||s(w,M)}},[a,s]),y=S.useMemo(function(){if(a)return function(w,M){g(S.createElement(f,{datum:w}),M),d(w.id),l==null||l(w,M)}},[a,g,d,l,f]),C=S.useMemo(function(){if(a)return function(w,M){g(S.createElement(f,{datum:w}),M),c==null||c(w,M)}},[a,g,c,f]),$=S.useMemo(function(){if(a)return function(w,M){v(),d(null),u==null||u(w,M)}},[a,v,d,u]);return p.jsx(rle,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:b,onMouseEnter:y,onMouseMove:C,onMouseLeave:$})},gle=["isInteractive","animate","motionConfig","theme","renderWrapper"],vle=function(e){var t=e.data,n=e.id,r=n===void 0?bt.id:n,i=e.value,o=i===void 0?bt.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?bt.sortByValue:s,c=e.layers,u=c===void 0?bt.layers:c,d=e.startAngle,f=d===void 0?bt.startAngle:d,h=e.endAngle,m=h===void 0?bt.endAngle:h,g=e.padAngle,v=g===void 0?bt.padAngle:g,b=e.fit,y=b===void 0?bt.fit:b,C=e.innerRadius,$=C===void 0?bt.innerRadius:C,w=e.cornerRadius,M=w===void 0?bt.cornerRadius:w,R=e.activeInnerRadiusOffset,E=R===void 0?bt.activeInnerRadiusOffset:R,_=e.activeOuterRadiusOffset,O=_===void 0?bt.activeOuterRadiusOffset:_,k=e.width,A=e.height,j=e.margin,H=e.colors,T=H===void 0?bt.colors:H,P=e.borderWidth,V=P===void 0?bt.borderWidth:P,I=e.borderColor,L=I===void 0?bt.borderColor:I,N=e.enableArcLabels,z=N===void 0?bt.enableArcLabels:N,q=e.arcLabel,G=q===void 0?bt.arcLabel:q,Y=e.arcLabelsSkipAngle,ee=Y===void 0?bt.arcLabelsSkipAngle:Y,Q=e.arcLabelsTextColor,K=Q===void 0?bt.arcLabelsTextColor:Q,J=e.arcLabelsRadiusOffset,W=J===void 0?bt.arcLabelsRadiusOffset:J,Z=e.arcLabelsComponent,U=e.enableArcLinkLabels,F=U===void 0?bt.enableArcLinkLabels:U,re=e.arcLinkLabel,B=re===void 0?bt.arcLinkLabel:re,ie=e.arcLinkLabelsSkipAngle,oe=ie===void 0?bt.arcLinkLabelsSkipAngle:ie,ve=e.arcLinkLabelsOffset,xe=ve===void 0?bt.arcLinkLabelsOffset:ve,pe=e.arcLinkLabelsDiagonalLength,ye=pe===void 0?bt.arcLinkLabelsDiagonalLength:pe,Se=e.arcLinkLabelsStraightLength,me=Se===void 0?bt.arcLinkLabelsStraightLength:Se,ge=e.arcLinkLabelsThickness,ce=ge===void 0?bt.arcLinkLabelsThickness:ge,$e=e.arcLinkLabelsTextOffset,he=$e===void 0?bt.arcLinkLabelsTextOffset:$e,Ae=e.arcLinkLabelsTextColor,Ie=Ae===void 0?bt.arcLinkLabelsTextColor:Ae,Re=e.arcLinkLabelsColor,ke=Re===void 0?bt.arcLinkLabelsColor:Re,Ye=e.arcLinkLabelComponent,Xe=e.defs,Fe=Xe===void 0?bt.defs:Xe,je=e.fill,Qe=je===void 0?bt.fill:je,Ze=e.isInteractive,qe=Ze===void 0?bt.isInteractive:Ze,de=e.onClick,Ee=e.onMouseEnter,Ke=e.onMouseMove,nt=e.onMouseLeave,Ne=e.tooltip,ze=Ne===void 0?bt.tooltip:Ne,De=e.activeId,Je=e.onActiveIdChange,tt=e.defaultActiveId,Be=e.transitionMode,Pe=Be===void 0?bt.transitionMode:Be,ct=e.legends,pt=ct===void 0?bt.legends:ct,He=e.forwardLegendData,fe=e.role,we=fe===void 0?bt.role:fe,Oe=Za(k,A,j),Ge=Oe.outerWidth,We=Oe.outerHeight,rt=Oe.margin,X=Oe.innerWidth,ae=Oe.innerHeight,se=lle({data:t,id:r,value:o,valueFormat:a,colors:T}),Ve=dle({data:se,width:X,height:ae,fit:y,innerRadius:$,startAngle:f,endAngle:m,padAngle:v,sortByValue:l,cornerRadius:M,activeInnerRadiusOffset:E,activeOuterRadiusOffset:O,activeId:De,onActiveIdChange:Je,defaultActiveId:tt,forwardLegendData:He}),it=Ve.dataWithArc,at=Ve.legendData,st=Ve.arcGenerator,ft=Ve.centerX,be=Ve.centerY,Ce=Ve.radius,Te=Ve.innerRadius,ot=Ve.setActiveId,vt=Ve.toggleSerie,Ct=$m(Fe,it,Qe),ht={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(ht.arcs=p.jsx(hle,{center:[ft,be],data:it,arcGenerator:st,borderWidth:V,borderColor:L,isInteractive:qe,onClick:de,onMouseEnter:Ee,onMouseMove:Ke,onMouseLeave:nt,setActiveId:ot,tooltip:ze,transitionMode:Pe},"arcs")),F&&u.includes("arcLinkLabels")&&(ht.arcLinkLabels=p.jsx(Jse,{center:[ft,be],data:it,label:B,skipAngle:oe,offset:xe,diagonalLength:ye,straightLength:me,strokeWidth:ce,textOffset:he,textColor:Ie,linkColor:ke,component:Ye},"arcLinkLabels")),z&&u.includes("arcLabels")&&(ht.arcLabels=p.jsx(Zse,{center:[ft,be],data:it,label:G,radiusOffset:W,skipAngle:ee,textColor:K,transitionMode:Pe,component:Z},"arcLabels")),pt.length>0&&u.includes("legends")&&(ht.legends=p.jsx(ale,{width:X,height:ae,data:at,legends:pt,toggleSerie:vt},"legends"));var Ot=fle({dataWithArc:it,arcGenerator:st,centerX:ft,centerY:be,radius:Ce,innerRadius:Te});return p.jsx(Sl,{width:Ge,height:We,margin:rt,defs:Ct,role:we,children:u.map(function(rn,It){return ht[rn]!==void 0?ht[rn]:typeof rn=="function"?p.jsx(S.Fragment,{children:S.createElement(rn,Ot)},It):null})})},mle=function(e){var t=e.isInteractive,n=t===void 0?bt.isInteractive:t,r=e.animate,i=r===void 0?bt.animate:r,o=e.motionConfig,a=o===void 0?bt.motionConfig:o,s=e.theme,l=e.renderWrapper,c=H$(e,gle);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(vle,Io({isInteractive:n},c))})},ple=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(mle,Io({width:n,height:r},e))}})};const ble=yt.span`
|
|
490
490
|
color: black;
|
|
491
491
|
font: var(--gf-label-md-default);
|
|
492
492
|
font-weight: 600;
|
|
@@ -495,15 +495,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
495
495
|
font: var(--gf-label-md-default);
|
|
496
496
|
color: var(--gf-color-text-secondary);
|
|
497
497
|
font-size: 10px;
|
|
498
|
-
`,xle=({pieChartData:e,title:t,isEmpty:n,sortByValue:r=!0,arcLabel:i=null,tooltip:o=null,customStyle:a={},customMargin:s={},height:l=600,legendWidth:c="50%"})=>{const[u,d]=S.useState([]),f=({centerX:m,centerY:g,dataWithArc:v})=>(u.length||d(v),p.jsx("text",{x:m,y:g,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"16px",font:"var(--gf-label-md-default)",fontWeight:400},children:n?"Data niet openbaar beschikbaar":""})),h=({data:m})=>p.jsx(qt,{gap:16,className:"gf-full",justify:"center",wrap:!0,style:{width:c},children:m==null?void 0:m.map((g,v)=>p.jsxs(qt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:16,minHeight:16,backgroundColor:g.color}}),p.jsx(yle,{children:g.label})]},`legend-${v}`))});return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(qt,{vertical:!0,gap:8,align:"center",style:{width:"100%"},children:[p.jsx(ble,{children:t}),p.jsx("div",{style:{width:"100%",height:l},children:p.jsx(ple,{colors:n?{scheme:"greys"}:{datum:"data.color"},data:e,sortByValue:r,enableArcLabels:!n,arcLabel:m=>(i==null?void 0:i(m))||m.formattedValue,enableArcLinkLabels:!1,margin:{top:50,right:80,bottom:50,left:80,...s},innerRadius:.5,padAngle:.7,cornerRadius:3,activeOuterRadiusOffset:8,borderWidth:1,borderColor:{from:"color",modifiers:[["darker",.2]]},arcLabelsSkipAngle:10,arcLabelsTextColor:{from:"color",modifiers:[["darker",2]]},isInteractive:!n,layers:["arcs","arcLabels","arcLinkLabels","legends",f],tooltip:m=>p.jsx(Zn,{body:(o==null?void 0:o(m))||p.jsx("span",{children:"Pie chart tooltip"})})})}),!n&&p.jsx(h,{data:u})]})]})};var Cle=df,wle=xm,Sle=1,$le=2;function Mle(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Cle;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?wle(u,c,Sle|$le,r,d):f))return!1}}return!0}var _le=Mle,Ele=Mi;function Hle(e){return e===e&&!Ele(e)}var O$=Hle,Ole=O$,Vle=Mu;function Rle(e){for(var t=Vle(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ole(i)]}return t}var Tle=Rle;function kle(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var V$=kle,jle=_le,Ple=Tle,Lle=V$;function Ile(e){var t=Ple(e);return t.length==1&&t[0][2]?Lle(t[0][0],t[0][1]):function(n){return n===e||jle(n,e,t)}}var Ale=Ile,Nle=xm,Fle=kw,Dle=TS,zle=Nv,Ble=O$,Wle=V$,Zle=ul,Ule=1,qle=2;function Gle(e,t){return zle(e)&&Ble(t)?Wle(Zle(e),t):function(n){var r=Fle(n,e);return r===void 0&&r===t?Dle(n,e):Nle(t,r,Ule|qle)}}var Yle=Gle;function Kle(e){return function(t){return t==null?void 0:t[e]}}var Xle=Kle,Qle=xu;function Jle(e){return function(t){return Qle(t,e)}}var ece=Jle,tce=Xle,nce=ece,rce=Nv,ice=ul;function oce(e){return rce(e)?tce(ice(e)):nce(e)}var ace=oce,sce=Ale,lce=Yle,cce=mf,uce=Cr,dce=ace;function fce(e){return typeof e=="function"?e:e==null?cce:typeof e=="object"?uce(e)?lce(e[0],e[1]):sce(e):dce(e)}var _m=fce,hce=_m,gce=MC;function vce(e,t){return e&&e.length?gce(e,hce(t)):[]}var mce=vce;const Lh=Cn(mce);var pce=vw,bce=Mu;function yce(e,t){return e&&pce(e,t,bce)}var xce=yce,Cce=al;function wce(e,t){return function(n,r){if(n==null)return n;if(!Cce(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Sce=wce,$ce=xce,Mce=Sce,_ce=Mce($ce),R$=_ce,Ece=R$,Hce=al;function Oce(e,t){var n=-1,r=Hce(e)?Array(e.length):[];return Ece(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Vce=Oce;function Rce(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Tce=Rce,X8=pf;function kce(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=X8(e),a=t!==void 0,s=t===null,l=t===t,c=X8(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var jce=kce,Pce=jce;function Lce(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Pce(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Ice=Lce,$2=bf,Ace=xu,Nce=_m,Fce=Vce,Dce=Tce,zce=sl,Bce=Ice,Wce=mf,Zce=Cr;function Uce(e,t,n){t.length?t=$2(t,function(o){return Zce(o)?function(a){return Ace(a,o.length===1?o[0]:o)}:o}):t=[Wce];var r=-1;t=$2(t,zce(Nce));var i=Fce(e,function(o,a,s){var l=$2(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return Dce(i,function(o,a){return Bce(o,a,n)})}var qce=Uce,Gce=jS,Yce=qce,Kce=Iv,Q8=Vw,Xce=Kce(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Q8(e,t[0],t[1])?t=[]:n>2&&Q8(t[0],t[1],t[2])&&(t=[t[0]]),Yce(e,Gce(t,1),[])}),Qce=Xce;const Jce=Cn(Qce);var eue=po,tue=Gr,nue="[object Date]";function rue(e){return tue(e)&&eue(e)==nue}var iue=rue,oue=iue,aue=sl,J8=gf,e9=J8&&J8.isDate,sue=e9?aue(e9):oue,lue=sue;const cue=Cn(lue);var M2=new Date,_2=new Date;function Mn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return Mn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return M2.setTime(+o),_2.setTime(+a),e(M2),e(_2),Math.floor(n(M2,_2))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var vo=Mn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Mn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):vo};vo.range;var yd=1e3,Zs=6e4,xd=36e5,T$=6048e5,Ma=Mn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getUTCSeconds()});Ma.range;var Af=Mn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*yd)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getMinutes()});Af.range;var Nf=Mn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*yd-e.getMinutes()*Zs)},function(e,t){e.setTime(+e+t*xd)},function(e,t){return(t-e)/xd},function(e){return e.getHours()});Nf.range;function qa(e){return Mn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zs)/T$})}var _a=qa(0),Ff=qa(1),Df=qa(2),zf=qa(3),Bf=qa(4),Wf=qa(5),Zf=qa(6);_a.range;Ff.range;Df.range;zf.range;Bf.range;Wf.range;Zf.range;var Uf=Mn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});Uf.range;var Eu=Mn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Eu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Eu.range;var qf=Mn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getUTCMinutes()});qf.range;var Gf=Mn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*xd)},function(e,t){return(t-e)/xd},function(e){return e.getUTCHours()});Gf.range;function Ga(e){return Mn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/T$})}var Ea=Ga(0),Yf=Ga(1),Kf=Ga(2),Xf=Ga(3),Qf=Ga(4),Jf=Ga(5),e0=Ga(6);Ea.range;Yf.range;Kf.range;Xf.range;Qf.range;Jf.range;e0.range;var t0=Mn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});t0.range;var Hu=Mn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Hu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Hu.range;function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ia.apply(this,arguments)}var us=[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)}],uue={millisecond:[],second:us.slice(0,1),minute:us.slice(0,2),hour:us.slice(0,3),day:us.slice(0,4),month:us.slice(0,5),year:us.slice(0,6)},due=function(e){return function(t){return uue[e].forEach(function(n){n(t)}),t}},k$=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=due(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?pm(n):mm(n);return s(c(l))}},fue=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?0:l,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,m=e.reverse,g=m!==void 0&&m,v=e.clamp,b=v!==void 0&&v,y=e.nice,C=y!==void 0&&y;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var $=qo().rangeRound(r==="x"?[0,n]:[n,0]).domain(g?[a,i]:[i,a]).clamp(b);return C===!0?$.nice():typeof C=="number"&&$.nice(C),hue($,h)},hue=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},gue=function(e,t,n){var r=Ww().range([0,n]).domain(t.all);return r.type="point",r},vue=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=Ns().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return mue(a)},mue=function(e){var t=e;return t.type="band",t},pue=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,l=s===void 0?"millisecond":s,c=e.min,u=c===void 0?"auto":c,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,m=h===void 0||h,g=e.nice,v=g!==void 0&&g,b=k$({format:a,precision:l,useUTC:m});r=u==="auto"?b(t.min):a!=="native"?b(u):u,i=f==="auto"?b(t.max):a!=="native"?b(f):f;var y=m?oS():iS();y.range([0,n]),r&&i&&y.domain([r,i]),v===!0?y.nice():typeof v!="object"&&typeof v!="number"||y.nice(v);var C=y;return C.type="time",C.useUTC=m,C},bue=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,l=s===void 0?"auto":s,c=e.max,u=c===void 0?"auto":c;if(t.all.some(function(g){return g===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(g){return g!=null}).forEach(function(g){h||(i===void 0?i=Math.sign(g):Math.sign(g)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=l==="auto"?t.min:l,f=u==="auto"?t.max:u;var m=Kv().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return m.type="log",m},yue=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,l=e.min,c=l===void 0?"auto":l,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var m=Xv().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?m.domain([o,i]):m.domain([i,o]);var g=m;return g.type="symlog",g},xue=function(e){return e==="x"?"y":"x"},Cue=function(e,t){return e===t},wue=function(e,t){return e.getTime()===t.getTime()};function t9(e,t,n,r){switch(e.type){case"linear":return fue(e,t,n,r);case"point":return gue(e,t,n);case"band":return vue(e,t,n,r);case"time":return pue(e,t,n);case"log":return bue(e,t,n,r);case"symlog":return yue(e,t,n,r);default:throw new Error("invalid scale spec")}}var n9=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},j$=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return ia({},d,{data:d.data.map(function(f){return{data:ia({},f)}})})}(u)}),a=Sue(o,t,n);"stacked"in t&&t.stacked===!0&&$ue(a,o),"stacked"in n&&n.stacked===!0&&Mue(a,o);var s=t9(t,a.x,r,"x"),l=t9(n,a.y,i,"y"),c=o.map(function(u){return ia({},u,{data:u.data.map(function(d){return ia({},d,{position:{x:n9(d,"x",s),y:n9(d,"y",l)}})})})});return ia({},a,{series:c,xScale:s,yScale:l})},Sue=function(e,t,n){return{x:r9(e,"x",t),y:r9(e,"y",n)}},r9=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(m){return m.data[t]}:o,s=i.setValue,l=s===void 0?function(m,g){m.data[t]=g}:s;if(n.type==="linear")e.forEach(function(m){m.data.forEach(function(g){var v=a(g);v&&l(g,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=k$(n);e.forEach(function(m){m.data.forEach(function(g){var v=a(g);v&&l(g,c(v))})})}var u=[];switch(e.forEach(function(m){m.data.forEach(function(g){u.push(a(g))})}),n.type){case"linear":var d=Jce(Q3(u).filter(function(m){return m!==null}),function(m){return m});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Lh(u,function(m){return m.getTime()}).slice(0).sort(function(m,g){return g.getTime()-m.getTime()}).reverse();return{all:f,min:f[0],max:ue(f)};default:var h=Q3(u);return{all:h,min:h[0],max:ue(h)}}},P$=function(e,t,n){var r=xue(e),i=[];t[r].all.forEach(function(o){var a=cue(o)?wue:Cue,s=[];n.forEach(function(l){var c=l.data.find(function(h){return a(h.data[r],o)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=ue(s);f===void 0?d=u:f!==null&&(d=f+u)}c.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},$ue=function(e,t){return P$("x",e,t)},Mue=function(e,t){return P$("y",e,t)},L$=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},I$={millisecond:[vo,vo],second:[Ma,Ma],minute:[Af,qf],hour:[Nf,Gf],day:[Mn(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)}),Mn(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:[_a,Ea],sunday:[_a,Ea],monday:[Ff,Yf],tuesday:[Df,Kf],wednesday:[zf,Xf],thursday:[Bf,Qf],friday:[Wf,Jf],saturday:[Zf,e0],month:[Uf,t0],year:[Eu,Hu]},_ue=Object.keys(I$),Eue=new RegExp("^every\\s*(\\d+)?\\s*("+_ue.join("|")+")s?$","i"),A$=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Eue);if(n){var r=n[1],i=n[2],o=I$[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var N$=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=A$(r,o),h=aie[d],m="bandwidth"in r?L$(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},b=typeof document=="object"&&document.dir==="rtl",y=h.align.center,C=h.baseline.center;return n==="x"?(t=function($){var w;return{x:(w=m($))!=null?w:0,y:0}},g.lineY=a*(i==="after"?1:-1),v.textY=(a+s)*(i==="after"?1:-1),C=i==="after"?h.baseline.top:h.baseline.bottom,l===0?y=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(y=h.align[b?"left":"right"],C=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(y=h.align[b?"right":"left"],C=h.baseline.center)):(t=function($){var w;return{x:0,y:(w=m($))!=null?w:0}},g.lineX=a*(i==="after"?1:-1),v.textX=(a+s)*(i==="after"?1:-1),y=i==="after"?h.align.left:h.align.right),{ticks:f.map(function($){var w=typeof $=="string"?function(M){var R=String(M).length;return c&&c>0&&R>c?""+String(M).slice(0,c).concat("..."):""+M}($):$;return zr({key:$ instanceof Date?""+$.valueOf():""+$,value:w},t($),g,v)}),textAlign:y,textBaseline:C}},F$=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Wa(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Da(e)},Ih=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||A$(i,a)),l="bandwidth"in i?L$(i):i,c=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},Hue=S.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.animatedProps,u=Wt(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,m=S.useMemo(function(){var g={opacity:c.opacity};return a?{style:zr({},g,{cursor:"pointer"}),onClick:function(v){return a(v,h)}}:{style:g}},[c.opacity,a,h]);return p.jsxs(et.g,zr({transform:c.transform},m,{children:[p.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:d}),f.outlineWidth>0&&p.jsx(et.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),p.jsx(et.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:wm(f),children:""+h})]}))}),Oue=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,m=e.tickRotation,g=m===void 0?0:m,v=e.format,b=e.renderTick,y=b===void 0?Hue:b,C=e.truncateTickAt,$=e.legend,w=e.legendPosition,M=w===void 0?"end":w,R=e.legendOffset,E=R===void 0?0:R,_=e.onClick,O=e.ariaHidden,k=Wt(),A=k.axis.legend.text,j=S.useMemo(function(){return F$(v,n)},[v,n]),H=N$({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:g,truncateTickAt:C}),T=H.ticks,P=H.textAlign,V=H.textBaseline,I=null;if($!==void 0){var L,N=0,z=0,q=0;t==="y"?(q=-90,N=E,M==="start"?(L="start",z=s):M==="middle"?(L="middle",z=s/2):M==="end"&&(L="end")):(z=E,M==="start"?L="start":M==="middle"?(L="middle",N=s/2):M==="end"&&(L="end",N=s)),I=p.jsxs(p.Fragment,{children:[A.outlineWidth>0&&p.jsx("text",{transform:"translate("+N+", "+z+") rotate("+q+")",textAnchor:L,style:zr({dominantBaseline:"central"},A),strokeWidth:2*A.outlineWidth,stroke:A.outlineColor,strokeLinejoin:"round",children:$}),p.jsx("text",{transform:"translate("+N+", "+z+") rotate("+q+")",textAnchor:L,style:zr({dominantBaseline:"central"},A),children:$})]})}var G=Fn(),Y=G.animate,ee=G.config,Q=Qt({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:ee,immediate:!Y}),K=S.useCallback(function(Z){return{opacity:1,transform:"translate("+Z.x+","+Z.y+")",textTransform:"translate("+Z.textX+","+Z.textY+") rotate("+g+")"}},[g]),J=S.useCallback(function(Z){return{opacity:0,transform:"translate("+Z.x+","+Z.y+")",textTransform:"translate("+Z.textX+","+Z.textY+") rotate("+g+")"}},[g]),W=xr(T,{keys:function(Z){return Z.key},initial:K,from:J,enter:K,update:K,leave:{opacity:0},config:ee,immediate:!Y});return p.jsxs(et.g,{transform:Q.transform,"aria-hidden":O,children:[W(function(Z,U,F,re){return x.createElement(y,zr({tickIndex:re,format:j,rotate:g,textBaseline:V,textAnchor:P,truncateTickAt:C,animatedProps:Z},U,_?{onClick:_}:{}))}),p.jsx(et.line,{style:k.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),I]})},Vue=S.memo(Oue),D$=["top","right","bottom","left"],z$=S.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return p.jsx(p.Fragment,{children:D$.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return p.jsx(Vue,zr({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Rue=S.memo(function(e){var t=e.animatedProps,n=Wt();return p.jsx(et.line,zr({},t,n.grid.line))}),i9=S.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=xr(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return p.jsx("g",{children:o(function(a,s){return S.createElement(Rue,zr({},s,{key:s.key,animatedProps:a}))})})}),B$=S.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=S.useMemo(function(){return!!r&&Ih({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=S.useMemo(function(){return!!i&&Ih({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return p.jsxs(p.Fragment,{children:[s&&p.jsx(i9,{lines:s}),l&&p.jsx(i9,{lines:l})]})}),Tue=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,l=s===void 0?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,m=t.tickPadding,g=m===void 0?5:m,v=t.tickRotation,b=v===void 0?0:v,y=t.format,C=t.legend,$=t.legendPosition,w=$===void 0?"end":$,M=t.legendOffset,R=M===void 0?0:M,E=t.theme,_=N$({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:g,tickRotation:b,engine:"canvas"}),O=_.ticks,k=_.textAlign,A=_.textBaseline;e.save(),e.translate(a,l),e.textAlign=k,e.textBaseline=A;var j=E.axis.ticks.text;e.font=(j.fontWeight?j.fontWeight+" ":"")+j.fontSize+"px "+j.fontFamily,((n=E.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(E.axis.domain.line.strokeWidth),e.lineCap="square",E.axis.domain.line.stroke&&(e.strokeStyle=E.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var H=typeof y=="function"?y:function(L){return""+L};if(O.forEach(function(L){var N;((N=E.axis.ticks.line.strokeWidth)!=null?N:0)>0&&(e.lineWidth=Number(E.axis.ticks.line.strokeWidth),e.lineCap="square",E.axis.ticks.line.stroke&&(e.strokeStyle=E.axis.ticks.line.stroke),e.beginPath(),e.moveTo(L.x,L.y),e.lineTo(L.x+L.lineX,L.y+L.lineY),e.stroke());var z=H(L.value);e.save(),e.translate(L.x+L.textX,L.y+L.textY),e.rotate(Dr(b)),j.outlineWidth>0&&(e.strokeStyle=j.outlineColor,e.lineWidth=2*j.outlineWidth,e.lineJoin="round",e.strokeText(""+z,0,0)),E.axis.ticks.text.fill&&(e.fillStyle=j.fill),e.fillText(""+z,0,0),e.restore()}),C!==void 0){var T=0,P=0,V=0,I="center";r==="y"?(V=-90,T=R,w==="start"?(I="start",P=c):w==="middle"?(I="center",P=c/2):w==="end"&&(I="end")):(P=R,w==="start"?I="start":w==="middle"?(I="center",T=c/2):w==="end"&&(I="end",T=c)),e.translate(T,P),e.rotate(Dr(V)),e.font=(E.axis.legend.text.fontWeight?E.axis.legend.text.fontWeight+" ":"")+E.axis.legend.text.fontSize+"px "+E.axis.legend.text.fontFamily,E.axis.legend.text.fill&&(e.fillStyle=E.axis.legend.text.fill),e.textAlign=I,e.textBaseline="middle",e.fillText(C,0,0)}e.restore()},W$=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};D$.forEach(function(f){var h=d[f];if(!h)return null;var m=f==="top"||f==="bottom",g=f==="top"||f==="left"?"before":"after",v=m?n:r,b=F$(h.format,v);Tue(e,zr({},h,{axis:m?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:b,length:m?i:o,ticksPosition:g,theme:u}))})},Cd=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Ih({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},kue=R$;function jue(e,t){var n=[];return kue(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var Pue=jue,Lue=NS,Iue=Pue,Aue=_m,Nue=Cr;function Fue(e,t){var n=Nue(e)?Lue:Iue;return n(e,Aue(t))}var Due=Fue;const Em=Cn(Due);var zue=po,Bue=Gr,Wue="[object Number]";function Zue(e){return typeof e=="number"||Bue(e)&&zue(e)==Wue}var Uue=Zue;const Ha=Cn(Uue);function que(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var Z$=que,Gue=xu,Yue=Z$;function Kue(e,t){return t.length<2?e:Gue(e,Yue(t,0,-1))}var Xue=Kue,Que=cl,Jue=Fw,e1e=Xue,t1e=ul;function n1e(e,t){return t=Que(t,e),e=e1e(e,t),e==null||delete e[t1e(Jue(t))]}var r1e=n1e,i1e=jv;function o1e(e){return i1e(e)?void 0:e}var a1e=o1e,s1e=bf,l1e=w$,c1e=r1e,u1e=cl,d1e=ll,f1e=a1e,h1e=PS,g1e=b$,v1e=1,m1e=2,p1e=4,b1e=h1e(function(e,t){var n={};if(e==null)return n;var r=!1;t=s1e(t,function(o){return o=u1e(o,e),r||(r=o.length>1),o}),d1e(e,g1e(e),n),r&&(n=l1e(n,v1e|m1e|p1e,f1e));for(var i=t.length;i--;)c1e(n,t[i]);return n}),y1e=b1e;const Ya=Cn(y1e);function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(this,arguments)}var Ah={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},x1e=function(e){var t=typeof e;return S.isValidElement(e)||t==="string"||t==="function"||t==="object"},C1e=function(e){var t=typeof e;return t==="string"||t==="function"},Kc=function(e){return e.type==="circle"},Nh=function(e){return e.type==="dot"},Xc=function(e){return e.type==="rect"},w1e=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Em(t,a.match).map(function(l){var c=r(l),u=i(l);return(Kc(a)||Xc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Ao({},Ya(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},S1e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return oie(Lf(i))},$1e=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?Ah.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Ah.noteTextOffset:c;if(Ha(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(Ha(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=S1e(r,i,t,n);if(Kc(e)){var m=ma(Dr(h),e.size/2);d+=m.x,f+=m.y}if(Xc(e)){var g=Math.round((h+90)/45)%8;g===0&&(f-=e.height/2),g===1&&(d+=e.width/2,f-=e.height/2),g===2&&(d+=e.width/2),g===3&&(d+=e.width/2,f+=e.height/2),g===4&&(f+=e.height/2),g===5&&(d-=e.width/2,f+=e.height/2),g===6&&(d-=e.width/2),g===7&&(d-=e.width/2,f-=e.height/2)}var v=t,b=t;return(h+90)%360>180?(v-=l,b-=l):b+=l,{points:[[d,f],[t,n],[b,n]],text:[v,n-u],angle:h+90}},M1e=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return S.useMemo(function(){return w1e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},_1e=function(e){return S.useMemo(function(){return $1e(e)},[e])},E1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Wt(),a=Fn(),s=a.animate,l=a.config,c=Qt({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?S.createElement(i,{x:n,y:r,datum:t}):p.jsxs(p.Fragment,{children:[o.annotations.text.outlineWidth>0&&p.jsx(et.text,{x:c.x,y:c.y,style:Ao({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),p.jsx(et.text,{x:c.x,y:c.y,style:Ya(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},o9=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Wt(),o=S.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),a=Pf(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Ao({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),p.jsx(et.path,{fill:"none",d:a,style:s})},H1e=function(e){var t=e.x,n=e.y,r=e.size,i=Wt(),o=Fn(),a=o.animate,s=o.config,l=Qt({x:t,y:n,radius:r/2,config:s,immediate:!a});return p.jsxs(p.Fragment,{children:[i.annotations.outline.outlineWidth>0&&p.jsx(et.circle,{cx:l.x,cy:l.y,r:l.radius,style:Ao({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),p.jsx(et.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},O1e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Ah.dotSize:r,o=Wt(),a=Fn(),s=a.animate,l=a.config,c=Qt({x:t,y:n,radius:i/2,config:l,immediate:!s});return p.jsxs(p.Fragment,{children:[o.annotations.outline.outlineWidth>0&&p.jsx(et.circle,{cx:c.x,cy:c.y,r:c.radius,style:Ao({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),p.jsx(et.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},V1e=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Wt(),l=Fn(),c=l.animate,u=l.config,d=Qt({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return p.jsxs(p.Fragment,{children:[s.annotations.outline.outlineWidth>0&&p.jsx(et.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Ao({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),p.jsx(et.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},R1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=_1e(e);if(!x1e(i))throw new Error("note should be a valid react element");return p.jsxs(p.Fragment,{children:[p.jsx(o9,{points:o.points,isOutline:!0}),Kc(e)&&p.jsx(H1e,{x:n,y:r,size:e.size}),Nh(e)&&p.jsx(O1e,{x:n,y:r,size:e.size}),Xc(e)&&p.jsx(V1e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),p.jsx(o9,{points:o.points}),p.jsx(E1e,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},a9=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},T1e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!C1e(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),a9(e,i.computed.points),e.stroke(),e.lineCap="butt"),Kc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Nh(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Xc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),a9(e,i.computed.points),e.stroke(),Kc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Nh(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),Xc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};const lo=11102230246251565e-32,nr=134217729,k1e=(3+8*lo)*lo;function E2(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,s!==0&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,s!==0&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,s!==0&&(i[h++]=s);return(o!==0||h===0)&&(i[h++]=o),h}function j1e(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Ou(e){return new Float64Array(e)}const P1e=(3+16*lo)*lo,L1e=(2+12*lo)*lo,I1e=(9+64*lo)*lo*lo,ds=Ou(4),s9=Ou(8),l9=Ou(12),c9=Ou(16),dr=Ou(4);function A1e(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,m,g,v,b,y,C,$,w,M,R,E;const _=e-i,O=n-i,k=t-o,A=r-o;$=_*A,f=nr*_,h=f-(f-_),m=_-h,f=nr*A,g=f-(f-A),v=A-g,w=m*v-($-h*g-m*g-h*v),M=k*O,f=nr*k,h=f-(f-k),m=k-h,f=nr*O,g=f-(f-O),v=O-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,ds[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,ds[1]=C-(b+d)+(d-M),E=y+b,d=E-y,ds[2]=y-(E-d)+(b-d),ds[3]=E;let j=j1e(4,ds),H=L1e*a;if(j>=H||-j>=H||(d=e-_,s=e-(_+d)+(d-i),d=n-O,c=n-(O+d)+(d-i),d=t-k,l=t-(k+d)+(d-o),d=r-A,u=r-(A+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(H=I1e*a+k1e*Math.abs(j),j+=_*u+A*s-(k*c+O*l),j>=H||-j>=H))return j;$=s*A,f=nr*s,h=f-(f-s),m=s-h,f=nr*A,g=f-(f-A),v=A-g,w=m*v-($-h*g-m*g-h*v),M=l*O,f=nr*l,h=f-(f-l),m=l-h,f=nr*O,g=f-(f-O),v=O-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const T=E2(4,ds,4,dr,s9);$=_*u,f=nr*_,h=f-(f-_),m=_-h,f=nr*u,g=f-(f-u),v=u-g,w=m*v-($-h*g-m*g-h*v),M=k*c,f=nr*k,h=f-(f-k),m=k-h,f=nr*c,g=f-(f-c),v=c-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const P=E2(T,s9,4,dr,l9);$=s*u,f=nr*s,h=f-(f-s),m=s-h,f=nr*u,g=f-(f-u),v=u-g,w=m*v-($-h*g-m*g-h*v),M=l*c,f=nr*l,h=f-(f-l),m=l-h,f=nr*c,g=f-(f-c),v=c-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const V=E2(P,l9,4,dr,c9);return c9[V-1]}function d1(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=P1e*c?l:-A1e(e,t,n,r,i,o,c)}const u9=Math.pow(2,-52),f1=new Uint32Array(512);class wd{static from(t,n=B1e,r=W1e){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new wd(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let _=0;_<a;_++){const O=t[2*_],k=t[2*_+1];O<s&&(s=O),k<l&&(l=k),O>c&&(c=O),k>u&&(u=k),this._ids[_]=_}const d=(s+c)/2,f=(l+u)/2;let h,m,g;for(let _=0,O=1/0;_<a;_++){const k=H2(d,f,t[2*_],t[2*_+1]);k<O&&(h=_,O=k)}const v=t[2*h],b=t[2*h+1];for(let _=0,O=1/0;_<a;_++){if(_===h)continue;const k=H2(v,b,t[2*_],t[2*_+1]);k<O&&k>0&&(m=_,O=k)}let y=t[2*m],C=t[2*m+1],$=1/0;for(let _=0;_<a;_++){if(_===h||_===m)continue;const O=D1e(v,b,y,C,t[2*_],t[2*_+1]);O<$&&(g=_,$=O)}let w=t[2*g],M=t[2*g+1];if($===1/0){for(let k=0;k<a;k++)this._dists[k]=t[2*k]-t[0]||t[2*k+1]-t[1];xs(this._ids,this._dists,0,a-1);const _=new Uint32Array(a);let O=0;for(let k=0,A=-1/0;k<a;k++){const j=this._ids[k],H=this._dists[j];H>A&&(_[O++]=j,A=H)}this.hull=_.subarray(0,O),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(d1(v,b,y,C,w,M)<0){const _=m,O=y,k=C;m=g,y=w,C=M,g=_,w=O,M=k}const R=z1e(v,b,y,C,w,M);this._cx=R.x,this._cy=R.y;for(let _=0;_<a;_++)this._dists[_]=H2(t[2*_],t[2*_+1],R.x,R.y);xs(this._ids,this._dists,0,a-1),this._hullStart=h;let E=3;r[h]=n[g]=m,r[m]=n[h]=g,r[g]=n[m]=h,i[h]=0,i[m]=1,i[g]=2,o.fill(-1),o[this._hashKey(v,b)]=h,o[this._hashKey(y,C)]=m,o[this._hashKey(w,M)]=g,this.trianglesLen=0,this._addTriangle(h,m,g,-1,-1,-1);for(let _=0,O,k;_<this._ids.length;_++){const A=this._ids[_],j=t[2*A],H=t[2*A+1];if(_>0&&Math.abs(j-O)<=u9&&Math.abs(H-k)<=u9||(O=j,k=H,A===h||A===m||A===g))continue;let T=0;for(let N=0,z=this._hashKey(j,H);N<this._hashSize&&(T=o[(z+N)%this._hashSize],!(T!==-1&&T!==r[T]));N++);T=n[T];let P=T,V;for(;V=r[P],d1(j,H,t[2*P],t[2*P+1],t[2*V],t[2*V+1])>=0;)if(P=V,P===T){P=-1;break}if(P===-1)continue;let I=this._addTriangle(P,A,r[P],-1,-1,i[P]);i[A]=this._legalize(I+2),i[P]=I,E++;let L=r[P];for(;V=r[L],d1(j,H,t[2*L],t[2*L+1],t[2*V],t[2*V+1])<0;)I=this._addTriangle(L,A,V,i[A],-1,i[L]),i[A]=this._legalize(I+2),r[L]=L,E--,L=V;if(P===T)for(;V=n[P],d1(j,H,t[2*V],t[2*V+1],t[2*P],t[2*P+1])<0;)I=this._addTriangle(V,A,P,-1,i[P],i[V]),this._legalize(I+2),i[V]=I,r[P]=P,E--,P=V;this._hullStart=n[A]=P,r[P]=n[L]=A,r[A]=L,o[this._hashKey(j,H)]=A,o[this._hashKey(t[2*P],t[2*P+1])]=P}this.hull=new Uint32Array(E);for(let _=0,O=this._hullStart;_<E;_++)this.hull[_]=O,O=r[O];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(N1e(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],l=t-t%3;if(a=l+(t+2)%3,s===-1){if(o===0)break;t=f1[--o];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[a],h=n[t],m=n[u],g=n[d];if(F1e(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*m],i[2*m+1],i[2*g],i[2*g+1])){n[t]=g,n[s]=f;const b=r[d];if(b===-1){let C=this._hullStart;do{if(this._hullTri[C]===d){this._hullTri[C]=t;break}C=this._hullPrev[C]}while(C!==this._hullStart)}this._link(t,b),this._link(s,r[a]),this._link(a,d);const y=c+(s+1)%3;o<f1.length&&(f1[o++]=y)}else{if(o===0)break;t=f1[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function N1e(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function H2(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function F1e(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,m=l*l+c*c,g=u*u+d*d,v=f*f+h*h;return l*(d*v-g*h)-c*(u*v-g*f)+m*(u*h-d*f)<0}function D1e(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,m=(a*d-l*u)*f;return h*h+m*m}function z1e(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=e+(c*u-s*d)*f,m=t+(a*d-l*u)*f;return{x:h,y:m}}function xs(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;Gl(e,i,o),t[e[n]]>t[e[r]]&&Gl(e,n,r),t[e[o]]>t[e[r]]&&Gl(e,o,r),t[e[n]]>t[e[o]]&&Gl(e,n,o);const s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]<l);do a--;while(t[e[a]]>l);if(a<o)break;Gl(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(xs(e,t,o,r),xs(e,t,n,a-1)):(xs(e,t,n,a-1),xs(e,t,o,r))}}function Gl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function B1e(e){return e[0]}function W1e(e){return e[1]}const d9=1e-6;class da{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>d9||Math.abs(this._y1-o)>d9)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Fh{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Z1e{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let g=0,v=0,b=r.length,y,C;g<b;g+=3,v+=2){const $=r[g]*2,w=r[g+1]*2,M=r[g+2]*2,R=t[$],E=t[$+1],_=t[w],O=t[w+1],k=t[M],A=t[M+1],j=_-R,H=O-E,T=k-R,P=A-E,V=(j*P-H*T)*2;if(Math.abs(V)<1e-9){if(o===void 0){o=a=0;for(const L of n)o+=t[L*2],a+=t[L*2+1];o/=n.length,a/=n.length}const I=1e9*Math.sign((o-R)*P-(a-E)*T);y=(R+k)/2-I*P,C=(E+A)/2+I*T}else{const I=1/V,L=j*j+H*H,N=T*T+P*P;y=R+(P*L-H*N)*I,C=E+(j*N-T*L)*I}s[v]=y,s[v+1]=C}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,m=t[2*l+1];i.fill(0);for(let g=0;g<n.length;++g)l=n[g],c=u,d=f,h=m,u=l*4,f=t[2*l],m=t[2*l+1],i[c+2]=i[u]=h-m,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new da:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,m=Math.floor(f/3)*2,g=a[h],v=a[h+1],b=a[m],y=a[m+1];this._renderSegment(g,v,b,y,t)}let l,c=o[o.length-1];for(let u=0;u<o.length;++u){l=c,c=o[u];const d=Math.floor(i[c]/3)*2,f=a[d],h=a[d+1],m=l*4,g=this._project(f,h,s[m+2],s[m+3]);g&&this._renderSegment(f,h,g[0],g[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new da:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new da:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new Fh;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,l))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+l-2)%l]&&n[(o+3)%a]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let l=a;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,o[l]!==t)break;l=i[l]}while(l!==a&&l!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let m,g,v,b,y;if(c===0){if((m=this._clipSegment(o,a,s,l,c,u))===null)continue;[g,v,b,y]=m}else{if((m=this._clipSegment(s,l,o,a,u,c))===null)continue;[b,y,g,v]=m,d=f,f=this._edgecode(g,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(g,v):i=[g,v]}d=f,f=this._edgecode(b,y),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(b,y):i=[b,y]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let l,c,u=o||a;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),o?(t=l,n=c,o=this._regioncode(t,n)):(r=l,i=c,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,l=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const U1e=2*Math.PI,fs=Math.pow;function q1e(e){return e[0]}function G1e(e){return e[1]}function Y1e(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function K1e(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Hm{static from(t,n=q1e,r=G1e,i){return new Hm("length"in t?X1e(t,n,r,i):Float64Array.from(Q1e(t,n,r,i)))}constructor(t){this._delaunator=new wd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Y1e(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const m=K1e(n[2*f],n[2*f+1],d);n[2*f]=m[0],n[2*f+1]=m[1]}this._delaunator=new wd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=o[l%3===2?l-2:l+1];(r[l]===-1||a[u]===-1)&&(a[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Z1e(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=a[c],c=c%3===2?c-2:c+1,a[c]!==t)return;if(c=o[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=fs(n-c[t*2],2)+fs(r-c[t*2+1],2);const f=i[t];let h=f;do{let m=l[h];const g=fs(n-c[m*2],2)+fs(r-c[m*2+1],2);if(g<d&&(d=g,u=m),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=o[(a[t]+1)%o.length],h!==m&&fs(n-c[h*2],2)+fs(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new da:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const l=i[a];if(l<a)continue;const c=o[a]*2,u=o[l]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new da:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],l=i[o+1];t.moveTo(s+n,l),t.arc(s,l,n,0,U1e)}return r&&r.value()}renderHull(t){const n=t==null?t=new da:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Fh;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new da:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,l=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Fh;return this.renderTriangle(t,n),n.value()}}function X1e(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*Q1e(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var Om=function(e){return[e.x,e.y]},Vu=GS,U$="cursor",q$="top",J1e=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Om:n,i=e.margin,o=i===void 0?Vu:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},ede=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Vu:i,a=e.debug,s=Hm.from(t),l=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},Vm=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Om:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Vu:a,l=e.debug;return S.useMemo(function(){return ede({points:J1e({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[t,i,o,s,l])},tde=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Om:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Vu:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,m=e.onMouseMove,g=e.onMouseLeave,v=e.onClick,b=e.onTouchStart,y=e.onTouchMove,C=e.onTouchEnd,$=e.enableTouchCrosshair,w=$!==void 0&&$,M=e.tooltip,R=e.tooltipPosition,E=R===void 0?U$:R,_=e.tooltipAnchor,O=_===void 0?q$:_,k=S.useState(null),A=k[0],j=k[1],H=S.useRef(null);S.useEffect(function(){H.current=A},[H,A]);var T=S.useCallback(function(J){if(!t.current)return null;var W=Sm(t.current,J),Z=W[0],U=W[1],F=o.find(Z,U),re=F!==void 0?n[F]:null;if(re&&u!==1/0){var B=i(re),ie=B[0],oe=B[1];vie(Z,U,ie+l.left,oe+l.top)>u&&(F=null,re=null)}return F===null||re===null?null:[F,re]},[t,o,n,i,l,u]),P=ci(),V=P.showTooltipAt,I=P.showTooltipFromEvent,L=P.hideTooltip,N=S.useMemo(function(){if(M)return E==="cursor"?function(J,W){I(M(J),W,O)}:function(J){var W=i(J),Z=W[0],U=W[1];V(M(J),[Z+l.left,U+l.top],O)}},[V,I,M,E,O,i,l]),z=S.useCallback(function(J){var W=T(J);if(j(W),a==null||a(W?W[1]:null),W){var Z=W[1];N==null||N(Z,J),h==null||h(W[1],J)}},[T,j,a,N,h]),q=S.useCallback(function(J){var W=T(J);if(j(W),W){var Z=W[0],U=W[1];if(a==null||a(U),N==null||N(U,J),H.current){var F=H.current,re=F[0],B=F[1];Z!==re?g==null||g(B,J):m==null||m(U,J)}else h==null||h(U,J)}else a==null||a(null),L==null||L(),H.current&&(g==null||g(H.current[1],J))},[T,j,H,h,m,g,N,L]),G=S.useCallback(function(J){j(null),a==null||a(null),L(),g&&H.current&&g(H.current[1],J)},[j,a,H,L,g]),Y=S.useCallback(function(J){var W=T(J);j(W),W&&(v==null||v(W[1],J))},[T,j,v]),ee=S.useCallback(function(J){var W=T(J);w&&(j(W),a==null||a(W?W[1]:null)),W&&(b==null||b(W[1],J))},[T,j,a,w,b]),Q=S.useCallback(function(J){var W=T(J);w&&(j(W),a==null||a(W?W[1]:null)),W&&(y==null||y(W[1],J))},[T,j,a,w,y]),K=S.useCallback(function(J){w&&(j(null),a==null||a(null)),C&&H.current&&C(H.current[1],J)},[w,j,a,C,H]);return{current:A,handleMouseEnter:f?z:void 0,handleMouseMove:f?q:void 0,handleMouseLeave:f?G:void 0,handleClick:f?Y:void 0,handleTouchStart:f?ee:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?K:void 0}},G$=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Vu:i,a=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd,g=e.enableTouchCrosshair,v=g!==void 0&&g,b=e.detectionRadius,y=b===void 0?1/0:b,C=e.tooltip,$=e.tooltipPosition,w=$===void 0?U$:$,M=e.tooltipAnchor,R=M===void 0?q$:M,E=e.debug,_=S.useRef(null),O=Vm({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:E}),k=O.delaunay,A=O.voronoi,j=tde({elementRef:_,nodes:t,delaunay:k,margin:o,detectionRadius:y,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:m,enableTouchCrosshair:v,tooltip:C,tooltipPosition:w,tooltipAnchor:R}),H=j.current,T=j.handleMouseEnter,P=j.handleMouseMove,V=j.handleMouseLeave,I=j.handleClick,L=j.handleTouchStart,N=j.handleTouchMove,z=j.handleTouchEnd,q=S.useMemo(function(){if(E&&A)return A.render()},[E,A]);return p.jsxs("g",{ref:_,transform:"translate("+-o.left+","+-o.top+")",children:[E&&A&&p.jsxs(p.Fragment,{children:[p.jsx("path",{d:q,stroke:"red",strokeWidth:1,opacity:.75}),y<1/0&&p.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:k.renderPoints(void 0,y)}),H&&p.jsx("path",{fill:"pink",opacity:.35,d:A.renderCell(H[0])})]}),p.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:T,onMouseMove:P,onMouseLeave:V,onTouchStart:L,onTouchMove:N,onTouchEnd:z,onClick:I})]})},Y$=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},K$=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vr.apply(this,arguments)}function X$(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var nde=function(e){if(typeof e=="function")return e;if(Ha(e))return function(){return e};if(function(n){return Zo(n)}(e)){if(!Sf(e.key))throw new Error("symbolSize is invalid, key should be a string pointing to the property to use to determine node size");if(!Array.isArray(e.values)||e.values.length!==2)throw new Error("symbolSize is invalid, values spec should be an array containing two values, min and max");if(!Array.isArray(e.sizes)||e.sizes.length!==2)throw new Error("symbolSize is invalid, sizes spec should be an array containing two values, min and max");var t=qo().domain([e.values[0],e.values[1]]).range([e.sizes[0],e.sizes[1]]);return function(n){return t(yn(n,e.key))}}throw new Error("nodeSize is invalid, it should be either a function, a number or an object")},Q$=function(e){var t,n=e.data,r=e.xScaleSpec,i=e.xFormat,o=e.yScaleSpec,a=e.yFormat,s=e.width,l=e.height,c=e.nodeId,u=e.nodeSize,d=e.colors,f=S.useMemo(function(){return j$(n,r,o,s,l)},[n,r,o,s,l]),h=f.series,m=f.xScale,g=f.yScale,v=Lo(i),b=Lo(a),y=bi(c),C=S.useMemo(function(){return function(M){var R=M.series,E=M.formatX,_=M.formatY,O=M.getNodeId,k=[];return R.forEach(function(A){A.data.forEach(function(j,H){var T={index:k.length,serieIndex:H,serieId:A.id,x:j.position.x,xValue:j.data.x,formattedX:E(j.data.x),y:j.position.y,yValue:j.data.y,formattedY:_(j.data.y),data:j.data};k.push(Vr({},T,{id:O(T)}))})}),k}({series:h,formatX:v,formatY:b,getNodeId:y})},[h,v,b,y]),$=S.useMemo(function(){return nde(t)},[t=u]),w=_u(d,"serieId");return{xScale:m,yScale:g,nodes:S.useMemo(function(){return C.map(function(M){return Vr({},M,{size:$(M),color:w({serieId:M.serieId})})})},[C,$,w]),legendData:S.useMemo(function(){return h.map(function(M){return{id:M.id,label:M.id,color:w({serieId:M.id})}})},[h,w])}},J$=function(e,t){return M1e({data:e,annotations:t,getPosition:function(n){return{x:n.x,y:n.y}},getDimensions:function(n){return{size:n.size,width:n.size,height:n.size}}})},rde=function(e){return e/2},eM={xScale:{type:"linear",min:0,max:"auto"},yScale:{type:"linear",min:0,max:"auto"},enableGridX:!0,enableGridY:!0,axisBottom:{},axisLeft:{},nodeId:function(e){return e.serieId+"."+e.index},nodeSize:9,nodeComponent:function(e){var t=e.node,n=e.style,r=e.blendMode,i=e.isInteractive,o=e.onMouseEnter,a=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=S.useCallback(function(h){return o==null?void 0:o(t,h)},[t,o]),u=S.useCallback(function(h){return a==null?void 0:a(t,h)},[t,a]),d=S.useCallback(function(h){return s==null?void 0:s(t,h)},[t,s]),f=S.useCallback(function(h){return l==null?void 0:l(t,h)},[t,l]);return p.jsx(et.circle,{cx:n.x,cy:n.y,r:n.size.to(rde),fill:n.color,style:{mixBlendMode:r},onMouseEnter:i?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:i?d:void 0,onClick:i?f:void 0})},colors:{scheme:"nivo"},isInteractive:!0,debugMesh:!1,tooltip:function(e){var t=e.node;return p.jsx(Is,{id:t.serieId,value:"x: "+t.formattedX+", y: "+t.formattedY,enableChip:!0,color:t.color})},markers:[],legends:[],annotations:[]},pn=Vr({},eM,{blendMode:"normal",layers:["grid","axes","nodes","markers","mesh","legends","annotations"],role:"img",useMesh:!0,animate:!0,motionConfig:"default"}),rr=Vr({},eM,{layers:["grid","axes","nodes","mesh","legends","annotations"],pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,renderNode:function(e,t){e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fillStyle=t.color,e.fill()}}),ide=function(e){var t=e.nodes,n=e.annotations,r=J$(t,n);return p.jsx(p.Fragment,{children:r.map(function(i,o){return p.jsx(R1e,Vr({},i),o)})})},ode=function(e){return e.id},O2=function(e){return{x:e.x,y:e.y,size:e.size,color:e.color}},ade=function(e){return{x:e.x,y:e.y,size:0,color:e.color}},sde=function(e){var t=e.nodes,n=e.nodeComponent,r=e.isInteractive,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.blendMode,u=Fn(),d=u.animate,f=u.config,h=xr(t,{keys:ode,from:O2,enter:O2,update:O2,leave:ade,config:f,immediate:!d}),m=ci(),g=m.showTooltipFromEvent,v=m.hideTooltip,b=S.useCallback(function(w,M){g(S.createElement(l,{node:w}),M),i==null||i(w,M)},[l,g,i]),y=S.useCallback(function(w,M){g(S.createElement(l,{node:w}),M),o==null||o(w,M)},[l,g,o]),C=S.useCallback(function(w,M){v(),a==null||a(w,M)},[v,a]),$=S.useCallback(function(w,M){return s==null?void 0:s(w,M)},[s]);return p.jsx(p.Fragment,{children:h(function(w,M){return S.createElement(n,{node:M,style:w,blendMode:c,isInteractive:r,onMouseEnter:r?b:void 0,onMouseMove:r?y:void 0,onMouseLeave:r?C:void 0,onClick:r?$:void 0})})})},lde=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.debug,u=ci(),d=u.showTooltipFromEvent,f=u.hideTooltip,h=S.useCallback(function(b,y){d(S.createElement(l,{node:b}),y),i&&i(b,y)},[d,l,i]),m=S.useCallback(function(b,y){d(S.createElement(l,{node:b}),y),o&&o(b,y)},[d,l,o]),g=S.useCallback(function(b,y){f(),a&&a(b,y)},[f,a]),v=S.useCallback(function(b,y){s&&s(b,y)},[s]);return p.jsx(G$,{nodes:t,width:n,height:r,onMouseEnter:h,onMouseMove:m,onMouseLeave:g,onClick:v,debug:c})},cde=["isInteractive","animate","motionConfig","theme","renderWrapper"],ude=function(e){var t=e.data,n=e.xScale,r=n===void 0?pn.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?pn.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.layers,f=d===void 0?pn.layers:d,h=e.colors,m=h===void 0?pn.colors:h,g=e.blendMode,v=g===void 0?pn.blendMode:g,b=e.nodeId,y=b===void 0?pn.nodeId:b,C=e.nodeSize,$=C===void 0?pn.nodeSize:C,w=e.nodeComponent,M=w===void 0?pn.nodeComponent:w,R=e.enableGridX,E=R===void 0?pn.enableGridX:R,_=e.enableGridY,O=_===void 0?pn.enableGridY:_,k=e.gridXValues,A=e.gridYValues,j=e.axisTop,H=e.axisRight,T=e.axisBottom,P=T===void 0?pn.axisBottom:T,V=e.axisLeft,I=V===void 0?pn.axisLeft:V,L=e.annotations,N=L===void 0?pn.annotations:L,z=e.isInteractive,q=z===void 0?pn.isInteractive:z,G=e.useMesh,Y=G===void 0?pn.useMesh:G,ee=e.debugMesh,Q=ee===void 0?pn.debugMesh:ee,K=e.onMouseEnter,J=e.onMouseMove,W=e.onMouseLeave,Z=e.onClick,U=e.tooltip,F=U===void 0?pn.tooltip:U,re=e.markers,B=re===void 0?pn.markers:re,ie=e.legends,oe=ie===void 0?pn.legends:ie,ve=e.role,xe=ve===void 0?pn.role:ve,pe=e.ariaLabel,ye=e.ariaLabelledBy,Se=e.ariaDescribedBy,me=Za(l,c,u),ge=me.margin,ce=me.innerWidth,$e=me.innerHeight,he=me.outerWidth,Ae=me.outerHeight,Ie=Q$({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:a,yFormat:s,width:ce,height:$e,nodeId:y,nodeSize:$,colors:m}),Re=Ie.xScale,ke=Ie.yScale,Ye=Ie.nodes,Xe=Ie.legendData,Fe=S.useMemo(function(){return{xScale:Re,yScale:ke,nodes:Ye,margin:ge,innerWidth:ce,innerHeight:$e,outerWidth:he,outerHeight:Ae}},[Re,ke,Ye,ge,ce,$e,he,Ae]),je={grid:null,axes:null,nodes:null,markers:null,mesh:null,annotations:null,legends:null};return f.includes("grid")&&(je.grid=p.jsx(B$,{width:ce,height:$e,xScale:E?Re:null,yScale:O?ke:null,xValues:k,yValues:A},"grid")),f.includes("axes")&&(je.axes=p.jsx(z$,{xScale:Re,yScale:ke,width:ce,height:$e,top:j,right:H,bottom:P,left:I},"axes")),f.includes("nodes")&&(je.nodes=p.jsx(sde,{nodes:Ye,nodeComponent:M,isInteractive:q,tooltip:F,blendMode:v,onMouseEnter:K,onMouseMove:J,onMouseLeave:W,onClick:Z},"nodes")),f.includes("markers")&&(je.markers=p.jsx(s$,{markers:B,width:ce,height:$e,xScale:Re,yScale:ke},"markers")),f.includes("mesh")&&q&&Y&&(je.mesh=p.jsx(lde,{nodes:Ye,width:ce,height:$e,onMouseEnter:K,onMouseMove:J,onMouseLeave:W,onClick:Z,tooltip:F,debug:Q},"mesh")),f.includes("annotations")&&(je.annotations=p.jsx(ide,{nodes:Ye,annotations:N},"annotations")),f.includes("legends")&&(je.legends=oe.map(function(Qe,Ze){return p.jsx(If,Vr({},Qe,{containerWidth:ce,containerHeight:$e,data:Xe}),Ze)})),p.jsx(Sl,{width:he,height:Ae,margin:ge,role:xe,ariaLabel:pe,ariaLabelledBy:ye,ariaDescribedBy:Se,children:f.map(function(Qe,Ze){if(typeof Qe=="string"&&je[Qe]!==void 0)return je[Qe];if(typeof Qe=="function")return p.jsx(S.Fragment,{children:S.createElement(Qe,Fe)},Ze);throw new Error("Unknown layer ("+Qe+")")})})},dde=function(e){var t=e.isInteractive,n=t===void 0?pn.isInteractive:t,r=e.animate,i=r===void 0?pn.animate:r,o=e.motionConfig,a=o===void 0?pn.motionConfig:o,s=e.theme,l=e.renderWrapper,c=X$(e,cde);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(ude,Vr({isInteractive:n},c))})},tM=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(dde,Vr({width:n,height:r},e))}})},fde=["isInteractive","renderWrapper","theme"],hde=function(e){var t=e.data,n=e.xScale,r=n===void 0?rr.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?rr.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.pixelRatio,f=d===void 0?rr.pixelRatio:d,h=e.layers,m=h===void 0?rr.layers:h,g=e.colors,v=g===void 0?rr.colors:g,b=e.nodeId,y=b===void 0?pn.nodeId:b,C=e.nodeSize,$=C===void 0?rr.nodeSize:C,w=e.renderNode,M=w===void 0?rr.renderNode:w,R=e.enableGridX,E=R===void 0?rr.enableGridX:R,_=e.gridXValues,O=e.enableGridY,k=O===void 0?rr.enableGridY:O,A=e.gridYValues,j=e.axisTop,H=e.axisRight,T=e.axisBottom,P=T===void 0?rr.axisBottom:T,V=e.axisLeft,I=V===void 0?rr.axisLeft:V,L=e.annotations,N=L===void 0?rr.annotations:L,z=e.isInteractive,q=z===void 0?rr.isInteractive:z,G=e.debugMesh,Y=G===void 0?rr.debugMesh:G,ee=e.onMouseEnter,Q=e.onMouseMove,K=e.onMouseLeave,J=e.onClick,W=e.tooltip,Z=W===void 0?rr.tooltip:W,U=e.legends,F=U===void 0?rr.legends:U,re=e.canvasRef,B=S.useRef(null),ie=Wt(),oe=S.useState(null),ve=oe[0],xe=oe[1],pe=Za(l,c,u),ye=pe.margin,Se=pe.innerWidth,me=pe.innerHeight,ge=pe.outerWidth,ce=pe.outerHeight,$e=Q$({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:a,yFormat:s,width:Se,height:me,nodeId:y,nodeSize:$,colors:v}),he=$e.xScale,Ae=$e.yScale,Ie=$e.nodes,Re=$e.legendData,ke=J$(Ie,N),Ye=Vm({points:Ie,width:Se,height:me,debug:Y}),Xe=Ye.delaunay,Fe=Ye.voronoi,je=S.useMemo(function(){return{xScale:he,yScale:Ae,nodes:Ie,margin:ye,innerWidth:Se,innerHeight:me,outerWidth:ge,outerHeight:ce}},[he,Ae,Ie,ye,Se,me,ge,ce]);S.useEffect(function(){if(B.current){B.current.width=ge*f,B.current.height=ce*f;var Ne=B.current.getContext("2d");Ne.scale(f,f),Ne.fillStyle=ie.background,Ne.fillRect(0,0,ge,ce),Ne.translate(ye.left,ye.top),m.forEach(function(ze){if(ze==="grid")Ne.lineWidth=ie.grid.line.strokeWidth,Ne.strokeStyle=ie.grid.line.stroke,E&&Cd(Ne,{width:Se,height:me,scale:he,axis:"x",values:_}),k&&Cd(Ne,{width:Se,height:me,scale:Ae,axis:"y",values:A});else if(ze==="annotations")T1e(Ne,{annotations:ke,theme:ie});else if(ze==="axes")W$(Ne,{xScale:he,yScale:Ae,width:Se,height:me,top:j,right:H,bottom:P,left:I,theme:ie});else if(ze==="nodes")Ie.forEach(function(De){M(Ne,De)});else if(ze==="mesh")Y&&(Y$(Ne,Fe),ve&&K$(Ne,Fe,ve.index));else if(ze==="legends")F.forEach(function(De){v$(Ne,Vr({},De,{data:Re,containerWidth:Se,containerHeight:me,theme:ie}))});else{if(typeof ze!="function")throw new Error("Invalid layer: "+ze);ze(Ne,je)}})}},[B,Se,me,ge,ce,ye.top,ye.left,f,M,m,je,ie,he,Ae,Ie,E,k,j,H,P,I,F,Re,Y,Fe,ve,ke]);var Qe=ci(),Ze=Qe.showTooltipFromEvent,qe=Qe.hideTooltip,de=S.useCallback(function(Ne){var ze=Sm(B.current,Ne),De=ze[0],Je=ze[1];if(!c$(ye.left,ye.top,Se,me,De,Je))return null;var tt=Xe.find(De-ye.left,Je-ye.top);return Ie[tt]},[B,ye,Se,me,Xe]),Ee=S.useCallback(function(Ne){var ze=de(Ne);xe(ze),ze?(Ze(S.createElement(Z,{node:ze}),Ne),ve&&ve.id!==ze.id&&(K&&K(ve,Ne),ee&&ee(ze,Ne)),ve||ee&&ee(ze,Ne),Q&&Q(ze,Ne)):(qe(),ve&&K&&K(ve,Ne))},[de,ve,xe,Ze,qe,Z,ee,Q,K]),Ke=S.useCallback(function(Ne){qe(),xe(null),ve&&K&&K(ve,Ne)},[qe,ve,xe,K]),nt=S.useCallback(function(Ne){if(J){var ze=de(Ne);ze&&J(ze,Ne)}},[de,J]);return p.jsx("canvas",{ref:function(Ne){B.current=Ne,re&&"current"in re&&(re.current=Ne)},width:ge*f,height:ce*f,style:{width:ge,height:ce,cursor:q?"auto":"normal"},onMouseEnter:q?Ee:void 0,onMouseMove:q?Ee:void 0,onMouseLeave:q?Ke:void 0,onClick:q?nt:void 0})},gde=S.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=X$(e,fde);return p.jsx(Ua,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:p.jsx(hde,Vr({},o,{canvasRef:t}))})});S.forwardRef(function(e,t){return p.jsx(Go,{children:function(n){var r=n.width,i=n.height;return p.jsx(gde,Vr({width:r,height:i},e,{ref:t}))}})});const vde=({x1:e,x2:t,y1:n,y2:r})=>p.jsx("g",{children:p.jsx("line",{x1:e,y1:n,x2:t,y2:r,stroke:"red",strokeWidth:"3"})}),mde=({scatterPlotData:e,style:t={},margin:n={},axisBottom:r={},axisLeft:i={},tooltip:o=null})=>{var h,m;const a=e==null?void 0:e.line,s=a==null?void 0:a.x1,l=a==null?void 0:a.y1,c=a==null?void 0:a.x2,u=a==null?void 0:a.y2,d=(m=(h=e==null?void 0:e.points)==null?void 0:h.data)==null?void 0:m.map(g=>g.y);Math.min(l,u,...d);const f=Math.max(l,u,...d);return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{style:{width:"100%",height:600,...t},children:p.jsx(tM,{data:[e==null?void 0:e.points],margin:{top:20,right:120,bottom:100,left:120,...n},xScale:{type:"point"},yScale:{type:"linear",min:0,max:f,reverse:!1},axisBottom:{orient:"bottom",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:46,truncateTickAt:0,legend:"axisBottom",...r},axisLeft:{orient:"left",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:-60,truncateTickAt:0,legend:"axisLeft",...i},layers:["grid","markers","axes","nodes","legends",g=>p.jsx(vde,{x1:g.xScale(s),y1:g.yScale(l),x2:g.xScale(c),y2:g.yScale(u)})],tooltip:({node:g})=>p.jsx(Zn,{body:(o==null?void 0:o({node:g}))||p.jsx("span",{children:"Scatterplot tooltip"})})})})]})};function pde(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var bde=pde;function yde(e){return function(t){return e==null?void 0:e[t]}}var xde=yde,Cde=xde,wde={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sde=Cde(wde),$de=Sde,Mde=$de,_de=yu,Ede=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hde="\\u0300-\\u036f",Ode="\\ufe20-\\ufe2f",Vde="\\u20d0-\\u20ff",Rde=Hde+Ode+Vde,Tde="["+Rde+"]",kde=RegExp(Tde,"g");function jde(e){return e=_de(e),e&&e.replace(Ede,Mde).replace(kde,"")}var Pde=jde,Lde=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ide(e){return e.match(Lde)||[]}var Ade=Ide,Nde=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fde(e){return Nde.test(e)}var Dde=Fde,nM="\\ud800-\\udfff",zde="\\u0300-\\u036f",Bde="\\ufe20-\\ufe2f",Wde="\\u20d0-\\u20ff",Zde=zde+Bde+Wde,rM="\\u2700-\\u27bf",iM="a-z\\xdf-\\xf6\\xf8-\\xff",Ude="\\xac\\xb1\\xd7\\xf7",qde="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gde="\\u2000-\\u206f",Yde=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oM="A-Z\\xc0-\\xd6\\xd8-\\xde",Kde="\\ufe0e\\ufe0f",aM=Ude+qde+Gde+Yde,sM="['’]",f9="["+aM+"]",Xde="["+Zde+"]",lM="\\d+",Qde="["+rM+"]",cM="["+iM+"]",uM="[^"+nM+aM+lM+rM+iM+oM+"]",Jde="\\ud83c[\\udffb-\\udfff]",efe="(?:"+Xde+"|"+Jde+")",tfe="[^"+nM+"]",dM="(?:\\ud83c[\\udde6-\\uddff]){2}",fM="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+oM+"]",nfe="\\u200d",h9="(?:"+cM+"|"+uM+")",rfe="(?:"+vs+"|"+uM+")",g9="(?:"+sM+"(?:d|ll|m|re|s|t|ve))?",v9="(?:"+sM+"(?:D|LL|M|RE|S|T|VE))?",hM=efe+"?",gM="["+Kde+"]?",ife="(?:"+nfe+"(?:"+[tfe,dM,fM].join("|")+")"+gM+hM+")*",ofe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",afe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sfe=gM+hM+ife,lfe="(?:"+[Qde,dM,fM].join("|")+")"+sfe,cfe=RegExp([vs+"?"+cM+"+"+g9+"(?="+[f9,vs,"$"].join("|")+")",rfe+"+"+v9+"(?="+[f9,vs+h9,"$"].join("|")+")",vs+"?"+h9+"+"+g9,vs+"+"+v9,afe,ofe,lM,lfe].join("|"),"g");function ufe(e){return e.match(cfe)||[]}var dfe=ufe,ffe=Ade,hfe=Dde,gfe=yu,vfe=dfe;function mfe(e,t,n){return e=gfe(e),t=n?void 0:t,t===void 0?hfe(e)?vfe(e):ffe(e):e.match(t)||[]}var pfe=mfe,bfe=bde,yfe=Pde,xfe=pfe,Cfe="['’]",wfe=RegExp(Cfe,"g");function Sfe(e){return function(t){return bfe(xfe(yfe(t).replace(wfe,"")),e,"")}}var $fe=Sfe,Mfe=Z$;function _fe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Mfe(e,t,n)}var Efe=_fe,Hfe="\\ud800-\\udfff",Ofe="\\u0300-\\u036f",Vfe="\\ufe20-\\ufe2f",Rfe="\\u20d0-\\u20ff",Tfe=Ofe+Vfe+Rfe,kfe="\\ufe0e\\ufe0f",jfe="\\u200d",Pfe=RegExp("["+jfe+Hfe+Tfe+kfe+"]");function Lfe(e){return Pfe.test(e)}var vM=Lfe;function Ife(e){return e.split("")}var Afe=Ife,mM="\\ud800-\\udfff",Nfe="\\u0300-\\u036f",Ffe="\\ufe20-\\ufe2f",Dfe="\\u20d0-\\u20ff",zfe=Nfe+Ffe+Dfe,Bfe="\\ufe0e\\ufe0f",Wfe="["+mM+"]",Dh="["+zfe+"]",zh="\\ud83c[\\udffb-\\udfff]",Zfe="(?:"+Dh+"|"+zh+")",pM="[^"+mM+"]",bM="(?:\\ud83c[\\udde6-\\uddff]){2}",yM="[\\ud800-\\udbff][\\udc00-\\udfff]",Ufe="\\u200d",xM=Zfe+"?",CM="["+Bfe+"]?",qfe="(?:"+Ufe+"(?:"+[pM,bM,yM].join("|")+")"+CM+xM+")*",Gfe=CM+xM+qfe,Yfe="(?:"+[pM+Dh+"?",Dh,bM,yM,Wfe].join("|")+")",Kfe=RegExp(zh+"(?="+zh+")|"+Yfe+Gfe,"g");function Xfe(e){return e.match(Kfe)||[]}var Qfe=Xfe,Jfe=Afe,e0e=vM,t0e=Qfe;function n0e(e){return e0e(e)?t0e(e):Jfe(e)}var r0e=n0e,i0e=Efe,o0e=vM,a0e=r0e,s0e=yu;function l0e(e){return function(t){t=s0e(t);var n=o0e(t)?a0e(t):void 0,r=n?n[0]:t.charAt(0),i=n?i0e(n,1).join(""):t.slice(1);return r[e]()+i}}var c0e=l0e,u0e=c0e,d0e=u0e("toUpperCase"),f0e=d0e,h0e=$fe,g0e=f0e,v0e=h0e(function(e,t,n){return e+(n?" ":"")+g0e(t)}),m0e=v0e;const p0e=Cn(m0e);function b0e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function y0e(){return this.eachAfter(b0e)}function x0e(e){var t=this,n,r=[t],i,o,a;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)r.push(i[o]);while(r.length);return this}function C0e(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function w0e(e){for(var t=this,n=[t],r=[],i,o,a;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)n.push(i[o]);for(;t=r.pop();)e(t);return this}function S0e(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function $0e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function M0e(e){for(var t=this,n=_0e(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function _0e(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function E0e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function H0e(){var e=[];return this.each(function(t){e.push(t)}),e}function O0e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function V0e(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Rm(e,t){var n=new Sd(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,l,c;for(t==null&&(t=T0e);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(c=s.length))for(i.children=new Array(c),l=c-1;l>=0;--l)o.push(a=i.children[l]=new Sd(s[l])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(j0e)}function R0e(){return Rm(this).eachBefore(k0e)}function T0e(e){return e.children}function k0e(e){e.data=e.data.data}function j0e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Sd(e){this.data=e,this.depth=this.height=0,this.parent=null}Sd.prototype=Rm.prototype={constructor:Sd,count:y0e,each:x0e,eachAfter:w0e,eachBefore:C0e,sum:S0e,sort:$0e,path:M0e,ancestors:E0e,descendants:H0e,leaves:O0e,links:V0e,copy:R0e};function P0e(e){if(typeof e!="function")throw new Error;return e}function Yl(){return 0}function Kl(e){return function(){return e}}function L0e(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Tm(e,t,n,r,i){for(var o=e.children,a,s=-1,l=o.length,c=e.value&&(r-t)/e.value;++s<l;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function km(e,t,n,r,i){for(var o=e.children,a,s=-1,l=o.length,c=e.value&&(i-n)/e.value;++s<l;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var I0e=(1+Math.sqrt(5))/2;function A0e(e,t,n,r,i,o){for(var a=[],s=t.children,l,c,u=0,d=0,f=s.length,h,m,g=t.value,v,b,y,C,$,w,M;u<f;){h=i-n,m=o-r;do v=s[d++].value;while(!v&&d<f);for(b=y=v,w=Math.max(m/h,h/m)/(g*e),M=v*v*w,$=Math.max(y/M,M/b);d<f;++d){if(v+=c=s[d].value,c<b&&(b=c),c>y&&(y=c),M=v*v*w,C=Math.max(y/M,M/b),C>$){v-=c;break}$=C}a.push(l={value:v,dice:h<m,children:s.slice(u,d)}),l.dice?Tm(l,n,r,i,g?r+=m*v/g:o):km(l,n,r,g?n+=h*v/g:i,o),g-=v,u=d}return a}const wM=function e(t){function n(r,i,o,a,s){A0e(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(I0e);function N0e(){var e=wM,t=!1,n=1,r=1,i=[0],o=Yl,a=Yl,s=Yl,l=Yl,c=Yl;function u(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(L0e),f}function d(f){var h=i[f.depth],m=f.x0+h,g=f.y0+h,v=f.x1-h,b=f.y1-h;v<m&&(m=v=(m+v)/2),b<g&&(g=b=(g+b)/2),f.x0=m,f.y0=g,f.x1=v,f.y1=b,f.children&&(h=i[f.depth+1]=o(f)/2,m+=c(f)-h,g+=a(f)-h,v-=s(f)-h,b-=l(f)-h,v<m&&(m=v=(m+v)/2),b<g&&(g=b=(g+b)/2),e(f,m,g,v,b))}return u.round=function(f){return arguments.length?(t=!!f,u):t},u.size=function(f){return arguments.length?(n=+f[0],r=+f[1],u):[n,r]},u.tile=function(f){return arguments.length?(e=P0e(f),u):e},u.padding=function(f){return arguments.length?u.paddingInner(f).paddingOuter(f):u.paddingInner()},u.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:Kl(+f),u):o},u.paddingOuter=function(f){return arguments.length?u.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):u.paddingTop()},u.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:Kl(+f),u):a},u.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:Kl(+f),u):s},u.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:Kl(+f),u):l},u.paddingLeft=function(f){return arguments.length?(c=typeof f=="function"?f:Kl(+f),u):c},u}function F0e(e,t,n,r,i){var o=e.children,a,s=o.length,l,c=new Array(s+1);for(c[0]=l=a=0;a<s;++a)c[a+1]=l+=o[a].value;u(0,s,e.value,t,n,r,i);function u(d,f,h,m,g,v,b){if(d>=f-1){var y=o[d];y.x0=m,y.y0=g,y.x1=v,y.y1=b;return}for(var C=c[d],$=h/2+C,w=d+1,M=f-1;w<M;){var R=w+M>>>1;c[R]<$?w=R+1:M=R}$-c[w-1]<c[w]-$&&d+1<w&&--w;var E=c[w]-C,_=h-E;if(v-m>b-g){var O=(m*_+v*E)/h;u(d,w,E,m,g,O,b),u(w,f,_,O,g,v,b)}else{var k=(g*_+b*E)/h;u(d,w,E,m,g,v,k),u(w,f,_,m,k,v,b)}}}function D0e(e,t,n,r,i){(e.depth&1?km:Tm)(e,t,n,r,i)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}function z0e(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var B0e=function(e,t){return Vn([e,t],function(n,r){return"translate("+n+","+r+")"})},W0e=function(e,t){return Vn([e,t],function(n,r){return"translate("+n+"px, "+r+"px)"})},m9=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+r+","+i+") rotate("+o+")"})},Z0e=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+r+"px,"+i+"px) rotate("+o+"deg)"})},U0e=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+(r-(o===0?0:5))+"px,"+(i-(o===0?5:0))+"px) rotate("+o+"deg)"})},q0e=S.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,s=Wt(),l=i&&t.isLeaf&&(a===0||Math.min(t.width,t.height)>a),c=o&&t.isParent;return p.jsxs(et.g,{transform:B0e(n.x,n.y),children:[p.jsx(et.rect,{"data-testid":"node."+t.id,width:Vn(n.width,function(u){return Math.max(u,0)}),height:Vn(n.height,function(u){return Math.max(u,0)}),fill:t.fill?t.fill:n.color,strokeWidth:r,stroke:t.borderColor,fillOpacity:t.opacity,onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&p.jsx(et.text,{"data-testid":"label."+t.id,textAnchor:"middle",dominantBaseline:"central",style:Rr({},s.labels.text,{fill:t.labelTextColor,pointerEvents:"none"}),fillOpacity:n.labelOpacity,transform:m9(n.labelX,n.labelY,n.labelRotation),children:t.label}),c&&p.jsx(et.text,{"data-testid":"parentLabel."+t.id,dominantBaseline:"central",style:Rr({},s.labels.text,{fill:t.parentLabelTextColor,pointerEvents:"none"}),fillOpacity:n.parentLabelOpacity,transform:m9(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),children:t.parentLabel})]})}),G0e=S.memo(function(e){var t=e.node;return p.jsx(Is,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})}),Y0e=S.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,s=Wt(),l=i&&t.isLeaf&&(a===0||Math.min(t.width,t.height)>a),c=o&&t.isParent;return p.jsxs(et.div,{"data-testid":"node."+t.id,id:t.path.replace(/[^\w]/gi,"-"),style:{boxSizing:"border-box",position:"absolute",top:0,left:0,transform:W0e(n.x,n.y),width:n.width,height:n.height,borderWidth:r,borderStyle:"solid",borderColor:t.borderColor,overflow:"hidden"},children:[p.jsx(et.div,{style:{boxSizing:"border-box",position:"absolute",top:0,left:0,opacity:t.opacity,width:n.width,height:n.height,background:n.color},onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&p.jsx(et.span,{"data-testid":"label."+t.id,style:Rr({},s.labels.text,{position:"absolute",display:"flex",top:-5,left:-5,width:10,height:10,justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",color:t.labelTextColor,transformOrigin:"center center",transform:Z0e(n.labelX,n.labelY,n.labelRotation),opacity:n.labelOpacity,pointerEvents:"none"}),children:t.label}),c&&p.jsx(et.span,{"data-testid":"parentLabel."+t.id,style:Rr({},s.labels.text,{position:"absolute",display:"flex",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",width:10,height:10,color:t.parentLabelTextColor,transformOrigin:"top left",transform:U0e(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),opacity:n.parentLabelOpacity,pointerEvents:"none"}),children:t.parentLabel})]})}),$n={layers:["nodes"],identity:"id",value:"value",tile:"squarify",leavesOnly:!1,innerPadding:0,outerPadding:0,colors:{scheme:"nivo"},colorBy:"pathComponents.1",nodeOpacity:.33,enableLabel:!0,label:"formattedValue",labelSkipSize:0,labelTextColor:{from:"color",modifiers:[["darker",1]]},orientLabel:!0,enableParentLabel:!0,parentLabel:"id",parentLabelSize:20,parentLabelPosition:"top",parentLabelPadding:6,parentLabelTextColor:{from:"color",modifiers:[["darker",1]]},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:G0e,role:"img",animate:!0,motionConfig:"gentle"},Zt=Rr({},$n,{nodeComponent:q0e,defs:[],fill:[]});Rr({},$n,{nodeComponent:Y0e});Rr({},$n,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var K0e={binary:F0e,dice:Tm,slice:km,sliceDice:D0e,squarify:wM},X0e=function(e){var t=e.root,n=e.getValue;return S.useMemo(function(){return Rm(t).sum(n)},[t,n])},Q0e=function(e){var t=e.data,n=e.width,r=e.height,i=e.identity,o=i===void 0?$n.identity:i,a=e.value,s=a===void 0?$n.value:a,l=e.valueFormat,c=e.leavesOnly,u=c===void 0?$n.leavesOnly:c,d=e.tile,f=d===void 0?$n.tile:d,h=e.innerPadding,m=h===void 0?$n.innerPadding:h,g=e.outerPadding,v=g===void 0?$n.outerPadding:g,b=e.label,y=b===void 0?$n.label:b,C=e.orientLabel,$=C===void 0?$n.orientLabel:C,w=e.enableParentLabel,M=w===void 0?$n.enableParentLabel:w,R=e.parentLabel,E=R===void 0?$n.parentLabel:R,_=e.parentLabelSize,O=_===void 0?$n.parentLabelSize:_,k=e.parentLabelPosition,A=k===void 0?$n.parentLabelPosition:k,j=e.parentLabelPadding,H=j===void 0?$n.parentLabelPadding:j,T=e.colors,P=T===void 0?$n.colors:T,V=e.colorBy,I=V===void 0?$n.colorBy:V,L=e.nodeOpacity,N=L===void 0?$n.nodeOpacity:L,z=e.borderColor,q=z===void 0?$n.borderColor:z,G=e.labelTextColor,Y=G===void 0?$n.labelTextColor:G,ee=e.parentLabelTextColor,Q=ee===void 0?$n.parentLabelTextColor:ee,K=bi(o),J=bi(s),W=Lo(l),Z=bi(y),U=bi(E),F=function(me){var ge=me.width,ce=me.height,$e=me.tile,he=me.innerPadding,Ae=me.outerPadding,Ie=me.enableParentLabel,Re=me.parentLabelSize,ke=me.parentLabelPosition,Ye=me.leavesOnly;return S.useMemo(function(){var Xe=N0e().size([ge,ce]).tile(K0e[$e]).round(!0).paddingInner(he).paddingOuter(Ae);if(Ie&&!Ye){var Fe=Re+2*Ae;Xe["padding"+p0e(ke)](Fe)}return Xe},[ge,ce,$e,he,Ae,Ie,Re,ke,Ye])}({width:n,height:r,tile:f,innerPadding:m,outerPadding:v,enableParentLabel:M,parentLabelSize:O,parentLabelPosition:A,leavesOnly:u}),re=X0e({root:t,getValue:J}),B=S.useMemo(function(){var me=S$(re);return F(me),u?me.leaves():me.descendants()},[re,F,u]),ie=S.useMemo(function(){return B.map(function(me){var ge=function(Ae,Ie){var Re=Ae.ancestors().map(function(ke){return Ie(ke.data)}).reverse();return{path:Re.join("."),pathComponents:Re}}(me,K),ce=ge.path,$e=ge.pathComponents,he={id:K(me.data),path:ce,pathComponents:$e,data:Ya(me.data,"children"),x:me.x0,y:me.y0,width:me.x1-me.x0,height:me.y1-me.y0,value:me.value,formattedValue:W(me.value),treeDepth:me.depth,treeHeight:me.height,isParent:me.height>0,isLeaf:me.height===0,parentLabelX:0,parentLabelY:0,parentLabelRotation:0};return he.labelRotation=$&&he.height>he.width?-90:0,A==="top"&&(he.parentLabelX=v+H,he.parentLabelY=v+O/2),A==="right"&&(he.parentLabelX=he.width-v-O/2,he.parentLabelY=he.height-v-H,he.parentLabelRotation=-90),A==="bottom"&&(he.parentLabelX=v+H,he.parentLabelY=he.height-v-O/2),A==="left"&&(he.parentLabelX=v+O/2,he.parentLabelY=he.height-v-H,he.parentLabelRotation=-90),he.label=Z(he),he.parentLabel=U(he),he})},[B,K,W,Z,$,U,O,A,H,v]),oe=Wt(),ve=_u(P,I),xe=Hr(q,oe),pe=Hr(Y,oe),ye=Hr(Q,oe),Se=S.useMemo(function(){return ie.map(function(me){var ge=Rr({},me,{color:ve(me),opacity:N});return ge.borderColor=xe(ge),ge.labelTextColor=pe(ge),ge.parentLabelTextColor=ye(ge),ge})},[ie,ve,N,xe,pe,ye]);return{hierarchy:re,nodes:Se,layout:F}},J0e=function(e){var t=e.nodes;return S.useMemo(function(){return{nodes:t}},[t])},V2=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,labelX:e.width/2,labelY:e.height/2,labelRotation:e.labelRotation,labelOpacity:1,parentLabelX:e.parentLabelX,parentLabelY:e.parentLabelY,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:1}},p9=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2,width:0,height:0,color:e.color,labelX:0,labelY:0,labelRotation:e.labelRotation,labelOpacity:0,parentLabelX:0,parentLabelY:0,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:0}},e2e=S.memo(function(e){var t=e.nodes,n=e.nodeComponent,r=e.borderWidth,i=e.enableLabel,o=e.labelSkipSize,a=e.enableParentLabel,s=function(f,h){var m=h.isInteractive,g=h.onMouseEnter,v=h.onMouseMove,b=h.onMouseLeave,y=h.onClick,C=h.tooltip,$=ci(),w=$.showTooltipFromEvent,M=$.hideTooltip,R=S.useCallback(function(A,j){w(S.createElement(C,{node:A}),j,"left")},[w,C]),E=S.useCallback(function(A,j){R(A,j),g==null||g(A,j)},[g,R]),_=S.useCallback(function(A,j){R(A,j),v==null||v(A,j)},[v,R]),O=S.useCallback(function(A,j){M(),b==null||b(A,j)},[b,M]),k=S.useCallback(function(A,j){y==null||y(A,j)},[y]);return S.useMemo(function(){return f.map(function(A){return m?Rr({},A,{onMouseEnter:function(j){return E(A,j)},onMouseMove:function(j){return _(A,j)},onMouseLeave:function(j){return O(A,j)},onClick:function(j){return k(A,j)}}):A})},[m,f,E,_,O,k])}(t,{isInteractive:e.isInteractive,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,tooltip:e.tooltip}),l=Fn(),c=l.animate,u=l.config,d=xr(s,{keys:function(f){return f.path},initial:V2,from:p9,enter:V2,update:V2,leave:p9,config:u,immediate:!c});return p.jsx(p.Fragment,{children:d(function(f,h){return S.createElement(n,{key:h.path,node:h,animatedProps:f,borderWidth:r,enableLabel:i,labelSkipSize:o,enableParentLabel:a})})})}),t2e=["isInteractive","animate","motionConfig","theme","renderWrapper"],n2e=function(e){var t=e.data,n=e.identity,r=n===void 0?Zt.identity:n,i=e.value,o=i===void 0?Zt.value:i,a=e.valueFormat,s=e.tile,l=s===void 0?Zt.tile:s,c=e.nodeComponent,u=c===void 0?Zt.nodeComponent:c,d=e.innerPadding,f=d===void 0?Zt.innerPadding:d,h=e.outerPadding,m=h===void 0?Zt.outerPadding:h,g=e.leavesOnly,v=g===void 0?Zt.leavesOnly:g,b=e.width,y=e.height,C=e.margin,$=e.layers,w=$===void 0?Zt.layers:$,M=e.colors,R=M===void 0?Zt.colors:M,E=e.colorBy,_=E===void 0?Zt.colorBy:E,O=e.nodeOpacity,k=O===void 0?Zt.nodeOpacity:O,A=e.borderWidth,j=A===void 0?Zt.borderWidth:A,H=e.borderColor,T=H===void 0?Zt.borderColor:H,P=e.defs,V=P===void 0?Zt.defs:P,I=e.fill,L=I===void 0?Zt.fill:I,N=e.enableLabel,z=N===void 0?Zt.enableLabel:N,q=e.label,G=q===void 0?Zt.label:q,Y=e.labelTextColor,ee=Y===void 0?Zt.labelTextColor:Y,Q=e.orientLabel,K=Q===void 0?Zt.orientLabel:Q,J=e.labelSkipSize,W=J===void 0?Zt.labelSkipSize:J,Z=e.enableParentLabel,U=Z===void 0?Zt.enableParentLabel:Z,F=e.parentLabel,re=F===void 0?Zt.parentLabel:F,B=e.parentLabelSize,ie=B===void 0?Zt.parentLabelSize:B,oe=e.parentLabelPosition,ve=oe===void 0?Zt.parentLabelPosition:oe,xe=e.parentLabelPadding,pe=xe===void 0?Zt.parentLabelPadding:xe,ye=e.parentLabelTextColor,Se=ye===void 0?Zt.parentLabelTextColor:ye,me=e.isInteractive,ge=me===void 0?Zt.isInteractive:me,ce=e.onMouseEnter,$e=e.onMouseMove,he=e.onMouseLeave,Ae=e.onClick,Ie=e.tooltip,Re=Ie===void 0?Zt.tooltip:Ie,ke=e.role,Ye=e.ariaLabel,Xe=e.ariaLabelledBy,Fe=e.ariaDescribedBy,je=Za(b,y,C),Qe=je.margin,Ze=je.innerWidth,qe=je.innerHeight,de=je.outerWidth,Ee=je.outerHeight,Ke=Q0e({data:t,identity:r,value:o,valueFormat:a,leavesOnly:v,width:Ze,height:qe,tile:l,innerPadding:f,outerPadding:m,colors:R,colorBy:_,nodeOpacity:k,borderColor:T,label:G,labelTextColor:ee,orientLabel:K,enableParentLabel:U,parentLabel:re,parentLabelSize:ie,parentLabelPosition:ve,parentLabelPadding:pe,parentLabelTextColor:Se}).nodes,nt={nodes:null};w.includes("nodes")&&(nt.nodes=p.jsx(e2e,{nodes:Ke,nodeComponent:u,borderWidth:j,enableLabel:z,labelSkipSize:W,enableParentLabel:U,isInteractive:ge,onMouseEnter:ce,onMouseMove:$e,onMouseLeave:he,onClick:Ae,tooltip:Re},"nodes"));var Ne=J0e({nodes:Ke}),ze=$m(V,Ke,L);return p.jsx(Sl,{width:de,height:Ee,margin:Qe,defs:ze,role:ke,ariaLabel:Ye,ariaLabelledBy:Xe,ariaDescribedBy:Fe,children:w.map(function(De,Je){var tt;return typeof De=="function"?p.jsx(S.Fragment,{children:S.createElement(De,Ne)},Je):(tt=nt==null?void 0:nt[De])!=null?tt:null})})},r2e=function(e){var t=e.isInteractive,n=t===void 0?Zt.isInteractive:t,r=e.animate,i=r===void 0?Zt.animate:r,o=e.motionConfig,a=o===void 0?Zt.motionConfig:o,s=e.theme,l=e.renderWrapper,c=z0e(e,t2e);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(n2e,Rr({isInteractive:n},c))})},i2e=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(r2e,Rr({width:n,height:r},e))}})};function o2e(e,t){if(e.startsWith("rgba"))return e.replace(/rgba?\((\d+), (\d+), (\d+),? ([\d.]+)?\)/,(n,r,i,o,a)=>`rgba(${r}, ${i}, ${o}, ${t})`);if(e.startsWith("rgb"))return e.replace(/rgb\((\d+), (\d+), (\d+)\)/,(n,r,i,o)=>`rgba(${r}, ${i}, ${o}, ${t})`);if(e.startsWith("hsl"))return e.replace(/hsl\((\d+), (\d+)%?, (\d+)%?\)/,(n,r,i,o)=>`hsla(${r}, ${i}%, ${o}%, ${t})`);if(e.startsWith("hsla"))return e.replace(/hsla?\((\d+), (\d+)%?, (\d+)%?,? ([\d.]+)?\)/,(n,r,i,o,a)=>`hsla(${r}, ${i}%, ${o}%, ${t})`);if(e.startsWith("#")){const n=a2e(e);return`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`}throw new Error("Unsupported color format")}function a2e(e){const t=e.startsWith("#")?e.slice(1):e,n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return{r:n,g:r,b:i}}const s2e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},l2e=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;s2e(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},c2e=({treeMapData:e,style:t={},colors:n={scheme:"nivo"},identity:r="name",value:i="loc",margin:o={},nodeOpacity:a=.67,labelTextColor:s="black",borderColor:l="white",labelTitle:c="name",labelTitleSize:u=16,labelText:d="name",labelTextSize:f=12,labelPadding:h=10,labelGap:m=10,labelLineHeight:g=14,tooltip:v=null})=>{const b=S.useRef(null),[y,C]=S.useState({width:0,height:0});S.useEffect(()=>{if(!(b!=null&&b.current))return;const M=()=>{const E=b.current.getBoundingClientRect();C({width:E.width,height:E.height})},R=new ResizeObserver(M);return R.observe(b==null?void 0:b.current),M(),()=>{R.disconnect()}},[]);const $=({node:M})=>{var P,V;const R=S.useRef(null),E=S.useRef(null),[_,O]=S.useState(!1),[k,A]=S.useState(!1),j=()=>{if(!(R!=null&&R.current)||!(E!=null&&E.current))return;const I=R.current.getBoundingClientRect(),L=E.current.getBoundingClientRect(),N=Math.max([L,I]);O(I.height>M.height-h*2||I.width>M.width-h*2),A(L.height+I.height+g>M.height-h*2||N>M.width-h*2)};S.useEffect(()=>{j()},[]);const H=((P=M==null?void 0:M.data)==null?void 0:P[d])||"Text",T=l2e(H,M.width-h*2,f);return M.isParent?p.jsx(p.Fragment,{}):p.jsxs("g",{transform:`translate(${M.x}, ${M.y})`,children:[p.jsx("rect",{width:M.width,height:M.height,style:{fill:o2e(M.color,a),stroke:l,strokeWidth:1}}),!_&&p.jsx("text",{ref:R,dominantBaseline:"hanging",x:h,y:h,style:{fill:s,font:"var(--gf-label-lg-default)",fontWeight:"bold",fontSize:u},children:((V=M==null?void 0:M.data)==null?void 0:V[c])||"Title"}),!_&&!k&&p.jsx("text",{ref:E,dominantBaseline:"hanging",children:T.map((I,L)=>p.jsx("tspan",{x:h,y:h+u+m+g*L,style:{fill:s,font:"var(--gf-label-lg-default)",fontSize:f},children:I},L))})]})},w=({nodes:M})=>M.map(R=>p.jsx($,{node:R},R.id));return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(qt,{gap:16,vertical:!0,children:[p.jsx("div",{ref:b,style:{width:"100%",height:600,...t},children:p.jsx(i2e,{data:e,colors:n,identity:r,value:i,margin:{top:10,right:10,bottom:10,left:10,...o},enableParentLabel:!1,enableLabel:!1,nodeOpacity:0,borderWidth:0,tooltip:({node:M})=>p.jsx(Zn,{body:(v==null?void 0:v({node:M}))||p.jsx("span",{children:"Treemap tooltip"})}),layers:[w,"nodes"]})}),p.jsx("p",{style:{padding:"0 10px",fontFamily:"Roboto, sans-serif",fontSize:14,lineHeight:"22px",color:"#475467"},children:"In de grafiek hierboven zijn alle afvalstromen uitgesplitst per EURAL-code, een zescijferige code uit de Europese Afvallijst (EWL) die in heel Europa wordt gebruikt om afval te classificeren. De code geeft de bron van het afval aan, het proces of de activiteit waaruit het afkomstig is en het specifieke type afval, zoals bouw- of huishoudelijk afval. Een asterisk (*) achter de code betekent dat het afval gevaarlijk is."})]})]})};var u2e=yu,d2e=0;function f2e(e){var t=++d2e;return u2e(e)+t}var h2e=f2e;const g2e=Cn(h2e);function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var jm=S.memo(function(e){var t=e.point;return p.jsx(Is,{id:p.jsxs("span",{children:["x: ",p.jsx("strong",{children:t.data.xFormatted}),", y:"," ",p.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),SM=S.memo(function(e){var t=e.slice,n=e.axis,r=Wt(),i=n==="x"?"y":"x";return p.jsx(uw,{rows:t.points.map(function(o){return[p.jsx(J1,{color:o.serieColor,style:r.tooltip.chip},"chip"),o.serieId,p.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),$M={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:jm,enableSlices:!1,debugSlices:!1,sliceTooltip:SM,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},So=hr({},$M,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});hr({},$M,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var v2e=function(e){var t=e.curve;return S.useMemo(function(){return Yc().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(qS(t))},[t])},m2e=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return S.useMemo(function(){return fS().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(qS(t)).y0(n(r))},[t,n,r])},p2e=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return S.useMemo(function(){if(n===!1)return[];if(n==="x"){var a=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(a.has(l.x)?a.get(l.x).push(l):a.set(l.x,[l]))}),Array.from(a.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],m=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:o,points:m.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],m=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:o-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:m.reverse()}})}},[t,n,o,r,i])},b2e="line",MM=function(e){var t=e.data,n=e.xScale,r=n===void 0?So.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?So.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?So.colors:u,f=e.curve,h=f===void 0?So.curve:f,m=e.areaBaselineValue,g=m===void 0?So.areaBaselineValue:m,v=e.pointColor,b=v===void 0?So.pointColor:v,y=e.pointBorderColor,C=y===void 0?So.pointBorderColor:y,$=e.enableSlices,w=$===void 0?So.enableSlicesTooltip:$,M=S.useState(g2e(b2e))[0],R=Lo(i),E=Lo(s),_=_u(d,"id"),O=Wt(),k=Hr(b,O),A=Hr(C,O),j=S.useState([]),H=j[0],T=j[1],P=S.useMemo(function(){return j$(t.filter(function(Q){return H.indexOf(Q.id)===-1}),r,a,l,c)},[t,H,r,a,l,c]),V=P.xScale,I=P.yScale,L=P.series,N=S.useMemo(function(){var Q=t.map(function(J){return{id:J.id,label:J.id,color:_(J)}}),K=Q.map(function(J){return hr({},L.find(function(W){return W.id===J.id}),{color:J.color})}).filter(function(J){return!!J.id});return{legendData:Q.map(function(J){return hr({},J,{hidden:!K.find(function(W){return W.id===J.id})})}).reverse(),series:K}},[t,L,_]),z=N.legendData,q=N.series,G=S.useCallback(function(Q){T(function(K){return K.indexOf(Q)>-1?K.filter(function(J){return J!==Q}):[].concat(K,[Q])})},[]),Y=function(Q){var K=Q.series,J=Q.getPointColor,W=Q.getPointBorderColor,Z=Q.formatX,U=Q.formatY;return S.useMemo(function(){return K.reduce(function(F,re){return[].concat(F,re.data.filter(function(B){return B.position.x!==null&&B.position.y!==null}).map(function(B,ie){var oe={id:re.id+"."+ie,index:F.length+ie,serieId:re.id,serieColor:re.color,x:B.position.x,y:B.position.y};return oe.color=J(re),oe.borderColor=W(oe),oe.data=hr({},B.data,{xFormatted:Z(B.data.x),yFormatted:U(B.data.y)}),oe}))},[])},[K,J,W,Z,U])}({series:q,getPointColor:k,getPointBorderColor:A,formatX:R,formatY:E}),ee=p2e({componentId:M,enableSlices:w,points:Y,width:l,height:c});return{legendData:z,toggleSerie:G,lineGenerator:v2e({curve:h}),areaGenerator:m2e({curve:h,yScale:I,areaBaselineValue:g}),getColor:_,series:q,xScale:V,yScale:I,slices:ee,points:Y}},y2e=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,l=a.config,c=Pf(o),u=Qt({color:r,config:l,immediate:!s});return p.jsx(et.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},x2e=S.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return p.jsx("g",{children:i.map(function(o){return p.jsx(y2e,hr({path:t(o.data.map(function(a){return a.position}))},hr({areaOpacity:n,areaBlendMode:r},o)),o.id)})})}),C2e=S.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=S.useMemo(function(){return t(n)},[t,n]),a=Pf(o);return p.jsx(et.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),w2e=S.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return p.jsx(C2e,{id:o,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})}),S2e=S.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd,g=ci(),v=g.showTooltipFromEvent,b=g.hideTooltip,y=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),s(t),l&&l(t,_)},[v,o,t,r,s,l]),C=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),c&&c(t,_)},[v,o,t,r,c]),$=S.useCallback(function(_){b(),s(null),u&&u(t,_)},[b,s,u,t]),w=S.useCallback(function(_){d&&d(t,_)},[t,d]),M=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),s(t),f&&f(t,_)},[r,f,s,v,t,o]),R=S.useCallback(function(_){var O=_.touches[0],k=document.elementFromPoint(O.clientX,O.clientY),A=k==null?void 0:k.getAttribute("data-ref");if(A){var j=n.find(function(H){return H.id===A});j&&(v(S.createElement(o,{slice:j,axis:r}),_,"right"),s(j))}h&&h(t,_)},[r,h,s,v,t,n,o]),E=S.useCallback(function(_){b(),s(null),m&&m(t,_)},[b,s,m,t]);return p.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:y,onMouseMove:C,onMouseLeave:$,onClick:w,onTouchStart:M,onTouchMove:R,onTouchEnd:E,"data-ref":t.id})}),$2e=S.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd;return t.map(function(g){return p.jsx(S2e,{slice:g,slices:t,axis:n,debug:r,height:i,tooltip:o,setCurrent:s,isCurrent:a!==null&&a.id===g.id,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:m},g.id)})}),M2e=S.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,l=Wt(),c=hie(a),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:o?c(d):null}});return p.jsx("g",{children:u.map(function(d){return p.jsx(uie,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:l},d.id)})})}),_2e=S.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,m=e.debug,g=e.enableTouchCrosshair,v=ci(),b=v.showTooltipAt,y=v.hideTooltip,C=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),a&&a(O,k)},[b,h,a,i]),$=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),s&&s(O,k)},[b,h,i.left,i.top,s]),w=S.useCallback(function(O,k){y(),l&&l(O,k)},[y,l]),M=S.useCallback(function(O,k){c&&c(O,k)},[c]),R=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),u&&u(O,k)},[i.left,i.top,u,b,h]),E=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),d&&d(O,k)},[i.left,i.top,d,b,h]),_=S.useCallback(function(O,k){y(),f&&f(O,k)},[f,y]);return p.jsx(G$,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:C,onMouseMove:$,onMouseLeave:w,onClick:M,onTouchStart:R,onTouchMove:E,onTouchEnd:_,enableTouchCrosshair:g,debug:m})}),E2e=l$(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,o=e.yScale,a=o===void 0?{type:"linear",min:0,max:"auto"}:o,s=e.yFormat,l=e.layers,c=l===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:l,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,m=e.colors,g=m===void 0?{scheme:"nivo"}:m,v=e.margin,b=e.width,y=e.height,C=e.axisTop,$=e.axisRight,w=e.axisBottom,M=w===void 0?{}:w,R=e.axisLeft,E=R===void 0?{}:R,_=e.enableGridX,O=_===void 0||_,k=e.enableGridY,A=k===void 0||k,j=e.gridXValues,H=e.gridYValues,T=e.lineWidth,P=T===void 0?2:T,V=e.enableArea,I=V!==void 0&&V,L=e.areaOpacity,N=L===void 0?.2:L,z=e.areaBlendMode,q=z===void 0?"normal":z,G=e.enablePoints,Y=G===void 0||G,ee=e.pointSymbol,Q=e.pointSize,K=Q===void 0?6:Q,J=e.pointColor,W=J===void 0?{from:"color"}:J,Z=e.pointBorderWidth,U=Z===void 0?0:Z,F=e.pointBorderColor,re=F===void 0?{theme:"background"}:F,B=e.enablePointLabel,ie=B!==void 0&&B,oe=e.pointLabel,ve=oe===void 0?"data.yFormatted":oe,xe=e.pointLabelYOffset,pe=e.defs,ye=pe===void 0?[]:pe,Se=e.fill,me=Se===void 0?[]:Se,ge=e.markers,ce=e.legends,$e=ce===void 0?[]:ce,he=e.isInteractive,Ae=he===void 0||he,Ie=e.useMesh,Re=Ie!==void 0&&Ie,ke=e.debugMesh,Ye=ke!==void 0&&ke,Xe=e.onMouseEnter,Fe=e.onMouseMove,je=e.onMouseLeave,Qe=e.onClick,Ze=e.onTouchStart,qe=e.onTouchMove,de=e.onTouchEnd,Ee=e.tooltip,Ke=Ee===void 0?jm:Ee,nt=e.enableSlices,Ne=nt!==void 0&&nt,ze=e.debugSlices,De=ze!==void 0&&ze,Je=e.sliceTooltip,tt=Je===void 0?SM:Je,Be=e.enableCrosshair,Pe=Be===void 0||Be,ct=e.crosshairType,pt=ct===void 0?"bottom-left":ct,He=e.enableTouchCrosshair,fe=He!==void 0&&He,we=e.role,Oe=we===void 0?"img":we,Ge=Za(b,y,v),We=Ge.margin,rt=Ge.innerWidth,X=Ge.innerHeight,ae=Ge.outerWidth,se=Ge.outerHeight,Ve=MM({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:rt,height:X,colors:g,curve:d,areaBaselineValue:h,pointColor:W,pointBorderColor:re,enableSlices:Ne}),it=Ve.legendData,at=Ve.toggleSerie,st=Ve.lineGenerator,ft=Ve.areaGenerator,be=Ve.series,Ce=Ve.xScale,Te=Ve.yScale,ot=Ve.slices,vt=Ve.points,Ct=Wt(),ht=Hr(W,Ct),Ot=Hr(re,Ct),rn=S.useState(null),It=rn[0],fn=rn[1],lr=S.useState(null),Nt=lr[0],Rn=lr[1],lt={grid:p.jsx(B$,{theme:Ct,width:rt,height:X,xScale:O?Ce:null,yScale:A?Te:null,xValues:j,yValues:H},"grid"),markers:p.jsx(s$,{markers:ge,width:rt,height:X,xScale:Ce,yScale:Te,theme:Ct},"markers"),axes:p.jsx(z$,{xScale:Ce,yScale:Te,width:rt,height:X,theme:Ct,top:C,right:$,bottom:M,left:E},"axes"),areas:null,lines:p.jsx(w2e,{lines:be,lineGenerator:st,lineWidth:P},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:$e.map(function(cn,hn){return p.jsx(If,hr({},cn,{containerWidth:rt,containerHeight:X,data:cn.data||it,theme:Ct,toggleSerie:cn.toggleSerie?at:void 0}),"legend."+hn)})},_n=$m(ye,be,me);return I&&(lt.areas=p.jsx(x2e,{areaGenerator:ft,areaOpacity:N,areaBlendMode:q,lines:be},"areas")),Ae&&Ne!==!1&&(lt.slices=p.jsx($2e,{slices:ot,axis:Ne,debug:De,height:X,tooltip:tt,current:Nt,setCurrent:Rn,onMouseEnter:Xe,onMouseMove:Fe,onMouseLeave:je,onClick:Qe,onTouchStart:Ze,onTouchMove:qe,onTouchEnd:de},"slices")),Y&&(lt.points=p.jsx(M2e,{points:vt,symbol:ee,size:K,color:ht,borderWidth:U,borderColor:Ot,enableLabel:ie,label:ve,labelYOffset:xe},"points")),Ae&&Pe&&(It!==null&&(lt.crosshair=p.jsx(gh,{width:rt,height:X,x:It.x,y:It.y,type:pt},"crosshair")),Nt!==null&&(lt.crosshair=p.jsx(gh,{width:rt,height:X,x:Nt.x,y:Nt.y,type:Ne},"crosshair"))),Ae&&Re&&Ne===!1&&(lt.mesh=p.jsx(_2e,{points:vt,width:rt,height:X,margin:We,current:It,setCurrent:fn,onMouseEnter:Xe,onMouseMove:Fe,onMouseLeave:je,onClick:Qe,onTouchStart:Ze,onTouchMove:qe,onTouchEnd:de,tooltip:Ke,enableTouchCrosshair:fe,debug:Ye},"mesh")),p.jsx(Sl,{defs:_n,width:ae,height:se,margin:We,role:Oe,children:c.map(function(cn,hn){return typeof cn=="function"?p.jsx(S.Fragment,{children:cn(hr({},e,{innerWidth:rt,innerHeight:X,series:be,slices:ot,points:vt,xScale:Ce,yScale:Te,lineGenerator:st,areaGenerator:ft,currentPoint:It,setCurrentPoint:fn,currentSlice:Nt,setCurrentSlice:Rn}))},hn):lt[cn]})})}),H2e=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(E2e,hr({width:n,height:r},e))}})},O2e=l$(function(e){var t=S.useRef(null),n=e.width,r=e.height,i=e.margin,o=e.pixelRatio,a=o===void 0?typeof window<"u"&&window.devicePixelRatio||1:o,s=e.data,l=e.xScale,c=l===void 0?{type:"point"}:l,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,m=e.curve,g=m===void 0?"linear":m,v=e.layers,b=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,y=e.colors,C=y===void 0?{scheme:"nivo"}:y,$=e.lineWidth,w=$===void 0?2:$,M=e.enableArea,R=M!==void 0&&M,E=e.areaBaselineValue,_=E===void 0?0:E,O=e.areaOpacity,k=O===void 0?.2:O,A=e.enablePoints,j=A===void 0||A,H=e.pointSize,T=H===void 0?6:H,P=e.pointColor,V=P===void 0?{from:"color"}:P,I=e.pointBorderWidth,L=I===void 0?0:I,N=e.pointBorderColor,z=N===void 0?{theme:"background"}:N,q=e.enableGridX,G=q===void 0||q,Y=e.gridXValues,ee=e.enableGridY,Q=ee===void 0||ee,K=e.gridYValues,J=e.axisTop,W=e.axisRight,Z=e.axisBottom,U=Z===void 0?{}:Z,F=e.axisLeft,re=F===void 0?{}:F,B=e.legends,ie=B===void 0?[]:B,oe=e.isInteractive,ve=oe===void 0||oe,xe=e.debugMesh,pe=xe!==void 0&&xe,ye=e.onMouseLeave,Se=e.onClick,me=e.tooltip,ge=me===void 0?jm:me,ce=e.canvasRef,$e=Za(n,r,i),he=$e.margin,Ae=$e.innerWidth,Ie=$e.innerHeight,Re=$e.outerWidth,ke=$e.outerHeight,Ye=Wt(),Xe=S.useState(null),Fe=Xe[0],je=Xe[1],Qe=MM({data:s,xScale:c,xFormat:u,yScale:f,yFormat:h,width:Ae,height:Ie,colors:C,curve:g,areaBaselineValue:_,pointColor:V,pointBorderColor:z}),Ze=Qe.lineGenerator,qe=Qe.areaGenerator,de=Qe.series,Ee=Qe.xScale,Ke=Qe.yScale,nt=Qe.points,Ne=Vm({points:nt,width:Ae,height:Ie,debug:pe}),ze=Ne.delaunay,De=Ne.voronoi;S.useEffect(function(){ce&&(ce.current=t.current),t.current.width=Re*a,t.current.height=ke*a;var fe=t.current.getContext("2d");fe.scale(a,a),fe.fillStyle=Ye.background,fe.fillRect(0,0,Re,ke),fe.translate(he.left,he.top),b.forEach(function(we){if(typeof we=="function"&&we({ctx:fe,innerWidth:Ae,innerHeight:Ie,series:de,points:nt,xScale:Ee,yScale:Ke,lineWidth:w,lineGenerator:Ze,areaGenerator:qe,currentPoint:Fe,setCurrentPoint:je}),we==="grid"&&Ye.grid.line.strokeWidth>0&&(fe.lineWidth=Ye.grid.line.strokeWidth,fe.strokeStyle=Ye.grid.line.stroke,G&&Cd(fe,{width:Ae,height:Ie,scale:Ee,axis:"x",values:Y}),Q&&Cd(fe,{width:Ae,height:Ie,scale:Ke,axis:"y",values:K})),we==="axes"&&W$(fe,{xScale:Ee,yScale:Ke,width:Ae,height:Ie,top:J,right:W,bottom:U,left:re,theme:Ye}),we==="areas"&&R===!0){fe.save(),fe.globalAlpha=k,qe.context(fe);for(var Oe=de.length-1;Oe>=0;Oe--)fe.fillStyle=de[Oe].color,fe.beginPath(),qe(de[Oe].data.map(function(We){return We.position})),fe.fill();fe.restore()}if(we==="lines"&&(Ze.context(fe),de.forEach(function(We){fe.strokeStyle=We.color,fe.lineWidth=w,fe.beginPath(),Ze(We.data.map(function(rt){return rt.position})),fe.stroke()})),we==="points"&&j===!0&&T>0&&nt.forEach(function(We){fe.fillStyle=We.color,fe.beginPath(),fe.arc(We.x,We.y,T/2,0,2*Math.PI),fe.fill(),L>0&&(fe.strokeStyle=We.borderColor,fe.lineWidth=L,fe.stroke())}),we==="mesh"&&pe===!0&&(Y$(fe,De),Fe&&K$(fe,De,Fe.index)),we==="legends"){var Ge=de.map(function(We){return{id:We.id,label:We.id,color:We.color}}).reverse();ie.forEach(function(We){v$(fe,hr({},We,{data:We.data||Ge,containerWidth:Ae,containerHeight:Ie,theme:Ye}))})}})},[t,Re,ke,b,Ye,Ze,de,Ee,Ke,G,Y,Q,K,J,W,U,re,ie,nt,j,T,Fe]);var Je=S.useCallback(function(fe){var we=Sm(t.current,fe),Oe=we[0],Ge=we[1];if(!c$(he.left,he.top,Ae,Ie,Oe,Ge))return null;var We=ze.find(Oe-he.left,Ge-he.top);return nt[We]},[t,he,Ae,Ie,ze]),tt=ci(),Be=tt.showTooltipFromEvent,Pe=tt.hideTooltip,ct=S.useCallback(function(fe){var we=Je(fe);je(we),we?Be(S.createElement(ge,{point:we}),fe):Pe()},[Je,je,Be,Pe,ge]),pt=S.useCallback(function(fe){Pe(),je(null),Fe&&ye&&ye(Fe,fe)},[Pe,je,ye]),He=S.useCallback(function(fe){if(Se){var we=Je(fe);we&&Se(we,fe)}},[Je,Se]);return p.jsx("canvas",{ref:t,width:Re*a,height:ke*a,style:{width:Re,height:ke,cursor:ve?"auto":"normal"},onMouseEnter:ve?ct:void 0,onMouseMove:ve?ct:void 0,onMouseLeave:ve?pt:void 0,onClick:ve?He:void 0})}),V2e=S.forwardRef(function(e,t){return p.jsx(O2e,hr({},e,{canvasRef:t}))});S.forwardRef(function(e,t){return p.jsx(Go,{children:function(n){var r=n.width,i=n.height;return p.jsx(V2e,hr({width:r,height:i},e,{ref:t}))}})});const R2e=yt.span`
|
|
498
|
+
`,xle=({pieChartData:e,title:t,isEmpty:n,sortByValue:r=!0,arcLabel:i=null,tooltip:o=null,customStyle:a={},customMargin:s={},height:l=600,legendWidth:c="50%"})=>{const[u,d]=S.useState([]),f=({centerX:m,centerY:g,dataWithArc:v})=>(u.length||d(v),p.jsx("text",{x:m,y:g,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"16px",font:"var(--gf-label-md-default)",fontWeight:400},children:n?"Data niet openbaar beschikbaar":""})),h=({data:m})=>p.jsx(zt,{gap:16,className:"gf-full",justify:"center",wrap:!0,style:{width:c},children:m==null?void 0:m.map((g,v)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:16,minHeight:16,backgroundColor:g.color}}),p.jsx(yle,{children:g.label})]},`legend-${v}`))});return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{vertical:!0,gap:8,align:"center",style:{width:"100%"},children:[p.jsx(ble,{children:t}),p.jsx("div",{style:{width:"100%",height:l},children:p.jsx(ple,{colors:n?{scheme:"greys"}:{datum:"data.color"},data:e,sortByValue:r,enableArcLabels:!n,arcLabel:m=>(i==null?void 0:i(m))||m.formattedValue,enableArcLinkLabels:!1,margin:{top:50,right:80,bottom:50,left:80,...s},innerRadius:.5,padAngle:.7,cornerRadius:3,activeOuterRadiusOffset:8,borderWidth:1,borderColor:{from:"color",modifiers:[["darker",.2]]},arcLabelsSkipAngle:10,arcLabelsTextColor:{from:"color",modifiers:[["darker",2]]},isInteractive:!n,layers:["arcs","arcLabels","arcLinkLabels","legends",f],tooltip:m=>p.jsx(Zn,{body:(o==null?void 0:o(m))||p.jsx("span",{children:"Pie chart tooltip"})})})}),!n&&p.jsx(h,{data:u})]})]})};var Cle=df,wle=xm,Sle=1,$le=2;function Mle(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Cle;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?wle(u,c,Sle|$le,r,d):f))return!1}}return!0}var _le=Mle,Ele=Mi;function Hle(e){return e===e&&!Ele(e)}var O$=Hle,Ole=O$,Vle=Mu;function Rle(e){for(var t=Vle(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ole(i)]}return t}var Tle=Rle;function kle(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var V$=kle,jle=_le,Ple=Tle,Lle=V$;function Ile(e){var t=Ple(e);return t.length==1&&t[0][2]?Lle(t[0][0],t[0][1]):function(n){return n===e||jle(n,e,t)}}var Ale=Ile,Nle=xm,Fle=kw,Dle=TS,zle=Nv,Ble=O$,Wle=V$,Zle=ul,Ule=1,qle=2;function Gle(e,t){return zle(e)&&Ble(t)?Wle(Zle(e),t):function(n){var r=Fle(n,e);return r===void 0&&r===t?Dle(n,e):Nle(t,r,Ule|qle)}}var Yle=Gle;function Kle(e){return function(t){return t==null?void 0:t[e]}}var Xle=Kle,Qle=xu;function Jle(e){return function(t){return Qle(t,e)}}var ece=Jle,tce=Xle,nce=ece,rce=Nv,ice=ul;function oce(e){return rce(e)?tce(ice(e)):nce(e)}var ace=oce,sce=Ale,lce=Yle,cce=mf,uce=Cr,dce=ace;function fce(e){return typeof e=="function"?e:e==null?cce:typeof e=="object"?uce(e)?lce(e[0],e[1]):sce(e):dce(e)}var _m=fce,hce=_m,gce=MC;function vce(e,t){return e&&e.length?gce(e,hce(t)):[]}var mce=vce;const Lh=Cn(mce);var pce=vw,bce=Mu;function yce(e,t){return e&&pce(e,t,bce)}var xce=yce,Cce=al;function wce(e,t){return function(n,r){if(n==null)return n;if(!Cce(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Sce=wce,$ce=xce,Mce=Sce,_ce=Mce($ce),R$=_ce,Ece=R$,Hce=al;function Oce(e,t){var n=-1,r=Hce(e)?Array(e.length):[];return Ece(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Vce=Oce;function Rce(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Tce=Rce,X8=pf;function kce(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=X8(e),a=t!==void 0,s=t===null,l=t===t,c=X8(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var jce=kce,Pce=jce;function Lce(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Pce(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Ice=Lce,$2=bf,Ace=xu,Nce=_m,Fce=Vce,Dce=Tce,zce=sl,Bce=Ice,Wce=mf,Zce=Cr;function Uce(e,t,n){t.length?t=$2(t,function(o){return Zce(o)?function(a){return Ace(a,o.length===1?o[0]:o)}:o}):t=[Wce];var r=-1;t=$2(t,zce(Nce));var i=Fce(e,function(o,a,s){var l=$2(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return Dce(i,function(o,a){return Bce(o,a,n)})}var qce=Uce,Gce=jS,Yce=qce,Kce=Iv,Q8=Vw,Xce=Kce(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Q8(e,t[0],t[1])?t=[]:n>2&&Q8(t[0],t[1],t[2])&&(t=[t[0]]),Yce(e,Gce(t,1),[])}),Qce=Xce;const Jce=Cn(Qce);var eue=po,tue=Gr,nue="[object Date]";function rue(e){return tue(e)&&eue(e)==nue}var iue=rue,oue=iue,aue=sl,J8=gf,e9=J8&&J8.isDate,sue=e9?aue(e9):oue,lue=sue;const cue=Cn(lue);var M2=new Date,_2=new Date;function Mn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return Mn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return M2.setTime(+o),_2.setTime(+a),e(M2),e(_2),Math.floor(n(M2,_2))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var vo=Mn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vo.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Mn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):vo};vo.range;var yd=1e3,Zs=6e4,xd=36e5,T$=6048e5,Ma=Mn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*yd)},function(e,t){return(t-e)/yd},function(e){return e.getUTCSeconds()});Ma.range;var Af=Mn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*yd)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getMinutes()});Af.range;var Nf=Mn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*yd-e.getMinutes()*Zs)},function(e,t){e.setTime(+e+t*xd)},function(e,t){return(t-e)/xd},function(e){return e.getHours()});Nf.range;function qa(e){return Mn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Zs)/T$})}var _a=qa(0),Ff=qa(1),Df=qa(2),zf=qa(3),Bf=qa(4),Wf=qa(5),Zf=qa(6);_a.range;Ff.range;Df.range;zf.range;Bf.range;Wf.range;Zf.range;var Uf=Mn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});Uf.range;var Eu=Mn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Eu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Eu.range;var qf=Mn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Zs)},function(e,t){return(t-e)/Zs},function(e){return e.getUTCMinutes()});qf.range;var Gf=Mn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*xd)},function(e,t){return(t-e)/xd},function(e){return e.getUTCHours()});Gf.range;function Ga(e){return Mn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/T$})}var Ea=Ga(0),Yf=Ga(1),Kf=Ga(2),Xf=Ga(3),Qf=Ga(4),Jf=Ga(5),e0=Ga(6);Ea.range;Yf.range;Kf.range;Xf.range;Qf.range;Jf.range;e0.range;var t0=Mn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});t0.range;var Hu=Mn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Hu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Mn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Hu.range;function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ia.apply(this,arguments)}var us=[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)}],uue={millisecond:[],second:us.slice(0,1),minute:us.slice(0,2),hour:us.slice(0,3),day:us.slice(0,4),month:us.slice(0,5),year:us.slice(0,6)},due=function(e){return function(t){return uue[e].forEach(function(n){n(t)}),t}},k$=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=due(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?pm(n):mm(n);return s(c(l))}},fue=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?0:l,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,m=e.reverse,g=m!==void 0&&m,v=e.clamp,b=v!==void 0&&v,y=e.nice,C=y!==void 0&&y;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var $=qo().rangeRound(r==="x"?[0,n]:[n,0]).domain(g?[a,i]:[i,a]).clamp(b);return C===!0?$.nice():typeof C=="number"&&$.nice(C),hue($,h)},hue=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},gue=function(e,t,n){var r=Ww().range([0,n]).domain(t.all);return r.type="point",r},vue=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=Ns().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return mue(a)},mue=function(e){var t=e;return t.type="band",t},pue=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,l=s===void 0?"millisecond":s,c=e.min,u=c===void 0?"auto":c,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,m=h===void 0||h,g=e.nice,v=g!==void 0&&g,b=k$({format:a,precision:l,useUTC:m});r=u==="auto"?b(t.min):a!=="native"?b(u):u,i=f==="auto"?b(t.max):a!=="native"?b(f):f;var y=m?oS():iS();y.range([0,n]),r&&i&&y.domain([r,i]),v===!0?y.nice():typeof v!="object"&&typeof v!="number"||y.nice(v);var C=y;return C.type="time",C.useUTC=m,C},bue=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,l=s===void 0?"auto":s,c=e.max,u=c===void 0?"auto":c;if(t.all.some(function(g){return g===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(g){return g!=null}).forEach(function(g){h||(i===void 0?i=Math.sign(g):Math.sign(g)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=l==="auto"?t.min:l,f=u==="auto"?t.max:u;var m=Kv().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return m.type="log",m},yue=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,l=e.min,c=l===void 0?"auto":l,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var m=Xv().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?m.domain([o,i]):m.domain([i,o]);var g=m;return g.type="symlog",g},xue=function(e){return e==="x"?"y":"x"},Cue=function(e,t){return e===t},wue=function(e,t){return e.getTime()===t.getTime()};function t9(e,t,n,r){switch(e.type){case"linear":return fue(e,t,n,r);case"point":return gue(e,t,n);case"band":return vue(e,t,n,r);case"time":return pue(e,t,n);case"log":return bue(e,t,n,r);case"symlog":return yue(e,t,n,r);default:throw new Error("invalid scale spec")}}var n9=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},j$=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return ia({},d,{data:d.data.map(function(f){return{data:ia({},f)}})})}(u)}),a=Sue(o,t,n);"stacked"in t&&t.stacked===!0&&$ue(a,o),"stacked"in n&&n.stacked===!0&&Mue(a,o);var s=t9(t,a.x,r,"x"),l=t9(n,a.y,i,"y"),c=o.map(function(u){return ia({},u,{data:u.data.map(function(d){return ia({},d,{position:{x:n9(d,"x",s),y:n9(d,"y",l)}})})})});return ia({},a,{series:c,xScale:s,yScale:l})},Sue=function(e,t,n){return{x:r9(e,"x",t),y:r9(e,"y",n)}},r9=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(m){return m.data[t]}:o,s=i.setValue,l=s===void 0?function(m,g){m.data[t]=g}:s;if(n.type==="linear")e.forEach(function(m){m.data.forEach(function(g){var v=a(g);v&&l(g,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=k$(n);e.forEach(function(m){m.data.forEach(function(g){var v=a(g);v&&l(g,c(v))})})}var u=[];switch(e.forEach(function(m){m.data.forEach(function(g){u.push(a(g))})}),n.type){case"linear":var d=Jce(Q3(u).filter(function(m){return m!==null}),function(m){return m});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Lh(u,function(m){return m.getTime()}).slice(0).sort(function(m,g){return g.getTime()-m.getTime()}).reverse();return{all:f,min:f[0],max:ue(f)};default:var h=Q3(u);return{all:h,min:h[0],max:ue(h)}}},P$=function(e,t,n){var r=xue(e),i=[];t[r].all.forEach(function(o){var a=cue(o)?wue:Cue,s=[];n.forEach(function(l){var c=l.data.find(function(h){return a(h.data[r],o)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=ue(s);f===void 0?d=u:f!==null&&(d=f+u)}c.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},$ue=function(e,t){return P$("x",e,t)},Mue=function(e,t){return P$("y",e,t)},L$=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},I$={millisecond:[vo,vo],second:[Ma,Ma],minute:[Af,qf],hour:[Nf,Gf],day:[Mn(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)}),Mn(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:[_a,Ea],sunday:[_a,Ea],monday:[Ff,Yf],tuesday:[Df,Kf],wednesday:[zf,Xf],thursday:[Bf,Qf],friday:[Wf,Jf],saturday:[Zf,e0],month:[Uf,t0],year:[Eu,Hu]},_ue=Object.keys(I$),Eue=new RegExp("^every\\s*(\\d+)?\\s*("+_ue.join("|")+")s?$","i"),A$=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Eue);if(n){var r=n[1],i=n[2],o=I$[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zr(){return zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zr.apply(this,arguments)}var N$=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=A$(r,o),h=aie[d],m="bandwidth"in r?L$(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},b=typeof document=="object"&&document.dir==="rtl",y=h.align.center,C=h.baseline.center;return n==="x"?(t=function($){var w;return{x:(w=m($))!=null?w:0,y:0}},g.lineY=a*(i==="after"?1:-1),v.textY=(a+s)*(i==="after"?1:-1),C=i==="after"?h.baseline.top:h.baseline.bottom,l===0?y=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(y=h.align[b?"left":"right"],C=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(y=h.align[b?"right":"left"],C=h.baseline.center)):(t=function($){var w;return{x:0,y:(w=m($))!=null?w:0}},g.lineX=a*(i==="after"?1:-1),v.textX=(a+s)*(i==="after"?1:-1),y=i==="after"?h.align.left:h.align.right),{ticks:f.map(function($){var w=typeof $=="string"?function(M){var R=String(M).length;return c&&c>0&&R>c?""+String(M).slice(0,c).concat("..."):""+M}($):$;return zr({key:$ instanceof Date?""+$.valueOf():""+$,value:w},t($),g,v)}),textAlign:y,textBaseline:C}},F$=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Wa(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Da(e)},Ih=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||A$(i,a)),l="bandwidth"in i?L$(i):i,c=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},Hue=S.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.animatedProps,u=Zt(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,m=S.useMemo(function(){var g={opacity:c.opacity};return a?{style:zr({},g,{cursor:"pointer"}),onClick:function(v){return a(v,h)}}:{style:g}},[c.opacity,a,h]);return p.jsxs(et.g,zr({transform:c.transform},m,{children:[p.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:d}),f.outlineWidth>0&&p.jsx(et.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),p.jsx(et.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:wm(f),children:""+h})]}))}),Oue=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,m=e.tickRotation,g=m===void 0?0:m,v=e.format,b=e.renderTick,y=b===void 0?Hue:b,C=e.truncateTickAt,$=e.legend,w=e.legendPosition,M=w===void 0?"end":w,R=e.legendOffset,E=R===void 0?0:R,_=e.onClick,O=e.ariaHidden,k=Zt(),A=k.axis.legend.text,j=S.useMemo(function(){return F$(v,n)},[v,n]),H=N$({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:g,truncateTickAt:C}),T=H.ticks,P=H.textAlign,V=H.textBaseline,I=null;if($!==void 0){var L,N=0,z=0,q=0;t==="y"?(q=-90,N=E,M==="start"?(L="start",z=s):M==="middle"?(L="middle",z=s/2):M==="end"&&(L="end")):(z=E,M==="start"?L="start":M==="middle"?(L="middle",N=s/2):M==="end"&&(L="end",N=s)),I=p.jsxs(p.Fragment,{children:[A.outlineWidth>0&&p.jsx("text",{transform:"translate("+N+", "+z+") rotate("+q+")",textAnchor:L,style:zr({dominantBaseline:"central"},A),strokeWidth:2*A.outlineWidth,stroke:A.outlineColor,strokeLinejoin:"round",children:$}),p.jsx("text",{transform:"translate("+N+", "+z+") rotate("+q+")",textAnchor:L,style:zr({dominantBaseline:"central"},A),children:$})]})}var G=Fn(),Y=G.animate,ee=G.config,Q=Qt({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:ee,immediate:!Y}),K=S.useCallback(function(Z){return{opacity:1,transform:"translate("+Z.x+","+Z.y+")",textTransform:"translate("+Z.textX+","+Z.textY+") rotate("+g+")"}},[g]),J=S.useCallback(function(Z){return{opacity:0,transform:"translate("+Z.x+","+Z.y+")",textTransform:"translate("+Z.textX+","+Z.textY+") rotate("+g+")"}},[g]),W=xr(T,{keys:function(Z){return Z.key},initial:K,from:J,enter:K,update:K,leave:{opacity:0},config:ee,immediate:!Y});return p.jsxs(et.g,{transform:Q.transform,"aria-hidden":O,children:[W(function(Z,U,F,re){return x.createElement(y,zr({tickIndex:re,format:j,rotate:g,textBaseline:V,textAnchor:P,truncateTickAt:C,animatedProps:Z},U,_?{onClick:_}:{}))}),p.jsx(et.line,{style:k.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),I]})},Vue=S.memo(Oue),D$=["top","right","bottom","left"],z$=S.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return p.jsx(p.Fragment,{children:D$.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return p.jsx(Vue,zr({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Rue=S.memo(function(e){var t=e.animatedProps,n=Zt();return p.jsx(et.line,zr({},t,n.grid.line))}),i9=S.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=xr(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return p.jsx("g",{children:o(function(a,s){return S.createElement(Rue,zr({},s,{key:s.key,animatedProps:a}))})})}),B$=S.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=S.useMemo(function(){return!!r&&Ih({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=S.useMemo(function(){return!!i&&Ih({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return p.jsxs(p.Fragment,{children:[s&&p.jsx(i9,{lines:s}),l&&p.jsx(i9,{lines:l})]})}),Tue=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,l=s===void 0?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,m=t.tickPadding,g=m===void 0?5:m,v=t.tickRotation,b=v===void 0?0:v,y=t.format,C=t.legend,$=t.legendPosition,w=$===void 0?"end":$,M=t.legendOffset,R=M===void 0?0:M,E=t.theme,_=N$({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:g,tickRotation:b,engine:"canvas"}),O=_.ticks,k=_.textAlign,A=_.textBaseline;e.save(),e.translate(a,l),e.textAlign=k,e.textBaseline=A;var j=E.axis.ticks.text;e.font=(j.fontWeight?j.fontWeight+" ":"")+j.fontSize+"px "+j.fontFamily,((n=E.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(E.axis.domain.line.strokeWidth),e.lineCap="square",E.axis.domain.line.stroke&&(e.strokeStyle=E.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var H=typeof y=="function"?y:function(L){return""+L};if(O.forEach(function(L){var N;((N=E.axis.ticks.line.strokeWidth)!=null?N:0)>0&&(e.lineWidth=Number(E.axis.ticks.line.strokeWidth),e.lineCap="square",E.axis.ticks.line.stroke&&(e.strokeStyle=E.axis.ticks.line.stroke),e.beginPath(),e.moveTo(L.x,L.y),e.lineTo(L.x+L.lineX,L.y+L.lineY),e.stroke());var z=H(L.value);e.save(),e.translate(L.x+L.textX,L.y+L.textY),e.rotate(Dr(b)),j.outlineWidth>0&&(e.strokeStyle=j.outlineColor,e.lineWidth=2*j.outlineWidth,e.lineJoin="round",e.strokeText(""+z,0,0)),E.axis.ticks.text.fill&&(e.fillStyle=j.fill),e.fillText(""+z,0,0),e.restore()}),C!==void 0){var T=0,P=0,V=0,I="center";r==="y"?(V=-90,T=R,w==="start"?(I="start",P=c):w==="middle"?(I="center",P=c/2):w==="end"&&(I="end")):(P=R,w==="start"?I="start":w==="middle"?(I="center",T=c/2):w==="end"&&(I="end",T=c)),e.translate(T,P),e.rotate(Dr(V)),e.font=(E.axis.legend.text.fontWeight?E.axis.legend.text.fontWeight+" ":"")+E.axis.legend.text.fontSize+"px "+E.axis.legend.text.fontFamily,E.axis.legend.text.fill&&(e.fillStyle=E.axis.legend.text.fill),e.textAlign=I,e.textBaseline="middle",e.fillText(C,0,0)}e.restore()},W$=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};D$.forEach(function(f){var h=d[f];if(!h)return null;var m=f==="top"||f==="bottom",g=f==="top"||f==="left"?"before":"after",v=m?n:r,b=F$(h.format,v);Tue(e,zr({},h,{axis:m?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:v,format:b,length:m?i:o,ticksPosition:g,theme:u}))})},Cd=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Ih({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},kue=R$;function jue(e,t){var n=[];return kue(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var Pue=jue,Lue=NS,Iue=Pue,Aue=_m,Nue=Cr;function Fue(e,t){var n=Nue(e)?Lue:Iue;return n(e,Aue(t))}var Due=Fue;const Em=Cn(Due);var zue=po,Bue=Gr,Wue="[object Number]";function Zue(e){return typeof e=="number"||Bue(e)&&zue(e)==Wue}var Uue=Zue;const Ha=Cn(Uue);function que(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var Z$=que,Gue=xu,Yue=Z$;function Kue(e,t){return t.length<2?e:Gue(e,Yue(t,0,-1))}var Xue=Kue,Que=cl,Jue=Fw,e1e=Xue,t1e=ul;function n1e(e,t){return t=Que(t,e),e=e1e(e,t),e==null||delete e[t1e(Jue(t))]}var r1e=n1e,i1e=jv;function o1e(e){return i1e(e)?void 0:e}var a1e=o1e,s1e=bf,l1e=w$,c1e=r1e,u1e=cl,d1e=ll,f1e=a1e,h1e=PS,g1e=b$,v1e=1,m1e=2,p1e=4,b1e=h1e(function(e,t){var n={};if(e==null)return n;var r=!1;t=s1e(t,function(o){return o=u1e(o,e),r||(r=o.length>1),o}),d1e(e,g1e(e),n),r&&(n=l1e(n,v1e|m1e|p1e,f1e));for(var i=t.length;i--;)c1e(n,t[i]);return n}),y1e=b1e;const Ya=Cn(y1e);function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(this,arguments)}var Ah={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},x1e=function(e){var t=typeof e;return S.isValidElement(e)||t==="string"||t==="function"||t==="object"},C1e=function(e){var t=typeof e;return t==="string"||t==="function"},Kc=function(e){return e.type==="circle"},Nh=function(e){return e.type==="dot"},Xc=function(e){return e.type==="rect"},w1e=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Em(t,a.match).map(function(l){var c=r(l),u=i(l);return(Kc(a)||Xc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Ao({},Ya(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},S1e=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return oie(Lf(i))},$1e=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?Ah.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Ah.noteTextOffset:c;if(Ha(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(Ha(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=S1e(r,i,t,n);if(Kc(e)){var m=ma(Dr(h),e.size/2);d+=m.x,f+=m.y}if(Xc(e)){var g=Math.round((h+90)/45)%8;g===0&&(f-=e.height/2),g===1&&(d+=e.width/2,f-=e.height/2),g===2&&(d+=e.width/2),g===3&&(d+=e.width/2,f+=e.height/2),g===4&&(f+=e.height/2),g===5&&(d-=e.width/2,f+=e.height/2),g===6&&(d-=e.width/2),g===7&&(d-=e.width/2,f-=e.height/2)}var v=t,b=t;return(h+90)%360>180?(v-=l,b-=l):b+=l,{points:[[d,f],[t,n],[b,n]],text:[v,n-u],angle:h+90}},M1e=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return S.useMemo(function(){return w1e({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},_1e=function(e){return S.useMemo(function(){return $1e(e)},[e])},E1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Zt(),a=Fn(),s=a.animate,l=a.config,c=Qt({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?S.createElement(i,{x:n,y:r,datum:t}):p.jsxs(p.Fragment,{children:[o.annotations.text.outlineWidth>0&&p.jsx(et.text,{x:c.x,y:c.y,style:Ao({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),p.jsx(et.text,{x:c.x,y:c.y,style:Ya(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},o9=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Zt(),o=S.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),a=Pf(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Ao({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),p.jsx(et.path,{fill:"none",d:a,style:s})},H1e=function(e){var t=e.x,n=e.y,r=e.size,i=Zt(),o=Fn(),a=o.animate,s=o.config,l=Qt({x:t,y:n,radius:r/2,config:s,immediate:!a});return p.jsxs(p.Fragment,{children:[i.annotations.outline.outlineWidth>0&&p.jsx(et.circle,{cx:l.x,cy:l.y,r:l.radius,style:Ao({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),p.jsx(et.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},O1e=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Ah.dotSize:r,o=Zt(),a=Fn(),s=a.animate,l=a.config,c=Qt({x:t,y:n,radius:i/2,config:l,immediate:!s});return p.jsxs(p.Fragment,{children:[o.annotations.outline.outlineWidth>0&&p.jsx(et.circle,{cx:c.x,cy:c.y,r:c.radius,style:Ao({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),p.jsx(et.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},V1e=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Zt(),l=Fn(),c=l.animate,u=l.config,d=Qt({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return p.jsxs(p.Fragment,{children:[s.annotations.outline.outlineWidth>0&&p.jsx(et.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Ao({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),p.jsx(et.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},R1e=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=_1e(e);if(!x1e(i))throw new Error("note should be a valid react element");return p.jsxs(p.Fragment,{children:[p.jsx(o9,{points:o.points,isOutline:!0}),Kc(e)&&p.jsx(H1e,{x:n,y:r,size:e.size}),Nh(e)&&p.jsx(O1e,{x:n,y:r,size:e.size}),Xc(e)&&p.jsx(V1e,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),p.jsx(o9,{points:o.points}),p.jsx(E1e,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},a9=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},T1e=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!C1e(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),a9(e,i.computed.points),e.stroke(),e.lineCap="butt"),Kc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Nh(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Xc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),a9(e,i.computed.points),e.stroke(),Kc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Nh(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),Xc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};const lo=11102230246251565e-32,nr=134217729,k1e=(3+8*lo)*lo;function E2(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,s!==0&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,s!==0&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,s!==0&&(i[h++]=s);return(o!==0||h===0)&&(i[h++]=o),h}function j1e(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Ou(e){return new Float64Array(e)}const P1e=(3+16*lo)*lo,L1e=(2+12*lo)*lo,I1e=(9+64*lo)*lo*lo,ds=Ou(4),s9=Ou(8),l9=Ou(12),c9=Ou(16),dr=Ou(4);function A1e(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,m,g,v,b,y,C,$,w,M,R,E;const _=e-i,O=n-i,k=t-o,A=r-o;$=_*A,f=nr*_,h=f-(f-_),m=_-h,f=nr*A,g=f-(f-A),v=A-g,w=m*v-($-h*g-m*g-h*v),M=k*O,f=nr*k,h=f-(f-k),m=k-h,f=nr*O,g=f-(f-O),v=O-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,ds[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,ds[1]=C-(b+d)+(d-M),E=y+b,d=E-y,ds[2]=y-(E-d)+(b-d),ds[3]=E;let j=j1e(4,ds),H=L1e*a;if(j>=H||-j>=H||(d=e-_,s=e-(_+d)+(d-i),d=n-O,c=n-(O+d)+(d-i),d=t-k,l=t-(k+d)+(d-o),d=r-A,u=r-(A+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(H=I1e*a+k1e*Math.abs(j),j+=_*u+A*s-(k*c+O*l),j>=H||-j>=H))return j;$=s*A,f=nr*s,h=f-(f-s),m=s-h,f=nr*A,g=f-(f-A),v=A-g,w=m*v-($-h*g-m*g-h*v),M=l*O,f=nr*l,h=f-(f-l),m=l-h,f=nr*O,g=f-(f-O),v=O-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const T=E2(4,ds,4,dr,s9);$=_*u,f=nr*_,h=f-(f-_),m=_-h,f=nr*u,g=f-(f-u),v=u-g,w=m*v-($-h*g-m*g-h*v),M=k*c,f=nr*k,h=f-(f-k),m=k-h,f=nr*c,g=f-(f-c),v=c-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const P=E2(T,s9,4,dr,l9);$=s*u,f=nr*s,h=f-(f-s),m=s-h,f=nr*u,g=f-(f-u),v=u-g,w=m*v-($-h*g-m*g-h*v),M=l*c,f=nr*l,h=f-(f-l),m=l-h,f=nr*c,g=f-(f-c),v=c-g,R=m*v-(M-h*g-m*g-h*v),b=w-R,d=w-b,dr[0]=w-(b+d)+(d-R),y=$+b,d=y-$,C=$-(y-d)+(b-d),b=C-M,d=C-b,dr[1]=C-(b+d)+(d-M),E=y+b,d=E-y,dr[2]=y-(E-d)+(b-d),dr[3]=E;const V=E2(P,l9,4,dr,c9);return c9[V-1]}function d1(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=P1e*c?l:-A1e(e,t,n,r,i,o,c)}const u9=Math.pow(2,-52),f1=new Uint32Array(512);class wd{static from(t,n=B1e,r=W1e){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new wd(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let _=0;_<a;_++){const O=t[2*_],k=t[2*_+1];O<s&&(s=O),k<l&&(l=k),O>c&&(c=O),k>u&&(u=k),this._ids[_]=_}const d=(s+c)/2,f=(l+u)/2;let h,m,g;for(let _=0,O=1/0;_<a;_++){const k=H2(d,f,t[2*_],t[2*_+1]);k<O&&(h=_,O=k)}const v=t[2*h],b=t[2*h+1];for(let _=0,O=1/0;_<a;_++){if(_===h)continue;const k=H2(v,b,t[2*_],t[2*_+1]);k<O&&k>0&&(m=_,O=k)}let y=t[2*m],C=t[2*m+1],$=1/0;for(let _=0;_<a;_++){if(_===h||_===m)continue;const O=D1e(v,b,y,C,t[2*_],t[2*_+1]);O<$&&(g=_,$=O)}let w=t[2*g],M=t[2*g+1];if($===1/0){for(let k=0;k<a;k++)this._dists[k]=t[2*k]-t[0]||t[2*k+1]-t[1];xs(this._ids,this._dists,0,a-1);const _=new Uint32Array(a);let O=0;for(let k=0,A=-1/0;k<a;k++){const j=this._ids[k],H=this._dists[j];H>A&&(_[O++]=j,A=H)}this.hull=_.subarray(0,O),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(d1(v,b,y,C,w,M)<0){const _=m,O=y,k=C;m=g,y=w,C=M,g=_,w=O,M=k}const R=z1e(v,b,y,C,w,M);this._cx=R.x,this._cy=R.y;for(let _=0;_<a;_++)this._dists[_]=H2(t[2*_],t[2*_+1],R.x,R.y);xs(this._ids,this._dists,0,a-1),this._hullStart=h;let E=3;r[h]=n[g]=m,r[m]=n[h]=g,r[g]=n[m]=h,i[h]=0,i[m]=1,i[g]=2,o.fill(-1),o[this._hashKey(v,b)]=h,o[this._hashKey(y,C)]=m,o[this._hashKey(w,M)]=g,this.trianglesLen=0,this._addTriangle(h,m,g,-1,-1,-1);for(let _=0,O,k;_<this._ids.length;_++){const A=this._ids[_],j=t[2*A],H=t[2*A+1];if(_>0&&Math.abs(j-O)<=u9&&Math.abs(H-k)<=u9||(O=j,k=H,A===h||A===m||A===g))continue;let T=0;for(let N=0,z=this._hashKey(j,H);N<this._hashSize&&(T=o[(z+N)%this._hashSize],!(T!==-1&&T!==r[T]));N++);T=n[T];let P=T,V;for(;V=r[P],d1(j,H,t[2*P],t[2*P+1],t[2*V],t[2*V+1])>=0;)if(P=V,P===T){P=-1;break}if(P===-1)continue;let I=this._addTriangle(P,A,r[P],-1,-1,i[P]);i[A]=this._legalize(I+2),i[P]=I,E++;let L=r[P];for(;V=r[L],d1(j,H,t[2*L],t[2*L+1],t[2*V],t[2*V+1])<0;)I=this._addTriangle(L,A,V,i[A],-1,i[L]),i[A]=this._legalize(I+2),r[L]=L,E--,L=V;if(P===T)for(;V=n[P],d1(j,H,t[2*V],t[2*V+1],t[2*P],t[2*P+1])<0;)I=this._addTriangle(V,A,P,-1,i[P],i[V]),this._legalize(I+2),i[V]=I,r[P]=P,E--,P=V;this._hullStart=n[A]=P,r[P]=n[L]=A,r[A]=L,o[this._hashKey(j,H)]=A,o[this._hashKey(t[2*P],t[2*P+1])]=P}this.hull=new Uint32Array(E);for(let _=0,O=this._hullStart;_<E;_++)this.hull[_]=O,O=r[O];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(N1e(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],l=t-t%3;if(a=l+(t+2)%3,s===-1){if(o===0)break;t=f1[--o];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[a],h=n[t],m=n[u],g=n[d];if(F1e(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*m],i[2*m+1],i[2*g],i[2*g+1])){n[t]=g,n[s]=f;const b=r[d];if(b===-1){let C=this._hullStart;do{if(this._hullTri[C]===d){this._hullTri[C]=t;break}C=this._hullPrev[C]}while(C!==this._hullStart)}this._link(t,b),this._link(s,r[a]),this._link(a,d);const y=c+(s+1)%3;o<f1.length&&(f1[o++]=y)}else{if(o===0)break;t=f1[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function N1e(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function H2(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function F1e(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,m=l*l+c*c,g=u*u+d*d,v=f*f+h*h;return l*(d*v-g*h)-c*(u*v-g*f)+m*(u*h-d*f)<0}function D1e(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,m=(a*d-l*u)*f;return h*h+m*m}function z1e(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=e+(c*u-s*d)*f,m=t+(a*d-l*u)*f;return{x:h,y:m}}function xs(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;Gl(e,i,o),t[e[n]]>t[e[r]]&&Gl(e,n,r),t[e[o]]>t[e[r]]&&Gl(e,o,r),t[e[n]]>t[e[o]]&&Gl(e,n,o);const s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]<l);do a--;while(t[e[a]]>l);if(a<o)break;Gl(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(xs(e,t,o,r),xs(e,t,n,a-1)):(xs(e,t,n,a-1),xs(e,t,o,r))}}function Gl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function B1e(e){return e[0]}function W1e(e){return e[1]}const d9=1e-6;class da{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>d9||Math.abs(this._y1-o)>d9)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Fh{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Z1e{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let g=0,v=0,b=r.length,y,C;g<b;g+=3,v+=2){const $=r[g]*2,w=r[g+1]*2,M=r[g+2]*2,R=t[$],E=t[$+1],_=t[w],O=t[w+1],k=t[M],A=t[M+1],j=_-R,H=O-E,T=k-R,P=A-E,V=(j*P-H*T)*2;if(Math.abs(V)<1e-9){if(o===void 0){o=a=0;for(const L of n)o+=t[L*2],a+=t[L*2+1];o/=n.length,a/=n.length}const I=1e9*Math.sign((o-R)*P-(a-E)*T);y=(R+k)/2-I*P,C=(E+A)/2+I*T}else{const I=1/V,L=j*j+H*H,N=T*T+P*P;y=R+(P*L-H*N)*I,C=E+(j*N-T*L)*I}s[v]=y,s[v+1]=C}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,m=t[2*l+1];i.fill(0);for(let g=0;g<n.length;++g)l=n[g],c=u,d=f,h=m,u=l*4,f=t[2*l],m=t[2*l+1],i[c+2]=i[u]=h-m,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new da:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,m=Math.floor(f/3)*2,g=a[h],v=a[h+1],b=a[m],y=a[m+1];this._renderSegment(g,v,b,y,t)}let l,c=o[o.length-1];for(let u=0;u<o.length;++u){l=c,c=o[u];const d=Math.floor(i[c]/3)*2,f=a[d],h=a[d+1],m=l*4,g=this._project(f,h,s[m+2],s[m+3]);g&&this._renderSegment(f,h,g[0],g[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new da:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new da:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new Fh;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,l))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+l-2)%l]&&n[(o+3)%a]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let l=a;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,o[l]!==t)break;l=i[l]}while(l!==a&&l!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let m,g,v,b,y;if(c===0){if((m=this._clipSegment(o,a,s,l,c,u))===null)continue;[g,v,b,y]=m}else{if((m=this._clipSegment(s,l,o,a,u,c))===null)continue;[b,y,g,v]=m,d=f,f=this._edgecode(g,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(g,v):i=[g,v]}d=f,f=this._edgecode(b,y),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(b,y):i=[b,y]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let l,c,u=o||a;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),o?(t=l,n=c,o=this._regioncode(t,n)):(r=l,i=c,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,l=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const U1e=2*Math.PI,fs=Math.pow;function q1e(e){return e[0]}function G1e(e){return e[1]}function Y1e(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function K1e(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Hm{static from(t,n=q1e,r=G1e,i){return new Hm("length"in t?X1e(t,n,r,i):Float64Array.from(Q1e(t,n,r,i)))}constructor(t){this._delaunator=new wd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Y1e(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const m=K1e(n[2*f],n[2*f+1],d);n[2*f]=m[0],n[2*f+1]=m[1]}this._delaunator=new wd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=o[l%3===2?l-2:l+1];(r[l]===-1||a[u]===-1)&&(a[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Z1e(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=a[c],c=c%3===2?c-2:c+1,a[c]!==t)return;if(c=o[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=fs(n-c[t*2],2)+fs(r-c[t*2+1],2);const f=i[t];let h=f;do{let m=l[h];const g=fs(n-c[m*2],2)+fs(r-c[m*2+1],2);if(g<d&&(d=g,u=m),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=o[(a[t]+1)%o.length],h!==m&&fs(n-c[h*2],2)+fs(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new da:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const l=i[a];if(l<a)continue;const c=o[a]*2,u=o[l]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new da:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],l=i[o+1];t.moveTo(s+n,l),t.arc(s,l,n,0,U1e)}return r&&r.value()}renderHull(t){const n=t==null?t=new da:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Fh;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new da:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,l=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Fh;return this.renderTriangle(t,n),n.value()}}function X1e(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*Q1e(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var Om=function(e){return[e.x,e.y]},Vu=GS,U$="cursor",q$="top",J1e=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Om:n,i=e.margin,o=i===void 0?Vu:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},ede=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Vu:i,a=e.debug,s=Hm.from(t),l=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},Vm=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?Om:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Vu:a,l=e.debug;return S.useMemo(function(){return ede({points:J1e({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[t,i,o,s,l])},tde=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?Om:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Vu:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,m=e.onMouseMove,g=e.onMouseLeave,v=e.onClick,b=e.onTouchStart,y=e.onTouchMove,C=e.onTouchEnd,$=e.enableTouchCrosshair,w=$!==void 0&&$,M=e.tooltip,R=e.tooltipPosition,E=R===void 0?U$:R,_=e.tooltipAnchor,O=_===void 0?q$:_,k=S.useState(null),A=k[0],j=k[1],H=S.useRef(null);S.useEffect(function(){H.current=A},[H,A]);var T=S.useCallback(function(J){if(!t.current)return null;var W=Sm(t.current,J),Z=W[0],U=W[1],F=o.find(Z,U),re=F!==void 0?n[F]:null;if(re&&u!==1/0){var B=i(re),ie=B[0],oe=B[1];vie(Z,U,ie+l.left,oe+l.top)>u&&(F=null,re=null)}return F===null||re===null?null:[F,re]},[t,o,n,i,l,u]),P=ci(),V=P.showTooltipAt,I=P.showTooltipFromEvent,L=P.hideTooltip,N=S.useMemo(function(){if(M)return E==="cursor"?function(J,W){I(M(J),W,O)}:function(J){var W=i(J),Z=W[0],U=W[1];V(M(J),[Z+l.left,U+l.top],O)}},[V,I,M,E,O,i,l]),z=S.useCallback(function(J){var W=T(J);if(j(W),a==null||a(W?W[1]:null),W){var Z=W[1];N==null||N(Z,J),h==null||h(W[1],J)}},[T,j,a,N,h]),q=S.useCallback(function(J){var W=T(J);if(j(W),W){var Z=W[0],U=W[1];if(a==null||a(U),N==null||N(U,J),H.current){var F=H.current,re=F[0],B=F[1];Z!==re?g==null||g(B,J):m==null||m(U,J)}else h==null||h(U,J)}else a==null||a(null),L==null||L(),H.current&&(g==null||g(H.current[1],J))},[T,j,H,h,m,g,N,L]),G=S.useCallback(function(J){j(null),a==null||a(null),L(),g&&H.current&&g(H.current[1],J)},[j,a,H,L,g]),Y=S.useCallback(function(J){var W=T(J);j(W),W&&(v==null||v(W[1],J))},[T,j,v]),ee=S.useCallback(function(J){var W=T(J);w&&(j(W),a==null||a(W?W[1]:null)),W&&(b==null||b(W[1],J))},[T,j,a,w,b]),Q=S.useCallback(function(J){var W=T(J);w&&(j(W),a==null||a(W?W[1]:null)),W&&(y==null||y(W[1],J))},[T,j,a,w,y]),K=S.useCallback(function(J){w&&(j(null),a==null||a(null)),C&&H.current&&C(H.current[1],J)},[w,j,a,C,H]);return{current:A,handleMouseEnter:f?z:void 0,handleMouseMove:f?q:void 0,handleMouseLeave:f?G:void 0,handleClick:f?Y:void 0,handleTouchStart:f?ee:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?K:void 0}},G$=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Vu:i,a=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd,g=e.enableTouchCrosshair,v=g!==void 0&&g,b=e.detectionRadius,y=b===void 0?1/0:b,C=e.tooltip,$=e.tooltipPosition,w=$===void 0?U$:$,M=e.tooltipAnchor,R=M===void 0?q$:M,E=e.debug,_=S.useRef(null),O=Vm({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:E}),k=O.delaunay,A=O.voronoi,j=tde({elementRef:_,nodes:t,delaunay:k,margin:o,detectionRadius:y,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:m,enableTouchCrosshair:v,tooltip:C,tooltipPosition:w,tooltipAnchor:R}),H=j.current,T=j.handleMouseEnter,P=j.handleMouseMove,V=j.handleMouseLeave,I=j.handleClick,L=j.handleTouchStart,N=j.handleTouchMove,z=j.handleTouchEnd,q=S.useMemo(function(){if(E&&A)return A.render()},[E,A]);return p.jsxs("g",{ref:_,transform:"translate("+-o.left+","+-o.top+")",children:[E&&A&&p.jsxs(p.Fragment,{children:[p.jsx("path",{d:q,stroke:"red",strokeWidth:1,opacity:.75}),y<1/0&&p.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:k.renderPoints(void 0,y)}),H&&p.jsx("path",{fill:"pink",opacity:.35,d:A.renderCell(H[0])})]}),p.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:T,onMouseMove:P,onMouseLeave:V,onTouchStart:L,onTouchMove:N,onTouchEnd:z,onClick:I})]})},Y$=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},K$=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vr.apply(this,arguments)}function X$(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var nde=function(e){if(typeof e=="function")return e;if(Ha(e))return function(){return e};if(function(n){return Zo(n)}(e)){if(!Sf(e.key))throw new Error("symbolSize is invalid, key should be a string pointing to the property to use to determine node size");if(!Array.isArray(e.values)||e.values.length!==2)throw new Error("symbolSize is invalid, values spec should be an array containing two values, min and max");if(!Array.isArray(e.sizes)||e.sizes.length!==2)throw new Error("symbolSize is invalid, sizes spec should be an array containing two values, min and max");var t=qo().domain([e.values[0],e.values[1]]).range([e.sizes[0],e.sizes[1]]);return function(n){return t(yn(n,e.key))}}throw new Error("nodeSize is invalid, it should be either a function, a number or an object")},Q$=function(e){var t,n=e.data,r=e.xScaleSpec,i=e.xFormat,o=e.yScaleSpec,a=e.yFormat,s=e.width,l=e.height,c=e.nodeId,u=e.nodeSize,d=e.colors,f=S.useMemo(function(){return j$(n,r,o,s,l)},[n,r,o,s,l]),h=f.series,m=f.xScale,g=f.yScale,v=Lo(i),b=Lo(a),y=bi(c),C=S.useMemo(function(){return function(M){var R=M.series,E=M.formatX,_=M.formatY,O=M.getNodeId,k=[];return R.forEach(function(A){A.data.forEach(function(j,H){var T={index:k.length,serieIndex:H,serieId:A.id,x:j.position.x,xValue:j.data.x,formattedX:E(j.data.x),y:j.position.y,yValue:j.data.y,formattedY:_(j.data.y),data:j.data};k.push(Vr({},T,{id:O(T)}))})}),k}({series:h,formatX:v,formatY:b,getNodeId:y})},[h,v,b,y]),$=S.useMemo(function(){return nde(t)},[t=u]),w=_u(d,"serieId");return{xScale:m,yScale:g,nodes:S.useMemo(function(){return C.map(function(M){return Vr({},M,{size:$(M),color:w({serieId:M.serieId})})})},[C,$,w]),legendData:S.useMemo(function(){return h.map(function(M){return{id:M.id,label:M.id,color:w({serieId:M.id})}})},[h,w])}},J$=function(e,t){return M1e({data:e,annotations:t,getPosition:function(n){return{x:n.x,y:n.y}},getDimensions:function(n){return{size:n.size,width:n.size,height:n.size}}})},rde=function(e){return e/2},eM={xScale:{type:"linear",min:0,max:"auto"},yScale:{type:"linear",min:0,max:"auto"},enableGridX:!0,enableGridY:!0,axisBottom:{},axisLeft:{},nodeId:function(e){return e.serieId+"."+e.index},nodeSize:9,nodeComponent:function(e){var t=e.node,n=e.style,r=e.blendMode,i=e.isInteractive,o=e.onMouseEnter,a=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=S.useCallback(function(h){return o==null?void 0:o(t,h)},[t,o]),u=S.useCallback(function(h){return a==null?void 0:a(t,h)},[t,a]),d=S.useCallback(function(h){return s==null?void 0:s(t,h)},[t,s]),f=S.useCallback(function(h){return l==null?void 0:l(t,h)},[t,l]);return p.jsx(et.circle,{cx:n.x,cy:n.y,r:n.size.to(rde),fill:n.color,style:{mixBlendMode:r},onMouseEnter:i?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:i?d:void 0,onClick:i?f:void 0})},colors:{scheme:"nivo"},isInteractive:!0,debugMesh:!1,tooltip:function(e){var t=e.node;return p.jsx(Is,{id:t.serieId,value:"x: "+t.formattedX+", y: "+t.formattedY,enableChip:!0,color:t.color})},markers:[],legends:[],annotations:[]},pn=Vr({},eM,{blendMode:"normal",layers:["grid","axes","nodes","markers","mesh","legends","annotations"],role:"img",useMesh:!0,animate:!0,motionConfig:"default"}),rr=Vr({},eM,{layers:["grid","axes","nodes","mesh","legends","annotations"],pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,renderNode:function(e,t){e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fillStyle=t.color,e.fill()}}),ide=function(e){var t=e.nodes,n=e.annotations,r=J$(t,n);return p.jsx(p.Fragment,{children:r.map(function(i,o){return p.jsx(R1e,Vr({},i),o)})})},ode=function(e){return e.id},O2=function(e){return{x:e.x,y:e.y,size:e.size,color:e.color}},ade=function(e){return{x:e.x,y:e.y,size:0,color:e.color}},sde=function(e){var t=e.nodes,n=e.nodeComponent,r=e.isInteractive,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.blendMode,u=Fn(),d=u.animate,f=u.config,h=xr(t,{keys:ode,from:O2,enter:O2,update:O2,leave:ade,config:f,immediate:!d}),m=ci(),g=m.showTooltipFromEvent,v=m.hideTooltip,b=S.useCallback(function(w,M){g(S.createElement(l,{node:w}),M),i==null||i(w,M)},[l,g,i]),y=S.useCallback(function(w,M){g(S.createElement(l,{node:w}),M),o==null||o(w,M)},[l,g,o]),C=S.useCallback(function(w,M){v(),a==null||a(w,M)},[v,a]),$=S.useCallback(function(w,M){return s==null?void 0:s(w,M)},[s]);return p.jsx(p.Fragment,{children:h(function(w,M){return S.createElement(n,{node:M,style:w,blendMode:c,isInteractive:r,onMouseEnter:r?b:void 0,onMouseMove:r?y:void 0,onMouseLeave:r?C:void 0,onClick:r?$:void 0})})})},lde=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.debug,u=ci(),d=u.showTooltipFromEvent,f=u.hideTooltip,h=S.useCallback(function(b,y){d(S.createElement(l,{node:b}),y),i&&i(b,y)},[d,l,i]),m=S.useCallback(function(b,y){d(S.createElement(l,{node:b}),y),o&&o(b,y)},[d,l,o]),g=S.useCallback(function(b,y){f(),a&&a(b,y)},[f,a]),v=S.useCallback(function(b,y){s&&s(b,y)},[s]);return p.jsx(G$,{nodes:t,width:n,height:r,onMouseEnter:h,onMouseMove:m,onMouseLeave:g,onClick:v,debug:c})},cde=["isInteractive","animate","motionConfig","theme","renderWrapper"],ude=function(e){var t=e.data,n=e.xScale,r=n===void 0?pn.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?pn.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.layers,f=d===void 0?pn.layers:d,h=e.colors,m=h===void 0?pn.colors:h,g=e.blendMode,v=g===void 0?pn.blendMode:g,b=e.nodeId,y=b===void 0?pn.nodeId:b,C=e.nodeSize,$=C===void 0?pn.nodeSize:C,w=e.nodeComponent,M=w===void 0?pn.nodeComponent:w,R=e.enableGridX,E=R===void 0?pn.enableGridX:R,_=e.enableGridY,O=_===void 0?pn.enableGridY:_,k=e.gridXValues,A=e.gridYValues,j=e.axisTop,H=e.axisRight,T=e.axisBottom,P=T===void 0?pn.axisBottom:T,V=e.axisLeft,I=V===void 0?pn.axisLeft:V,L=e.annotations,N=L===void 0?pn.annotations:L,z=e.isInteractive,q=z===void 0?pn.isInteractive:z,G=e.useMesh,Y=G===void 0?pn.useMesh:G,ee=e.debugMesh,Q=ee===void 0?pn.debugMesh:ee,K=e.onMouseEnter,J=e.onMouseMove,W=e.onMouseLeave,Z=e.onClick,U=e.tooltip,F=U===void 0?pn.tooltip:U,re=e.markers,B=re===void 0?pn.markers:re,ie=e.legends,oe=ie===void 0?pn.legends:ie,ve=e.role,xe=ve===void 0?pn.role:ve,pe=e.ariaLabel,ye=e.ariaLabelledBy,Se=e.ariaDescribedBy,me=Za(l,c,u),ge=me.margin,ce=me.innerWidth,$e=me.innerHeight,he=me.outerWidth,Ae=me.outerHeight,Ie=Q$({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:a,yFormat:s,width:ce,height:$e,nodeId:y,nodeSize:$,colors:m}),Re=Ie.xScale,ke=Ie.yScale,Ye=Ie.nodes,Xe=Ie.legendData,Fe=S.useMemo(function(){return{xScale:Re,yScale:ke,nodes:Ye,margin:ge,innerWidth:ce,innerHeight:$e,outerWidth:he,outerHeight:Ae}},[Re,ke,Ye,ge,ce,$e,he,Ae]),je={grid:null,axes:null,nodes:null,markers:null,mesh:null,annotations:null,legends:null};return f.includes("grid")&&(je.grid=p.jsx(B$,{width:ce,height:$e,xScale:E?Re:null,yScale:O?ke:null,xValues:k,yValues:A},"grid")),f.includes("axes")&&(je.axes=p.jsx(z$,{xScale:Re,yScale:ke,width:ce,height:$e,top:j,right:H,bottom:P,left:I},"axes")),f.includes("nodes")&&(je.nodes=p.jsx(sde,{nodes:Ye,nodeComponent:M,isInteractive:q,tooltip:F,blendMode:v,onMouseEnter:K,onMouseMove:J,onMouseLeave:W,onClick:Z},"nodes")),f.includes("markers")&&(je.markers=p.jsx(s$,{markers:B,width:ce,height:$e,xScale:Re,yScale:ke},"markers")),f.includes("mesh")&&q&&Y&&(je.mesh=p.jsx(lde,{nodes:Ye,width:ce,height:$e,onMouseEnter:K,onMouseMove:J,onMouseLeave:W,onClick:Z,tooltip:F,debug:Q},"mesh")),f.includes("annotations")&&(je.annotations=p.jsx(ide,{nodes:Ye,annotations:N},"annotations")),f.includes("legends")&&(je.legends=oe.map(function(Qe,Ze){return p.jsx(If,Vr({},Qe,{containerWidth:ce,containerHeight:$e,data:Xe}),Ze)})),p.jsx(Sl,{width:he,height:Ae,margin:ge,role:xe,ariaLabel:pe,ariaLabelledBy:ye,ariaDescribedBy:Se,children:f.map(function(Qe,Ze){if(typeof Qe=="string"&&je[Qe]!==void 0)return je[Qe];if(typeof Qe=="function")return p.jsx(S.Fragment,{children:S.createElement(Qe,Fe)},Ze);throw new Error("Unknown layer ("+Qe+")")})})},dde=function(e){var t=e.isInteractive,n=t===void 0?pn.isInteractive:t,r=e.animate,i=r===void 0?pn.animate:r,o=e.motionConfig,a=o===void 0?pn.motionConfig:o,s=e.theme,l=e.renderWrapper,c=X$(e,cde);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(ude,Vr({isInteractive:n},c))})},tM=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(dde,Vr({width:n,height:r},e))}})},fde=["isInteractive","renderWrapper","theme"],hde=function(e){var t=e.data,n=e.xScale,r=n===void 0?rr.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?rr.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.pixelRatio,f=d===void 0?rr.pixelRatio:d,h=e.layers,m=h===void 0?rr.layers:h,g=e.colors,v=g===void 0?rr.colors:g,b=e.nodeId,y=b===void 0?pn.nodeId:b,C=e.nodeSize,$=C===void 0?rr.nodeSize:C,w=e.renderNode,M=w===void 0?rr.renderNode:w,R=e.enableGridX,E=R===void 0?rr.enableGridX:R,_=e.gridXValues,O=e.enableGridY,k=O===void 0?rr.enableGridY:O,A=e.gridYValues,j=e.axisTop,H=e.axisRight,T=e.axisBottom,P=T===void 0?rr.axisBottom:T,V=e.axisLeft,I=V===void 0?rr.axisLeft:V,L=e.annotations,N=L===void 0?rr.annotations:L,z=e.isInteractive,q=z===void 0?rr.isInteractive:z,G=e.debugMesh,Y=G===void 0?rr.debugMesh:G,ee=e.onMouseEnter,Q=e.onMouseMove,K=e.onMouseLeave,J=e.onClick,W=e.tooltip,Z=W===void 0?rr.tooltip:W,U=e.legends,F=U===void 0?rr.legends:U,re=e.canvasRef,B=S.useRef(null),ie=Zt(),oe=S.useState(null),ve=oe[0],xe=oe[1],pe=Za(l,c,u),ye=pe.margin,Se=pe.innerWidth,me=pe.innerHeight,ge=pe.outerWidth,ce=pe.outerHeight,$e=Q$({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:a,yFormat:s,width:Se,height:me,nodeId:y,nodeSize:$,colors:v}),he=$e.xScale,Ae=$e.yScale,Ie=$e.nodes,Re=$e.legendData,ke=J$(Ie,N),Ye=Vm({points:Ie,width:Se,height:me,debug:Y}),Xe=Ye.delaunay,Fe=Ye.voronoi,je=S.useMemo(function(){return{xScale:he,yScale:Ae,nodes:Ie,margin:ye,innerWidth:Se,innerHeight:me,outerWidth:ge,outerHeight:ce}},[he,Ae,Ie,ye,Se,me,ge,ce]);S.useEffect(function(){if(B.current){B.current.width=ge*f,B.current.height=ce*f;var Ne=B.current.getContext("2d");Ne.scale(f,f),Ne.fillStyle=ie.background,Ne.fillRect(0,0,ge,ce),Ne.translate(ye.left,ye.top),m.forEach(function(ze){if(ze==="grid")Ne.lineWidth=ie.grid.line.strokeWidth,Ne.strokeStyle=ie.grid.line.stroke,E&&Cd(Ne,{width:Se,height:me,scale:he,axis:"x",values:_}),k&&Cd(Ne,{width:Se,height:me,scale:Ae,axis:"y",values:A});else if(ze==="annotations")T1e(Ne,{annotations:ke,theme:ie});else if(ze==="axes")W$(Ne,{xScale:he,yScale:Ae,width:Se,height:me,top:j,right:H,bottom:P,left:I,theme:ie});else if(ze==="nodes")Ie.forEach(function(De){M(Ne,De)});else if(ze==="mesh")Y&&(Y$(Ne,Fe),ve&&K$(Ne,Fe,ve.index));else if(ze==="legends")F.forEach(function(De){v$(Ne,Vr({},De,{data:Re,containerWidth:Se,containerHeight:me,theme:ie}))});else{if(typeof ze!="function")throw new Error("Invalid layer: "+ze);ze(Ne,je)}})}},[B,Se,me,ge,ce,ye.top,ye.left,f,M,m,je,ie,he,Ae,Ie,E,k,j,H,P,I,F,Re,Y,Fe,ve,ke]);var Qe=ci(),Ze=Qe.showTooltipFromEvent,qe=Qe.hideTooltip,de=S.useCallback(function(Ne){var ze=Sm(B.current,Ne),De=ze[0],Je=ze[1];if(!c$(ye.left,ye.top,Se,me,De,Je))return null;var tt=Xe.find(De-ye.left,Je-ye.top);return Ie[tt]},[B,ye,Se,me,Xe]),Ee=S.useCallback(function(Ne){var ze=de(Ne);xe(ze),ze?(Ze(S.createElement(Z,{node:ze}),Ne),ve&&ve.id!==ze.id&&(K&&K(ve,Ne),ee&&ee(ze,Ne)),ve||ee&&ee(ze,Ne),Q&&Q(ze,Ne)):(qe(),ve&&K&&K(ve,Ne))},[de,ve,xe,Ze,qe,Z,ee,Q,K]),Ke=S.useCallback(function(Ne){qe(),xe(null),ve&&K&&K(ve,Ne)},[qe,ve,xe,K]),nt=S.useCallback(function(Ne){if(J){var ze=de(Ne);ze&&J(ze,Ne)}},[de,J]);return p.jsx("canvas",{ref:function(Ne){B.current=Ne,re&&"current"in re&&(re.current=Ne)},width:ge*f,height:ce*f,style:{width:ge,height:ce,cursor:q?"auto":"normal"},onMouseEnter:q?Ee:void 0,onMouseMove:q?Ee:void 0,onMouseLeave:q?Ke:void 0,onClick:q?nt:void 0})},gde=S.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=X$(e,fde);return p.jsx(Ua,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:p.jsx(hde,Vr({},o,{canvasRef:t}))})});S.forwardRef(function(e,t){return p.jsx(Go,{children:function(n){var r=n.width,i=n.height;return p.jsx(gde,Vr({width:r,height:i},e,{ref:t}))}})});const vde=({x1:e,x2:t,y1:n,y2:r})=>p.jsx("g",{children:p.jsx("line",{x1:e,y1:n,x2:t,y2:r,stroke:"red",strokeWidth:"3"})}),mde=({scatterPlotData:e,style:t={},margin:n={},axisBottom:r={},axisLeft:i={},tooltip:o=null})=>{var h,m;const a=e==null?void 0:e.line,s=a==null?void 0:a.x1,l=a==null?void 0:a.y1,c=a==null?void 0:a.x2,u=a==null?void 0:a.y2,d=(m=(h=e==null?void 0:e.points)==null?void 0:h.data)==null?void 0:m.map(g=>g.y);Math.min(l,u,...d);const f=Math.max(l,u,...d);return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx("div",{style:{width:"100%",height:600,...t},children:p.jsx(tM,{data:[e==null?void 0:e.points],margin:{top:20,right:120,bottom:100,left:120,...n},xScale:{type:"point"},yScale:{type:"linear",min:0,max:f,reverse:!1},axisBottom:{orient:"bottom",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:46,truncateTickAt:0,legend:"axisBottom",...r},axisLeft:{orient:"left",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:-60,truncateTickAt:0,legend:"axisLeft",...i},layers:["grid","markers","axes","nodes","legends",g=>p.jsx(vde,{x1:g.xScale(s),y1:g.yScale(l),x2:g.xScale(c),y2:g.yScale(u)})],tooltip:({node:g})=>p.jsx(Zn,{body:(o==null?void 0:o({node:g}))||p.jsx("span",{children:"Scatterplot tooltip"})})})})]})};function pde(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var bde=pde;function yde(e){return function(t){return e==null?void 0:e[t]}}var xde=yde,Cde=xde,wde={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sde=Cde(wde),$de=Sde,Mde=$de,_de=yu,Ede=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hde="\\u0300-\\u036f",Ode="\\ufe20-\\ufe2f",Vde="\\u20d0-\\u20ff",Rde=Hde+Ode+Vde,Tde="["+Rde+"]",kde=RegExp(Tde,"g");function jde(e){return e=_de(e),e&&e.replace(Ede,Mde).replace(kde,"")}var Pde=jde,Lde=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ide(e){return e.match(Lde)||[]}var Ade=Ide,Nde=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Fde(e){return Nde.test(e)}var Dde=Fde,nM="\\ud800-\\udfff",zde="\\u0300-\\u036f",Bde="\\ufe20-\\ufe2f",Wde="\\u20d0-\\u20ff",Zde=zde+Bde+Wde,rM="\\u2700-\\u27bf",iM="a-z\\xdf-\\xf6\\xf8-\\xff",Ude="\\xac\\xb1\\xd7\\xf7",qde="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gde="\\u2000-\\u206f",Yde=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oM="A-Z\\xc0-\\xd6\\xd8-\\xde",Kde="\\ufe0e\\ufe0f",aM=Ude+qde+Gde+Yde,sM="['’]",f9="["+aM+"]",Xde="["+Zde+"]",lM="\\d+",Qde="["+rM+"]",cM="["+iM+"]",uM="[^"+nM+aM+lM+rM+iM+oM+"]",Jde="\\ud83c[\\udffb-\\udfff]",efe="(?:"+Xde+"|"+Jde+")",tfe="[^"+nM+"]",dM="(?:\\ud83c[\\udde6-\\uddff]){2}",fM="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+oM+"]",nfe="\\u200d",h9="(?:"+cM+"|"+uM+")",rfe="(?:"+vs+"|"+uM+")",g9="(?:"+sM+"(?:d|ll|m|re|s|t|ve))?",v9="(?:"+sM+"(?:D|LL|M|RE|S|T|VE))?",hM=efe+"?",gM="["+Kde+"]?",ife="(?:"+nfe+"(?:"+[tfe,dM,fM].join("|")+")"+gM+hM+")*",ofe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",afe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sfe=gM+hM+ife,lfe="(?:"+[Qde,dM,fM].join("|")+")"+sfe,cfe=RegExp([vs+"?"+cM+"+"+g9+"(?="+[f9,vs,"$"].join("|")+")",rfe+"+"+v9+"(?="+[f9,vs+h9,"$"].join("|")+")",vs+"?"+h9+"+"+g9,vs+"+"+v9,afe,ofe,lM,lfe].join("|"),"g");function ufe(e){return e.match(cfe)||[]}var dfe=ufe,ffe=Ade,hfe=Dde,gfe=yu,vfe=dfe;function mfe(e,t,n){return e=gfe(e),t=n?void 0:t,t===void 0?hfe(e)?vfe(e):ffe(e):e.match(t)||[]}var pfe=mfe,bfe=bde,yfe=Pde,xfe=pfe,Cfe="['’]",wfe=RegExp(Cfe,"g");function Sfe(e){return function(t){return bfe(xfe(yfe(t).replace(wfe,"")),e,"")}}var $fe=Sfe,Mfe=Z$;function _fe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Mfe(e,t,n)}var Efe=_fe,Hfe="\\ud800-\\udfff",Ofe="\\u0300-\\u036f",Vfe="\\ufe20-\\ufe2f",Rfe="\\u20d0-\\u20ff",Tfe=Ofe+Vfe+Rfe,kfe="\\ufe0e\\ufe0f",jfe="\\u200d",Pfe=RegExp("["+jfe+Hfe+Tfe+kfe+"]");function Lfe(e){return Pfe.test(e)}var vM=Lfe;function Ife(e){return e.split("")}var Afe=Ife,mM="\\ud800-\\udfff",Nfe="\\u0300-\\u036f",Ffe="\\ufe20-\\ufe2f",Dfe="\\u20d0-\\u20ff",zfe=Nfe+Ffe+Dfe,Bfe="\\ufe0e\\ufe0f",Wfe="["+mM+"]",Dh="["+zfe+"]",zh="\\ud83c[\\udffb-\\udfff]",Zfe="(?:"+Dh+"|"+zh+")",pM="[^"+mM+"]",bM="(?:\\ud83c[\\udde6-\\uddff]){2}",yM="[\\ud800-\\udbff][\\udc00-\\udfff]",Ufe="\\u200d",xM=Zfe+"?",CM="["+Bfe+"]?",qfe="(?:"+Ufe+"(?:"+[pM,bM,yM].join("|")+")"+CM+xM+")*",Gfe=CM+xM+qfe,Yfe="(?:"+[pM+Dh+"?",Dh,bM,yM,Wfe].join("|")+")",Kfe=RegExp(zh+"(?="+zh+")|"+Yfe+Gfe,"g");function Xfe(e){return e.match(Kfe)||[]}var Qfe=Xfe,Jfe=Afe,e0e=vM,t0e=Qfe;function n0e(e){return e0e(e)?t0e(e):Jfe(e)}var r0e=n0e,i0e=Efe,o0e=vM,a0e=r0e,s0e=yu;function l0e(e){return function(t){t=s0e(t);var n=o0e(t)?a0e(t):void 0,r=n?n[0]:t.charAt(0),i=n?i0e(n,1).join(""):t.slice(1);return r[e]()+i}}var c0e=l0e,u0e=c0e,d0e=u0e("toUpperCase"),f0e=d0e,h0e=$fe,g0e=f0e,v0e=h0e(function(e,t,n){return e+(n?" ":"")+g0e(t)}),m0e=v0e;const p0e=Cn(m0e);function b0e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function y0e(){return this.eachAfter(b0e)}function x0e(e){var t=this,n,r=[t],i,o,a;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)r.push(i[o]);while(r.length);return this}function C0e(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function w0e(e){for(var t=this,n=[t],r=[],i,o,a;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)n.push(i[o]);for(;t=r.pop();)e(t);return this}function S0e(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function $0e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function M0e(e){for(var t=this,n=_0e(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function _0e(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function E0e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function H0e(){var e=[];return this.each(function(t){e.push(t)}),e}function O0e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function V0e(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Rm(e,t){var n=new Sd(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,l,c;for(t==null&&(t=T0e);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(c=s.length))for(i.children=new Array(c),l=c-1;l>=0;--l)o.push(a=i.children[l]=new Sd(s[l])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(j0e)}function R0e(){return Rm(this).eachBefore(k0e)}function T0e(e){return e.children}function k0e(e){e.data=e.data.data}function j0e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Sd(e){this.data=e,this.depth=this.height=0,this.parent=null}Sd.prototype=Rm.prototype={constructor:Sd,count:y0e,each:x0e,eachAfter:w0e,eachBefore:C0e,sum:S0e,sort:$0e,path:M0e,ancestors:E0e,descendants:H0e,leaves:O0e,links:V0e,copy:R0e};function P0e(e){if(typeof e!="function")throw new Error;return e}function Yl(){return 0}function Kl(e){return function(){return e}}function L0e(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Tm(e,t,n,r,i){for(var o=e.children,a,s=-1,l=o.length,c=e.value&&(r-t)/e.value;++s<l;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function km(e,t,n,r,i){for(var o=e.children,a,s=-1,l=o.length,c=e.value&&(i-n)/e.value;++s<l;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var I0e=(1+Math.sqrt(5))/2;function A0e(e,t,n,r,i,o){for(var a=[],s=t.children,l,c,u=0,d=0,f=s.length,h,m,g=t.value,v,b,y,C,$,w,M;u<f;){h=i-n,m=o-r;do v=s[d++].value;while(!v&&d<f);for(b=y=v,w=Math.max(m/h,h/m)/(g*e),M=v*v*w,$=Math.max(y/M,M/b);d<f;++d){if(v+=c=s[d].value,c<b&&(b=c),c>y&&(y=c),M=v*v*w,C=Math.max(y/M,M/b),C>$){v-=c;break}$=C}a.push(l={value:v,dice:h<m,children:s.slice(u,d)}),l.dice?Tm(l,n,r,i,g?r+=m*v/g:o):km(l,n,r,g?n+=h*v/g:i,o),g-=v,u=d}return a}const wM=function e(t){function n(r,i,o,a,s){A0e(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(I0e);function N0e(){var e=wM,t=!1,n=1,r=1,i=[0],o=Yl,a=Yl,s=Yl,l=Yl,c=Yl;function u(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(L0e),f}function d(f){var h=i[f.depth],m=f.x0+h,g=f.y0+h,v=f.x1-h,b=f.y1-h;v<m&&(m=v=(m+v)/2),b<g&&(g=b=(g+b)/2),f.x0=m,f.y0=g,f.x1=v,f.y1=b,f.children&&(h=i[f.depth+1]=o(f)/2,m+=c(f)-h,g+=a(f)-h,v-=s(f)-h,b-=l(f)-h,v<m&&(m=v=(m+v)/2),b<g&&(g=b=(g+b)/2),e(f,m,g,v,b))}return u.round=function(f){return arguments.length?(t=!!f,u):t},u.size=function(f){return arguments.length?(n=+f[0],r=+f[1],u):[n,r]},u.tile=function(f){return arguments.length?(e=P0e(f),u):e},u.padding=function(f){return arguments.length?u.paddingInner(f).paddingOuter(f):u.paddingInner()},u.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:Kl(+f),u):o},u.paddingOuter=function(f){return arguments.length?u.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):u.paddingTop()},u.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:Kl(+f),u):a},u.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:Kl(+f),u):s},u.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:Kl(+f),u):l},u.paddingLeft=function(f){return arguments.length?(c=typeof f=="function"?f:Kl(+f),u):c},u}function F0e(e,t,n,r,i){var o=e.children,a,s=o.length,l,c=new Array(s+1);for(c[0]=l=a=0;a<s;++a)c[a+1]=l+=o[a].value;u(0,s,e.value,t,n,r,i);function u(d,f,h,m,g,v,b){if(d>=f-1){var y=o[d];y.x0=m,y.y0=g,y.x1=v,y.y1=b;return}for(var C=c[d],$=h/2+C,w=d+1,M=f-1;w<M;){var R=w+M>>>1;c[R]<$?w=R+1:M=R}$-c[w-1]<c[w]-$&&d+1<w&&--w;var E=c[w]-C,_=h-E;if(v-m>b-g){var O=(m*_+v*E)/h;u(d,w,E,m,g,O,b),u(w,f,_,O,g,v,b)}else{var k=(g*_+b*E)/h;u(d,w,E,m,g,v,k),u(w,f,_,m,k,v,b)}}}function D0e(e,t,n,r,i){(e.depth&1?km:Tm)(e,t,n,r,i)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}function z0e(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var B0e=function(e,t){return Vn([e,t],function(n,r){return"translate("+n+","+r+")"})},W0e=function(e,t){return Vn([e,t],function(n,r){return"translate("+n+"px, "+r+"px)"})},m9=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+r+","+i+") rotate("+o+")"})},Z0e=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+r+"px,"+i+"px) rotate("+o+"deg)"})},U0e=function(e,t,n){return Vn([e,t,n],function(r,i,o){return"translate("+(r-(o===0?0:5))+"px,"+(i-(o===0?5:0))+"px) rotate("+o+"deg)"})},q0e=S.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,s=Zt(),l=i&&t.isLeaf&&(a===0||Math.min(t.width,t.height)>a),c=o&&t.isParent;return p.jsxs(et.g,{transform:B0e(n.x,n.y),children:[p.jsx(et.rect,{"data-testid":"node."+t.id,width:Vn(n.width,function(u){return Math.max(u,0)}),height:Vn(n.height,function(u){return Math.max(u,0)}),fill:t.fill?t.fill:n.color,strokeWidth:r,stroke:t.borderColor,fillOpacity:t.opacity,onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&p.jsx(et.text,{"data-testid":"label."+t.id,textAnchor:"middle",dominantBaseline:"central",style:Rr({},s.labels.text,{fill:t.labelTextColor,pointerEvents:"none"}),fillOpacity:n.labelOpacity,transform:m9(n.labelX,n.labelY,n.labelRotation),children:t.label}),c&&p.jsx(et.text,{"data-testid":"parentLabel."+t.id,dominantBaseline:"central",style:Rr({},s.labels.text,{fill:t.parentLabelTextColor,pointerEvents:"none"}),fillOpacity:n.parentLabelOpacity,transform:m9(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),children:t.parentLabel})]})}),G0e=S.memo(function(e){var t=e.node;return p.jsx(Is,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})}),Y0e=S.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,s=Zt(),l=i&&t.isLeaf&&(a===0||Math.min(t.width,t.height)>a),c=o&&t.isParent;return p.jsxs(et.div,{"data-testid":"node."+t.id,id:t.path.replace(/[^\w]/gi,"-"),style:{boxSizing:"border-box",position:"absolute",top:0,left:0,transform:W0e(n.x,n.y),width:n.width,height:n.height,borderWidth:r,borderStyle:"solid",borderColor:t.borderColor,overflow:"hidden"},children:[p.jsx(et.div,{style:{boxSizing:"border-box",position:"absolute",top:0,left:0,opacity:t.opacity,width:n.width,height:n.height,background:n.color},onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&p.jsx(et.span,{"data-testid":"label."+t.id,style:Rr({},s.labels.text,{position:"absolute",display:"flex",top:-5,left:-5,width:10,height:10,justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",color:t.labelTextColor,transformOrigin:"center center",transform:Z0e(n.labelX,n.labelY,n.labelRotation),opacity:n.labelOpacity,pointerEvents:"none"}),children:t.label}),c&&p.jsx(et.span,{"data-testid":"parentLabel."+t.id,style:Rr({},s.labels.text,{position:"absolute",display:"flex",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",width:10,height:10,color:t.parentLabelTextColor,transformOrigin:"top left",transform:U0e(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),opacity:n.parentLabelOpacity,pointerEvents:"none"}),children:t.parentLabel})]})}),$n={layers:["nodes"],identity:"id",value:"value",tile:"squarify",leavesOnly:!1,innerPadding:0,outerPadding:0,colors:{scheme:"nivo"},colorBy:"pathComponents.1",nodeOpacity:.33,enableLabel:!0,label:"formattedValue",labelSkipSize:0,labelTextColor:{from:"color",modifiers:[["darker",1]]},orientLabel:!0,enableParentLabel:!0,parentLabel:"id",parentLabelSize:20,parentLabelPosition:"top",parentLabelPadding:6,parentLabelTextColor:{from:"color",modifiers:[["darker",1]]},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:G0e,role:"img",animate:!0,motionConfig:"gentle"},Ut=Rr({},$n,{nodeComponent:q0e,defs:[],fill:[]});Rr({},$n,{nodeComponent:Y0e});Rr({},$n,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var K0e={binary:F0e,dice:Tm,slice:km,sliceDice:D0e,squarify:wM},X0e=function(e){var t=e.root,n=e.getValue;return S.useMemo(function(){return Rm(t).sum(n)},[t,n])},Q0e=function(e){var t=e.data,n=e.width,r=e.height,i=e.identity,o=i===void 0?$n.identity:i,a=e.value,s=a===void 0?$n.value:a,l=e.valueFormat,c=e.leavesOnly,u=c===void 0?$n.leavesOnly:c,d=e.tile,f=d===void 0?$n.tile:d,h=e.innerPadding,m=h===void 0?$n.innerPadding:h,g=e.outerPadding,v=g===void 0?$n.outerPadding:g,b=e.label,y=b===void 0?$n.label:b,C=e.orientLabel,$=C===void 0?$n.orientLabel:C,w=e.enableParentLabel,M=w===void 0?$n.enableParentLabel:w,R=e.parentLabel,E=R===void 0?$n.parentLabel:R,_=e.parentLabelSize,O=_===void 0?$n.parentLabelSize:_,k=e.parentLabelPosition,A=k===void 0?$n.parentLabelPosition:k,j=e.parentLabelPadding,H=j===void 0?$n.parentLabelPadding:j,T=e.colors,P=T===void 0?$n.colors:T,V=e.colorBy,I=V===void 0?$n.colorBy:V,L=e.nodeOpacity,N=L===void 0?$n.nodeOpacity:L,z=e.borderColor,q=z===void 0?$n.borderColor:z,G=e.labelTextColor,Y=G===void 0?$n.labelTextColor:G,ee=e.parentLabelTextColor,Q=ee===void 0?$n.parentLabelTextColor:ee,K=bi(o),J=bi(s),W=Lo(l),Z=bi(y),U=bi(E),F=function(me){var ge=me.width,ce=me.height,$e=me.tile,he=me.innerPadding,Ae=me.outerPadding,Ie=me.enableParentLabel,Re=me.parentLabelSize,ke=me.parentLabelPosition,Ye=me.leavesOnly;return S.useMemo(function(){var Xe=N0e().size([ge,ce]).tile(K0e[$e]).round(!0).paddingInner(he).paddingOuter(Ae);if(Ie&&!Ye){var Fe=Re+2*Ae;Xe["padding"+p0e(ke)](Fe)}return Xe},[ge,ce,$e,he,Ae,Ie,Re,ke,Ye])}({width:n,height:r,tile:f,innerPadding:m,outerPadding:v,enableParentLabel:M,parentLabelSize:O,parentLabelPosition:A,leavesOnly:u}),re=X0e({root:t,getValue:J}),B=S.useMemo(function(){var me=S$(re);return F(me),u?me.leaves():me.descendants()},[re,F,u]),ie=S.useMemo(function(){return B.map(function(me){var ge=function(Ae,Ie){var Re=Ae.ancestors().map(function(ke){return Ie(ke.data)}).reverse();return{path:Re.join("."),pathComponents:Re}}(me,K),ce=ge.path,$e=ge.pathComponents,he={id:K(me.data),path:ce,pathComponents:$e,data:Ya(me.data,"children"),x:me.x0,y:me.y0,width:me.x1-me.x0,height:me.y1-me.y0,value:me.value,formattedValue:W(me.value),treeDepth:me.depth,treeHeight:me.height,isParent:me.height>0,isLeaf:me.height===0,parentLabelX:0,parentLabelY:0,parentLabelRotation:0};return he.labelRotation=$&&he.height>he.width?-90:0,A==="top"&&(he.parentLabelX=v+H,he.parentLabelY=v+O/2),A==="right"&&(he.parentLabelX=he.width-v-O/2,he.parentLabelY=he.height-v-H,he.parentLabelRotation=-90),A==="bottom"&&(he.parentLabelX=v+H,he.parentLabelY=he.height-v-O/2),A==="left"&&(he.parentLabelX=v+O/2,he.parentLabelY=he.height-v-H,he.parentLabelRotation=-90),he.label=Z(he),he.parentLabel=U(he),he})},[B,K,W,Z,$,U,O,A,H,v]),oe=Zt(),ve=_u(P,I),xe=Hr(q,oe),pe=Hr(Y,oe),ye=Hr(Q,oe),Se=S.useMemo(function(){return ie.map(function(me){var ge=Rr({},me,{color:ve(me),opacity:N});return ge.borderColor=xe(ge),ge.labelTextColor=pe(ge),ge.parentLabelTextColor=ye(ge),ge})},[ie,ve,N,xe,pe,ye]);return{hierarchy:re,nodes:Se,layout:F}},J0e=function(e){var t=e.nodes;return S.useMemo(function(){return{nodes:t}},[t])},V2=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,labelX:e.width/2,labelY:e.height/2,labelRotation:e.labelRotation,labelOpacity:1,parentLabelX:e.parentLabelX,parentLabelY:e.parentLabelY,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:1}},p9=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2,width:0,height:0,color:e.color,labelX:0,labelY:0,labelRotation:e.labelRotation,labelOpacity:0,parentLabelX:0,parentLabelY:0,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:0}},e2e=S.memo(function(e){var t=e.nodes,n=e.nodeComponent,r=e.borderWidth,i=e.enableLabel,o=e.labelSkipSize,a=e.enableParentLabel,s=function(f,h){var m=h.isInteractive,g=h.onMouseEnter,v=h.onMouseMove,b=h.onMouseLeave,y=h.onClick,C=h.tooltip,$=ci(),w=$.showTooltipFromEvent,M=$.hideTooltip,R=S.useCallback(function(A,j){w(S.createElement(C,{node:A}),j,"left")},[w,C]),E=S.useCallback(function(A,j){R(A,j),g==null||g(A,j)},[g,R]),_=S.useCallback(function(A,j){R(A,j),v==null||v(A,j)},[v,R]),O=S.useCallback(function(A,j){M(),b==null||b(A,j)},[b,M]),k=S.useCallback(function(A,j){y==null||y(A,j)},[y]);return S.useMemo(function(){return f.map(function(A){return m?Rr({},A,{onMouseEnter:function(j){return E(A,j)},onMouseMove:function(j){return _(A,j)},onMouseLeave:function(j){return O(A,j)},onClick:function(j){return k(A,j)}}):A})},[m,f,E,_,O,k])}(t,{isInteractive:e.isInteractive,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,tooltip:e.tooltip}),l=Fn(),c=l.animate,u=l.config,d=xr(s,{keys:function(f){return f.path},initial:V2,from:p9,enter:V2,update:V2,leave:p9,config:u,immediate:!c});return p.jsx(p.Fragment,{children:d(function(f,h){return S.createElement(n,{key:h.path,node:h,animatedProps:f,borderWidth:r,enableLabel:i,labelSkipSize:o,enableParentLabel:a})})})}),t2e=["isInteractive","animate","motionConfig","theme","renderWrapper"],n2e=function(e){var t=e.data,n=e.identity,r=n===void 0?Ut.identity:n,i=e.value,o=i===void 0?Ut.value:i,a=e.valueFormat,s=e.tile,l=s===void 0?Ut.tile:s,c=e.nodeComponent,u=c===void 0?Ut.nodeComponent:c,d=e.innerPadding,f=d===void 0?Ut.innerPadding:d,h=e.outerPadding,m=h===void 0?Ut.outerPadding:h,g=e.leavesOnly,v=g===void 0?Ut.leavesOnly:g,b=e.width,y=e.height,C=e.margin,$=e.layers,w=$===void 0?Ut.layers:$,M=e.colors,R=M===void 0?Ut.colors:M,E=e.colorBy,_=E===void 0?Ut.colorBy:E,O=e.nodeOpacity,k=O===void 0?Ut.nodeOpacity:O,A=e.borderWidth,j=A===void 0?Ut.borderWidth:A,H=e.borderColor,T=H===void 0?Ut.borderColor:H,P=e.defs,V=P===void 0?Ut.defs:P,I=e.fill,L=I===void 0?Ut.fill:I,N=e.enableLabel,z=N===void 0?Ut.enableLabel:N,q=e.label,G=q===void 0?Ut.label:q,Y=e.labelTextColor,ee=Y===void 0?Ut.labelTextColor:Y,Q=e.orientLabel,K=Q===void 0?Ut.orientLabel:Q,J=e.labelSkipSize,W=J===void 0?Ut.labelSkipSize:J,Z=e.enableParentLabel,U=Z===void 0?Ut.enableParentLabel:Z,F=e.parentLabel,re=F===void 0?Ut.parentLabel:F,B=e.parentLabelSize,ie=B===void 0?Ut.parentLabelSize:B,oe=e.parentLabelPosition,ve=oe===void 0?Ut.parentLabelPosition:oe,xe=e.parentLabelPadding,pe=xe===void 0?Ut.parentLabelPadding:xe,ye=e.parentLabelTextColor,Se=ye===void 0?Ut.parentLabelTextColor:ye,me=e.isInteractive,ge=me===void 0?Ut.isInteractive:me,ce=e.onMouseEnter,$e=e.onMouseMove,he=e.onMouseLeave,Ae=e.onClick,Ie=e.tooltip,Re=Ie===void 0?Ut.tooltip:Ie,ke=e.role,Ye=e.ariaLabel,Xe=e.ariaLabelledBy,Fe=e.ariaDescribedBy,je=Za(b,y,C),Qe=je.margin,Ze=je.innerWidth,qe=je.innerHeight,de=je.outerWidth,Ee=je.outerHeight,Ke=Q0e({data:t,identity:r,value:o,valueFormat:a,leavesOnly:v,width:Ze,height:qe,tile:l,innerPadding:f,outerPadding:m,colors:R,colorBy:_,nodeOpacity:k,borderColor:T,label:G,labelTextColor:ee,orientLabel:K,enableParentLabel:U,parentLabel:re,parentLabelSize:ie,parentLabelPosition:ve,parentLabelPadding:pe,parentLabelTextColor:Se}).nodes,nt={nodes:null};w.includes("nodes")&&(nt.nodes=p.jsx(e2e,{nodes:Ke,nodeComponent:u,borderWidth:j,enableLabel:z,labelSkipSize:W,enableParentLabel:U,isInteractive:ge,onMouseEnter:ce,onMouseMove:$e,onMouseLeave:he,onClick:Ae,tooltip:Re},"nodes"));var Ne=J0e({nodes:Ke}),ze=$m(V,Ke,L);return p.jsx(Sl,{width:de,height:Ee,margin:Qe,defs:ze,role:ke,ariaLabel:Ye,ariaLabelledBy:Xe,ariaDescribedBy:Fe,children:w.map(function(De,Je){var tt;return typeof De=="function"?p.jsx(S.Fragment,{children:S.createElement(De,Ne)},Je):(tt=nt==null?void 0:nt[De])!=null?tt:null})})},r2e=function(e){var t=e.isInteractive,n=t===void 0?Ut.isInteractive:t,r=e.animate,i=r===void 0?Ut.animate:r,o=e.motionConfig,a=o===void 0?Ut.motionConfig:o,s=e.theme,l=e.renderWrapper,c=z0e(e,t2e);return p.jsx(Ua,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(n2e,Rr({isInteractive:n},c))})},i2e=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(r2e,Rr({width:n,height:r},e))}})};function o2e(e,t){if(e.startsWith("rgba"))return e.replace(/rgba?\((\d+), (\d+), (\d+),? ([\d.]+)?\)/,(n,r,i,o,a)=>`rgba(${r}, ${i}, ${o}, ${t})`);if(e.startsWith("rgb"))return e.replace(/rgb\((\d+), (\d+), (\d+)\)/,(n,r,i,o)=>`rgba(${r}, ${i}, ${o}, ${t})`);if(e.startsWith("hsl"))return e.replace(/hsl\((\d+), (\d+)%?, (\d+)%?\)/,(n,r,i,o)=>`hsla(${r}, ${i}%, ${o}%, ${t})`);if(e.startsWith("hsla"))return e.replace(/hsla?\((\d+), (\d+)%?, (\d+)%?,? ([\d.]+)?\)/,(n,r,i,o,a)=>`hsla(${r}, ${i}%, ${o}%, ${t})`);if(e.startsWith("#")){const n=a2e(e);return`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`}throw new Error("Unsupported color format")}function a2e(e){const t=e.startsWith("#")?e.slice(1):e,n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return{r:n,g:r,b:i}}const s2e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},l2e=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;s2e(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},c2e=({treeMapData:e,style:t={},colors:n={scheme:"nivo"},identity:r="name",value:i="loc",margin:o={},nodeOpacity:a=.67,labelTextColor:s="black",borderColor:l="white",labelTitle:c="name",labelTitleSize:u=16,labelText:d="name",labelTextSize:f=12,labelPadding:h=10,labelGap:m=10,labelLineHeight:g=14,tooltip:v=null})=>{const b=S.useRef(null),[y,C]=S.useState({width:0,height:0});S.useEffect(()=>{if(!(b!=null&&b.current))return;const M=()=>{const E=b.current.getBoundingClientRect();C({width:E.width,height:E.height})},R=new ResizeObserver(M);return R.observe(b==null?void 0:b.current),M(),()=>{R.disconnect()}},[]);const $=({node:M})=>{var P,V;const R=S.useRef(null),E=S.useRef(null),[_,O]=S.useState(!1),[k,A]=S.useState(!1),j=()=>{if(!(R!=null&&R.current)||!(E!=null&&E.current))return;const I=R.current.getBoundingClientRect(),L=E.current.getBoundingClientRect(),N=Math.max([L,I]);O(I.height>M.height-h*2||I.width>M.width-h*2),A(L.height+I.height+g>M.height-h*2||N>M.width-h*2)};S.useEffect(()=>{j()},[]);const H=((P=M==null?void 0:M.data)==null?void 0:P[d])||"Text",T=l2e(H,M.width-h*2,f);return M.isParent?p.jsx(p.Fragment,{}):p.jsxs("g",{transform:`translate(${M.x}, ${M.y})`,children:[p.jsx("rect",{width:M.width,height:M.height,style:{fill:o2e(M.color,a),stroke:l,strokeWidth:1}}),!_&&p.jsx("text",{ref:R,dominantBaseline:"hanging",x:h,y:h,style:{fill:s,font:"var(--gf-label-lg-default)",fontWeight:"bold",fontSize:u},children:((V=M==null?void 0:M.data)==null?void 0:V[c])||"Title"}),!_&&!k&&p.jsx("text",{ref:E,dominantBaseline:"hanging",children:T.map((I,L)=>p.jsx("tspan",{x:h,y:h+u+m+g*L,style:{fill:s,font:"var(--gf-label-lg-default)",fontSize:f},children:I},L))})]})},w=({nodes:M})=>M.map(R=>p.jsx($,{node:R},R.id));return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{gap:16,vertical:!0,children:[p.jsx("div",{ref:b,style:{width:"100%",height:600,...t},children:p.jsx(i2e,{data:e,colors:n,identity:r,value:i,margin:{top:10,right:10,bottom:10,left:10,...o},enableParentLabel:!1,enableLabel:!1,nodeOpacity:0,borderWidth:0,tooltip:({node:M})=>p.jsx(Zn,{body:(v==null?void 0:v({node:M}))||p.jsx("span",{children:"Treemap tooltip"})}),layers:[w,"nodes"]})}),p.jsx("p",{style:{padding:"0 10px",fontFamily:"Roboto, sans-serif",fontSize:14,lineHeight:"22px",color:"#475467"},children:"In de grafiek hierboven zijn alle afvalstromen uitgesplitst per EURAL-code, een zescijferige code uit de Europese Afvallijst (EWL) die in heel Europa wordt gebruikt om afval te classificeren. De code geeft de bron van het afval aan, het proces of de activiteit waaruit het afkomstig is en het specifieke type afval, zoals bouw- of huishoudelijk afval. Een asterisk (*) achter de code betekent dat het afval gevaarlijk is."})]})]})};var u2e=yu,d2e=0;function f2e(e){var t=++d2e;return u2e(e)+t}var h2e=f2e;const g2e=Cn(h2e);function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}var jm=S.memo(function(e){var t=e.point;return p.jsx(Is,{id:p.jsxs("span",{children:["x: ",p.jsx("strong",{children:t.data.xFormatted}),", y:"," ",p.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),SM=S.memo(function(e){var t=e.slice,n=e.axis,r=Zt(),i=n==="x"?"y":"x";return p.jsx(uw,{rows:t.points.map(function(o){return[p.jsx(J1,{color:o.serieColor,style:r.tooltip.chip},"chip"),o.serieId,p.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),$M={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:jm,enableSlices:!1,debugSlices:!1,sliceTooltip:SM,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},So=hr({},$M,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});hr({},$M,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var v2e=function(e){var t=e.curve;return S.useMemo(function(){return Yc().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(qS(t))},[t])},m2e=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return S.useMemo(function(){return fS().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(qS(t)).y0(n(r))},[t,n,r])},p2e=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return S.useMemo(function(){if(n===!1)return[];if(n==="x"){var a=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(a.has(l.x)?a.get(l.x).push(l):a.set(l.x,[l]))}),Array.from(a.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],m=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:o,points:m.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],m=l[1],g=u[c-1],v=u[c+1];return d=g?h-(h-g[0])/2:h,f=v?h-d+(v[0]-h)/2:o-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:m.reverse()}})}},[t,n,o,r,i])},b2e="line",MM=function(e){var t=e.data,n=e.xScale,r=n===void 0?So.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?So.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?So.colors:u,f=e.curve,h=f===void 0?So.curve:f,m=e.areaBaselineValue,g=m===void 0?So.areaBaselineValue:m,v=e.pointColor,b=v===void 0?So.pointColor:v,y=e.pointBorderColor,C=y===void 0?So.pointBorderColor:y,$=e.enableSlices,w=$===void 0?So.enableSlicesTooltip:$,M=S.useState(g2e(b2e))[0],R=Lo(i),E=Lo(s),_=_u(d,"id"),O=Zt(),k=Hr(b,O),A=Hr(C,O),j=S.useState([]),H=j[0],T=j[1],P=S.useMemo(function(){return j$(t.filter(function(Q){return H.indexOf(Q.id)===-1}),r,a,l,c)},[t,H,r,a,l,c]),V=P.xScale,I=P.yScale,L=P.series,N=S.useMemo(function(){var Q=t.map(function(J){return{id:J.id,label:J.id,color:_(J)}}),K=Q.map(function(J){return hr({},L.find(function(W){return W.id===J.id}),{color:J.color})}).filter(function(J){return!!J.id});return{legendData:Q.map(function(J){return hr({},J,{hidden:!K.find(function(W){return W.id===J.id})})}).reverse(),series:K}},[t,L,_]),z=N.legendData,q=N.series,G=S.useCallback(function(Q){T(function(K){return K.indexOf(Q)>-1?K.filter(function(J){return J!==Q}):[].concat(K,[Q])})},[]),Y=function(Q){var K=Q.series,J=Q.getPointColor,W=Q.getPointBorderColor,Z=Q.formatX,U=Q.formatY;return S.useMemo(function(){return K.reduce(function(F,re){return[].concat(F,re.data.filter(function(B){return B.position.x!==null&&B.position.y!==null}).map(function(B,ie){var oe={id:re.id+"."+ie,index:F.length+ie,serieId:re.id,serieColor:re.color,x:B.position.x,y:B.position.y};return oe.color=J(re),oe.borderColor=W(oe),oe.data=hr({},B.data,{xFormatted:Z(B.data.x),yFormatted:U(B.data.y)}),oe}))},[])},[K,J,W,Z,U])}({series:q,getPointColor:k,getPointBorderColor:A,formatX:R,formatY:E}),ee=p2e({componentId:M,enableSlices:w,points:Y,width:l,height:c});return{legendData:z,toggleSerie:G,lineGenerator:v2e({curve:h}),areaGenerator:m2e({curve:h,yScale:I,areaBaselineValue:g}),getColor:_,series:q,xScale:V,yScale:I,slices:ee,points:Y}},y2e=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,l=a.config,c=Pf(o),u=Qt({color:r,config:l,immediate:!s});return p.jsx(et.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},x2e=S.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return p.jsx("g",{children:i.map(function(o){return p.jsx(y2e,hr({path:t(o.data.map(function(a){return a.position}))},hr({areaOpacity:n,areaBlendMode:r},o)),o.id)})})}),C2e=S.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=S.useMemo(function(){return t(n)},[t,n]),a=Pf(o);return p.jsx(et.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),w2e=S.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return p.jsx(C2e,{id:o,points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})}),S2e=S.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd,g=ci(),v=g.showTooltipFromEvent,b=g.hideTooltip,y=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),s(t),l&&l(t,_)},[v,o,t,r,s,l]),C=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),c&&c(t,_)},[v,o,t,r,c]),$=S.useCallback(function(_){b(),s(null),u&&u(t,_)},[b,s,u,t]),w=S.useCallback(function(_){d&&d(t,_)},[t,d]),M=S.useCallback(function(_){v(S.createElement(o,{slice:t,axis:r}),_,"right"),s(t),f&&f(t,_)},[r,f,s,v,t,o]),R=S.useCallback(function(_){var O=_.touches[0],k=document.elementFromPoint(O.clientX,O.clientY),A=k==null?void 0:k.getAttribute("data-ref");if(A){var j=n.find(function(H){return H.id===A});j&&(v(S.createElement(o,{slice:j,axis:r}),_,"right"),s(j))}h&&h(t,_)},[r,h,s,v,t,n,o]),E=S.useCallback(function(_){b(),s(null),m&&m(t,_)},[b,s,m,t]);return p.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:y,onMouseMove:C,onMouseLeave:$,onClick:w,onTouchStart:M,onTouchMove:R,onTouchEnd:E,"data-ref":t.id})}),$2e=S.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,a=e.current,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,m=e.onTouchEnd;return t.map(function(g){return p.jsx(S2e,{slice:g,slices:t,axis:n,debug:r,height:i,tooltip:o,setCurrent:s,isCurrent:a!==null&&a.id===g.id,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:m},g.id)})}),M2e=S.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,l=Zt(),c=hie(a),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:o?c(d):null}});return p.jsx("g",{children:u.map(function(d){return p.jsx(uie,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:l},d.id)})})}),_2e=S.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,m=e.debug,g=e.enableTouchCrosshair,v=ci(),b=v.showTooltipAt,y=v.hideTooltip,C=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),a&&a(O,k)},[b,h,a,i]),$=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),s&&s(O,k)},[b,h,i.left,i.top,s]),w=S.useCallback(function(O,k){y(),l&&l(O,k)},[y,l]),M=S.useCallback(function(O,k){c&&c(O,k)},[c]),R=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),u&&u(O,k)},[i.left,i.top,u,b,h]),E=S.useCallback(function(O,k){b(S.createElement(h,{point:O}),[O.x+i.left,O.y+i.top],"top"),d&&d(O,k)},[i.left,i.top,d,b,h]),_=S.useCallback(function(O,k){y(),f&&f(O,k)},[f,y]);return p.jsx(G$,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:C,onMouseMove:$,onMouseLeave:w,onClick:M,onTouchStart:R,onTouchMove:E,onTouchEnd:_,enableTouchCrosshair:g,debug:m})}),E2e=l$(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,o=e.yScale,a=o===void 0?{type:"linear",min:0,max:"auto"}:o,s=e.yFormat,l=e.layers,c=l===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:l,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,m=e.colors,g=m===void 0?{scheme:"nivo"}:m,v=e.margin,b=e.width,y=e.height,C=e.axisTop,$=e.axisRight,w=e.axisBottom,M=w===void 0?{}:w,R=e.axisLeft,E=R===void 0?{}:R,_=e.enableGridX,O=_===void 0||_,k=e.enableGridY,A=k===void 0||k,j=e.gridXValues,H=e.gridYValues,T=e.lineWidth,P=T===void 0?2:T,V=e.enableArea,I=V!==void 0&&V,L=e.areaOpacity,N=L===void 0?.2:L,z=e.areaBlendMode,q=z===void 0?"normal":z,G=e.enablePoints,Y=G===void 0||G,ee=e.pointSymbol,Q=e.pointSize,K=Q===void 0?6:Q,J=e.pointColor,W=J===void 0?{from:"color"}:J,Z=e.pointBorderWidth,U=Z===void 0?0:Z,F=e.pointBorderColor,re=F===void 0?{theme:"background"}:F,B=e.enablePointLabel,ie=B!==void 0&&B,oe=e.pointLabel,ve=oe===void 0?"data.yFormatted":oe,xe=e.pointLabelYOffset,pe=e.defs,ye=pe===void 0?[]:pe,Se=e.fill,me=Se===void 0?[]:Se,ge=e.markers,ce=e.legends,$e=ce===void 0?[]:ce,he=e.isInteractive,Ae=he===void 0||he,Ie=e.useMesh,Re=Ie!==void 0&&Ie,ke=e.debugMesh,Ye=ke!==void 0&&ke,Xe=e.onMouseEnter,Fe=e.onMouseMove,je=e.onMouseLeave,Qe=e.onClick,Ze=e.onTouchStart,qe=e.onTouchMove,de=e.onTouchEnd,Ee=e.tooltip,Ke=Ee===void 0?jm:Ee,nt=e.enableSlices,Ne=nt!==void 0&&nt,ze=e.debugSlices,De=ze!==void 0&&ze,Je=e.sliceTooltip,tt=Je===void 0?SM:Je,Be=e.enableCrosshair,Pe=Be===void 0||Be,ct=e.crosshairType,pt=ct===void 0?"bottom-left":ct,He=e.enableTouchCrosshair,fe=He!==void 0&&He,we=e.role,Oe=we===void 0?"img":we,Ge=Za(b,y,v),We=Ge.margin,rt=Ge.innerWidth,X=Ge.innerHeight,ae=Ge.outerWidth,se=Ge.outerHeight,Ve=MM({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:rt,height:X,colors:g,curve:d,areaBaselineValue:h,pointColor:W,pointBorderColor:re,enableSlices:Ne}),it=Ve.legendData,at=Ve.toggleSerie,st=Ve.lineGenerator,ft=Ve.areaGenerator,be=Ve.series,Ce=Ve.xScale,Te=Ve.yScale,ot=Ve.slices,vt=Ve.points,Ct=Zt(),ht=Hr(W,Ct),Ot=Hr(re,Ct),rn=S.useState(null),It=rn[0],fn=rn[1],lr=S.useState(null),Nt=lr[0],Rn=lr[1],lt={grid:p.jsx(B$,{theme:Ct,width:rt,height:X,xScale:O?Ce:null,yScale:A?Te:null,xValues:j,yValues:H},"grid"),markers:p.jsx(s$,{markers:ge,width:rt,height:X,xScale:Ce,yScale:Te,theme:Ct},"markers"),axes:p.jsx(z$,{xScale:Ce,yScale:Te,width:rt,height:X,theme:Ct,top:C,right:$,bottom:M,left:E},"axes"),areas:null,lines:p.jsx(w2e,{lines:be,lineGenerator:st,lineWidth:P},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:$e.map(function(cn,hn){return p.jsx(If,hr({},cn,{containerWidth:rt,containerHeight:X,data:cn.data||it,theme:Ct,toggleSerie:cn.toggleSerie?at:void 0}),"legend."+hn)})},_n=$m(ye,be,me);return I&&(lt.areas=p.jsx(x2e,{areaGenerator:ft,areaOpacity:N,areaBlendMode:q,lines:be},"areas")),Ae&&Ne!==!1&&(lt.slices=p.jsx($2e,{slices:ot,axis:Ne,debug:De,height:X,tooltip:tt,current:Nt,setCurrent:Rn,onMouseEnter:Xe,onMouseMove:Fe,onMouseLeave:je,onClick:Qe,onTouchStart:Ze,onTouchMove:qe,onTouchEnd:de},"slices")),Y&&(lt.points=p.jsx(M2e,{points:vt,symbol:ee,size:K,color:ht,borderWidth:U,borderColor:Ot,enableLabel:ie,label:ve,labelYOffset:xe},"points")),Ae&&Pe&&(It!==null&&(lt.crosshair=p.jsx(gh,{width:rt,height:X,x:It.x,y:It.y,type:pt},"crosshair")),Nt!==null&&(lt.crosshair=p.jsx(gh,{width:rt,height:X,x:Nt.x,y:Nt.y,type:Ne},"crosshair"))),Ae&&Re&&Ne===!1&&(lt.mesh=p.jsx(_2e,{points:vt,width:rt,height:X,margin:We,current:It,setCurrent:fn,onMouseEnter:Xe,onMouseMove:Fe,onMouseLeave:je,onClick:Qe,onTouchStart:Ze,onTouchMove:qe,onTouchEnd:de,tooltip:Ke,enableTouchCrosshair:fe,debug:Ye},"mesh")),p.jsx(Sl,{defs:_n,width:ae,height:se,margin:We,role:Oe,children:c.map(function(cn,hn){return typeof cn=="function"?p.jsx(S.Fragment,{children:cn(hr({},e,{innerWidth:rt,innerHeight:X,series:be,slices:ot,points:vt,xScale:Ce,yScale:Te,lineGenerator:st,areaGenerator:ft,currentPoint:It,setCurrentPoint:fn,currentSlice:Nt,setCurrentSlice:Rn}))},hn):lt[cn]})})}),H2e=function(e){return p.jsx(Go,{children:function(t){var n=t.width,r=t.height;return p.jsx(E2e,hr({width:n,height:r},e))}})},O2e=l$(function(e){var t=S.useRef(null),n=e.width,r=e.height,i=e.margin,o=e.pixelRatio,a=o===void 0?typeof window<"u"&&window.devicePixelRatio||1:o,s=e.data,l=e.xScale,c=l===void 0?{type:"point"}:l,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,m=e.curve,g=m===void 0?"linear":m,v=e.layers,b=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,y=e.colors,C=y===void 0?{scheme:"nivo"}:y,$=e.lineWidth,w=$===void 0?2:$,M=e.enableArea,R=M!==void 0&&M,E=e.areaBaselineValue,_=E===void 0?0:E,O=e.areaOpacity,k=O===void 0?.2:O,A=e.enablePoints,j=A===void 0||A,H=e.pointSize,T=H===void 0?6:H,P=e.pointColor,V=P===void 0?{from:"color"}:P,I=e.pointBorderWidth,L=I===void 0?0:I,N=e.pointBorderColor,z=N===void 0?{theme:"background"}:N,q=e.enableGridX,G=q===void 0||q,Y=e.gridXValues,ee=e.enableGridY,Q=ee===void 0||ee,K=e.gridYValues,J=e.axisTop,W=e.axisRight,Z=e.axisBottom,U=Z===void 0?{}:Z,F=e.axisLeft,re=F===void 0?{}:F,B=e.legends,ie=B===void 0?[]:B,oe=e.isInteractive,ve=oe===void 0||oe,xe=e.debugMesh,pe=xe!==void 0&&xe,ye=e.onMouseLeave,Se=e.onClick,me=e.tooltip,ge=me===void 0?jm:me,ce=e.canvasRef,$e=Za(n,r,i),he=$e.margin,Ae=$e.innerWidth,Ie=$e.innerHeight,Re=$e.outerWidth,ke=$e.outerHeight,Ye=Zt(),Xe=S.useState(null),Fe=Xe[0],je=Xe[1],Qe=MM({data:s,xScale:c,xFormat:u,yScale:f,yFormat:h,width:Ae,height:Ie,colors:C,curve:g,areaBaselineValue:_,pointColor:V,pointBorderColor:z}),Ze=Qe.lineGenerator,qe=Qe.areaGenerator,de=Qe.series,Ee=Qe.xScale,Ke=Qe.yScale,nt=Qe.points,Ne=Vm({points:nt,width:Ae,height:Ie,debug:pe}),ze=Ne.delaunay,De=Ne.voronoi;S.useEffect(function(){ce&&(ce.current=t.current),t.current.width=Re*a,t.current.height=ke*a;var fe=t.current.getContext("2d");fe.scale(a,a),fe.fillStyle=Ye.background,fe.fillRect(0,0,Re,ke),fe.translate(he.left,he.top),b.forEach(function(we){if(typeof we=="function"&&we({ctx:fe,innerWidth:Ae,innerHeight:Ie,series:de,points:nt,xScale:Ee,yScale:Ke,lineWidth:w,lineGenerator:Ze,areaGenerator:qe,currentPoint:Fe,setCurrentPoint:je}),we==="grid"&&Ye.grid.line.strokeWidth>0&&(fe.lineWidth=Ye.grid.line.strokeWidth,fe.strokeStyle=Ye.grid.line.stroke,G&&Cd(fe,{width:Ae,height:Ie,scale:Ee,axis:"x",values:Y}),Q&&Cd(fe,{width:Ae,height:Ie,scale:Ke,axis:"y",values:K})),we==="axes"&&W$(fe,{xScale:Ee,yScale:Ke,width:Ae,height:Ie,top:J,right:W,bottom:U,left:re,theme:Ye}),we==="areas"&&R===!0){fe.save(),fe.globalAlpha=k,qe.context(fe);for(var Oe=de.length-1;Oe>=0;Oe--)fe.fillStyle=de[Oe].color,fe.beginPath(),qe(de[Oe].data.map(function(We){return We.position})),fe.fill();fe.restore()}if(we==="lines"&&(Ze.context(fe),de.forEach(function(We){fe.strokeStyle=We.color,fe.lineWidth=w,fe.beginPath(),Ze(We.data.map(function(rt){return rt.position})),fe.stroke()})),we==="points"&&j===!0&&T>0&&nt.forEach(function(We){fe.fillStyle=We.color,fe.beginPath(),fe.arc(We.x,We.y,T/2,0,2*Math.PI),fe.fill(),L>0&&(fe.strokeStyle=We.borderColor,fe.lineWidth=L,fe.stroke())}),we==="mesh"&&pe===!0&&(Y$(fe,De),Fe&&K$(fe,De,Fe.index)),we==="legends"){var Ge=de.map(function(We){return{id:We.id,label:We.id,color:We.color}}).reverse();ie.forEach(function(We){v$(fe,hr({},We,{data:We.data||Ge,containerWidth:Ae,containerHeight:Ie,theme:Ye}))})}})},[t,Re,ke,b,Ye,Ze,de,Ee,Ke,G,Y,Q,K,J,W,U,re,ie,nt,j,T,Fe]);var Je=S.useCallback(function(fe){var we=Sm(t.current,fe),Oe=we[0],Ge=we[1];if(!c$(he.left,he.top,Ae,Ie,Oe,Ge))return null;var We=ze.find(Oe-he.left,Ge-he.top);return nt[We]},[t,he,Ae,Ie,ze]),tt=ci(),Be=tt.showTooltipFromEvent,Pe=tt.hideTooltip,ct=S.useCallback(function(fe){var we=Je(fe);je(we),we?Be(S.createElement(ge,{point:we}),fe):Pe()},[Je,je,Be,Pe,ge]),pt=S.useCallback(function(fe){Pe(),je(null),Fe&&ye&&ye(Fe,fe)},[Pe,je,ye]),He=S.useCallback(function(fe){if(Se){var we=Je(fe);we&&Se(we,fe)}},[Je,Se]);return p.jsx("canvas",{ref:t,width:Re*a,height:ke*a,style:{width:Re,height:ke,cursor:ve?"auto":"normal"},onMouseEnter:ve?ct:void 0,onMouseMove:ve?ct:void 0,onMouseLeave:ve?pt:void 0,onClick:ve?He:void 0})}),V2e=S.forwardRef(function(e,t){return p.jsx(O2e,hr({},e,{canvasRef:t}))});S.forwardRef(function(e,t){return p.jsx(Go,{children:function(n){var r=n.width,i=n.height;return p.jsx(V2e,hr({width:r,height:i},e,{ref:t}))}})});const R2e=yt.span`
|
|
499
499
|
font: var(--gf-label-md-default);
|
|
500
500
|
color: var(--gf-color-text-secondary);
|
|
501
|
-
`,b9={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},T2e={A:"Direct hoogwaardig inzetten",B:"Indirect hoogwaardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},k2e=()=>p.jsx("div",{style:{marginTop:10,marginLeft:10,whiteSpace:"nowrap"},children:Object.keys(b9).map((e,t)=>p.jsxs(
|
|
501
|
+
`,b9={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},T2e={A:"Direct hoogwaardig inzetten",B:"Indirect hoogwaardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},k2e=()=>p.jsx("div",{style:{marginTop:10,marginLeft:10,whiteSpace:"nowrap"},children:Object.keys(b9).map((e,t)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{backgroundColor:b9[e],minWidth:22,minHeight:22,border:"1px solid gray"}}),p.jsx(R2e,{children:`${e} ${T2e[e]}`})]},`legend-${t}`))}),j2e=({trendsData:e,height:t=null,margin:n={},colors:r=null,xLeg:i,yLeg:o,tooltip:a=null})=>p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(ko,{style:{width:"100%"},children:[p.jsx(br,{span:6,children:p.jsx(k2e,{})}),p.jsx(br,{span:18,children:p.jsx("div",{style:{width:"100%",height:t||600},children:p.jsx(H2e,{data:e,margin:{top:20,right:20,bottom:60,left:90,...n},colors:r||{scheme:"nivo"},xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto",reverse:!1},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:-45,legend:i,legendOffset:50,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:o,legendOffset:-70,legendPosition:"middle"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,tooltip:s=>p.jsx(Zn,{body:(a==null?void 0:a(s))||p.jsx("span",{children:"Line tooltip"})})})})})]})]}),P2e=yt.h3`
|
|
502
502
|
color: var(--gf-color-button-primary);
|
|
503
503
|
`,L2e=({selectors:e,setter:t,style:n})=>{const r=24/e.length;return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsx(Qs,{cardtype:"default",style:{width:"100%",...n},children:p.jsx(ko,{gutter:20,children:e.map((i,o)=>p.jsxs(br,{span:r,children:[p.jsx(P2e,{children:i.title}),p.jsx(La,{defaultValue:i.defaultValue,style:{width:"100%"},onChange:a=>{t(i.key,a)},options:i.options})]},`col-${o}`))})})]})},R2=yt.span`
|
|
504
504
|
font: var(--gf-label-md-default);
|
|
505
505
|
color: var(--gf-color-text-secondary);
|
|
506
|
-
`,Xl={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},I2e={A:"Direct hoogwaardig inzetten",B:"Indirect hoogwaardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},A2e=({data:e,margin:t={},height:n=null,nodeTooltip:r=null,linkTooltip:i=null})=>{e.nodes=e.nodes.map(b=>({...b,nodeColor:Xl[b.rank]})),e.links=e.links.map(b=>({...b,startColor:Xl[b.target_rank],endColor:Xl[b.target_rank]}));const h=b=>`${b.pct>1?b.pct.toFixed(0):b.pct>.1?b.pct.toFixed(1):"<0.1"}%`,m=({node:b})=>{const y=b.sourceLinks.length?-70:30,C=b.height/2-32/2;return p.jsx("g",{transform:`translate(${b.x0+y}, ${b.y0+C})`,children:p.jsx("foreignObject",{width:60,height:32,children:p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"black",textAlign:"center",padding:"2px",border:`2px solid ${b.color}`,whiteSpace:"nowrap"},children:[p.jsx(R2,{children:p.jsx("b",{children:b.rank})}),p.jsx(R2,{children:h(b)})]})})})},g=({nodes:b})=>b.map(y=>p.jsx(m,{node:y},y.id)),v=()=>p.jsx("div",{style:{marginTop:10,marginLeft:10,whiteSpace:"nowrap"},children:Object.keys(Xl).map((b,y)=>p.jsxs(qt,{gap:8,align:"center",children:[p.jsx("div",{style:{backgroundColor:Xl[b],minWidth:22,minHeight:22,border:"1px solid gray"}}),p.jsx(R2,{children:`${b} ${I2e[b]}`})]},`legend-${y}`))});return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(ko,{style:{width:"100%"},children:[p.jsx(br,{span:8,children:p.jsx(v,{})}),p.jsx(br,{span:16,children:p.jsx("div",{style:{height:n||600,display:"flex",justifyContent:"space-between"},children:p.jsx($$,{data:e,margin:{top:20,right:100,bottom:20,left:100,...t},sort:"input",labelPosition:"outside",colors:b=>b.nodeColor,enableLinkGradient:!0,linkOpacity:.5,nodeOpacity:1,nodeBorderWidth:0,nodeThickness:20,nodeSpacing:32,nodeTooltip:({node:b})=>p.jsx(Zn,{body:(r==null?void 0:r({node:b}))||p.jsx("span",{children:"Node tooltip"})}),linkTooltip:({link:b})=>p.jsx(Zn,{body:(i==null?void 0:i({link:b}))||p.jsx("span",{children:"Link tooltip"})}),layers:["links","nodes",g]})})})]})]})},N2e=()=>p.jsxs(p.Fragment,{children:["// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M91 125.5V114.312L97 111.76V113.741L102 111.741V114.5H110V125.5H91ZM92.5 124H108.5V116H100.5V113.95L95.5 115.95V114L92.5 115.325V124ZM99.6155 121.769H101.385V118.231H99.6155V121.769ZM95.6155 121.769H97.3845V118.231H95.6155V121.769ZM103.616 121.769H105.385V118.231H103.616V121.769ZM110 114.5H105.942L106.942 106.885H109.058L110 114.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M260.354 116.354C260.549 116.158 260.549 115.842 260.354 115.646L257.172 112.464C256.976 112.269 256.66 112.269 256.464 112.464C256.269 112.66 256.269 112.976 256.464 113.172L259.293 116L256.464 118.828C256.269 119.024 256.269 119.34 256.464 119.536C256.66 119.731 256.976 119.731 257.172 119.536L260.354 116.354ZM116 116L116 116.5L260 116.5L260 116L260 115.5L116 115.5L116 116Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"106.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"106.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M190.977 118.682V120H185.141V118.875L187.9 115.916C188.178 115.607 188.396 115.336 188.557 115.102C188.717 114.863 188.832 114.65 188.902 114.463C188.977 114.271 189.014 114.09 189.014 113.918C189.014 113.66 188.971 113.439 188.885 113.256C188.799 113.068 188.672 112.924 188.504 112.822C188.34 112.721 188.137 112.67 187.895 112.67C187.637 112.67 187.414 112.732 187.227 112.857C187.043 112.982 186.902 113.156 186.805 113.379C186.711 113.602 186.664 113.854 186.664 114.135H184.971C184.971 113.627 185.092 113.162 185.334 112.74C185.576 112.314 185.918 111.977 186.359 111.727C186.801 111.473 187.324 111.346 187.93 111.346C188.527 111.346 189.031 111.443 189.441 111.639C189.855 111.83 190.168 112.107 190.379 112.471C190.594 112.83 190.701 113.26 190.701 113.76C190.701 114.041 190.656 114.316 190.566 114.586C190.477 114.852 190.348 115.117 190.18 115.383C190.016 115.645 189.816 115.91 189.582 116.18C189.348 116.449 189.088 116.729 188.803 117.018L187.32 118.682H190.977Z",fill:"#475467"}),"// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M276 115.692C275.037 115.692 274.214 115.35 273.528 114.664C272.843 113.979 272.5 113.155 272.5 112.192C272.5 111.23 272.843 110.406 273.528 109.72C274.214 109.035 275.037 108.692 276 108.692C276.963 108.692 277.786 109.035 278.472 109.72C279.157 110.406 279.5 111.23 279.5 112.192C279.5 113.155 279.157 113.979 278.472 114.664C277.786 115.35 276.963 115.692 276 115.692ZM268.5 123.308V121.084C268.5 120.595 268.633 120.141 268.899 119.724C269.165 119.307 269.52 118.986 269.965 118.761C270.954 118.277 271.951 117.914 272.957 117.671C273.963 117.429 274.977 117.308 276 117.308C277.023 117.308 278.037 117.429 279.043 117.671C280.049 117.914 281.046 118.277 282.035 118.761C282.48 118.986 282.835 119.307 283.101 119.724C283.367 120.141 283.5 120.595 283.5 121.084V123.308H268.5ZM270 121.808H282V121.084C282 120.882 281.941 120.694 281.824 120.522C281.707 120.35 281.547 120.209 281.346 120.1C280.485 119.676 279.606 119.354 278.711 119.135C277.815 118.917 276.912 118.808 276 118.808C275.088 118.808 274.185 118.917 273.289 119.135C272.394 119.354 271.515 119.676 270.654 120.1C270.453 120.209 270.293 120.35 270.176 120.522C270.059 120.694 270 120.882 270 121.084V121.808ZM276 114.192C276.55 114.192 277.021 113.996 277.413 113.605C277.804 113.213 278 112.742 278 112.192C278 111.642 277.804 111.171 277.413 110.78C277.021 110.388 276.55 110.192 276 110.192C275.45 110.192 274.979 110.388 274.588 110.78C274.196 111.171 274 111.642 274 112.192C274 112.742 274.196 113.213 274.588 113.605C274.979 113.996 275.45 114.192 276 114.192Z",fill:"#475467"})," "]}),F2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172.354 394.354C172.549 394.158 172.549 393.842 172.354 393.646L169.172 390.464C168.976 390.269 168.66 390.269 168.464 390.464C168.269 390.66 168.269 390.976 168.464 391.172L171.293 394L168.464 396.828C168.269 397.024 168.269 397.34 168.464 397.536C168.66 397.731 168.976 397.731 169.172 397.536L172.354 394.354ZM44 394L44 394.5L172 394.5L172 394L172 393.5L44 393.5L44 394Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"384.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"384.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M102.889 395.662C102.889 396.197 102.764 396.648 102.514 397.016C102.264 397.379 101.92 397.654 101.482 397.842C101.049 398.025 100.557 398.117 100.006 398.117C99.4551 398.117 98.9609 398.025 98.5234 397.842C98.0859 397.654 97.7402 397.379 97.4863 397.016C97.2324 396.648 97.1055 396.197 97.1055 395.662C97.1055 395.303 97.1777 394.979 97.3223 394.689C97.4668 394.396 97.668 394.146 97.9258 393.939C98.1875 393.729 98.4941 393.568 98.8457 393.459C99.1973 393.346 99.5801 393.289 99.9941 393.289C100.549 393.289 101.045 393.387 101.482 393.582C101.92 393.777 102.264 394.053 102.514 394.408C102.764 394.764 102.889 395.182 102.889 395.662ZM101.189 395.551C101.189 395.289 101.139 395.064 101.037 394.877C100.939 394.686 100.801 394.539 100.621 394.438C100.441 394.336 100.232 394.285 99.9941 394.285C99.7559 394.285 99.5469 394.336 99.3672 394.438C99.1875 394.539 99.0469 394.686 98.9453 394.877C98.8477 395.064 98.7988 395.289 98.7988 395.551C98.7988 395.809 98.8477 396.031 98.9453 396.219C99.0469 396.406 99.1875 396.551 99.3672 396.652C99.5508 396.75 99.7637 396.799 100.006 396.799C100.248 396.799 100.457 396.75 100.633 396.652C100.812 396.551 100.949 396.406 101.043 396.219C101.141 396.031 101.189 395.809 101.189 395.551ZM102.707 391.73C102.707 392.164 102.592 392.549 102.361 392.885C102.131 393.217 101.811 393.477 101.4 393.664C100.994 393.852 100.529 393.945 100.006 393.945C99.4785 393.945 99.0098 393.852 98.5996 393.664C98.1895 393.477 97.8691 393.217 97.6387 392.885C97.4082 392.549 97.293 392.164 97.293 391.73C97.293 391.215 97.4082 390.781 97.6387 390.43C97.873 390.074 98.1934 389.805 98.5996 389.621C99.0098 389.438 99.4746 389.346 99.9941 389.346C100.521 389.346 100.988 389.438 101.395 389.621C101.805 389.805 102.125 390.074 102.355 390.43C102.59 390.781 102.707 391.215 102.707 391.73ZM101.02 391.807C101.02 391.576 100.979 391.377 100.896 391.209C100.814 391.037 100.697 390.904 100.545 390.811C100.396 390.717 100.213 390.67 99.9941 390.67C99.7832 390.67 99.6016 390.715 99.4492 390.805C99.3008 390.895 99.1855 391.025 99.1035 391.197C99.0254 391.365 98.9863 391.568 98.9863 391.807C98.9863 392.037 99.0254 392.24 99.1035 392.416C99.1855 392.588 99.3027 392.723 99.4551 392.82C99.6074 392.918 99.791 392.967 100.006 392.967C100.221 392.967 100.402 392.918 100.551 392.82C100.703 392.723 100.818 392.588 100.896 392.416C100.979 392.24 101.02 392.037 101.02 391.807Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M181.844 401.558C181.064 401.558 180.401 401.285 179.856 400.739C179.311 400.193 179.039 399.53 179.039 398.75H177.347V388.308C177.347 387.803 177.522 387.375 177.872 387.025C178.222 386.675 178.649 386.5 179.154 386.5H192.77V390.308H195.423L198.654 394.635V398.75H196.847C196.847 399.53 196.573 400.193 196.027 400.739C195.481 401.285 194.817 401.558 194.037 401.558C193.256 401.558 192.593 401.285 192.048 400.739C191.504 400.193 191.231 399.53 191.231 398.75H184.654C184.654 399.532 184.381 400.195 183.835 400.74C183.288 401.285 182.625 401.558 181.844 401.558ZM181.847 400.058C182.213 400.058 182.523 399.931 182.775 399.679C183.028 399.426 183.154 399.117 183.154 398.75C183.154 398.383 183.028 398.074 182.775 397.821C182.523 397.569 182.213 397.442 181.847 397.442C181.48 397.442 181.17 397.569 180.918 397.821C180.665 398.074 180.539 398.383 180.539 398.75C180.539 399.117 180.665 399.426 180.918 399.679C181.17 399.931 181.48 400.058 181.847 400.058ZM178.847 397.25H179.57C179.783 396.88 180.09 396.569 180.492 396.318C180.894 396.068 181.345 395.942 181.847 395.942C182.335 395.942 182.783 396.066 183.192 396.314C183.6 396.561 183.911 396.873 184.123 397.25H191.27V388H179.154C179.077 388 179.007 388.032 178.943 388.096C178.879 388.16 178.847 388.231 178.847 388.308V397.25ZM194.039 400.058C194.406 400.058 194.715 399.931 194.968 399.679C195.22 399.426 195.347 399.117 195.347 398.75C195.347 398.383 195.22 398.074 194.968 397.821C194.715 397.569 194.406 397.442 194.039 397.442C193.672 397.442 193.363 397.569 193.11 397.821C192.857 398.074 192.731 398.383 192.731 398.75C192.731 399.117 192.857 399.426 193.11 399.679C193.363 399.931 193.672 400.058 194.039 400.058ZM192.77 395.25H197.25L194.654 391.808H192.77V395.25Z",fill:"#475467"})," "]}),D2e=()=>p.jsxs(p.Fragment,{children:["// icon-elft",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 483.5V472.312L185 469.76V471.741L190 469.741V472.5H198V483.5H179ZM180.5 482H196.5V474H188.5V471.95L183.5 473.95V472L180.5 473.325V482ZM187.616 479.769H189.385V476.231H187.616V479.769ZM183.615 479.769H185.385V476.231H183.615V479.769ZM191.616 479.769H193.385V476.231H191.616V479.769ZM198 472.5H193.942L194.942 464.885H197.058L198 472.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 474.354C332.549 474.158 332.549 473.842 332.354 473.646L329.172 470.464C328.976 470.269 328.66 470.269 328.464 470.464C328.269 470.66 328.269 470.976 328.464 471.172L331.293 474L328.464 476.828C328.269 477.024 328.269 477.34 328.464 477.536C328.66 477.731 328.976 477.731 329.172 477.536L332.354 474.354ZM204 474L204 474.5L332 474.5L332 474L332 473.5L204 473.5L204 474Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"464.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"464.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M276.809 469.451V478H275.121V471.396L273.094 472.041V470.711L276.627 469.451H276.809ZM285.328 472.984V474.461C285.328 475.102 285.26 475.654 285.123 476.119C284.986 476.58 284.789 476.959 284.531 477.256C284.277 477.549 283.975 477.766 283.623 477.906C283.271 478.047 282.881 478.117 282.451 478.117C282.107 478.117 281.787 478.074 281.49 477.988C281.193 477.898 280.926 477.76 280.688 477.572C280.453 477.385 280.25 477.148 280.078 476.863C279.91 476.574 279.781 476.23 279.691 475.832C279.602 475.434 279.557 474.977 279.557 474.461V472.984C279.557 472.344 279.625 471.795 279.762 471.338C279.902 470.877 280.1 470.5 280.354 470.207C280.611 469.914 280.916 469.699 281.268 469.562C281.619 469.422 282.01 469.352 282.439 469.352C282.783 469.352 283.102 469.396 283.395 469.486C283.691 469.572 283.959 469.707 284.197 469.891C284.436 470.074 284.639 470.311 284.807 470.6C284.975 470.885 285.104 471.227 285.193 471.625C285.283 472.02 285.328 472.473 285.328 472.984ZM283.635 474.684V472.756C283.635 472.447 283.617 472.178 283.582 471.947C283.551 471.717 283.502 471.521 283.436 471.361C283.369 471.197 283.287 471.064 283.189 470.963C283.092 470.861 282.98 470.787 282.855 470.74C282.73 470.693 282.592 470.67 282.439 470.67C282.248 470.67 282.078 470.707 281.93 470.781C281.785 470.855 281.662 470.975 281.561 471.139C281.459 471.299 281.381 471.514 281.326 471.783C281.275 472.049 281.25 472.373 281.25 472.756V474.684C281.25 474.992 281.266 475.264 281.297 475.498C281.332 475.732 281.383 475.934 281.449 476.102C281.52 476.266 281.602 476.4 281.695 476.506C281.793 476.607 281.904 476.682 282.029 476.729C282.158 476.775 282.299 476.799 282.451 476.799C282.639 476.799 282.805 476.762 282.949 476.688C283.098 476.609 283.223 476.488 283.324 476.324C283.43 476.156 283.508 475.938 283.559 475.668C283.609 475.398 283.635 475.07 283.635 474.684Z",fill:"#475467"})]}),z2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M104 433.692C103.037 433.692 102.214 433.35 101.528 432.664C100.843 431.979 100.5 431.155 100.5 430.192C100.5 429.23 100.843 428.406 101.528 427.721C102.214 427.035 103.037 426.692 104 426.692C104.963 426.692 105.786 427.035 106.472 427.721C107.157 428.406 107.5 429.23 107.5 430.192C107.5 431.155 107.157 431.979 106.472 432.664C105.786 433.35 104.963 433.692 104 433.692ZM96.5 441.308V439.085C96.5 438.595 96.633 438.141 96.899 437.724C97.165 437.307 97.5205 436.986 97.9655 436.762C98.9538 436.277 99.9509 435.914 100.957 435.671C101.963 435.429 102.977 435.308 104 435.308C105.023 435.308 106.037 435.429 107.043 435.671C108.049 435.914 109.046 436.277 110.035 436.762C110.48 436.986 110.835 437.307 111.101 437.724C111.367 438.141 111.5 438.595 111.5 439.085V441.308H96.5ZM98 439.808H110V439.085C110 438.882 109.941 438.695 109.824 438.522C109.707 438.35 109.547 438.209 109.346 438.1C108.485 437.676 107.606 437.354 106.711 437.136C105.815 436.917 104.912 436.808 104 436.808C103.088 436.808 102.185 436.917 101.289 437.136C100.394 437.354 99.5154 437.676 98.6537 438.1C98.4526 438.209 98.2933 438.35 98.176 438.522C98.0587 438.695 98 438.882 98 439.085V439.808ZM104 432.192C104.55 432.192 105.021 431.996 105.413 431.605C105.804 431.213 106 430.742 106 430.192C106 429.642 105.804 429.171 105.413 428.78C105.021 428.388 104.55 428.192 104 428.192C103.45 428.192 102.979 428.388 102.588 428.78C102.196 429.171 102 429.642 102 430.192C102 430.742 102.196 431.213 102.588 431.605C102.979 431.996 103.45 432.192 104 432.192Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M264.354 434.354C264.549 434.158 264.549 433.842 264.354 433.646L261.172 430.464C260.976 430.269 260.66 430.269 260.464 430.464C260.269 430.66 260.269 430.976 260.464 431.172L263.293 434L260.464 436.828C260.269 437.024 260.269 437.34 260.464 437.536C260.66 437.731 260.976 437.731 261.172 437.536L264.354 434.354ZM120 434L120 434.5L264 434.5L264 434L264 433.5L120 433.5L120 434Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"424.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"424.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M186.336 436.717H186.447C186.916 436.717 187.318 436.66 187.654 436.547C187.994 436.43 188.273 436.262 188.492 436.043C188.711 435.824 188.873 435.557 188.979 435.24C189.084 434.92 189.137 434.557 189.137 434.15V432.533C189.137 432.225 189.105 431.953 189.043 431.719C188.984 431.484 188.898 431.291 188.785 431.139C188.676 430.982 188.547 430.865 188.398 430.787C188.254 430.709 188.094 430.67 187.918 430.67C187.73 430.67 187.564 430.717 187.42 430.811C187.275 430.9 187.152 431.023 187.051 431.18C186.953 431.336 186.877 431.516 186.822 431.719C186.771 431.918 186.746 432.127 186.746 432.346C186.746 432.564 186.771 432.773 186.822 432.973C186.873 433.168 186.949 433.342 187.051 433.494C187.152 433.643 187.279 433.762 187.432 433.852C187.584 433.938 187.764 433.98 187.971 433.98C188.17 433.98 188.348 433.943 188.504 433.869C188.664 433.791 188.799 433.689 188.908 433.564C189.021 433.439 189.107 433.301 189.166 433.148C189.229 432.996 189.26 432.842 189.26 432.686L189.816 432.99C189.816 433.264 189.758 433.533 189.641 433.799C189.523 434.064 189.359 434.307 189.148 434.525C188.941 434.74 188.701 434.912 188.428 435.041C188.154 435.17 187.861 435.234 187.549 435.234C187.15 435.234 186.797 435.162 186.488 435.018C186.18 434.869 185.918 434.666 185.703 434.408C185.492 434.146 185.332 433.842 185.223 433.494C185.113 433.146 185.059 432.77 185.059 432.363C185.059 431.949 185.125 431.561 185.258 431.197C185.395 430.834 185.588 430.514 185.838 430.236C186.092 429.959 186.395 429.742 186.746 429.586C187.102 429.426 187.496 429.346 187.93 429.346C188.363 429.346 188.758 429.43 189.113 429.598C189.469 429.766 189.773 430.004 190.027 430.312C190.281 430.617 190.477 430.982 190.613 431.408C190.754 431.834 190.824 432.307 190.824 432.826V433.412C190.824 433.967 190.764 434.482 190.643 434.959C190.525 435.436 190.348 435.867 190.109 436.254C189.875 436.637 189.582 436.965 189.23 437.238C188.883 437.512 188.479 437.721 188.018 437.865C187.557 438.01 187.041 438.082 186.471 438.082H186.336V436.717Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M273.844 441.558C273.064 441.558 272.401 441.285 271.856 440.739C271.311 440.193 271.039 439.53 271.039 438.75H269.347V428.308C269.347 427.803 269.522 427.375 269.872 427.025C270.222 426.675 270.649 426.5 271.154 426.5H284.77V430.308H287.423L290.654 434.635V438.75H288.847C288.847 439.53 288.573 440.193 288.027 440.739C287.481 441.285 286.817 441.558 286.037 441.558C285.256 441.558 284.593 441.285 284.048 440.739C283.504 440.193 283.231 439.53 283.231 438.75H276.654C276.654 439.532 276.381 440.195 275.835 440.74C275.288 441.285 274.625 441.558 273.844 441.558ZM273.847 440.058C274.213 440.058 274.523 439.931 274.775 439.679C275.028 439.426 275.154 439.117 275.154 438.75C275.154 438.383 275.028 438.074 274.775 437.821C274.523 437.569 274.213 437.442 273.847 437.442C273.48 437.442 273.17 437.569 272.918 437.821C272.665 438.074 272.539 438.383 272.539 438.75C272.539 439.117 272.665 439.426 272.918 439.679C273.17 439.931 273.48 440.058 273.847 440.058ZM270.847 437.25H271.57C271.783 436.88 272.09 436.569 272.492 436.318C272.894 436.068 273.345 435.942 273.847 435.942C274.335 435.942 274.783 436.066 275.192 436.314C275.6 436.561 275.911 436.873 276.123 437.25H283.27V428H271.154C271.077 428 271.007 428.032 270.943 428.096C270.879 428.16 270.847 428.231 270.847 428.308V437.25ZM286.039 440.058C286.406 440.058 286.715 439.931 286.968 439.679C287.22 439.426 287.347 439.117 287.347 438.75C287.347 438.383 287.22 438.074 286.968 437.821C286.715 437.569 286.406 437.442 286.039 437.442C285.672 437.442 285.363 437.569 285.11 437.821C284.857 438.074 284.731 438.383 284.731 438.75C284.731 439.117 284.857 439.426 285.11 439.679C285.363 439.931 285.672 440.058 286.039 440.058ZM284.77 435.25H289.25L286.654 431.808H284.77V435.25Z",fill:"#475467"}),"// arrow-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 434.354C332.549 434.158 332.549 433.842 332.354 433.646L329.172 430.464C328.976 430.269 328.66 430.269 328.464 430.464C328.269 430.66 328.269 430.976 328.464 431.172L331.293 434L328.464 436.828C328.269 437.024 328.269 437.34 328.464 437.536C328.66 437.731 328.976 437.731 329.172 437.536L332.354 434.354ZM296 434L296 434.5L297.8 434.5L297.8 434L297.8 433.5L296 433.5L296 434ZM301.4 434L301.4 434.5L305 434.5L305 434L305 433.5L301.4 433.5L301.4 434ZM308.6 434L308.6 434.5L312.2 434.5L312.2 434L312.2 433.5L308.6 433.5L308.6 434ZM315.8 434L315.8 434.5L319.4 434.5L319.4 434L319.4 433.5L315.8 433.5L315.8 434ZM323 434L323 434.5L326.6 434.5L326.6 434L326.6 433.5L323 433.5L323 434ZM330.2 434L330.2 434.5L332 434.5L332 434L332 433.5L330.2 433.5L330.2 434Z",fill:"#475467"})," "]}),B2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M156.354 156.354C156.549 156.158 156.549 155.842 156.354 155.646L153.172 152.464C152.976 152.269 152.66 152.269 152.464 152.464C152.269 152.66 152.269 152.976 152.464 153.172L155.293 156L152.464 158.828C152.269 159.024 152.269 159.34 152.464 159.536C152.66 159.731 152.976 159.731 153.172 159.536L156.354 156.354ZM44 156L44 156.5L156 156.5L156 156L156 155.5L44 155.5L44 156Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"146.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"146.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M98.8691 155.002H99.7715C100.061 155.002 100.299 154.953 100.486 154.855C100.674 154.754 100.812 154.613 100.902 154.434C100.996 154.25 101.043 154.037 101.043 153.795C101.043 153.576 101 153.383 100.914 153.215C100.832 153.043 100.705 152.91 100.533 152.816C100.361 152.719 100.145 152.67 99.8828 152.67C99.6758 152.67 99.4844 152.711 99.3086 152.793C99.1328 152.875 98.9922 152.99 98.8867 153.139C98.7812 153.287 98.7285 153.467 98.7285 153.678H97.0352C97.0352 153.209 97.1602 152.801 97.4102 152.453C97.6641 152.105 98.0039 151.834 98.4297 151.639C98.8555 151.443 99.3242 151.346 99.8359 151.346C100.414 151.346 100.92 151.439 101.354 151.627C101.787 151.811 102.125 152.082 102.367 152.441C102.609 152.801 102.73 153.246 102.73 153.777C102.73 154.047 102.668 154.309 102.543 154.562C102.418 154.812 102.238 155.039 102.004 155.242C101.773 155.441 101.492 155.602 101.16 155.723C100.828 155.84 100.455 155.898 100.041 155.898H98.8691V155.002ZM98.8691 156.285V155.412H100.041C100.506 155.412 100.914 155.465 101.266 155.57C101.617 155.676 101.912 155.828 102.15 156.027C102.389 156.223 102.568 156.455 102.689 156.725C102.811 156.99 102.871 157.285 102.871 157.609C102.871 158.008 102.795 158.363 102.643 158.676C102.49 158.984 102.275 159.246 101.998 159.461C101.725 159.676 101.404 159.84 101.037 159.953C100.67 160.062 100.27 160.117 99.8359 160.117C99.4766 160.117 99.123 160.068 98.7754 159.971C98.4316 159.869 98.1191 159.719 97.8379 159.52C97.5605 159.316 97.3379 159.062 97.1699 158.758C97.0059 158.449 96.9238 158.084 96.9238 157.662H98.6172C98.6172 157.881 98.6719 158.076 98.7812 158.248C98.8906 158.42 99.041 158.555 99.2324 158.652C99.4277 158.75 99.6445 158.799 99.8828 158.799C100.152 158.799 100.383 158.75 100.574 158.652C100.77 158.551 100.918 158.41 101.02 158.23C101.125 158.047 101.178 157.834 101.178 157.592C101.178 157.279 101.121 157.029 101.008 156.842C100.895 156.65 100.732 156.51 100.521 156.42C100.311 156.33 100.061 156.285 99.7715 156.285H98.8691Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172 155.692C171.037 155.692 170.214 155.35 169.528 154.664C168.843 153.979 168.5 153.155 168.5 152.192C168.5 151.23 168.843 150.406 169.528 149.72C170.214 149.035 171.037 148.692 172 148.692C172.963 148.692 173.786 149.035 174.472 149.72C175.157 150.406 175.5 151.23 175.5 152.192C175.5 153.155 175.157 153.979 174.472 154.664C173.786 155.35 172.963 155.692 172 155.692ZM164.5 163.308V161.084C164.5 160.595 164.633 160.141 164.899 159.724C165.165 159.307 165.52 158.986 165.965 158.761C166.954 158.277 167.951 157.914 168.957 157.671C169.963 157.429 170.977 157.308 172 157.308C173.023 157.308 174.037 157.429 175.043 157.671C176.049 157.914 177.046 158.277 178.035 158.761C178.48 158.986 178.835 159.307 179.101 159.724C179.367 160.141 179.5 160.595 179.5 161.084V163.308H164.5ZM166 161.808H178V161.084C178 160.882 177.941 160.695 177.824 160.522C177.707 160.35 177.547 160.209 177.346 160.1C176.485 159.676 175.606 159.354 174.711 159.136C173.815 158.917 172.912 158.808 172 158.808C171.088 158.808 170.185 158.917 169.289 159.136C168.394 159.354 167.515 159.676 166.654 160.1C166.453 160.209 166.293 160.35 166.176 160.522C166.059 160.695 166 160.882 166 161.084V161.808ZM172 154.192C172.55 154.192 173.021 153.996 173.413 153.605C173.804 153.213 174 152.742 174 152.192C174 151.642 173.804 151.171 173.413 150.78C173.021 150.388 172.55 150.192 172 150.192C171.45 150.192 170.979 150.388 170.588 150.78C170.196 151.171 170 151.642 170 152.192C170 152.742 170.196 153.213 170.588 153.605C170.979 153.996 171.45 154.192 172 154.192Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M192.574 151.469L189.445 160.732H188.191L191.32 151.469H192.574Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M200 165.5V154.312L206 151.76V153.741L211 151.741V154.5H219V165.5H200ZM201.5 164H217.5V156H209.5V153.95L204.5 155.95V154L201.5 155.325V164ZM208.616 161.769H210.385V158.231H208.616V161.769ZM204.615 161.769H206.385V158.231H204.615V161.769ZM212.616 161.769H214.385V158.231H212.616V161.769ZM219 154.5H214.942L215.942 146.885H218.058L219 154.5Z",fill:"#475467"})," "]}),W2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M156.354 196.354C156.549 196.158 156.549 195.842 156.354 195.646L153.172 192.464C152.976 192.269 152.66 192.269 152.464 192.464C152.269 192.66 152.269 192.976 152.464 193.172L155.293 196L152.464 198.828C152.269 199.024 152.269 199.34 152.464 199.536C152.66 199.731 152.976 199.731 153.172 199.536L156.354 196.354ZM8 196L8 196.5L156 196.5L156 196L156 195.5L8 195.5L8 196Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"186.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"186.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M103.117 196.812V198.137H96.9707L96.8887 197.111L100.445 191.469H101.787L100.334 193.9L98.5645 196.812H103.117ZM102.15 191.469V200H100.463V191.469H102.15Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172 195.692C171.037 195.692 170.214 195.35 169.528 194.664C168.843 193.979 168.5 193.155 168.5 192.192C168.5 191.23 168.843 190.406 169.528 189.72C170.214 189.035 171.037 188.692 172 188.692C172.963 188.692 173.786 189.035 174.472 189.72C175.157 190.406 175.5 191.23 175.5 192.192C175.5 193.155 175.157 193.979 174.472 194.664C173.786 195.35 172.963 195.692 172 195.692ZM164.5 203.308V201.084C164.5 200.595 164.633 200.141 164.899 199.724C165.165 199.307 165.52 198.986 165.965 198.761C166.954 198.277 167.951 197.914 168.957 197.671C169.963 197.429 170.977 197.308 172 197.308C173.023 197.308 174.037 197.429 175.043 197.671C176.049 197.914 177.046 198.277 178.035 198.761C178.48 198.986 178.835 199.307 179.101 199.724C179.367 200.141 179.5 200.595 179.5 201.084V203.308H164.5ZM166 201.808H178V201.084C178 200.882 177.941 200.694 177.824 200.522C177.707 200.35 177.547 200.209 177.346 200.1C176.485 199.676 175.606 199.354 174.711 199.135C173.815 198.917 172.912 198.808 172 198.808C171.088 198.808 170.185 198.917 169.289 199.135C168.394 199.354 167.515 199.676 166.654 200.1C166.453 200.209 166.293 200.35 166.176 200.522C166.059 200.694 166 200.882 166 201.084V201.808ZM172 194.192C172.55 194.192 173.021 193.996 173.413 193.605C173.804 193.213 174 192.742 174 192.192C174 191.642 173.804 191.171 173.413 190.78C173.021 190.388 172.55 190.192 172 190.192C171.45 190.192 170.979 190.388 170.588 190.78C170.196 191.171 170 191.642 170 192.192C170 192.742 170.196 193.213 170.588 193.605C170.979 193.996 171.45 194.192 172 194.192Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M192.574 191.469L189.445 200.732H188.191L191.32 191.469H192.574Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M200 205.5V194.312L206 191.76V193.741L211 191.741V194.5H219V205.5H200ZM201.5 204H217.5V196H209.5V193.95L204.5 195.95V194L201.5 195.325V204ZM208.616 201.769H210.385V198.231H208.616V201.769ZM204.615 201.769H206.385V198.231H204.615V201.769ZM212.616 201.769H214.385V198.231H212.616V201.769ZM219 194.5H214.942L215.942 186.885H218.058L219 194.5Z",fill:"#475467"})," "]}),Z2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M91 363.5V352.312L97 349.76V351.741L102 349.741V352.5H110V363.5H91ZM92.5 362H108.5V354H100.5V351.95L95.5 353.95V352L92.5 353.325V362ZM99.6155 359.769H101.385V356.231H99.6155V359.769ZM95.6155 359.769H97.3845V356.231H95.6155V359.769ZM103.616 359.769H105.385V356.231H103.616V359.769ZM110 352.5H105.942L106.942 344.885H109.058L110 352.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M260.354 354.354C260.549 354.158 260.549 353.842 260.354 353.646L257.172 350.464C256.976 350.269 256.66 350.269 256.464 350.464C256.269 350.66 256.269 350.976 256.464 351.172L259.293 354L256.464 356.828C256.269 357.024 256.269 357.34 256.464 357.536C256.66 357.731 256.976 357.731 257.172 357.536L260.354 354.354ZM116 354L116 354.5L260 354.5L260 354L260 353.5L116 353.5L116 354Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"344.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"344.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M190.936 349.469V350.377L187.637 358H185.855L189.154 350.787H184.906V349.469H190.936Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M269.844 361.558C269.064 361.558 268.401 361.285 267.856 360.739C267.311 360.193 267.039 359.53 267.039 358.75H265.347V348.308C265.347 347.803 265.522 347.375 265.872 347.025C266.222 346.675 266.649 346.5 267.154 346.5H280.77V350.308H283.423L286.654 354.635V358.75H284.847C284.847 359.53 284.573 360.193 284.027 360.739C283.481 361.285 282.817 361.558 282.037 361.558C281.256 361.558 280.593 361.285 280.048 360.739C279.504 360.193 279.231 359.53 279.231 358.75H272.654C272.654 359.532 272.381 360.195 271.835 360.74C271.288 361.285 270.625 361.558 269.844 361.558ZM269.847 360.058C270.213 360.058 270.523 359.931 270.775 359.679C271.028 359.426 271.154 359.117 271.154 358.75C271.154 358.383 271.028 358.074 270.775 357.821C270.523 357.569 270.213 357.442 269.847 357.442C269.48 357.442 269.17 357.569 268.918 357.821C268.665 358.074 268.539 358.383 268.539 358.75C268.539 359.117 268.665 359.426 268.918 359.679C269.17 359.931 269.48 360.058 269.847 360.058ZM266.847 357.25H267.57C267.783 356.88 268.09 356.569 268.492 356.318C268.894 356.068 269.345 355.942 269.847 355.942C270.335 355.942 270.783 356.066 271.192 356.314C271.6 356.561 271.911 356.873 272.123 357.25H279.27V348H267.154C267.077 348 267.007 348.032 266.943 348.096C266.879 348.16 266.847 348.231 266.847 348.308V357.25ZM282.039 360.058C282.406 360.058 282.715 359.931 282.968 359.679C283.22 359.426 283.347 359.117 283.347 358.75C283.347 358.383 283.22 358.074 282.968 357.821C282.715 357.569 282.406 357.442 282.039 357.442C281.672 357.442 281.363 357.569 281.11 357.821C280.857 358.074 280.731 358.383 280.731 358.75C280.731 359.117 280.857 359.426 281.11 359.679C281.363 359.931 281.672 360.058 282.039 360.058ZM280.77 355.25H285.25L282.654 351.808H280.77V355.25Z",fill:"#475467"})," "]}),U2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 245.5V234.312L185 231.76V233.741L190 231.741V234.5H198V245.5H179ZM180.5 244H196.5V236H188.5V233.95L183.5 235.95V234L180.5 235.325V244ZM187.616 241.769H189.385V238.231H187.616V241.769ZM183.615 241.769H185.385V238.231H183.615V241.769ZM191.616 241.769H193.385V238.231H191.616V241.769ZM198 234.5H193.942L194.942 226.885H197.058L198 234.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 236.354C332.549 236.158 332.549 235.842 332.354 235.646L329.172 232.464C328.976 232.269 328.66 232.269 328.464 232.464C328.269 232.66 328.269 232.976 328.464 233.172L331.293 236L328.464 238.828C328.269 239.024 328.269 239.34 328.464 239.536C328.66 239.731 328.976 239.731 329.172 239.536L332.354 236.354ZM204 236L204 236.5L332 236.5L332 236L332 235.5L204 235.5L204 236Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"226.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"226.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M277.729 236.115L276.381 235.793L276.867 231.469H281.66V232.834H278.256L278.045 234.727C278.158 234.66 278.33 234.59 278.561 234.516C278.791 234.438 279.049 234.398 279.334 234.398C279.748 234.398 280.115 234.463 280.436 234.592C280.756 234.721 281.027 234.908 281.25 235.154C281.477 235.4 281.648 235.701 281.766 236.057C281.883 236.412 281.941 236.814 281.941 237.264C281.941 237.643 281.883 238.004 281.766 238.348C281.648 238.688 281.471 238.992 281.232 239.262C280.994 239.527 280.695 239.736 280.336 239.889C279.977 240.041 279.551 240.117 279.059 240.117C278.691 240.117 278.336 240.062 277.992 239.953C277.652 239.844 277.346 239.682 277.072 239.467C276.803 239.252 276.586 238.992 276.422 238.688C276.262 238.379 276.178 238.027 276.17 237.633H277.846C277.869 237.875 277.932 238.084 278.033 238.26C278.139 238.432 278.277 238.564 278.449 238.658C278.621 238.752 278.822 238.799 279.053 238.799C279.268 238.799 279.451 238.758 279.604 238.676C279.756 238.594 279.879 238.48 279.973 238.336C280.066 238.188 280.135 238.016 280.178 237.82C280.225 237.621 280.248 237.406 280.248 237.176C280.248 236.945 280.221 236.736 280.166 236.549C280.111 236.361 280.027 236.199 279.914 236.062C279.801 235.926 279.656 235.82 279.48 235.746C279.309 235.672 279.107 235.635 278.877 235.635C278.564 235.635 278.322 235.684 278.15 235.781C277.982 235.879 277.842 235.99 277.729 236.115Z",fill:"#475467"})," "]}),q2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 285.5V274.312L185 271.76V273.741L190 271.741V274.5H198V285.5H179ZM180.5 284H196.5V276H188.5V273.95L183.5 275.95V274L180.5 275.325V284ZM187.616 281.769H189.385V278.231H187.616V281.769ZM183.615 281.769H185.385V278.231H183.615V281.769ZM191.616 281.769H193.385V278.231H191.616V281.769ZM198 274.5H193.942L194.942 266.885H197.058L198 274.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M368.354 276.354C368.549 276.158 368.549 275.842 368.354 275.646L365.172 272.464C364.976 272.269 364.66 272.269 364.464 272.464C364.269 272.66 364.269 272.976 364.464 273.172L367.293 276L364.464 278.828C364.269 279.024 364.269 279.34 364.464 279.536C364.66 279.731 364.976 279.731 365.172 279.536L368.354 276.354ZM204 276L204 276.5L368 276.5L368 276L368 275.5L204 275.5L204 276Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"266.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"266.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M280.494 271.381H280.74V272.729H280.641C280.195 272.729 279.799 272.795 279.451 272.928C279.104 273.061 278.809 273.25 278.566 273.496C278.328 273.738 278.145 274.031 278.016 274.375C277.891 274.719 277.828 275.104 277.828 275.529V276.947C277.828 277.252 277.857 277.521 277.916 277.756C277.979 277.986 278.066 278.18 278.18 278.336C278.297 278.488 278.434 278.604 278.59 278.682C278.746 278.756 278.922 278.793 279.117 278.793C279.301 278.793 279.467 278.754 279.615 278.676C279.768 278.598 279.896 278.488 280.002 278.348C280.111 278.203 280.193 278.035 280.248 277.844C280.307 277.648 280.336 277.436 280.336 277.205C280.336 276.975 280.307 276.762 280.248 276.566C280.193 276.371 280.111 276.203 280.002 276.062C279.893 275.918 279.76 275.807 279.604 275.729C279.447 275.65 279.271 275.611 279.076 275.611C278.811 275.611 278.576 275.674 278.373 275.799C278.174 275.92 278.018 276.076 277.904 276.268C277.791 276.459 277.73 276.66 277.723 276.871L277.213 276.543C277.225 276.242 277.287 275.957 277.4 275.688C277.518 275.418 277.678 275.18 277.881 274.973C278.088 274.762 278.336 274.598 278.625 274.48C278.914 274.359 279.24 274.299 279.604 274.299C280.002 274.299 280.352 274.375 280.652 274.527C280.957 274.68 281.211 274.889 281.414 275.154C281.617 275.42 281.77 275.727 281.871 276.074C281.973 276.422 282.023 276.793 282.023 277.188C282.023 277.602 281.955 277.986 281.818 278.342C281.686 278.697 281.492 279.008 281.238 279.273C280.988 279.539 280.688 279.746 280.336 279.895C279.984 280.043 279.59 280.117 279.152 280.117C278.699 280.117 278.287 280.035 277.916 279.871C277.549 279.703 277.232 279.469 276.967 279.168C276.701 278.867 276.496 278.51 276.352 278.096C276.211 277.682 276.141 277.229 276.141 276.736V276.08C276.141 275.393 276.24 274.764 276.439 274.193C276.643 273.619 276.934 273.123 277.312 272.705C277.691 272.283 278.148 271.957 278.684 271.727C279.219 271.496 279.822 271.381 280.494 271.381Z",fill:"#475467"})]}),G2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M93.7247 83.5153C92.9619 83.5153 92.3154 83.2477 91.7852 82.7125C91.2552 82.1772 90.9902 81.5282 90.9902 80.7655V75.073C90.9902 74.5743 91.1668 74.1484 91.52 73.7953C91.8732 73.4421 92.2991 73.2655 92.7977 73.2655H97.9037V68.275H102.432C103.195 68.275 103.844 68.5427 104.379 69.078C104.915 69.6132 105.182 70.2622 105.182 71.025V75.1115H106.321V73.85C106.321 73.6153 106.367 73.3891 106.459 73.1713C106.552 72.9533 106.68 72.7622 106.844 72.598L108.519 70.9385L112.648 78.7655H108.071C107.591 78.7655 107.181 78.5953 106.841 78.2548C106.501 77.9144 106.327 77.5013 106.321 77.0155V76.6115H105.167V78.602C105.513 78.8597 105.78 79.1763 105.968 79.552C106.156 79.9277 106.25 80.3322 106.25 80.7655C106.25 81.5282 105.982 82.1772 105.447 82.7125C104.912 83.2477 104.263 83.5153 103.5 83.5153C102.886 83.5153 102.335 83.3319 101.847 82.9653C101.359 82.5986 101.027 82.1185 100.852 81.525H96.3727C96.1972 82.1185 95.8656 82.5986 95.3777 82.9653C94.8899 83.3319 94.3389 83.5153 93.7247 83.5153ZM93.7247 82.0155C94.0722 82.0155 94.37 81.894 94.618 81.651C94.8662 81.408 94.9902 81.1128 94.9902 80.7655C94.9902 80.418 94.8687 80.1228 94.6257 79.8798C94.3827 79.6368 94.0876 79.5153 93.7402 79.5153C93.3927 79.5153 93.0975 79.6368 92.8545 79.8798C92.6117 80.1228 92.4902 80.418 92.4902 80.7655C92.4902 81.1128 92.6091 81.408 92.8467 81.651C93.0846 81.894 93.3772 82.0155 93.7247 82.0155ZM103.5 82.0155C103.847 82.0155 104.142 81.894 104.385 81.651C104.628 81.408 104.75 81.1128 104.75 80.7655C104.75 80.418 104.628 80.1228 104.385 79.8798C104.142 79.6368 103.847 79.5153 103.5 79.5153C103.152 79.5153 102.857 79.6368 102.614 79.8798C102.371 80.1228 102.25 80.418 102.25 80.7655C102.25 81.1128 102.371 81.408 102.614 81.651C102.857 81.894 103.152 82.0155 103.5 82.0155ZM97.9037 80.0155V74.7655H92.7977C92.7081 74.7655 92.6344 74.7943 92.5767 74.852C92.5191 74.9097 92.4902 74.9833 92.4902 75.073V78.3923C92.6761 78.2616 92.8722 78.1661 93.0785 78.1058C93.285 78.0456 93.5056 78.0155 93.7402 78.0155C94.3542 78.0155 94.9036 78.2004 95.3882 78.5703C95.8729 78.9401 96.1979 79.4218 96.3632 80.0155H97.9037ZM99.4035 80.0155H100.852C101.017 79.4218 101.346 78.9401 101.839 78.5703C102.332 78.2004 102.886 78.0155 103.5 78.0155C103.532 78.0155 103.562 78.0171 103.591 78.0203C103.62 78.0234 103.65 78.0283 103.682 78.0348V76.6115H99.4035V80.0155ZM110.175 77.2655L108.144 73.427L107.913 73.6673C107.888 73.6929 107.868 73.7218 107.855 73.7538C107.843 73.7859 107.836 73.818 107.836 73.85V77.0155C107.843 77.086 107.868 77.1453 107.913 77.1933C107.958 77.2414 108.016 77.2655 108.086 77.2655H110.175ZM99.4035 75.1115H103.682V71.025C103.682 70.6775 103.561 70.3823 103.318 70.1395C103.075 69.8965 102.78 69.775 102.432 69.775H99.4035V75.1115ZM97.9037 80.0155V78.0155V78.3923V74.7655V80.0155ZM99.4035 80.0155V76.6115V78.0348V78.0155V80.0155Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M221.854 76.3536C222.049 76.1583 222.049 75.8417 221.854 75.6464L218.672 72.4645C218.476 72.2692 218.16 72.2692 217.964 72.4645C217.769 72.6597 217.769 72.9763 217.964 73.1716L220.793 76L217.964 78.8284C217.769 79.0237 217.769 79.3403 217.964 79.5355C218.16 79.7308 218.476 79.7308 218.672 79.5355L221.854 76.3536ZM117.5 76L117.5 76.5L221.5 76.5L221.5 76L221.5 75.5L117.5 75.5L117.5 76Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"179",y:"66.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"179",y:"66.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M189.754 71.4512V80H188.066V73.3965L186.039 74.041V72.7109L189.572 71.4512H189.754Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M237.5 75.6923C236.537 75.6923 235.714 75.3496 235.028 74.6643C234.343 73.9788 234 73.1548 234 72.1923C234 71.2298 234.343 70.4058 235.028 69.7205C235.714 69.035 236.537 68.6923 237.5 68.6923C238.463 68.6923 239.286 69.035 239.972 69.7205C240.657 70.4058 241 71.2298 241 72.1923C241 73.1548 240.657 73.9788 239.972 74.6643C239.286 75.3496 238.463 75.6923 237.5 75.6923ZM230 83.3078V81.0845C230 80.5948 230.133 80.1413 230.399 79.724C230.665 79.3067 231.02 78.9858 231.465 78.7615C232.454 78.277 233.451 77.9136 234.457 77.6713C235.463 77.4289 236.477 77.3078 237.5 77.3078C238.523 77.3078 239.537 77.4289 240.543 77.6713C241.549 77.9136 242.546 78.277 243.535 78.7615C243.98 78.9858 244.335 79.3067 244.601 79.724C244.867 80.1413 245 80.5948 245 81.0845V83.3078H230ZM231.5 81.8078H243.5V81.0845C243.5 80.882 243.441 80.6945 243.324 80.522C243.207 80.3497 243.047 80.209 242.846 80.1C241.985 79.6757 241.106 79.3542 240.211 79.1355C239.315 78.917 238.412 78.8078 237.5 78.8078C236.588 78.8078 235.685 78.917 234.789 79.1355C233.894 79.3542 233.015 79.6757 232.154 80.1C231.953 80.209 231.793 80.3497 231.676 80.522C231.559 80.6945 231.5 80.882 231.5 81.0845V81.8078ZM237.5 74.1923C238.05 74.1923 238.521 73.9964 238.913 73.6048C239.304 73.2131 239.5 72.7423 239.5 72.1923C239.5 71.6423 239.304 71.1714 238.913 70.7798C238.521 70.3881 238.05 70.1923 237.5 70.1923C236.95 70.1923 236.479 70.3881 236.088 70.7798C235.696 71.1714 235.5 71.6423 235.5 72.1923C235.5 72.7423 235.696 73.2131 236.088 73.6048C236.479 73.9964 236.95 74.1923 237.5 74.1923Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M258.074 71.4688L254.945 80.7324H253.691L256.82 71.4688H258.074Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M265.5 85.5V74.3115L271.5 71.7598V73.7405L276.5 71.7405V74.5H284.5V85.5H265.5ZM267 84H283V76H275V73.95L270 75.95V74L267 75.325V84ZM274.116 81.7693H275.885V78.2308H274.116V81.7693ZM270.115 81.7693H271.885V78.2308H270.115V81.7693ZM278.116 81.7693H279.885V78.2308H278.116V81.7693ZM284.5 74.5H280.442L281.442 66.8848H283.558L284.5 74.5Z",fill:"#475467"})," "]}),Y2e=e=>{const t=S.useRef(null),[n,r]=S.useState({x:0,y:0,width:0,height:0}),i=0,o=5;S.useEffect(()=>{const c=()=>{const u=t.current;if(!u)return;const d=u.getBBox();r({x:d.x,y:d.y,width:d.width,height:d.height})};return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const a=c=>{const{target:u}=c,d=document.getElementById("overview-sankey-tooltip"),f=u.getAttribute("data-name"),h=u.getAttribute("data-info"),m=u.getAttribute("data-value"),g=u.getAttribute("data-unit");d.innerHTML=`
|
|
506
|
+
`,Xl={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},I2e={A:"Direct hoogwaardig inzetten",B:"Indirect hoogwaardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},A2e=({data:e,margin:t={},height:n=null,nodeTooltip:r=null,linkTooltip:i=null})=>{e.nodes=e.nodes.map(b=>({...b,nodeColor:Xl[b.rank]})),e.links=e.links.map(b=>({...b,startColor:Xl[b.target_rank],endColor:Xl[b.target_rank]}));const h=b=>`${b.pct>1?b.pct.toFixed(0):b.pct>.1?b.pct.toFixed(1):"<0.1"}%`,m=({node:b})=>{const y=b.sourceLinks.length?-70:30,C=b.height/2-32/2;return p.jsx("g",{transform:`translate(${b.x0+y}, ${b.y0+C})`,children:p.jsx("foreignObject",{width:60,height:32,children:p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"black",textAlign:"center",padding:"2px",border:`2px solid ${b.color}`,whiteSpace:"nowrap"},children:[p.jsx(R2,{children:p.jsx("b",{children:b.rank})}),p.jsx(R2,{children:h(b)})]})})})},g=({nodes:b})=>b.map(y=>p.jsx(m,{node:y},y.id)),v=()=>p.jsx("div",{style:{marginTop:10,marginLeft:10,whiteSpace:"nowrap"},children:Object.keys(Xl).map((b,y)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{backgroundColor:Xl[b],minWidth:22,minHeight:22,border:"1px solid gray"}}),p.jsx(R2,{children:`${b} ${I2e[b]}`})]},`legend-${y}`))});return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(ko,{style:{width:"100%"},children:[p.jsx(br,{span:8,children:p.jsx(v,{})}),p.jsx(br,{span:16,children:p.jsx("div",{style:{height:n||600,display:"flex",justifyContent:"space-between"},children:p.jsx($$,{data:e,margin:{top:20,right:100,bottom:20,left:100,...t},sort:"input",labelPosition:"outside",colors:b=>b.nodeColor,enableLinkGradient:!0,linkOpacity:.5,nodeOpacity:1,nodeBorderWidth:0,nodeThickness:20,nodeSpacing:32,nodeTooltip:({node:b})=>p.jsx(Zn,{body:(r==null?void 0:r({node:b}))||p.jsx("span",{children:"Node tooltip"})}),linkTooltip:({link:b})=>p.jsx(Zn,{body:(i==null?void 0:i({link:b}))||p.jsx("span",{children:"Link tooltip"})}),layers:["links","nodes",g]})})})]})]})},N2e=()=>p.jsxs(p.Fragment,{children:["// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M91 125.5V114.312L97 111.76V113.741L102 111.741V114.5H110V125.5H91ZM92.5 124H108.5V116H100.5V113.95L95.5 115.95V114L92.5 115.325V124ZM99.6155 121.769H101.385V118.231H99.6155V121.769ZM95.6155 121.769H97.3845V118.231H95.6155V121.769ZM103.616 121.769H105.385V118.231H103.616V121.769ZM110 114.5H105.942L106.942 106.885H109.058L110 114.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M260.354 116.354C260.549 116.158 260.549 115.842 260.354 115.646L257.172 112.464C256.976 112.269 256.66 112.269 256.464 112.464C256.269 112.66 256.269 112.976 256.464 113.172L259.293 116L256.464 118.828C256.269 119.024 256.269 119.34 256.464 119.536C256.66 119.731 256.976 119.731 257.172 119.536L260.354 116.354ZM116 116L116 116.5L260 116.5L260 116L260 115.5L116 115.5L116 116Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"106.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"106.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M190.977 118.682V120H185.141V118.875L187.9 115.916C188.178 115.607 188.396 115.336 188.557 115.102C188.717 114.863 188.832 114.65 188.902 114.463C188.977 114.271 189.014 114.09 189.014 113.918C189.014 113.66 188.971 113.439 188.885 113.256C188.799 113.068 188.672 112.924 188.504 112.822C188.34 112.721 188.137 112.67 187.895 112.67C187.637 112.67 187.414 112.732 187.227 112.857C187.043 112.982 186.902 113.156 186.805 113.379C186.711 113.602 186.664 113.854 186.664 114.135H184.971C184.971 113.627 185.092 113.162 185.334 112.74C185.576 112.314 185.918 111.977 186.359 111.727C186.801 111.473 187.324 111.346 187.93 111.346C188.527 111.346 189.031 111.443 189.441 111.639C189.855 111.83 190.168 112.107 190.379 112.471C190.594 112.83 190.701 113.26 190.701 113.76C190.701 114.041 190.656 114.316 190.566 114.586C190.477 114.852 190.348 115.117 190.18 115.383C190.016 115.645 189.816 115.91 189.582 116.18C189.348 116.449 189.088 116.729 188.803 117.018L187.32 118.682H190.977Z",fill:"#475467"}),"// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M276 115.692C275.037 115.692 274.214 115.35 273.528 114.664C272.843 113.979 272.5 113.155 272.5 112.192C272.5 111.23 272.843 110.406 273.528 109.72C274.214 109.035 275.037 108.692 276 108.692C276.963 108.692 277.786 109.035 278.472 109.72C279.157 110.406 279.5 111.23 279.5 112.192C279.5 113.155 279.157 113.979 278.472 114.664C277.786 115.35 276.963 115.692 276 115.692ZM268.5 123.308V121.084C268.5 120.595 268.633 120.141 268.899 119.724C269.165 119.307 269.52 118.986 269.965 118.761C270.954 118.277 271.951 117.914 272.957 117.671C273.963 117.429 274.977 117.308 276 117.308C277.023 117.308 278.037 117.429 279.043 117.671C280.049 117.914 281.046 118.277 282.035 118.761C282.48 118.986 282.835 119.307 283.101 119.724C283.367 120.141 283.5 120.595 283.5 121.084V123.308H268.5ZM270 121.808H282V121.084C282 120.882 281.941 120.694 281.824 120.522C281.707 120.35 281.547 120.209 281.346 120.1C280.485 119.676 279.606 119.354 278.711 119.135C277.815 118.917 276.912 118.808 276 118.808C275.088 118.808 274.185 118.917 273.289 119.135C272.394 119.354 271.515 119.676 270.654 120.1C270.453 120.209 270.293 120.35 270.176 120.522C270.059 120.694 270 120.882 270 121.084V121.808ZM276 114.192C276.55 114.192 277.021 113.996 277.413 113.605C277.804 113.213 278 112.742 278 112.192C278 111.642 277.804 111.171 277.413 110.78C277.021 110.388 276.55 110.192 276 110.192C275.45 110.192 274.979 110.388 274.588 110.78C274.196 111.171 274 111.642 274 112.192C274 112.742 274.196 113.213 274.588 113.605C274.979 113.996 275.45 114.192 276 114.192Z",fill:"#475467"})," "]}),F2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172.354 394.354C172.549 394.158 172.549 393.842 172.354 393.646L169.172 390.464C168.976 390.269 168.66 390.269 168.464 390.464C168.269 390.66 168.269 390.976 168.464 391.172L171.293 394L168.464 396.828C168.269 397.024 168.269 397.34 168.464 397.536C168.66 397.731 168.976 397.731 169.172 397.536L172.354 394.354ZM44 394L44 394.5L172 394.5L172 394L172 393.5L44 393.5L44 394Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"384.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"384.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M102.889 395.662C102.889 396.197 102.764 396.648 102.514 397.016C102.264 397.379 101.92 397.654 101.482 397.842C101.049 398.025 100.557 398.117 100.006 398.117C99.4551 398.117 98.9609 398.025 98.5234 397.842C98.0859 397.654 97.7402 397.379 97.4863 397.016C97.2324 396.648 97.1055 396.197 97.1055 395.662C97.1055 395.303 97.1777 394.979 97.3223 394.689C97.4668 394.396 97.668 394.146 97.9258 393.939C98.1875 393.729 98.4941 393.568 98.8457 393.459C99.1973 393.346 99.5801 393.289 99.9941 393.289C100.549 393.289 101.045 393.387 101.482 393.582C101.92 393.777 102.264 394.053 102.514 394.408C102.764 394.764 102.889 395.182 102.889 395.662ZM101.189 395.551C101.189 395.289 101.139 395.064 101.037 394.877C100.939 394.686 100.801 394.539 100.621 394.438C100.441 394.336 100.232 394.285 99.9941 394.285C99.7559 394.285 99.5469 394.336 99.3672 394.438C99.1875 394.539 99.0469 394.686 98.9453 394.877C98.8477 395.064 98.7988 395.289 98.7988 395.551C98.7988 395.809 98.8477 396.031 98.9453 396.219C99.0469 396.406 99.1875 396.551 99.3672 396.652C99.5508 396.75 99.7637 396.799 100.006 396.799C100.248 396.799 100.457 396.75 100.633 396.652C100.812 396.551 100.949 396.406 101.043 396.219C101.141 396.031 101.189 395.809 101.189 395.551ZM102.707 391.73C102.707 392.164 102.592 392.549 102.361 392.885C102.131 393.217 101.811 393.477 101.4 393.664C100.994 393.852 100.529 393.945 100.006 393.945C99.4785 393.945 99.0098 393.852 98.5996 393.664C98.1895 393.477 97.8691 393.217 97.6387 392.885C97.4082 392.549 97.293 392.164 97.293 391.73C97.293 391.215 97.4082 390.781 97.6387 390.43C97.873 390.074 98.1934 389.805 98.5996 389.621C99.0098 389.438 99.4746 389.346 99.9941 389.346C100.521 389.346 100.988 389.438 101.395 389.621C101.805 389.805 102.125 390.074 102.355 390.43C102.59 390.781 102.707 391.215 102.707 391.73ZM101.02 391.807C101.02 391.576 100.979 391.377 100.896 391.209C100.814 391.037 100.697 390.904 100.545 390.811C100.396 390.717 100.213 390.67 99.9941 390.67C99.7832 390.67 99.6016 390.715 99.4492 390.805C99.3008 390.895 99.1855 391.025 99.1035 391.197C99.0254 391.365 98.9863 391.568 98.9863 391.807C98.9863 392.037 99.0254 392.24 99.1035 392.416C99.1855 392.588 99.3027 392.723 99.4551 392.82C99.6074 392.918 99.791 392.967 100.006 392.967C100.221 392.967 100.402 392.918 100.551 392.82C100.703 392.723 100.818 392.588 100.896 392.416C100.979 392.24 101.02 392.037 101.02 391.807Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M181.844 401.558C181.064 401.558 180.401 401.285 179.856 400.739C179.311 400.193 179.039 399.53 179.039 398.75H177.347V388.308C177.347 387.803 177.522 387.375 177.872 387.025C178.222 386.675 178.649 386.5 179.154 386.5H192.77V390.308H195.423L198.654 394.635V398.75H196.847C196.847 399.53 196.573 400.193 196.027 400.739C195.481 401.285 194.817 401.558 194.037 401.558C193.256 401.558 192.593 401.285 192.048 400.739C191.504 400.193 191.231 399.53 191.231 398.75H184.654C184.654 399.532 184.381 400.195 183.835 400.74C183.288 401.285 182.625 401.558 181.844 401.558ZM181.847 400.058C182.213 400.058 182.523 399.931 182.775 399.679C183.028 399.426 183.154 399.117 183.154 398.75C183.154 398.383 183.028 398.074 182.775 397.821C182.523 397.569 182.213 397.442 181.847 397.442C181.48 397.442 181.17 397.569 180.918 397.821C180.665 398.074 180.539 398.383 180.539 398.75C180.539 399.117 180.665 399.426 180.918 399.679C181.17 399.931 181.48 400.058 181.847 400.058ZM178.847 397.25H179.57C179.783 396.88 180.09 396.569 180.492 396.318C180.894 396.068 181.345 395.942 181.847 395.942C182.335 395.942 182.783 396.066 183.192 396.314C183.6 396.561 183.911 396.873 184.123 397.25H191.27V388H179.154C179.077 388 179.007 388.032 178.943 388.096C178.879 388.16 178.847 388.231 178.847 388.308V397.25ZM194.039 400.058C194.406 400.058 194.715 399.931 194.968 399.679C195.22 399.426 195.347 399.117 195.347 398.75C195.347 398.383 195.22 398.074 194.968 397.821C194.715 397.569 194.406 397.442 194.039 397.442C193.672 397.442 193.363 397.569 193.11 397.821C192.857 398.074 192.731 398.383 192.731 398.75C192.731 399.117 192.857 399.426 193.11 399.679C193.363 399.931 193.672 400.058 194.039 400.058ZM192.77 395.25H197.25L194.654 391.808H192.77V395.25Z",fill:"#475467"})," "]}),D2e=()=>p.jsxs(p.Fragment,{children:["// icon-elft",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 483.5V472.312L185 469.76V471.741L190 469.741V472.5H198V483.5H179ZM180.5 482H196.5V474H188.5V471.95L183.5 473.95V472L180.5 473.325V482ZM187.616 479.769H189.385V476.231H187.616V479.769ZM183.615 479.769H185.385V476.231H183.615V479.769ZM191.616 479.769H193.385V476.231H191.616V479.769ZM198 472.5H193.942L194.942 464.885H197.058L198 472.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 474.354C332.549 474.158 332.549 473.842 332.354 473.646L329.172 470.464C328.976 470.269 328.66 470.269 328.464 470.464C328.269 470.66 328.269 470.976 328.464 471.172L331.293 474L328.464 476.828C328.269 477.024 328.269 477.34 328.464 477.536C328.66 477.731 328.976 477.731 329.172 477.536L332.354 474.354ZM204 474L204 474.5L332 474.5L332 474L332 473.5L204 473.5L204 474Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"464.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"464.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M276.809 469.451V478H275.121V471.396L273.094 472.041V470.711L276.627 469.451H276.809ZM285.328 472.984V474.461C285.328 475.102 285.26 475.654 285.123 476.119C284.986 476.58 284.789 476.959 284.531 477.256C284.277 477.549 283.975 477.766 283.623 477.906C283.271 478.047 282.881 478.117 282.451 478.117C282.107 478.117 281.787 478.074 281.49 477.988C281.193 477.898 280.926 477.76 280.688 477.572C280.453 477.385 280.25 477.148 280.078 476.863C279.91 476.574 279.781 476.23 279.691 475.832C279.602 475.434 279.557 474.977 279.557 474.461V472.984C279.557 472.344 279.625 471.795 279.762 471.338C279.902 470.877 280.1 470.5 280.354 470.207C280.611 469.914 280.916 469.699 281.268 469.562C281.619 469.422 282.01 469.352 282.439 469.352C282.783 469.352 283.102 469.396 283.395 469.486C283.691 469.572 283.959 469.707 284.197 469.891C284.436 470.074 284.639 470.311 284.807 470.6C284.975 470.885 285.104 471.227 285.193 471.625C285.283 472.02 285.328 472.473 285.328 472.984ZM283.635 474.684V472.756C283.635 472.447 283.617 472.178 283.582 471.947C283.551 471.717 283.502 471.521 283.436 471.361C283.369 471.197 283.287 471.064 283.189 470.963C283.092 470.861 282.98 470.787 282.855 470.74C282.73 470.693 282.592 470.67 282.439 470.67C282.248 470.67 282.078 470.707 281.93 470.781C281.785 470.855 281.662 470.975 281.561 471.139C281.459 471.299 281.381 471.514 281.326 471.783C281.275 472.049 281.25 472.373 281.25 472.756V474.684C281.25 474.992 281.266 475.264 281.297 475.498C281.332 475.732 281.383 475.934 281.449 476.102C281.52 476.266 281.602 476.4 281.695 476.506C281.793 476.607 281.904 476.682 282.029 476.729C282.158 476.775 282.299 476.799 282.451 476.799C282.639 476.799 282.805 476.762 282.949 476.688C283.098 476.609 283.223 476.488 283.324 476.324C283.43 476.156 283.508 475.938 283.559 475.668C283.609 475.398 283.635 475.07 283.635 474.684Z",fill:"#475467"})]}),z2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M104 433.692C103.037 433.692 102.214 433.35 101.528 432.664C100.843 431.979 100.5 431.155 100.5 430.192C100.5 429.23 100.843 428.406 101.528 427.721C102.214 427.035 103.037 426.692 104 426.692C104.963 426.692 105.786 427.035 106.472 427.721C107.157 428.406 107.5 429.23 107.5 430.192C107.5 431.155 107.157 431.979 106.472 432.664C105.786 433.35 104.963 433.692 104 433.692ZM96.5 441.308V439.085C96.5 438.595 96.633 438.141 96.899 437.724C97.165 437.307 97.5205 436.986 97.9655 436.762C98.9538 436.277 99.9509 435.914 100.957 435.671C101.963 435.429 102.977 435.308 104 435.308C105.023 435.308 106.037 435.429 107.043 435.671C108.049 435.914 109.046 436.277 110.035 436.762C110.48 436.986 110.835 437.307 111.101 437.724C111.367 438.141 111.5 438.595 111.5 439.085V441.308H96.5ZM98 439.808H110V439.085C110 438.882 109.941 438.695 109.824 438.522C109.707 438.35 109.547 438.209 109.346 438.1C108.485 437.676 107.606 437.354 106.711 437.136C105.815 436.917 104.912 436.808 104 436.808C103.088 436.808 102.185 436.917 101.289 437.136C100.394 437.354 99.5154 437.676 98.6537 438.1C98.4526 438.209 98.2933 438.35 98.176 438.522C98.0587 438.695 98 438.882 98 439.085V439.808ZM104 432.192C104.55 432.192 105.021 431.996 105.413 431.605C105.804 431.213 106 430.742 106 430.192C106 429.642 105.804 429.171 105.413 428.78C105.021 428.388 104.55 428.192 104 428.192C103.45 428.192 102.979 428.388 102.588 428.78C102.196 429.171 102 429.642 102 430.192C102 430.742 102.196 431.213 102.588 431.605C102.979 431.996 103.45 432.192 104 432.192Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M264.354 434.354C264.549 434.158 264.549 433.842 264.354 433.646L261.172 430.464C260.976 430.269 260.66 430.269 260.464 430.464C260.269 430.66 260.269 430.976 260.464 431.172L263.293 434L260.464 436.828C260.269 437.024 260.269 437.34 260.464 437.536C260.66 437.731 260.976 437.731 261.172 437.536L264.354 434.354ZM120 434L120 434.5L264 434.5L264 434L264 433.5L120 433.5L120 434Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"424.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"424.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M186.336 436.717H186.447C186.916 436.717 187.318 436.66 187.654 436.547C187.994 436.43 188.273 436.262 188.492 436.043C188.711 435.824 188.873 435.557 188.979 435.24C189.084 434.92 189.137 434.557 189.137 434.15V432.533C189.137 432.225 189.105 431.953 189.043 431.719C188.984 431.484 188.898 431.291 188.785 431.139C188.676 430.982 188.547 430.865 188.398 430.787C188.254 430.709 188.094 430.67 187.918 430.67C187.73 430.67 187.564 430.717 187.42 430.811C187.275 430.9 187.152 431.023 187.051 431.18C186.953 431.336 186.877 431.516 186.822 431.719C186.771 431.918 186.746 432.127 186.746 432.346C186.746 432.564 186.771 432.773 186.822 432.973C186.873 433.168 186.949 433.342 187.051 433.494C187.152 433.643 187.279 433.762 187.432 433.852C187.584 433.938 187.764 433.98 187.971 433.98C188.17 433.98 188.348 433.943 188.504 433.869C188.664 433.791 188.799 433.689 188.908 433.564C189.021 433.439 189.107 433.301 189.166 433.148C189.229 432.996 189.26 432.842 189.26 432.686L189.816 432.99C189.816 433.264 189.758 433.533 189.641 433.799C189.523 434.064 189.359 434.307 189.148 434.525C188.941 434.74 188.701 434.912 188.428 435.041C188.154 435.17 187.861 435.234 187.549 435.234C187.15 435.234 186.797 435.162 186.488 435.018C186.18 434.869 185.918 434.666 185.703 434.408C185.492 434.146 185.332 433.842 185.223 433.494C185.113 433.146 185.059 432.77 185.059 432.363C185.059 431.949 185.125 431.561 185.258 431.197C185.395 430.834 185.588 430.514 185.838 430.236C186.092 429.959 186.395 429.742 186.746 429.586C187.102 429.426 187.496 429.346 187.93 429.346C188.363 429.346 188.758 429.43 189.113 429.598C189.469 429.766 189.773 430.004 190.027 430.312C190.281 430.617 190.477 430.982 190.613 431.408C190.754 431.834 190.824 432.307 190.824 432.826V433.412C190.824 433.967 190.764 434.482 190.643 434.959C190.525 435.436 190.348 435.867 190.109 436.254C189.875 436.637 189.582 436.965 189.23 437.238C188.883 437.512 188.479 437.721 188.018 437.865C187.557 438.01 187.041 438.082 186.471 438.082H186.336V436.717Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M273.844 441.558C273.064 441.558 272.401 441.285 271.856 440.739C271.311 440.193 271.039 439.53 271.039 438.75H269.347V428.308C269.347 427.803 269.522 427.375 269.872 427.025C270.222 426.675 270.649 426.5 271.154 426.5H284.77V430.308H287.423L290.654 434.635V438.75H288.847C288.847 439.53 288.573 440.193 288.027 440.739C287.481 441.285 286.817 441.558 286.037 441.558C285.256 441.558 284.593 441.285 284.048 440.739C283.504 440.193 283.231 439.53 283.231 438.75H276.654C276.654 439.532 276.381 440.195 275.835 440.74C275.288 441.285 274.625 441.558 273.844 441.558ZM273.847 440.058C274.213 440.058 274.523 439.931 274.775 439.679C275.028 439.426 275.154 439.117 275.154 438.75C275.154 438.383 275.028 438.074 274.775 437.821C274.523 437.569 274.213 437.442 273.847 437.442C273.48 437.442 273.17 437.569 272.918 437.821C272.665 438.074 272.539 438.383 272.539 438.75C272.539 439.117 272.665 439.426 272.918 439.679C273.17 439.931 273.48 440.058 273.847 440.058ZM270.847 437.25H271.57C271.783 436.88 272.09 436.569 272.492 436.318C272.894 436.068 273.345 435.942 273.847 435.942C274.335 435.942 274.783 436.066 275.192 436.314C275.6 436.561 275.911 436.873 276.123 437.25H283.27V428H271.154C271.077 428 271.007 428.032 270.943 428.096C270.879 428.16 270.847 428.231 270.847 428.308V437.25ZM286.039 440.058C286.406 440.058 286.715 439.931 286.968 439.679C287.22 439.426 287.347 439.117 287.347 438.75C287.347 438.383 287.22 438.074 286.968 437.821C286.715 437.569 286.406 437.442 286.039 437.442C285.672 437.442 285.363 437.569 285.11 437.821C284.857 438.074 284.731 438.383 284.731 438.75C284.731 439.117 284.857 439.426 285.11 439.679C285.363 439.931 285.672 440.058 286.039 440.058ZM284.77 435.25H289.25L286.654 431.808H284.77V435.25Z",fill:"#475467"}),"// arrow-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 434.354C332.549 434.158 332.549 433.842 332.354 433.646L329.172 430.464C328.976 430.269 328.66 430.269 328.464 430.464C328.269 430.66 328.269 430.976 328.464 431.172L331.293 434L328.464 436.828C328.269 437.024 328.269 437.34 328.464 437.536C328.66 437.731 328.976 437.731 329.172 437.536L332.354 434.354ZM296 434L296 434.5L297.8 434.5L297.8 434L297.8 433.5L296 433.5L296 434ZM301.4 434L301.4 434.5L305 434.5L305 434L305 433.5L301.4 433.5L301.4 434ZM308.6 434L308.6 434.5L312.2 434.5L312.2 434L312.2 433.5L308.6 433.5L308.6 434ZM315.8 434L315.8 434.5L319.4 434.5L319.4 434L319.4 433.5L315.8 433.5L315.8 434ZM323 434L323 434.5L326.6 434.5L326.6 434L326.6 433.5L323 433.5L323 434ZM330.2 434L330.2 434.5L332 434.5L332 434L332 433.5L330.2 433.5L330.2 434Z",fill:"#475467"})," "]}),B2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M156.354 156.354C156.549 156.158 156.549 155.842 156.354 155.646L153.172 152.464C152.976 152.269 152.66 152.269 152.464 152.464C152.269 152.66 152.269 152.976 152.464 153.172L155.293 156L152.464 158.828C152.269 159.024 152.269 159.34 152.464 159.536C152.66 159.731 152.976 159.731 153.172 159.536L156.354 156.354ZM44 156L44 156.5L156 156.5L156 156L156 155.5L44 155.5L44 156Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"146.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"146.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M98.8691 155.002H99.7715C100.061 155.002 100.299 154.953 100.486 154.855C100.674 154.754 100.812 154.613 100.902 154.434C100.996 154.25 101.043 154.037 101.043 153.795C101.043 153.576 101 153.383 100.914 153.215C100.832 153.043 100.705 152.91 100.533 152.816C100.361 152.719 100.145 152.67 99.8828 152.67C99.6758 152.67 99.4844 152.711 99.3086 152.793C99.1328 152.875 98.9922 152.99 98.8867 153.139C98.7812 153.287 98.7285 153.467 98.7285 153.678H97.0352C97.0352 153.209 97.1602 152.801 97.4102 152.453C97.6641 152.105 98.0039 151.834 98.4297 151.639C98.8555 151.443 99.3242 151.346 99.8359 151.346C100.414 151.346 100.92 151.439 101.354 151.627C101.787 151.811 102.125 152.082 102.367 152.441C102.609 152.801 102.73 153.246 102.73 153.777C102.73 154.047 102.668 154.309 102.543 154.562C102.418 154.812 102.238 155.039 102.004 155.242C101.773 155.441 101.492 155.602 101.16 155.723C100.828 155.84 100.455 155.898 100.041 155.898H98.8691V155.002ZM98.8691 156.285V155.412H100.041C100.506 155.412 100.914 155.465 101.266 155.57C101.617 155.676 101.912 155.828 102.15 156.027C102.389 156.223 102.568 156.455 102.689 156.725C102.811 156.99 102.871 157.285 102.871 157.609C102.871 158.008 102.795 158.363 102.643 158.676C102.49 158.984 102.275 159.246 101.998 159.461C101.725 159.676 101.404 159.84 101.037 159.953C100.67 160.062 100.27 160.117 99.8359 160.117C99.4766 160.117 99.123 160.068 98.7754 159.971C98.4316 159.869 98.1191 159.719 97.8379 159.52C97.5605 159.316 97.3379 159.062 97.1699 158.758C97.0059 158.449 96.9238 158.084 96.9238 157.662H98.6172C98.6172 157.881 98.6719 158.076 98.7812 158.248C98.8906 158.42 99.041 158.555 99.2324 158.652C99.4277 158.75 99.6445 158.799 99.8828 158.799C100.152 158.799 100.383 158.75 100.574 158.652C100.77 158.551 100.918 158.41 101.02 158.23C101.125 158.047 101.178 157.834 101.178 157.592C101.178 157.279 101.121 157.029 101.008 156.842C100.895 156.65 100.732 156.51 100.521 156.42C100.311 156.33 100.061 156.285 99.7715 156.285H98.8691Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172 155.692C171.037 155.692 170.214 155.35 169.528 154.664C168.843 153.979 168.5 153.155 168.5 152.192C168.5 151.23 168.843 150.406 169.528 149.72C170.214 149.035 171.037 148.692 172 148.692C172.963 148.692 173.786 149.035 174.472 149.72C175.157 150.406 175.5 151.23 175.5 152.192C175.5 153.155 175.157 153.979 174.472 154.664C173.786 155.35 172.963 155.692 172 155.692ZM164.5 163.308V161.084C164.5 160.595 164.633 160.141 164.899 159.724C165.165 159.307 165.52 158.986 165.965 158.761C166.954 158.277 167.951 157.914 168.957 157.671C169.963 157.429 170.977 157.308 172 157.308C173.023 157.308 174.037 157.429 175.043 157.671C176.049 157.914 177.046 158.277 178.035 158.761C178.48 158.986 178.835 159.307 179.101 159.724C179.367 160.141 179.5 160.595 179.5 161.084V163.308H164.5ZM166 161.808H178V161.084C178 160.882 177.941 160.695 177.824 160.522C177.707 160.35 177.547 160.209 177.346 160.1C176.485 159.676 175.606 159.354 174.711 159.136C173.815 158.917 172.912 158.808 172 158.808C171.088 158.808 170.185 158.917 169.289 159.136C168.394 159.354 167.515 159.676 166.654 160.1C166.453 160.209 166.293 160.35 166.176 160.522C166.059 160.695 166 160.882 166 161.084V161.808ZM172 154.192C172.55 154.192 173.021 153.996 173.413 153.605C173.804 153.213 174 152.742 174 152.192C174 151.642 173.804 151.171 173.413 150.78C173.021 150.388 172.55 150.192 172 150.192C171.45 150.192 170.979 150.388 170.588 150.78C170.196 151.171 170 151.642 170 152.192C170 152.742 170.196 153.213 170.588 153.605C170.979 153.996 171.45 154.192 172 154.192Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M192.574 151.469L189.445 160.732H188.191L191.32 151.469H192.574Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M200 165.5V154.312L206 151.76V153.741L211 151.741V154.5H219V165.5H200ZM201.5 164H217.5V156H209.5V153.95L204.5 155.95V154L201.5 155.325V164ZM208.616 161.769H210.385V158.231H208.616V161.769ZM204.615 161.769H206.385V158.231H204.615V161.769ZM212.616 161.769H214.385V158.231H212.616V161.769ZM219 154.5H214.942L215.942 146.885H218.058L219 154.5Z",fill:"#475467"})," "]}),W2e=()=>p.jsxs(p.Fragment,{children:["// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M156.354 196.354C156.549 196.158 156.549 195.842 156.354 195.646L153.172 192.464C152.976 192.269 152.66 192.269 152.464 192.464C152.269 192.66 152.269 192.976 152.464 193.172L155.293 196L152.464 198.828C152.269 199.024 152.269 199.34 152.464 199.536C152.66 199.731 152.976 199.731 153.172 199.536L156.354 196.354ZM8 196L8 196.5L156 196.5L156 196L156 195.5L8 195.5L8 196Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"186.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"90.5",y:"186.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M103.117 196.812V198.137H96.9707L96.8887 197.111L100.445 191.469H101.787L100.334 193.9L98.5645 196.812H103.117ZM102.15 191.469V200H100.463V191.469H102.15Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M172 195.692C171.037 195.692 170.214 195.35 169.528 194.664C168.843 193.979 168.5 193.155 168.5 192.192C168.5 191.23 168.843 190.406 169.528 189.72C170.214 189.035 171.037 188.692 172 188.692C172.963 188.692 173.786 189.035 174.472 189.72C175.157 190.406 175.5 191.23 175.5 192.192C175.5 193.155 175.157 193.979 174.472 194.664C173.786 195.35 172.963 195.692 172 195.692ZM164.5 203.308V201.084C164.5 200.595 164.633 200.141 164.899 199.724C165.165 199.307 165.52 198.986 165.965 198.761C166.954 198.277 167.951 197.914 168.957 197.671C169.963 197.429 170.977 197.308 172 197.308C173.023 197.308 174.037 197.429 175.043 197.671C176.049 197.914 177.046 198.277 178.035 198.761C178.48 198.986 178.835 199.307 179.101 199.724C179.367 200.141 179.5 200.595 179.5 201.084V203.308H164.5ZM166 201.808H178V201.084C178 200.882 177.941 200.694 177.824 200.522C177.707 200.35 177.547 200.209 177.346 200.1C176.485 199.676 175.606 199.354 174.711 199.135C173.815 198.917 172.912 198.808 172 198.808C171.088 198.808 170.185 198.917 169.289 199.135C168.394 199.354 167.515 199.676 166.654 200.1C166.453 200.209 166.293 200.35 166.176 200.522C166.059 200.694 166 200.882 166 201.084V201.808ZM172 194.192C172.55 194.192 173.021 193.996 173.413 193.605C173.804 193.213 174 192.742 174 192.192C174 191.642 173.804 191.171 173.413 190.78C173.021 190.388 172.55 190.192 172 190.192C171.45 190.192 170.979 190.388 170.588 190.78C170.196 191.171 170 191.642 170 192.192C170 192.742 170.196 193.213 170.588 193.605C170.979 193.996 171.45 194.192 172 194.192Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M192.574 191.469L189.445 200.732H188.191L191.32 191.469H192.574Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M200 205.5V194.312L206 191.76V193.741L211 191.741V194.5H219V205.5H200ZM201.5 204H217.5V196H209.5V193.95L204.5 195.95V194L201.5 195.325V204ZM208.616 201.769H210.385V198.231H208.616V201.769ZM204.615 201.769H206.385V198.231H204.615V201.769ZM212.616 201.769H214.385V198.231H212.616V201.769ZM219 194.5H214.942L215.942 186.885H218.058L219 194.5Z",fill:"#475467"})," "]}),Z2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M91 363.5V352.312L97 349.76V351.741L102 349.741V352.5H110V363.5H91ZM92.5 362H108.5V354H100.5V351.95L95.5 353.95V352L92.5 353.325V362ZM99.6155 359.769H101.385V356.231H99.6155V359.769ZM95.6155 359.769H97.3845V356.231H95.6155V359.769ZM103.616 359.769H105.385V356.231H103.616V359.769ZM110 352.5H105.942L106.942 344.885H109.058L110 352.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M260.354 354.354C260.549 354.158 260.549 353.842 260.354 353.646L257.172 350.464C256.976 350.269 256.66 350.269 256.464 350.464C256.269 350.66 256.269 350.976 256.464 351.172L259.293 354L256.464 356.828C256.269 357.024 256.269 357.34 256.464 357.536C256.66 357.731 256.976 357.731 257.172 357.536L260.354 354.354ZM116 354L116 354.5L260 354.5L260 354L260 353.5L116 353.5L116 354Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"344.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"178.5",y:"344.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M190.936 349.469V350.377L187.637 358H185.855L189.154 350.787H184.906V349.469H190.936Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M269.844 361.558C269.064 361.558 268.401 361.285 267.856 360.739C267.311 360.193 267.039 359.53 267.039 358.75H265.347V348.308C265.347 347.803 265.522 347.375 265.872 347.025C266.222 346.675 266.649 346.5 267.154 346.5H280.77V350.308H283.423L286.654 354.635V358.75H284.847C284.847 359.53 284.573 360.193 284.027 360.739C283.481 361.285 282.817 361.558 282.037 361.558C281.256 361.558 280.593 361.285 280.048 360.739C279.504 360.193 279.231 359.53 279.231 358.75H272.654C272.654 359.532 272.381 360.195 271.835 360.74C271.288 361.285 270.625 361.558 269.844 361.558ZM269.847 360.058C270.213 360.058 270.523 359.931 270.775 359.679C271.028 359.426 271.154 359.117 271.154 358.75C271.154 358.383 271.028 358.074 270.775 357.821C270.523 357.569 270.213 357.442 269.847 357.442C269.48 357.442 269.17 357.569 268.918 357.821C268.665 358.074 268.539 358.383 268.539 358.75C268.539 359.117 268.665 359.426 268.918 359.679C269.17 359.931 269.48 360.058 269.847 360.058ZM266.847 357.25H267.57C267.783 356.88 268.09 356.569 268.492 356.318C268.894 356.068 269.345 355.942 269.847 355.942C270.335 355.942 270.783 356.066 271.192 356.314C271.6 356.561 271.911 356.873 272.123 357.25H279.27V348H267.154C267.077 348 267.007 348.032 266.943 348.096C266.879 348.16 266.847 348.231 266.847 348.308V357.25ZM282.039 360.058C282.406 360.058 282.715 359.931 282.968 359.679C283.22 359.426 283.347 359.117 283.347 358.75C283.347 358.383 283.22 358.074 282.968 357.821C282.715 357.569 282.406 357.442 282.039 357.442C281.672 357.442 281.363 357.569 281.11 357.821C280.857 358.074 280.731 358.383 280.731 358.75C280.731 359.117 280.857 359.426 281.11 359.679C281.363 359.931 281.672 360.058 282.039 360.058ZM280.77 355.25H285.25L282.654 351.808H280.77V355.25Z",fill:"#475467"})," "]}),U2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 245.5V234.312L185 231.76V233.741L190 231.741V234.5H198V245.5H179ZM180.5 244H196.5V236H188.5V233.95L183.5 235.95V234L180.5 235.325V244ZM187.616 241.769H189.385V238.231H187.616V241.769ZM183.615 241.769H185.385V238.231H183.615V241.769ZM191.616 241.769H193.385V238.231H191.616V241.769ZM198 234.5H193.942L194.942 226.885H197.058L198 234.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M332.354 236.354C332.549 236.158 332.549 235.842 332.354 235.646L329.172 232.464C328.976 232.269 328.66 232.269 328.464 232.464C328.269 232.66 328.269 232.976 328.464 233.172L331.293 236L328.464 238.828C328.269 239.024 328.269 239.34 328.464 239.536C328.66 239.731 328.976 239.731 329.172 239.536L332.354 236.354ZM204 236L204 236.5L332 236.5L332 236L332 235.5L204 235.5L204 236Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"226.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"226.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M277.729 236.115L276.381 235.793L276.867 231.469H281.66V232.834H278.256L278.045 234.727C278.158 234.66 278.33 234.59 278.561 234.516C278.791 234.438 279.049 234.398 279.334 234.398C279.748 234.398 280.115 234.463 280.436 234.592C280.756 234.721 281.027 234.908 281.25 235.154C281.477 235.4 281.648 235.701 281.766 236.057C281.883 236.412 281.941 236.814 281.941 237.264C281.941 237.643 281.883 238.004 281.766 238.348C281.648 238.688 281.471 238.992 281.232 239.262C280.994 239.527 280.695 239.736 280.336 239.889C279.977 240.041 279.551 240.117 279.059 240.117C278.691 240.117 278.336 240.062 277.992 239.953C277.652 239.844 277.346 239.682 277.072 239.467C276.803 239.252 276.586 238.992 276.422 238.688C276.262 238.379 276.178 238.027 276.17 237.633H277.846C277.869 237.875 277.932 238.084 278.033 238.26C278.139 238.432 278.277 238.564 278.449 238.658C278.621 238.752 278.822 238.799 279.053 238.799C279.268 238.799 279.451 238.758 279.604 238.676C279.756 238.594 279.879 238.48 279.973 238.336C280.066 238.188 280.135 238.016 280.178 237.82C280.225 237.621 280.248 237.406 280.248 237.176C280.248 236.945 280.221 236.736 280.166 236.549C280.111 236.361 280.027 236.199 279.914 236.062C279.801 235.926 279.656 235.82 279.48 235.746C279.309 235.672 279.107 235.635 278.877 235.635C278.564 235.635 278.322 235.684 278.15 235.781C277.982 235.879 277.842 235.99 277.729 236.115Z",fill:"#475467"})," "]}),q2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M179 285.5V274.312L185 271.76V273.741L190 271.741V274.5H198V285.5H179ZM180.5 284H196.5V276H188.5V273.95L183.5 275.95V274L180.5 275.325V284ZM187.616 281.769H189.385V278.231H187.616V281.769ZM183.615 281.769H185.385V278.231H183.615V281.769ZM191.616 281.769H193.385V278.231H191.616V281.769ZM198 274.5H193.942L194.942 266.885H197.058L198 274.5Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M368.354 276.354C368.549 276.158 368.549 275.842 368.354 275.646L365.172 272.464C364.976 272.269 364.66 272.269 364.464 272.464C364.269 272.66 364.269 272.976 364.464 273.172L367.293 276L364.464 278.828C364.269 279.024 364.269 279.34 364.464 279.536C364.66 279.731 364.976 279.731 365.172 279.536L368.354 276.354ZM204 276L204 276.5L368 276.5L368 276L368 275.5L204 275.5L204 276Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"266.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"269.5",y:"266.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M280.494 271.381H280.74V272.729H280.641C280.195 272.729 279.799 272.795 279.451 272.928C279.104 273.061 278.809 273.25 278.566 273.496C278.328 273.738 278.145 274.031 278.016 274.375C277.891 274.719 277.828 275.104 277.828 275.529V276.947C277.828 277.252 277.857 277.521 277.916 277.756C277.979 277.986 278.066 278.18 278.18 278.336C278.297 278.488 278.434 278.604 278.59 278.682C278.746 278.756 278.922 278.793 279.117 278.793C279.301 278.793 279.467 278.754 279.615 278.676C279.768 278.598 279.896 278.488 280.002 278.348C280.111 278.203 280.193 278.035 280.248 277.844C280.307 277.648 280.336 277.436 280.336 277.205C280.336 276.975 280.307 276.762 280.248 276.566C280.193 276.371 280.111 276.203 280.002 276.062C279.893 275.918 279.76 275.807 279.604 275.729C279.447 275.65 279.271 275.611 279.076 275.611C278.811 275.611 278.576 275.674 278.373 275.799C278.174 275.92 278.018 276.076 277.904 276.268C277.791 276.459 277.73 276.66 277.723 276.871L277.213 276.543C277.225 276.242 277.287 275.957 277.4 275.688C277.518 275.418 277.678 275.18 277.881 274.973C278.088 274.762 278.336 274.598 278.625 274.48C278.914 274.359 279.24 274.299 279.604 274.299C280.002 274.299 280.352 274.375 280.652 274.527C280.957 274.68 281.211 274.889 281.414 275.154C281.617 275.42 281.77 275.727 281.871 276.074C281.973 276.422 282.023 276.793 282.023 277.188C282.023 277.602 281.955 277.986 281.818 278.342C281.686 278.697 281.492 279.008 281.238 279.273C280.988 279.539 280.688 279.746 280.336 279.895C279.984 280.043 279.59 280.117 279.152 280.117C278.699 280.117 278.287 280.035 277.916 279.871C277.549 279.703 277.232 279.469 276.967 279.168C276.701 278.867 276.496 278.51 276.352 278.096C276.211 277.682 276.141 277.229 276.141 276.736V276.08C276.141 275.393 276.24 274.764 276.439 274.193C276.643 273.619 276.934 273.123 277.312 272.705C277.691 272.283 278.148 271.957 278.684 271.727C279.219 271.496 279.822 271.381 280.494 271.381Z",fill:"#475467"})]}),G2e=()=>p.jsxs(p.Fragment,{children:["// icon-left",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M93.7247 83.5153C92.9619 83.5153 92.3154 83.2477 91.7852 82.7125C91.2552 82.1772 90.9902 81.5282 90.9902 80.7655V75.073C90.9902 74.5743 91.1668 74.1484 91.52 73.7953C91.8732 73.4421 92.2991 73.2655 92.7977 73.2655H97.9037V68.275H102.432C103.195 68.275 103.844 68.5427 104.379 69.078C104.915 69.6132 105.182 70.2622 105.182 71.025V75.1115H106.321V73.85C106.321 73.6153 106.367 73.3891 106.459 73.1713C106.552 72.9533 106.68 72.7622 106.844 72.598L108.519 70.9385L112.648 78.7655H108.071C107.591 78.7655 107.181 78.5953 106.841 78.2548C106.501 77.9144 106.327 77.5013 106.321 77.0155V76.6115H105.167V78.602C105.513 78.8597 105.78 79.1763 105.968 79.552C106.156 79.9277 106.25 80.3322 106.25 80.7655C106.25 81.5282 105.982 82.1772 105.447 82.7125C104.912 83.2477 104.263 83.5153 103.5 83.5153C102.886 83.5153 102.335 83.3319 101.847 82.9653C101.359 82.5986 101.027 82.1185 100.852 81.525H96.3727C96.1972 82.1185 95.8656 82.5986 95.3777 82.9653C94.8899 83.3319 94.3389 83.5153 93.7247 83.5153ZM93.7247 82.0155C94.0722 82.0155 94.37 81.894 94.618 81.651C94.8662 81.408 94.9902 81.1128 94.9902 80.7655C94.9902 80.418 94.8687 80.1228 94.6257 79.8798C94.3827 79.6368 94.0876 79.5153 93.7402 79.5153C93.3927 79.5153 93.0975 79.6368 92.8545 79.8798C92.6117 80.1228 92.4902 80.418 92.4902 80.7655C92.4902 81.1128 92.6091 81.408 92.8467 81.651C93.0846 81.894 93.3772 82.0155 93.7247 82.0155ZM103.5 82.0155C103.847 82.0155 104.142 81.894 104.385 81.651C104.628 81.408 104.75 81.1128 104.75 80.7655C104.75 80.418 104.628 80.1228 104.385 79.8798C104.142 79.6368 103.847 79.5153 103.5 79.5153C103.152 79.5153 102.857 79.6368 102.614 79.8798C102.371 80.1228 102.25 80.418 102.25 80.7655C102.25 81.1128 102.371 81.408 102.614 81.651C102.857 81.894 103.152 82.0155 103.5 82.0155ZM97.9037 80.0155V74.7655H92.7977C92.7081 74.7655 92.6344 74.7943 92.5767 74.852C92.5191 74.9097 92.4902 74.9833 92.4902 75.073V78.3923C92.6761 78.2616 92.8722 78.1661 93.0785 78.1058C93.285 78.0456 93.5056 78.0155 93.7402 78.0155C94.3542 78.0155 94.9036 78.2004 95.3882 78.5703C95.8729 78.9401 96.1979 79.4218 96.3632 80.0155H97.9037ZM99.4035 80.0155H100.852C101.017 79.4218 101.346 78.9401 101.839 78.5703C102.332 78.2004 102.886 78.0155 103.5 78.0155C103.532 78.0155 103.562 78.0171 103.591 78.0203C103.62 78.0234 103.65 78.0283 103.682 78.0348V76.6115H99.4035V80.0155ZM110.175 77.2655L108.144 73.427L107.913 73.6673C107.888 73.6929 107.868 73.7218 107.855 73.7538C107.843 73.7859 107.836 73.818 107.836 73.85V77.0155C107.843 77.086 107.868 77.1453 107.913 77.1933C107.958 77.2414 108.016 77.2655 108.086 77.2655H110.175ZM99.4035 75.1115H103.682V71.025C103.682 70.6775 103.561 70.3823 103.318 70.1395C103.075 69.8965 102.78 69.775 102.432 69.775H99.4035V75.1115ZM97.9037 80.0155V78.0155V78.3923V74.7655V80.0155ZM99.4035 80.0155V76.6115V78.0348V78.0155V80.0155Z",fill:"#475467"}),"// arrow",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M221.854 76.3536C222.049 76.1583 222.049 75.8417 221.854 75.6464L218.672 72.4645C218.476 72.2692 218.16 72.2692 217.964 72.4645C217.769 72.6597 217.769 72.9763 217.964 73.1716L220.793 76L217.964 78.8284C217.769 79.0237 217.769 79.3403 217.964 79.5355C218.16 79.7308 218.476 79.7308 218.672 79.5355L221.854 76.3536ZM117.5 76L117.5 76.5L221.5 76.5L221.5 76L221.5 75.5L117.5 75.5L117.5 76Z",fill:"#475467"}),"// number",p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"179",y:"66.5",width:"19",height:"19",rx:"9.5",fill:"white"}),p.jsx("rect",{xmlns:"http://www.w3.org/2000/svg",x:"179",y:"66.5",width:"19",height:"19",rx:"9.5",stroke:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M189.754 71.4512V80H188.066V73.3965L186.039 74.041V72.7109L189.572 71.4512H189.754Z",fill:"#475467"}),"// icon-right",p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M237.5 75.6923C236.537 75.6923 235.714 75.3496 235.028 74.6643C234.343 73.9788 234 73.1548 234 72.1923C234 71.2298 234.343 70.4058 235.028 69.7205C235.714 69.035 236.537 68.6923 237.5 68.6923C238.463 68.6923 239.286 69.035 239.972 69.7205C240.657 70.4058 241 71.2298 241 72.1923C241 73.1548 240.657 73.9788 239.972 74.6643C239.286 75.3496 238.463 75.6923 237.5 75.6923ZM230 83.3078V81.0845C230 80.5948 230.133 80.1413 230.399 79.724C230.665 79.3067 231.02 78.9858 231.465 78.7615C232.454 78.277 233.451 77.9136 234.457 77.6713C235.463 77.4289 236.477 77.3078 237.5 77.3078C238.523 77.3078 239.537 77.4289 240.543 77.6713C241.549 77.9136 242.546 78.277 243.535 78.7615C243.98 78.9858 244.335 79.3067 244.601 79.724C244.867 80.1413 245 80.5948 245 81.0845V83.3078H230ZM231.5 81.8078H243.5V81.0845C243.5 80.882 243.441 80.6945 243.324 80.522C243.207 80.3497 243.047 80.209 242.846 80.1C241.985 79.6757 241.106 79.3542 240.211 79.1355C239.315 78.917 238.412 78.8078 237.5 78.8078C236.588 78.8078 235.685 78.917 234.789 79.1355C233.894 79.3542 233.015 79.6757 232.154 80.1C231.953 80.209 231.793 80.3497 231.676 80.522C231.559 80.6945 231.5 80.882 231.5 81.0845V81.8078ZM237.5 74.1923C238.05 74.1923 238.521 73.9964 238.913 73.6048C239.304 73.2131 239.5 72.7423 239.5 72.1923C239.5 71.6423 239.304 71.1714 238.913 70.7798C238.521 70.3881 238.05 70.1923 237.5 70.1923C236.95 70.1923 236.479 70.3881 236.088 70.7798C235.696 71.1714 235.5 71.6423 235.5 72.1923C235.5 72.7423 235.696 73.2131 236.088 73.6048C236.479 73.9964 236.95 74.1923 237.5 74.1923Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M258.074 71.4688L254.945 80.7324H253.691L256.82 71.4688H258.074Z",fill:"#475467"}),p.jsx("path",{xmlns:"http://www.w3.org/2000/svg",d:"M265.5 85.5V74.3115L271.5 71.7598V73.7405L276.5 71.7405V74.5H284.5V85.5H265.5ZM267 84H283V76H275V73.95L270 75.95V74L267 75.325V84ZM274.116 81.7693H275.885V78.2308H274.116V81.7693ZM270.115 81.7693H271.885V78.2308H270.115V81.7693ZM278.116 81.7693H279.885V78.2308H278.116V81.7693ZM284.5 74.5H280.442L281.442 66.8848H283.558L284.5 74.5Z",fill:"#475467"})," "]}),Y2e=e=>{const t=S.useRef(null),[n,r]=S.useState({x:0,y:0,width:0,height:0}),i=0,o=5;S.useEffect(()=>{const c=()=>{const u=t.current;if(!u)return;const d=u.getBBox();r({x:d.x,y:d.y,width:d.width,height:d.height})};return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const a=c=>{const{target:u}=c,d=document.getElementById("overview-sankey-tooltip"),f=u.getAttribute("data-name"),h=u.getAttribute("data-info"),m=u.getAttribute("data-value"),g=u.getAttribute("data-unit");d.innerHTML=`
|
|
507
507
|
<div style="
|
|
508
508
|
display: flex;
|
|
509
509
|
flex-direction: column;
|
|
@@ -551,15 +551,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
551
551
|
L`+r+" "+r+`
|
|
552
552
|
L0 `+r+`
|
|
553
553
|
L`+r/2+` 0
|
|
554
|
-
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fa.apply(this,arguments)}var Ihe={top:0,right:0,bottom:0,left:0},zm=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:fa({},Ihe,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},i_=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},o_=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Ahe={circle:khe,diamond:jhe,square:Phe,triangle:Lhe},Nhe=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,m=e.width,g=e.height,v=e.data,b=e.direction,y=b===void 0?"left-to-right":b,C=e.justify,$=C!==void 0&&C,w=e.textColor,M=e.background,R=M===void 0?"transparent":M,E=e.opacity,_=E===void 0?1:E,O=e.symbolShape,k=O===void 0?"square":O,A=e.symbolSize,j=A===void 0?16:A,H=e.symbolSpacing,T=H===void 0?8:H,P=e.symbolBorderWidth,V=P===void 0?0:P,I=e.symbolBorderColor,L=I===void 0?"transparent":I,N=e.onClick,z=e.onMouseEnter,q=e.onMouseLeave,G=e.toggleSerie,Y=e.effects,ee=S.useState({}),Q=ee[0],K=ee[1],J=Pn(),W=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on==="hover"}).reduce(function(me,ge){return fa({},me,ge.style)},{});K(Se)}z==null||z(v,ye)},[z,v,Y]),Z=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on!=="hover"}).reduce(function(me,ge){return fa({},me,ge.style)},{});K(Se)}q==null||q(v,ye)},[q,v,Y]),U=o_({direction:y,justify:$,symbolSize:(t=Q.symbolSize)!=null?t:j,symbolSpacing:T,width:m,height:g}),F=U.symbolX,re=U.symbolY,B=U.labelX,ie=U.labelY,oe=U.labelAnchor,ve=U.labelAlignment,xe=[N,z,q,G].some(function(ye){return ye!==void 0}),pe=typeof k=="function"?k:Ahe[k];return p.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=Q.itemOpacity)!=null?n:_},children:[p.jsx("rect",{width:m,height:g,fill:(r=Q.itemBackground)!=null?r:R,style:{cursor:xe?"pointer":"auto"},onClick:function(ye){N==null||N(v,ye),G==null||G(v.id)},onMouseEnter:W,onMouseLeave:Z}),x.createElement(pe,fa({id:v.id,x:F,y:re,size:(i=Q.symbolSize)!=null?i:j,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:V,borderColor:(l=Q.symbolBorderColor)!=null?l:L},v.hidden?J.legends.hidden.symbol:void 0)),p.jsx("text",{textAnchor:oe,style:fa({},Am(J.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:w)!=null?u:J.legends.text.fill)!=null?c:"black",dominantBaseline:ve,pointerEvents:"none",userSelect:"none"},v.hidden?J.legends.hidden.text:void 0),x:B,y:ie,children:v.label})]})},Fhe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemTextColor,v=e.itemBackground,b=v===void 0?"transparent":v,y=e.itemOpacity,C=y===void 0?1:y,$=e.symbolShape,w=e.symbolSize,M=e.symbolSpacing,R=e.symbolBorderWidth,E=e.symbolBorderColor,_=e.onClick,O=e.onMouseEnter,k=e.onMouseLeave,A=e.toggleSerie,j=zm({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:m,direction:i,padding:a}).padding,H=i==="row"?c+m:0,T=i==="column"?u+m:0;return p.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(P,V){return p.jsx(Nhe,{data:P,x:V*H+j.left,y:V*T+j.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:b,opacity:C,symbolShape:$,symbolSize:w,symbolSpacing:M,symbolBorderWidth:R,symbolBorderColor:E,onClick:_,onMouseEnter:O,onMouseLeave:k,toggleSerie:A},V)})})},Dhe=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemWidth,v=e.itemHeight,b=e.itemDirection,y=e.itemTextColor,C=e.itemBackground,$=e.itemOpacity,w=e.symbolShape,M=e.symbolSize,R=e.symbolSpacing,E=e.symbolBorderWidth,_=e.symbolBorderColor,O=e.onClick,k=e.onMouseEnter,A=e.onMouseLeave,j=e.toggleSerie,H=e.effects,T=zm({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:v,direction:c,padding:d}),P=T.width,V=T.height,I=i_({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:P,height:V}),L=I.x,N=I.y;return p.jsx(Fhe,{data:t,x:L,y:N,direction:c,padding:d,justify:f,effects:H,itemsSpacing:m,itemWidth:g,itemHeight:v,itemDirection:b,itemTextColor:y,itemBackground:C,itemOpacity:$,symbolShape:w,symbolSize:M,symbolSpacing:R,symbolBorderWidth:E,symbolBorderColor:_,onClick:O,onMouseEnter:k,onMouseLeave:A,toggleSerie:typeof j=="boolean"?void 0:j})},zhe={start:"left",middle:"center",end:"right"},Bhe=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,m=h!==void 0&&h,g=t.itemsSpacing,v=g===void 0?0:g,b=t.itemWidth,y=t.itemHeight,C=t.itemDirection,$=C===void 0?"left-to-right":C,w=t.itemTextColor,M=t.symbolSize,R=M===void 0?16:M,E=t.symbolSpacing,_=E===void 0?8:E,O=t.theme,k=zm({itemCount:n.length,itemWidth:b,itemHeight:y,itemsSpacing:v,direction:u,padding:f}),A=k.width,j=k.height,H=k.padding,T=i_({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:A,height:j}),P=T.x,V=T.y,I=u==="row"?b+v:0,L=u==="column"?y+v:0;e.save(),e.translate(P,V),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(N,z){var q,G,Y=z*I+H.left,ee=z*L+H.top,Q=o_({direction:$,justify:m,symbolSize:R,symbolSpacing:_,width:b,height:y}),K=Q.symbolX,J=Q.symbolY,W=Q.labelX,Z=Q.labelY,U=Q.labelAnchor,F=Q.labelAlignment;e.fillStyle=(q=N.color)!=null?q:"black",e.fillRect(Y+K,ee+J,R,R),e.textAlign=zhe[U],F==="central"&&(e.textBaseline="middle"),e.fillStyle=(G=w??O.legends.text.fill)!=null?G:"black",e.fillText(String(N.label),Y+W,ee+Z)}),e.restore()};function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(this,arguments)}function $l(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var _9,Whe=function(e){var t=e.bars,n=e.annotations,r=e_({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return p.jsx(p.Fragment,{children:r.map(function(i,o){return p.jsx(bhe,Dt({},i),o)})})},Zhe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return p.jsx(p.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return p.jsx(Dhe,Dt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},Uhe=["data"],qhe=function(e){var t,n=e.bar,r=n.data,i=$l(n,Uhe),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,m=o.width,g=o.textAnchor,v=e.borderRadius,b=e.borderWidth,y=e.label,C=e.shouldRenderLabel,$=e.isInteractive,w=e.onClick,M=e.onMouseEnter,R=e.onMouseLeave,E=e.tooltip,_=e.isFocusable,O=e.ariaLabel,k=e.ariaLabelledBy,A=e.ariaDescribedBy,j=e.ariaDisabled,H=e.ariaHidden,T=Pn(),P=OM(),V=P.showTooltipFromEvent,I=P.showTooltipAt,L=P.hideTooltip,N=S.useMemo(function(){return function(){return S.createElement(E,Dt({},i,r))}},[E,i,r]),z=S.useCallback(function(K){w==null||w(Dt({color:i.color},r),K)},[i,r,w]),q=S.useCallback(function(K){return V(N(),K)},[V,N]),G=S.useCallback(function(K){M==null||M(r,K),V(N(),K)},[r,M,V,N]),Y=S.useCallback(function(K){R==null||R(r,K),L()},[r,L,R]),ee=S.useCallback(function(){I(N(),[i.absX+i.width/2,i.absY])},[I,N,i]),Q=S.useCallback(function(){L()},[L]);return p.jsxs(et.g,{transform:h,children:[p.jsx(et.rect,{width:Vn(m,function(K){return Math.max(K,0)}),height:Vn(l,function(K){return Math.max(K,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:b,stroke:a,focusable:_,tabIndex:_?0:void 0,"aria-label":O?O(r):void 0,"aria-labelledby":k?k(r):void 0,"aria-describedby":A?A(r):void 0,"aria-disabled":j?j(r):void 0,"aria-hidden":H?H(r):void 0,onMouseEnter:$?G:void 0,onMouseMove:$?q:void 0,onMouseLeave:$?Y:void 0,onClick:$?z:void 0,onFocus:$&&_?ee:void 0,onBlur:$&&_?Q:void 0}),C&&p.jsx(et.text,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Dt({},T.labels.text,{pointerEvents:"none",fill:c}),children:y})]})},Ghe=["color","label"],Yhe=function(e){var t=e.color,n=e.label,r=$l(e,Ghe);return p.jsx(n3e,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Ut={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:Yhe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},sn=Dt({},Ut,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:qhe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),In=Dt({},Ut,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(_9=window.devicePixelRatio)!=null?_9:1}),a_=function(e,t,n,r,i,o){return Dm(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},s_=function(e,t){return e.map(function(n){return Dt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},n0=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},r0=function(e){return[e,Number(e)]};function l_(e,t,n,r){return e===void 0&&(e=Ut.layout),t===void 0&&(t=Ut.reverse),n===void 0&&(n=Ut.labelPosition),r===void 0&&(r=Ut.labelOffset),function(i,o){var a=r*(t?-1:1);if(e==="horizontal"){var s=i/2;return n==="start"?s=t?i:0:n==="end"&&(s=t?0:i),{labelX:s+a,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=o/2;return n==="start"?l=t?0:o:n==="end"&&(l=t?o:0),{labelX:i/2,labelY:l-a,textAnchor:"middle"}}}var Khe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Bm=function(e,t){return e>t},c_=function(e,t){return e<t},u_=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Xhe=function(e){return Bm(e,0)?0:e},Qhe=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,f=e.xScale,h=e.yScale,m=e.margin,g=n?c_:Bm,v=i.map(n0),b=[];return d.forEach(function(y,C){return u_(0,f.domain().length).forEach(function($){var w,M,R,E=r0(i[$][y]),_=E[0],O=E[1],k=s(i[$]),A=((w=f(k))!=null?w:0)+t*C+u*C,j=g(M=O,0)?(R=h(M))!=null?R:0:r,H=function(P,V){var I;return g(P,0)?r-V:((I=h(P))!=null?I:0)-r}(O,j),T={id:y,value:_===null?_:O,formattedValue:o(O),hidden:!1,index:$,indexValue:k,data:v[$]};b.push({key:y+"."+T.indexValue,index:b.length,data:T,x:A,y:j,absX:m.left+A,absY:m.top+j,width:t,height:H,color:a(T),label:l(T)})})}),b},Jhe=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,m=e.margin,g=n?c_:Bm,v=i.map(n0),b=[];return c.forEach(function(y,C){return u_(0,h.domain().length).forEach(function($){var w,M,R,E=r0(i[$][y]),_=E[0],O=E[1],k=a(i[$]),A=g(M=O,0)?r:(R=f(M))!=null?R:0,j=((w=h(k))!=null?w:0)+t*C+d*C,H=function(P,V){var I;return g(P,0)?((I=f(P))!=null?I:0)-r:r-V}(O,A),T={id:y,value:_===null?_:O,formattedValue:o(O),hidden:!1,index:$,indexValue:k,data:v[$]};b.push({key:y+"."+T.indexValue,index:b.length,data:T,x:A,y:j,absX:m.left+A,absY:m.top+j,width:H,height:t,color:s(T),label:l(T)})})}),b},ege=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.innerPadding,f=d===void 0?0:d,h=e.valueScale,m=e.indexScale,g=e.hiddenIds,v=g===void 0?[]:g,b=$l(e,Khe),y=b.keys.filter(function(N){return!v.includes(N)}),C=s_(b.data,y),$=r==="vertical"?["y","x",s]:["x","y",l],w=$[0],M=$[1],R=$[2],E=a_(C,b.getIndex,u,m,R,M),_=Dt({max:o,min:i,reverse:a},h),O=_.min==="auto"?Xhe:function(N){return N},k=C.reduce(function(N,z){return[].concat(N,y.map(function(q){return z[q]}))},[]).filter(Boolean),A=O(Math.min.apply(Math,k)),j=(n=Math.max.apply(Math,k),isFinite(n)?n:0),H=Dm(_,{all:k,min:A,max:j},w==="x"?s:l,w),T=r==="vertical"?[E,H]:[H,E],P=T[0],V=T[1],I=(E.bandwidth()-f*(y.length-1))/y.length,L=[Dt({},b,{data:C,keys:y,innerPadding:f,xScale:P,yScale:V}),I,_.reverse,(t=H(0))!=null?t:0];return{xScale:P,yScale:V,bars:I>0?r==="vertical"?Qhe.apply(void 0,L):Jhe.apply(void 0,L):[]}},tge=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],nge=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},rge=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return c.domain().forEach(function(m,g){var v,b,y=h[g],C=(v=c(o(y.data)))!=null?v:0,$=((b=function(O){return u(O[n?0:1])}(y))!=null?b:0)+.5*s,w=function(O,k){var A;return((A=u(O[n?1:0]))!=null?A:0)-k}(y,$)-s,M=r0(y.data[h.key]),R=M[0],E=M[1],_={id:h.key,value:R===null?R:E,formattedValue:r(E),hidden:!1,index:g,indexValue:m,data:n0(y.data)};f.push({key:h.key+"."+m,index:f.length,data:_,x:C,y:$,absX:d.left+C,absY:d.top+$,width:t,height:w,color:i(_),label:a(_)})})}),f},ige=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return u.domain().forEach(function(m,g){var v,b,y=h[g],C=(v=u(o(y.data)))!=null?v:0,$=((b=function(O){return c(O[n?1:0])}(y))!=null?b:0)+.5*s,w=function(O,k){var A;return((A=c(O[n?0:1]))!=null?A:0)-k}(y,$)-s,M=r0(y.data[h.key]),R=M[0],E=M[1],_={id:h.key,value:R===null?R:E,formattedValue:r(E),hidden:!1,index:g,indexValue:m,data:n0(y.data)};f.push({key:h.key+"."+m,index:f.length,data:_,x:$,y:C,absX:d.left+$,absY:d.top+C,width:w,height:t,color:i(_),label:a(_)})})}),f},oge=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,m=h===void 0?[]:h,g=$l(e,tge),v=g.keys.filter(function(I){return!m.includes(I)}),b=eee().keys(v).offset(tee)(s_(n,v)),y=r==="vertical"?["y","x",s]:["x","y",l],C=y[0],$=y[1],w=y[2],M=a_(n,g.getIndex,u,f,w,$),R=Dt({max:o,min:i,reverse:a},d),E=(t=nge(b),d.type==="log"?t.filter(function(I){return I!==0}):t),_=Math.min.apply(Math,E),O=Math.max.apply(Math,E),k=Dm(R,{all:E,min:_,max:O},C==="x"?s:l,C),A=r==="vertical"?[M,k]:[k,M],j=A[0],H=A[1],T=g.innerPadding>0?g.innerPadding:0,P=M.bandwidth(),V=[Dt({},g,{innerPadding:T,stackedData:b,xScale:j,yScale:H}),P,R.reverse];return{xScale:j,yScale:H,bars:P>0?r==="vertical"?rge.apply(void 0,V):ige.apply(void 0,V):[]}},age=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=UM(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Lh(c.map(function(h){var m,g;return{id:(m=h.data.indexValue)!=null?m:"",label:d(h.data),hidden:h.data.hidden,color:(g=h.color)!=null?g:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,m){var g=Lh(c.map(function(v){var b;return{id:v.data.id,label:m(v.data),hidden:v.data.hidden,color:(b=v.color)!=null?b:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&g.reverse(),g}(t,o,n,i,s,l)},E9=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},sge=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},lge=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},cge=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},d_=function(e){var t=e.indexBy,n=t===void 0?Ut.indexBy:t,r=e.keys,i=r===void 0?Ut.keys:r,o=e.label,a=o===void 0?Ut.label:o,s=e.tooltipLabel,l=s===void 0?Ut.tooltipLabel:s,c=e.valueFormat,u=e.colors,d=u===void 0?Ut.colors:u,f=e.colorBy,h=f===void 0?Ut.colorBy:f,m=e.borderColor,g=m===void 0?Ut.borderColor:m,v=e.labelTextColor,b=v===void 0?Ut.labelTextColor:v,y=e.groupMode,C=y===void 0?Ut.groupMode:y,$=e.layout,w=$===void 0?Ut.layout:$,M=e.reverse,R=M===void 0?Ut.reverse:M,E=e.data,_=e.minValue,O=_===void 0?Ut.minValue:_,k=e.maxValue,A=k===void 0?Ut.maxValue:k,j=e.margin,H=e.width,T=e.height,P=e.padding,V=P===void 0?Ut.padding:P,I=e.innerPadding,L=I===void 0?Ut.innerPadding:I,N=e.valueScale,z=N===void 0?Ut.valueScale:N,q=e.indexScale,G=q===void 0?Ut.indexScale:q,Y=e.initialHiddenIds,ee=Y===void 0?Ut.initialHiddenIds:Y,Q=e.enableLabel,K=Q===void 0?Ut.enableLabel:Q,J=e.labelSkipWidth,W=J===void 0?Ut.labelSkipWidth:J,Z=e.labelSkipHeight,U=Z===void 0?Ut.labelSkipHeight:Z,F=e.legends,re=F===void 0?Ut.legends:F,B=e.legendLabel,ie=e.totalsOffset,oe=ie===void 0?Ut.totalsOffset:ie,ve=S.useState(ee??[]),xe=ve[0],pe=ve[1],ye=S.useCallback(function(de){pe(function(Ee){return Ee.indexOf(de)>-1?Ee.filter(function(Ke){return Ke!==de}):[].concat(Ee,[de])})},[]),Se=T2(n),me=T2(a),ge=T2(l),ce=Im(c),$e=Pn(),he=The(d,h),Ae=M9(g,$e),Ie=M9(b,$e),Re=(C==="grouped"?ege:oge)({layout:w,reverse:R,data:E,getIndex:Se,keys:i,minValue:O,maxValue:A,width:H,height:T,getColor:he,padding:V,innerPadding:L,valueScale:z,indexScale:G,hiddenIds:xe,formatValue:ce,getTooltipLabel:ge,margin:j}),ke=Re.bars,Ye=Re.xScale,Xe=Re.yScale,Fe=S.useMemo(function(){return ke.filter(function(de){return de.data.value!==null}).map(function(de,Ee){return Dt({},de,{index:Ee})})},[ke]),je=S.useCallback(function(de){var Ee=de.width,Ke=de.height;return!!K&&!(W>0&&Ee<W)&&!(U>0&&Ke<U)},[K,W,U]),Qe=S.useMemo(function(){return i.map(function(de){var Ee=ke.find(function(Ke){return Ke.data.id===de});return Dt({},Ee,{data:Dt({id:de},Ee==null?void 0:Ee.data,{hidden:xe.includes(de)})})})},[xe,i,ke]),Ze=S.useMemo(function(){return re.map(function(de){return[de,age({bars:de.dataFrom==="keys"?Qe:ke,direction:de.direction,from:de.dataFrom,groupMode:C,layout:w,legendLabel:B,reverse:R})]})},[re,Qe,ke,C,w,B,R]),qe=S.useMemo(function(){return function(de,Ee,Ke,nt,Ne,ze,De){nt===void 0&&(nt=Ut.layout),Ne===void 0&&(Ne=Ut.groupMode);var Je=[];if(de.length===0)return Je;var tt=new Map,Be=de[0].width,Pe=de[0].height;if(Ne==="stacked"){var ct=new Map;de.forEach(function(fe){var we=fe.data,Oe=we.indexValue,Ge=we.value;E9(tt,Oe,Number(Ge)),sge(ct,Oe,Number(Ge))}),ct.forEach(function(fe,we){var Oe,Ge,We,rt=tt.get(we)||0;nt==="vertical"?(Oe=Ee(we),Ge=Ke(fe),We=Ke(fe/2)):(Oe=Ee(fe),Ge=Ke(we),We=Ee(fe/2)),Oe+=nt==="vertical"?Be/2:ze,Ge+=nt==="vertical"?-ze:Pe/2,Je.push({key:"total_"+we,x:Oe,y:Ge,value:rt,formattedValue:De(rt),animationOffset:We})})}else if(Ne==="grouped"){var pt=new Map,He=new Map;de.forEach(function(fe){var we=fe.data,Oe=we.indexValue,Ge=we.value;E9(tt,Oe,Number(Ge)),lge(pt,Oe,Number(Ge)),cge(He,Oe)}),pt.forEach(function(fe,we){var Oe,Ge,We,rt=tt.get(we)||0,X=He.get(we);nt==="vertical"?(Oe=Ee(we),Ge=Ke(fe),We=Ke(fe/2)):(Oe=Ee(fe),Ge=Ke(we),We=Ee(fe/2)),Oe+=nt==="vertical"?X*Be/2:ze,Ge+=nt==="vertical"?-ze:X*Pe/2,Je.push({key:"total_"+we,x:Oe,y:Ge,value:rt,formattedValue:De(rt),animationOffset:We})})}return Je}(ke,Ye,Xe,w,C,oe,ce)},[ke,Ye,Xe,w,C,oe,ce]);return{bars:ke,barsWithValue:Fe,xScale:Ye,yScale:Xe,getIndex:Se,getLabel:me,getTooltipLabel:ge,formatValue:ce,getColor:he,getBorderColor:Ae,getLabelColor:Ie,shouldRenderBarLabel:je,hiddenIds:xe,toggleSerie:ye,legendsWithData:Ze,barTotals:qe}},uge=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?sn.layout:i,a=Pn();return xr(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return p.jsx(et.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Dt({},a.labels.text,{pointerEvents:"none",fill:a.text.fill}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},dge=["isInteractive","animate","motionConfig","theme","renderWrapper"],fge=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,b=e.axisRight,y=e.axisBottom,C=y===void 0?sn.axisBottom:y,$=e.axisLeft,w=$===void 0?sn.axisLeft:$,M=e.enableGridX,R=M===void 0?sn.enableGridX:M,E=e.enableGridY,_=E===void 0?sn.enableGridY:E,O=e.gridXValues,k=e.gridYValues,A=e.layers,j=A===void 0?sn.layers:A,H=e.barComponent,T=H===void 0?sn.barComponent:H,P=e.enableLabel,V=P===void 0?sn.enableLabel:P,I=e.label,L=e.labelSkipWidth,N=L===void 0?sn.labelSkipWidth:L,z=e.labelSkipHeight,q=z===void 0?sn.labelSkipHeight:z,G=e.labelTextColor,Y=e.labelPosition,ee=Y===void 0?sn.labelPosition:Y,Q=e.labelOffset,K=Q===void 0?sn.labelOffset:Q,J=e.markers,W=J===void 0?sn.markers:J,Z=e.colorBy,U=e.colors,F=e.defs,re=F===void 0?sn.defs:F,B=e.fill,ie=B===void 0?sn.fill:B,oe=e.borderRadius,ve=oe===void 0?sn.borderRadius:oe,xe=e.borderWidth,pe=xe===void 0?sn.borderWidth:xe,ye=e.borderColor,Se=e.annotations,me=Se===void 0?sn.annotations:Se,ge=e.legendLabel,ce=e.tooltipLabel,$e=e.valueFormat,he=e.isInteractive,Ae=he===void 0?sn.isInteractive:he,Ie=e.tooltip,Re=Ie===void 0?sn.tooltip:Ie,ke=e.onClick,Ye=e.onMouseEnter,Xe=e.onMouseLeave,Fe=e.legends,je=e.role,Qe=je===void 0?sn.role:je,Ze=e.ariaLabel,qe=e.ariaLabelledBy,de=e.ariaDescribedBy,Ee=e.isFocusable,Ke=Ee===void 0?sn.isFocusable:Ee,nt=e.barAriaLabel,Ne=e.barAriaLabelledBy,ze=e.barAriaDescribedBy,De=e.barAriaHidden,Je=e.barAriaDisabled,tt=e.initialHiddenIds,Be=e.enableTotals,Pe=Be===void 0?sn.enableTotals:Be,ct=e.totalsOffset,pt=ct===void 0?sn.totalsOffset:ct,He=ui(),fe=He.animate,we=He.config,Oe=TM(o,a,i),Ge=Oe.outerWidth,We=Oe.outerHeight,rt=Oe.margin,X=Oe.innerWidth,ae=Oe.innerHeight,se=d_({indexBy:n,label:I,tooltipLabel:ce,valueFormat:$e,colors:U,colorBy:Z,borderColor:ye,labelTextColor:G,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:rt,width:X,height:ae,padding:m,innerPadding:g,valueScale:f,indexScale:h,enableLabel:V,labelSkipWidth:N,labelSkipHeight:q,legends:Fe,legendLabel:ge,initialHiddenIds:tt,totalsOffset:pt}),Ve=se.bars,it=se.barsWithValue,at=se.xScale,st=se.yScale,ft=se.getLabel,be=se.getTooltipLabel,Ce=se.getBorderColor,Te=se.getLabelColor,ot=se.shouldRenderBarLabel,vt=se.toggleSerie,Ct=se.legendsWithData,ht=se.barTotals,Ot=se.getColor,rn=l_(l,c,ee,K),It=xr(it,{keys:function(lt){return lt.key},from:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:0,labelColor:Te(lt),labelOpacity:0},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+(lt.y+lt.height)+")",width:lt.width},l==="vertical"?{}:{height:lt.height,transform:"translate("+lt.x+", "+lt.y+")",width:0})},enter:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:lt.height,labelColor:Te(lt),labelOpacity:1},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+lt.y+")",width:lt.width})},update:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:lt.height,labelColor:Te(lt),labelOpacity:1},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+lt.y+")",width:lt.width})},leave:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:0,labelColor:Te(lt),labelOpacity:0},rn(lt.width,lt.height),{labelY:0,transform:"translate("+lt.x+", "+(lt.y+lt.height)+")",width:lt.width},l==="vertical"?{}:Dt({},rn(lt.width,lt.height),{labelX:0,height:lt.height,transform:"translate("+lt.x+", "+lt.y+")",width:0}))},config:we,immediate:!fe,initial:fe?void 0:null}),fn=S.useMemo(function(){return{borderRadius:ve,borderWidth:pe,enableLabel:V,isInteractive:Ae,labelSkipWidth:N,labelSkipHeight:q,onClick:ke,onMouseEnter:Ye,onMouseLeave:Xe,getTooltipLabel:be,tooltip:Re,isFocusable:Ke,ariaLabel:nt,ariaLabelledBy:Ne,ariaDescribedBy:ze,ariaHidden:De,ariaDisabled:Je}},[ve,pe,V,be,Ae,q,N,ke,Ye,Xe,Re,Ke,nt,Ne,ze,De,Je]),lr=F3e(re,Ve,ie,{dataKey:"data",targetKey:"data.fill"}),Nt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};j.includes("annotations")&&(Nt.annotations=p.jsx(Whe,{bars:Ve,annotations:me},"annotations")),j.includes("axes")&&(Nt.axes=p.jsx(rhe,{xScale:at,yScale:st,width:X,height:ae,top:v,right:b,bottom:C,left:w},"axes")),j.includes("bars")&&(Nt.bars=p.jsx(S.Fragment,{children:It(function(lt,_n){return S.createElement(T,Dt({},fn,{bar:_n,style:lt,shouldRenderLabel:ot(_n),label:ft(_n.data)}))})},"bars")),j.includes("grid")&&(Nt.grid=p.jsx(ohe,{width:X,height:ae,xScale:R?at:null,yScale:_?st:null,xValues:O,yValues:k},"grid")),j.includes("legends")&&(Nt.legends=p.jsx(Zhe,{width:X,height:ae,legends:Ct,toggleSerie:vt},"legends")),j.includes("markers")&&(Nt.markers=p.jsx(P3e,{markers:W,width:X,height:ae,xScale:at,yScale:st},"markers")),j.includes("totals")&&Pe&&(Nt.totals=p.jsx(uge,{data:ht,springConfig:we,animate:fe,layout:l},"totals"));var Rn=S.useMemo(function(){return Dt({},fn,{margin:rt,width:o,height:a,innerWidth:X,innerHeight:ae,bars:Ve,legendData:Ct,enableLabel:V,xScale:at,yScale:st,tooltip:Re,getTooltipLabel:be,onClick:ke,onMouseEnter:Ye,onMouseLeave:Xe,getColor:Ot})},[fn,rt,o,a,X,ae,Ve,Ct,V,at,st,Re,be,ke,Ye,Xe,Ot]);return p.jsx(DM,{width:Ge,height:We,margin:rt,defs:lr,role:Qe,ariaLabel:Ze,ariaLabelledBy:qe,ariaDescribedBy:de,isFocusable:Ke,children:j.map(function(lt,_n){var cn;return typeof lt=="function"?p.jsx(S.Fragment,{children:S.createElement(lt,Rn)},_n):(cn=Nt==null?void 0:Nt[lt])!=null?cn:null})})},hge=function(e){var t=e.isInteractive,n=t===void 0?sn.isInteractive:t,r=e.animate,i=r===void 0?sn.animate:r,o=e.motionConfig,a=o===void 0?sn.motionConfig:o,s=e.theme,l=e.renderWrapper,c=$l(e,dge);return p.jsx(Nm,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(fge,Dt({isInteractive:n},c))})},gge=["isInteractive","renderWrapper","theme"],P2=function(e,t,n,r){return e.find(function(i){return L3e(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},vge=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,b=e.axisRight,y=e.axisBottom,C=y===void 0?In.axisBottom:y,$=e.axisLeft,w=$===void 0?In.axisLeft:$,M=e.enableGridX,R=M===void 0?In.enableGridX:M,E=e.enableGridY,_=E===void 0?In.enableGridY:E,O=e.gridXValues,k=e.gridYValues,A=e.labelPosition,j=A===void 0?In.labelPosition:A,H=e.labelOffset,T=H===void 0?In.labelOffset:H,P=e.layers,V=P===void 0?In.layers:P,I=e.renderBar,L=I===void 0?function(be,Ce){var Te=Ce.bar,ot=Te.color,vt=Te.height,Ct=Te.width,ht=Te.x,Ot=Te.y,rn=Ce.borderColor,It=Ce.borderRadius,fn=Ce.borderWidth,lr=Ce.label,Nt=Ce.labelColor,Rn=Ce.shouldRenderLabel,lt=Ce.labelX,_n=Ce.labelY,cn=Ce.textAnchor;if(be.fillStyle=ot,fn>0&&(be.strokeStyle=rn,be.lineWidth=fn),be.beginPath(),It>0){var hn=Math.min(It,vt);be.moveTo(ht+hn,Ot),be.lineTo(ht+Ct-hn,Ot),be.quadraticCurveTo(ht+Ct,Ot,ht+Ct,Ot+hn),be.lineTo(ht+Ct,Ot+vt-hn),be.quadraticCurveTo(ht+Ct,Ot+vt,ht+Ct-hn,Ot+vt),be.lineTo(ht+hn,Ot+vt),be.quadraticCurveTo(ht,Ot+vt,ht,Ot+vt-hn),be.lineTo(ht,Ot+hn),be.quadraticCurveTo(ht,Ot,ht+hn,Ot),be.closePath()}else be.rect(ht,Ot,Ct,vt);be.fill(),fn>0&&be.stroke(),Rn&&(be.textBaseline="middle",be.textAlign=cn==="middle"?"center":cn,be.fillStyle=Nt,be.fillText(lr,ht+lt,Ot+_n))}:I,N=e.enableLabel,z=N===void 0?In.enableLabel:N,q=e.label,G=e.labelSkipWidth,Y=G===void 0?In.labelSkipWidth:G,ee=e.labelSkipHeight,Q=ee===void 0?In.labelSkipHeight:ee,K=e.labelTextColor,J=e.colorBy,W=e.colors,Z=e.borderRadius,U=Z===void 0?In.borderRadius:Z,F=e.borderWidth,re=F===void 0?In.borderWidth:F,B=e.borderColor,ie=e.annotations,oe=ie===void 0?In.annotations:ie,ve=e.legendLabel,xe=e.tooltipLabel,pe=e.valueFormat,ye=e.isInteractive,Se=ye===void 0?In.isInteractive:ye,me=e.tooltip,ge=me===void 0?In.tooltip:me,ce=e.onClick,$e=e.onMouseEnter,he=e.onMouseLeave,Ae=e.legends,Ie=e.pixelRatio,Re=Ie===void 0?In.pixelRatio:Ie,ke=e.canvasRef,Ye=e.enableTotals,Xe=Ye===void 0?In.enableTotals:Ye,Fe=e.totalsOffset,je=Fe===void 0?In.totalsOffset:Fe,Qe=S.useRef(null),Ze=Pn(),qe=TM(o,a,i),de=qe.margin,Ee=qe.innerWidth,Ke=qe.innerHeight,nt=qe.outerWidth,Ne=qe.outerHeight,ze=d_({indexBy:n,label:q,tooltipLabel:xe,valueFormat:pe,colors:W,colorBy:J,borderColor:B,labelTextColor:K,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:de,width:Ee,height:Ke,padding:m,innerPadding:g,valueScale:f,indexScale:h,enableLabel:z,labelSkipWidth:Y,labelSkipHeight:Q,legends:Ae,legendLabel:ve,totalsOffset:je}),De=ze.bars,Je=ze.barsWithValue,tt=ze.xScale,Be=ze.yScale,Pe=ze.getLabel,ct=ze.getTooltipLabel,pt=ze.getBorderColor,He=ze.getLabelColor,fe=ze.shouldRenderBarLabel,we=ze.legendsWithData,Oe=ze.barTotals,Ge=ze.getColor,We=OM(),rt=We.showTooltipFromEvent,X=We.hideTooltip,ae=fhe({annotations:e_({data:De,annotations:oe,getPosition:function(be){return{x:be.x,y:be.y}},getDimensions:function(be){var Ce=be.width,Te=be.height;return{width:Ce,height:Te,size:Math.max(Ce,Te)}}})}),se=S.useMemo(function(){return{borderRadius:U,borderWidth:re,isInteractive:Se,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:Q,margin:de,width:o,height:a,innerWidth:Ee,innerHeight:Ke,bars:De,legendData:we,enableLabel:z,xScale:tt,yScale:Be,tooltip:ge,getTooltipLabel:ct,onClick:ce,onMouseEnter:$e,onMouseLeave:he,getColor:Ge}},[U,re,Se,Y,Q,de,o,a,Ee,Ke,De,we,z,tt,Be,ge,ct,ce,$e,he,Ge]),Ve=Im(pe),it=l_(l,c,j,T);S.useEffect(function(){var be,Ce=(be=Qe.current)==null?void 0:be.getContext("2d");Qe.current&&Ce&&(Qe.current.width=nt*Re,Qe.current.height=Ne*Re,Ce.scale(Re,Re),Ce.fillStyle=Ze.background,Ce.fillRect(0,0,nt,Ne),Ce.translate(de.left,de.top),V.forEach(function(Te){Te==="grid"?typeof Ze.grid.line.strokeWidth=="number"&&Ze.grid.line.strokeWidth>0&&(Ce.lineWidth=Ze.grid.line.strokeWidth,Ce.strokeStyle=Ze.grid.line.stroke,R&&C9(Ce,{width:Ee,height:Ke,scale:tt,axis:"x",values:O}),_&&C9(Ce,{width:Ee,height:Ke,scale:Be,axis:"y",values:k})):Te==="axes"?she(Ce,{xScale:tt,yScale:Be,width:Ee,height:Ke,top:v,right:b,bottom:C,left:w,theme:Ze}):Te==="bars"?Je.forEach(function(ot){L(Ce,Dt({bar:ot,borderColor:pt(ot),borderRadius:U,borderWidth:re,label:Pe(ot.data),labelColor:He(ot),shouldRenderLabel:fe(ot)},it(ot.width,ot.height)))}):Te==="legends"?we.forEach(function(ot){var vt=ot[0],Ct=ot[1];Bhe(Ce,Dt({},vt,{data:Ct,containerWidth:Ee,containerHeight:Ke,theme:Ze}))}):Te==="annotations"?yhe(Ce,{annotations:ae,theme:Ze}):Te==="totals"&&Xe?function(ot,vt,Ct,ht){ht===void 0&&(ht=In.layout),ot.fillStyle=Ct.text.fill,ot.font="bold "+Ct.labels.text.fontSize+"px "+Ct.labels.text.fontFamily,ot.textBaseline=ht==="vertical"?"alphabetic":"middle",ot.textAlign=ht==="vertical"?"center":"start",vt.forEach(function(Ot){ot.fillText(Ot.formattedValue,Ot.x,Ot.y)})}(Ce,Oe,Ze,l):typeof Te=="function"&&Te(Ce,se)}),Ce.save())},[C,w,b,v,Je,U,re,ae,R,_,pt,Pe,He,O,k,s,a,Ke,Ee,se,V,l,we,de.left,de.top,Ne,nt,Re,L,tt,Be,c,fe,Ze,o,Oe,Xe,Ve,it]);var at=S.useCallback(function(be){if(De&&Qe.current){var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt!==void 0?(rt(S.createElement(ge,Dt({},vt.data,{color:vt.color,label:vt.label,value:Number(vt.data.value)})),be),be.type==="mouseenter"&&($e==null||$e(vt.data,be))):X()}},[X,de,$e,De,rt,ge]),st=S.useCallback(function(be){if(De&&Qe.current){X();var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt&&(he==null||he(vt.data,be))}},[X,de,he,De]),ft=S.useCallback(function(be){if(De&&Qe.current){var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt!==void 0&&(ce==null||ce(Dt({},vt.data,{color:vt.color}),be))}},[de,ce,De]);return p.jsx("canvas",{ref:function(be){Qe.current=be,ke&&"current"in ke&&(ke.current=be)},width:nt*Re,height:Ne*Re,style:{width:nt,height:Ne,cursor:Se?"auto":"normal"},onMouseEnter:Se?at:void 0,onMouseMove:Se?at:void 0,onMouseLeave:Se?st:void 0,onClick:Se?ft:void 0})},mge=S.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=$l(e,gge);return p.jsx(Nm,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:p.jsx(vge,Dt({},o,{canvasRef:t}))})}),Ml=function(e){return p.jsx(Fm,{children:function(t){var n=t.width,r=t.height;return p.jsx(hge,Dt({width:n,height:r},e))}})};S.forwardRef(function(e,t){return p.jsx(Fm,{children:function(n){var r=n.width,i=n.height;return p.jsx(mge,Dt({width:r,height:i},e,{ref:t}))}})});const Qh=12,f_=14,pge=yt.tspan`
|
|
554
|
+
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fa.apply(this,arguments)}var Ihe={top:0,right:0,bottom:0,left:0},zm=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:fa({},Ihe,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},i_=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},o_=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Ahe={circle:khe,diamond:jhe,square:Phe,triangle:Lhe},Nhe=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,m=e.width,g=e.height,v=e.data,b=e.direction,y=b===void 0?"left-to-right":b,C=e.justify,$=C!==void 0&&C,w=e.textColor,M=e.background,R=M===void 0?"transparent":M,E=e.opacity,_=E===void 0?1:E,O=e.symbolShape,k=O===void 0?"square":O,A=e.symbolSize,j=A===void 0?16:A,H=e.symbolSpacing,T=H===void 0?8:H,P=e.symbolBorderWidth,V=P===void 0?0:P,I=e.symbolBorderColor,L=I===void 0?"transparent":I,N=e.onClick,z=e.onMouseEnter,q=e.onMouseLeave,G=e.toggleSerie,Y=e.effects,ee=S.useState({}),Q=ee[0],K=ee[1],J=Pn(),W=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on==="hover"}).reduce(function(me,ge){return fa({},me,ge.style)},{});K(Se)}z==null||z(v,ye)},[z,v,Y]),Z=S.useCallback(function(ye){if(Y){var Se=Y.filter(function(me){return me.on!=="hover"}).reduce(function(me,ge){return fa({},me,ge.style)},{});K(Se)}q==null||q(v,ye)},[q,v,Y]),U=o_({direction:y,justify:$,symbolSize:(t=Q.symbolSize)!=null?t:j,symbolSpacing:T,width:m,height:g}),F=U.symbolX,re=U.symbolY,B=U.labelX,ie=U.labelY,oe=U.labelAnchor,ve=U.labelAlignment,xe=[N,z,q,G].some(function(ye){return ye!==void 0}),pe=typeof k=="function"?k:Ahe[k];return p.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=Q.itemOpacity)!=null?n:_},children:[p.jsx("rect",{width:m,height:g,fill:(r=Q.itemBackground)!=null?r:R,style:{cursor:xe?"pointer":"auto"},onClick:function(ye){N==null||N(v,ye),G==null||G(v.id)},onMouseEnter:W,onMouseLeave:Z}),x.createElement(pe,fa({id:v.id,x:F,y:re,size:(i=Q.symbolSize)!=null?i:j,fill:(o=(a=v.fill)!=null?a:v.color)!=null?o:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:V,borderColor:(l=Q.symbolBorderColor)!=null?l:L},v.hidden?J.legends.hidden.symbol:void 0)),p.jsx("text",{textAnchor:oe,style:fa({},Am(J.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:w)!=null?u:J.legends.text.fill)!=null?c:"black",dominantBaseline:ve,pointerEvents:"none",userSelect:"none"},v.hidden?J.legends.hidden.text:void 0),x:B,y:ie,children:v.label})]})},Fhe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?0:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemTextColor,v=e.itemBackground,b=v===void 0?"transparent":v,y=e.itemOpacity,C=y===void 0?1:y,$=e.symbolShape,w=e.symbolSize,M=e.symbolSpacing,R=e.symbolBorderWidth,E=e.symbolBorderColor,_=e.onClick,O=e.onMouseEnter,k=e.onMouseLeave,A=e.toggleSerie,j=zm({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:m,direction:i,padding:a}).padding,H=i==="row"?c+m:0,T=i==="column"?u+m:0;return p.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(P,V){return p.jsx(Nhe,{data:P,x:V*H+j.left,y:V*T+j.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:g,background:b,opacity:C,symbolShape:$,symbolSize:w,symbolSpacing:M,symbolBorderWidth:R,symbolBorderColor:E,onClick:_,onMouseEnter:O,onMouseLeave:k,toggleSerie:A},V)})})},Dhe=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?0:i,a=e.translateY,s=a===void 0?0:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,m=h===void 0?0:h,g=e.itemWidth,v=e.itemHeight,b=e.itemDirection,y=e.itemTextColor,C=e.itemBackground,$=e.itemOpacity,w=e.symbolShape,M=e.symbolSize,R=e.symbolSpacing,E=e.symbolBorderWidth,_=e.symbolBorderColor,O=e.onClick,k=e.onMouseEnter,A=e.onMouseLeave,j=e.toggleSerie,H=e.effects,T=zm({itemCount:t.length,itemsSpacing:m,itemWidth:g,itemHeight:v,direction:c,padding:d}),P=T.width,V=T.height,I=i_({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:P,height:V}),L=I.x,N=I.y;return p.jsx(Fhe,{data:t,x:L,y:N,direction:c,padding:d,justify:f,effects:H,itemsSpacing:m,itemWidth:g,itemHeight:v,itemDirection:b,itemTextColor:y,itemBackground:C,itemOpacity:$,symbolShape:w,symbolSize:M,symbolSpacing:R,symbolBorderWidth:E,symbolBorderColor:_,onClick:O,onMouseEnter:k,onMouseLeave:A,toggleSerie:typeof j=="boolean"?void 0:j})},zhe={start:"left",middle:"center",end:"right"},Bhe=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,m=h!==void 0&&h,g=t.itemsSpacing,v=g===void 0?0:g,b=t.itemWidth,y=t.itemHeight,C=t.itemDirection,$=C===void 0?"left-to-right":C,w=t.itemTextColor,M=t.symbolSize,R=M===void 0?16:M,E=t.symbolSpacing,_=E===void 0?8:E,O=t.theme,k=zm({itemCount:n.length,itemWidth:b,itemHeight:y,itemsSpacing:v,direction:u,padding:f}),A=k.width,j=k.height,H=k.padding,T=i_({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:A,height:j}),P=T.x,V=T.y,I=u==="row"?b+v:0,L=u==="column"?y+v:0;e.save(),e.translate(P,V),e.font=O.legends.text.fontSize+"px "+(O.legends.text.fontFamily||"sans-serif"),n.forEach(function(N,z){var q,G,Y=z*I+H.left,ee=z*L+H.top,Q=o_({direction:$,justify:m,symbolSize:R,symbolSpacing:_,width:b,height:y}),K=Q.symbolX,J=Q.symbolY,W=Q.labelX,Z=Q.labelY,U=Q.labelAnchor,F=Q.labelAlignment;e.fillStyle=(q=N.color)!=null?q:"black",e.fillRect(Y+K,ee+J,R,R),e.textAlign=zhe[U],F==="central"&&(e.textBaseline="middle"),e.fillStyle=(G=w??O.legends.text.fill)!=null?G:"black",e.fillText(String(N.label),Y+W,ee+Z)}),e.restore()};function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(this,arguments)}function $l(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var _9,Whe=function(e){var t=e.bars,n=e.annotations,r=e_({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return p.jsx(p.Fragment,{children:r.map(function(i,o){return p.jsx(bhe,Dt({},i),o)})})},Zhe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return p.jsx(p.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return p.jsx(Dhe,Dt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},Uhe=["data"],qhe=function(e){var t,n=e.bar,r=n.data,i=$l(n,Uhe),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,m=o.width,g=o.textAnchor,v=e.borderRadius,b=e.borderWidth,y=e.label,C=e.shouldRenderLabel,$=e.isInteractive,w=e.onClick,M=e.onMouseEnter,R=e.onMouseLeave,E=e.tooltip,_=e.isFocusable,O=e.ariaLabel,k=e.ariaLabelledBy,A=e.ariaDescribedBy,j=e.ariaDisabled,H=e.ariaHidden,T=Pn(),P=OM(),V=P.showTooltipFromEvent,I=P.showTooltipAt,L=P.hideTooltip,N=S.useMemo(function(){return function(){return S.createElement(E,Dt({},i,r))}},[E,i,r]),z=S.useCallback(function(K){w==null||w(Dt({color:i.color},r),K)},[i,r,w]),q=S.useCallback(function(K){return V(N(),K)},[V,N]),G=S.useCallback(function(K){M==null||M(r,K),V(N(),K)},[r,M,V,N]),Y=S.useCallback(function(K){R==null||R(r,K),L()},[r,L,R]),ee=S.useCallback(function(){I(N(),[i.absX+i.width/2,i.absY])},[I,N,i]),Q=S.useCallback(function(){L()},[L]);return p.jsxs(et.g,{transform:h,children:[p.jsx(et.rect,{width:Vn(m,function(K){return Math.max(K,0)}),height:Vn(l,function(K){return Math.max(K,0)}),rx:v,ry:v,fill:(t=r.fill)!=null?t:s,strokeWidth:b,stroke:a,focusable:_,tabIndex:_?0:void 0,"aria-label":O?O(r):void 0,"aria-labelledby":k?k(r):void 0,"aria-describedby":A?A(r):void 0,"aria-disabled":j?j(r):void 0,"aria-hidden":H?H(r):void 0,onMouseEnter:$?G:void 0,onMouseMove:$?q:void 0,onMouseLeave:$?Y:void 0,onClick:$?z:void 0,onFocus:$&&_?ee:void 0,onBlur:$&&_?Q:void 0}),C&&p.jsx(et.text,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Dt({},T.labels.text,{pointerEvents:"none",fill:c}),children:y})]})},Ghe=["color","label"],Yhe=function(e){var t=e.color,n=e.label,r=$l(e,Ghe);return p.jsx(n3e,{id:n,value:r.formattedValue,enableChip:!0,color:t})},qt={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:Yhe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[],enableTotals:!1,totalsOffset:10},sn=Dt({},qt,{layers:["grid","axes","bars","totals","markers","legends","annotations"],barComponent:qhe,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1}),In=Dt({},qt,{layers:["grid","axes","bars","totals","legends","annotations"],pixelRatio:typeof window<"u"&&(_9=window.devicePixelRatio)!=null?_9:1}),a_=function(e,t,n,r,i,o){return Dm(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},s_=function(e,t){return e.map(function(n){return Dt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},n0=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},r0=function(e){return[e,Number(e)]};function l_(e,t,n,r){return e===void 0&&(e=qt.layout),t===void 0&&(t=qt.reverse),n===void 0&&(n=qt.labelPosition),r===void 0&&(r=qt.labelOffset),function(i,o){var a=r*(t?-1:1);if(e==="horizontal"){var s=i/2;return n==="start"?s=t?i:0:n==="end"&&(s=t?0:i),{labelX:s+a,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=o/2;return n==="start"?l=t?0:o:n==="end"&&(l=t?o:0),{labelX:i/2,labelY:l-a,textAnchor:"middle"}}}var Khe=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Bm=function(e,t){return e>t},c_=function(e,t){return e<t},u_=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Xhe=function(e){return Bm(e,0)?0:e},Qhe=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,f=e.xScale,h=e.yScale,m=e.margin,g=n?c_:Bm,v=i.map(n0),b=[];return d.forEach(function(y,C){return u_(0,f.domain().length).forEach(function($){var w,M,R,E=r0(i[$][y]),_=E[0],O=E[1],k=s(i[$]),A=((w=f(k))!=null?w:0)+t*C+u*C,j=g(M=O,0)?(R=h(M))!=null?R:0:r,H=function(P,V){var I;return g(P,0)?r-V:((I=h(P))!=null?I:0)-r}(O,j),T={id:y,value:_===null?_:O,formattedValue:o(O),hidden:!1,index:$,indexValue:k,data:v[$]};b.push({key:y+"."+T.indexValue,index:b.length,data:T,x:A,y:j,absX:m.left+A,absY:m.top+j,width:t,height:H,color:a(T),label:l(T)})})}),b},Jhe=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,m=e.margin,g=n?c_:Bm,v=i.map(n0),b=[];return c.forEach(function(y,C){return u_(0,h.domain().length).forEach(function($){var w,M,R,E=r0(i[$][y]),_=E[0],O=E[1],k=a(i[$]),A=g(M=O,0)?r:(R=f(M))!=null?R:0,j=((w=h(k))!=null?w:0)+t*C+d*C,H=function(P,V){var I;return g(P,0)?((I=f(P))!=null?I:0)-r:r-V}(O,A),T={id:y,value:_===null?_:O,formattedValue:o(O),hidden:!1,index:$,indexValue:k,data:v[$]};b.push({key:y+"."+T.indexValue,index:b.length,data:T,x:A,y:j,absX:m.left+A,absY:m.top+j,width:H,height:t,color:s(T),label:l(T)})})}),b},ege=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.innerPadding,f=d===void 0?0:d,h=e.valueScale,m=e.indexScale,g=e.hiddenIds,v=g===void 0?[]:g,b=$l(e,Khe),y=b.keys.filter(function(N){return!v.includes(N)}),C=s_(b.data,y),$=r==="vertical"?["y","x",s]:["x","y",l],w=$[0],M=$[1],R=$[2],E=a_(C,b.getIndex,u,m,R,M),_=Dt({max:o,min:i,reverse:a},h),O=_.min==="auto"?Xhe:function(N){return N},k=C.reduce(function(N,z){return[].concat(N,y.map(function(q){return z[q]}))},[]).filter(Boolean),A=O(Math.min.apply(Math,k)),j=(n=Math.max.apply(Math,k),isFinite(n)?n:0),H=Dm(_,{all:k,min:A,max:j},w==="x"?s:l,w),T=r==="vertical"?[E,H]:[H,E],P=T[0],V=T[1],I=(E.bandwidth()-f*(y.length-1))/y.length,L=[Dt({},b,{data:C,keys:y,innerPadding:f,xScale:P,yScale:V}),I,_.reverse,(t=H(0))!=null?t:0];return{xScale:P,yScale:V,bars:I>0?r==="vertical"?Qhe.apply(void 0,L):Jhe.apply(void 0,L):[]}},tge=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],nge=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},rge=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return c.domain().forEach(function(m,g){var v,b,y=h[g],C=(v=c(o(y.data)))!=null?v:0,$=((b=function(O){return u(O[n?0:1])}(y))!=null?b:0)+.5*s,w=function(O,k){var A;return((A=u(O[n?1:0]))!=null?A:0)-k}(y,$)-s,M=r0(y.data[h.key]),R=M[0],E=M[1],_={id:h.key,value:R===null?R:E,formattedValue:r(E),hidden:!1,index:g,indexValue:m,data:n0(y.data)};f.push({key:h.key+"."+m,index:f.length,data:_,x:C,y:$,absX:d.left+C,absY:d.top+$,width:t,height:w,color:i(_),label:a(_)})})}),f},ige=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return u.domain().forEach(function(m,g){var v,b,y=h[g],C=(v=u(o(y.data)))!=null?v:0,$=((b=function(O){return c(O[n?1:0])}(y))!=null?b:0)+.5*s,w=function(O,k){var A;return((A=c(O[n?0:1]))!=null?A:0)-k}(y,$)-s,M=r0(y.data[h.key]),R=M[0],E=M[1],_={id:h.key,value:R===null?R:E,formattedValue:r(E),hidden:!1,index:g,indexValue:m,data:n0(y.data)};f.push({key:h.key+"."+m,index:f.length,data:_,x:$,y:C,absX:d.left+$,absY:d.top+C,width:w,height:t,color:i(_),label:a(_)})})}),f},oge=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,m=h===void 0?[]:h,g=$l(e,tge),v=g.keys.filter(function(I){return!m.includes(I)}),b=eee().keys(v).offset(tee)(s_(n,v)),y=r==="vertical"?["y","x",s]:["x","y",l],C=y[0],$=y[1],w=y[2],M=a_(n,g.getIndex,u,f,w,$),R=Dt({max:o,min:i,reverse:a},d),E=(t=nge(b),d.type==="log"?t.filter(function(I){return I!==0}):t),_=Math.min.apply(Math,E),O=Math.max.apply(Math,E),k=Dm(R,{all:E,min:_,max:O},C==="x"?s:l,C),A=r==="vertical"?[M,k]:[k,M],j=A[0],H=A[1],T=g.innerPadding>0?g.innerPadding:0,P=M.bandwidth(),V=[Dt({},g,{innerPadding:T,stackedData:b,xScale:j,yScale:H}),P,R.reverse];return{xScale:j,yScale:H,bars:P>0?r==="vertical"?rge.apply(void 0,V):ige.apply(void 0,V):[]}},age=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=UM(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Lh(c.map(function(h){var m,g;return{id:(m=h.data.indexValue)!=null?m:"",label:d(h.data),hidden:h.data.hidden,color:(g=h.color)!=null?g:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,m){var g=Lh(c.map(function(v){var b;return{id:v.data.id,label:m(v.data),hidden:v.data.hidden,color:(b=v.color)!=null?b:"#000"}}),function(v){return v.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&g.reverse(),g}(t,o,n,i,s,l)},E9=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},sge=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},lge=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},cge=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},d_=function(e){var t=e.indexBy,n=t===void 0?qt.indexBy:t,r=e.keys,i=r===void 0?qt.keys:r,o=e.label,a=o===void 0?qt.label:o,s=e.tooltipLabel,l=s===void 0?qt.tooltipLabel:s,c=e.valueFormat,u=e.colors,d=u===void 0?qt.colors:u,f=e.colorBy,h=f===void 0?qt.colorBy:f,m=e.borderColor,g=m===void 0?qt.borderColor:m,v=e.labelTextColor,b=v===void 0?qt.labelTextColor:v,y=e.groupMode,C=y===void 0?qt.groupMode:y,$=e.layout,w=$===void 0?qt.layout:$,M=e.reverse,R=M===void 0?qt.reverse:M,E=e.data,_=e.minValue,O=_===void 0?qt.minValue:_,k=e.maxValue,A=k===void 0?qt.maxValue:k,j=e.margin,H=e.width,T=e.height,P=e.padding,V=P===void 0?qt.padding:P,I=e.innerPadding,L=I===void 0?qt.innerPadding:I,N=e.valueScale,z=N===void 0?qt.valueScale:N,q=e.indexScale,G=q===void 0?qt.indexScale:q,Y=e.initialHiddenIds,ee=Y===void 0?qt.initialHiddenIds:Y,Q=e.enableLabel,K=Q===void 0?qt.enableLabel:Q,J=e.labelSkipWidth,W=J===void 0?qt.labelSkipWidth:J,Z=e.labelSkipHeight,U=Z===void 0?qt.labelSkipHeight:Z,F=e.legends,re=F===void 0?qt.legends:F,B=e.legendLabel,ie=e.totalsOffset,oe=ie===void 0?qt.totalsOffset:ie,ve=S.useState(ee??[]),xe=ve[0],pe=ve[1],ye=S.useCallback(function(de){pe(function(Ee){return Ee.indexOf(de)>-1?Ee.filter(function(Ke){return Ke!==de}):[].concat(Ee,[de])})},[]),Se=T2(n),me=T2(a),ge=T2(l),ce=Im(c),$e=Pn(),he=The(d,h),Ae=M9(g,$e),Ie=M9(b,$e),Re=(C==="grouped"?ege:oge)({layout:w,reverse:R,data:E,getIndex:Se,keys:i,minValue:O,maxValue:A,width:H,height:T,getColor:he,padding:V,innerPadding:L,valueScale:z,indexScale:G,hiddenIds:xe,formatValue:ce,getTooltipLabel:ge,margin:j}),ke=Re.bars,Ye=Re.xScale,Xe=Re.yScale,Fe=S.useMemo(function(){return ke.filter(function(de){return de.data.value!==null}).map(function(de,Ee){return Dt({},de,{index:Ee})})},[ke]),je=S.useCallback(function(de){var Ee=de.width,Ke=de.height;return!!K&&!(W>0&&Ee<W)&&!(U>0&&Ke<U)},[K,W,U]),Qe=S.useMemo(function(){return i.map(function(de){var Ee=ke.find(function(Ke){return Ke.data.id===de});return Dt({},Ee,{data:Dt({id:de},Ee==null?void 0:Ee.data,{hidden:xe.includes(de)})})})},[xe,i,ke]),Ze=S.useMemo(function(){return re.map(function(de){return[de,age({bars:de.dataFrom==="keys"?Qe:ke,direction:de.direction,from:de.dataFrom,groupMode:C,layout:w,legendLabel:B,reverse:R})]})},[re,Qe,ke,C,w,B,R]),qe=S.useMemo(function(){return function(de,Ee,Ke,nt,Ne,ze,De){nt===void 0&&(nt=qt.layout),Ne===void 0&&(Ne=qt.groupMode);var Je=[];if(de.length===0)return Je;var tt=new Map,Be=de[0].width,Pe=de[0].height;if(Ne==="stacked"){var ct=new Map;de.forEach(function(fe){var we=fe.data,Oe=we.indexValue,Ge=we.value;E9(tt,Oe,Number(Ge)),sge(ct,Oe,Number(Ge))}),ct.forEach(function(fe,we){var Oe,Ge,We,rt=tt.get(we)||0;nt==="vertical"?(Oe=Ee(we),Ge=Ke(fe),We=Ke(fe/2)):(Oe=Ee(fe),Ge=Ke(we),We=Ee(fe/2)),Oe+=nt==="vertical"?Be/2:ze,Ge+=nt==="vertical"?-ze:Pe/2,Je.push({key:"total_"+we,x:Oe,y:Ge,value:rt,formattedValue:De(rt),animationOffset:We})})}else if(Ne==="grouped"){var pt=new Map,He=new Map;de.forEach(function(fe){var we=fe.data,Oe=we.indexValue,Ge=we.value;E9(tt,Oe,Number(Ge)),lge(pt,Oe,Number(Ge)),cge(He,Oe)}),pt.forEach(function(fe,we){var Oe,Ge,We,rt=tt.get(we)||0,X=He.get(we);nt==="vertical"?(Oe=Ee(we),Ge=Ke(fe),We=Ke(fe/2)):(Oe=Ee(fe),Ge=Ke(we),We=Ee(fe/2)),Oe+=nt==="vertical"?X*Be/2:ze,Ge+=nt==="vertical"?-ze:X*Pe/2,Je.push({key:"total_"+we,x:Oe,y:Ge,value:rt,formattedValue:De(rt),animationOffset:We})})}return Je}(ke,Ye,Xe,w,C,oe,ce)},[ke,Ye,Xe,w,C,oe,ce]);return{bars:ke,barsWithValue:Fe,xScale:Ye,yScale:Xe,getIndex:Se,getLabel:me,getTooltipLabel:ge,formatValue:ce,getColor:he,getBorderColor:Ae,getLabelColor:Ie,shouldRenderBarLabel:je,hiddenIds:xe,toggleSerie:ye,legendsWithData:Ze,barTotals:qe}},uge=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?sn.layout:i,a=Pn();return xr(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return p.jsx(et.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:Dt({},a.labels.text,{pointerEvents:"none",fill:a.text.fill}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},dge=["isInteractive","animate","motionConfig","theme","renderWrapper"],fge=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,b=e.axisRight,y=e.axisBottom,C=y===void 0?sn.axisBottom:y,$=e.axisLeft,w=$===void 0?sn.axisLeft:$,M=e.enableGridX,R=M===void 0?sn.enableGridX:M,E=e.enableGridY,_=E===void 0?sn.enableGridY:E,O=e.gridXValues,k=e.gridYValues,A=e.layers,j=A===void 0?sn.layers:A,H=e.barComponent,T=H===void 0?sn.barComponent:H,P=e.enableLabel,V=P===void 0?sn.enableLabel:P,I=e.label,L=e.labelSkipWidth,N=L===void 0?sn.labelSkipWidth:L,z=e.labelSkipHeight,q=z===void 0?sn.labelSkipHeight:z,G=e.labelTextColor,Y=e.labelPosition,ee=Y===void 0?sn.labelPosition:Y,Q=e.labelOffset,K=Q===void 0?sn.labelOffset:Q,J=e.markers,W=J===void 0?sn.markers:J,Z=e.colorBy,U=e.colors,F=e.defs,re=F===void 0?sn.defs:F,B=e.fill,ie=B===void 0?sn.fill:B,oe=e.borderRadius,ve=oe===void 0?sn.borderRadius:oe,xe=e.borderWidth,pe=xe===void 0?sn.borderWidth:xe,ye=e.borderColor,Se=e.annotations,me=Se===void 0?sn.annotations:Se,ge=e.legendLabel,ce=e.tooltipLabel,$e=e.valueFormat,he=e.isInteractive,Ae=he===void 0?sn.isInteractive:he,Ie=e.tooltip,Re=Ie===void 0?sn.tooltip:Ie,ke=e.onClick,Ye=e.onMouseEnter,Xe=e.onMouseLeave,Fe=e.legends,je=e.role,Qe=je===void 0?sn.role:je,Ze=e.ariaLabel,qe=e.ariaLabelledBy,de=e.ariaDescribedBy,Ee=e.isFocusable,Ke=Ee===void 0?sn.isFocusable:Ee,nt=e.barAriaLabel,Ne=e.barAriaLabelledBy,ze=e.barAriaDescribedBy,De=e.barAriaHidden,Je=e.barAriaDisabled,tt=e.initialHiddenIds,Be=e.enableTotals,Pe=Be===void 0?sn.enableTotals:Be,ct=e.totalsOffset,pt=ct===void 0?sn.totalsOffset:ct,He=ui(),fe=He.animate,we=He.config,Oe=TM(o,a,i),Ge=Oe.outerWidth,We=Oe.outerHeight,rt=Oe.margin,X=Oe.innerWidth,ae=Oe.innerHeight,se=d_({indexBy:n,label:I,tooltipLabel:ce,valueFormat:$e,colors:U,colorBy:Z,borderColor:ye,labelTextColor:G,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:rt,width:X,height:ae,padding:m,innerPadding:g,valueScale:f,indexScale:h,enableLabel:V,labelSkipWidth:N,labelSkipHeight:q,legends:Fe,legendLabel:ge,initialHiddenIds:tt,totalsOffset:pt}),Ve=se.bars,it=se.barsWithValue,at=se.xScale,st=se.yScale,ft=se.getLabel,be=se.getTooltipLabel,Ce=se.getBorderColor,Te=se.getLabelColor,ot=se.shouldRenderBarLabel,vt=se.toggleSerie,Ct=se.legendsWithData,ht=se.barTotals,Ot=se.getColor,rn=l_(l,c,ee,K),It=xr(it,{keys:function(lt){return lt.key},from:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:0,labelColor:Te(lt),labelOpacity:0},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+(lt.y+lt.height)+")",width:lt.width},l==="vertical"?{}:{height:lt.height,transform:"translate("+lt.x+", "+lt.y+")",width:0})},enter:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:lt.height,labelColor:Te(lt),labelOpacity:1},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+lt.y+")",width:lt.width})},update:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:lt.height,labelColor:Te(lt),labelOpacity:1},rn(lt.width,lt.height),{transform:"translate("+lt.x+", "+lt.y+")",width:lt.width})},leave:function(lt){return Dt({borderColor:Ce(lt),color:lt.color,height:0,labelColor:Te(lt),labelOpacity:0},rn(lt.width,lt.height),{labelY:0,transform:"translate("+lt.x+", "+(lt.y+lt.height)+")",width:lt.width},l==="vertical"?{}:Dt({},rn(lt.width,lt.height),{labelX:0,height:lt.height,transform:"translate("+lt.x+", "+lt.y+")",width:0}))},config:we,immediate:!fe,initial:fe?void 0:null}),fn=S.useMemo(function(){return{borderRadius:ve,borderWidth:pe,enableLabel:V,isInteractive:Ae,labelSkipWidth:N,labelSkipHeight:q,onClick:ke,onMouseEnter:Ye,onMouseLeave:Xe,getTooltipLabel:be,tooltip:Re,isFocusable:Ke,ariaLabel:nt,ariaLabelledBy:Ne,ariaDescribedBy:ze,ariaHidden:De,ariaDisabled:Je}},[ve,pe,V,be,Ae,q,N,ke,Ye,Xe,Re,Ke,nt,Ne,ze,De,Je]),lr=F3e(re,Ve,ie,{dataKey:"data",targetKey:"data.fill"}),Nt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};j.includes("annotations")&&(Nt.annotations=p.jsx(Whe,{bars:Ve,annotations:me},"annotations")),j.includes("axes")&&(Nt.axes=p.jsx(rhe,{xScale:at,yScale:st,width:X,height:ae,top:v,right:b,bottom:C,left:w},"axes")),j.includes("bars")&&(Nt.bars=p.jsx(S.Fragment,{children:It(function(lt,_n){return S.createElement(T,Dt({},fn,{bar:_n,style:lt,shouldRenderLabel:ot(_n),label:ft(_n.data)}))})},"bars")),j.includes("grid")&&(Nt.grid=p.jsx(ohe,{width:X,height:ae,xScale:R?at:null,yScale:_?st:null,xValues:O,yValues:k},"grid")),j.includes("legends")&&(Nt.legends=p.jsx(Zhe,{width:X,height:ae,legends:Ct,toggleSerie:vt},"legends")),j.includes("markers")&&(Nt.markers=p.jsx(P3e,{markers:W,width:X,height:ae,xScale:at,yScale:st},"markers")),j.includes("totals")&&Pe&&(Nt.totals=p.jsx(uge,{data:ht,springConfig:we,animate:fe,layout:l},"totals"));var Rn=S.useMemo(function(){return Dt({},fn,{margin:rt,width:o,height:a,innerWidth:X,innerHeight:ae,bars:Ve,legendData:Ct,enableLabel:V,xScale:at,yScale:st,tooltip:Re,getTooltipLabel:be,onClick:ke,onMouseEnter:Ye,onMouseLeave:Xe,getColor:Ot})},[fn,rt,o,a,X,ae,Ve,Ct,V,at,st,Re,be,ke,Ye,Xe,Ot]);return p.jsx(DM,{width:Ge,height:We,margin:rt,defs:lr,role:Qe,ariaLabel:Ze,ariaLabelledBy:qe,ariaDescribedBy:de,isFocusable:Ke,children:j.map(function(lt,_n){var cn;return typeof lt=="function"?p.jsx(S.Fragment,{children:S.createElement(lt,Rn)},_n):(cn=Nt==null?void 0:Nt[lt])!=null?cn:null})})},hge=function(e){var t=e.isInteractive,n=t===void 0?sn.isInteractive:t,r=e.animate,i=r===void 0?sn.animate:r,o=e.motionConfig,a=o===void 0?sn.motionConfig:o,s=e.theme,l=e.renderWrapper,c=$l(e,dge);return p.jsx(Nm,{animate:i,isInteractive:n,motionConfig:a,renderWrapper:l,theme:s,children:p.jsx(fge,Dt({isInteractive:n},c))})},gge=["isInteractive","renderWrapper","theme"],P2=function(e,t,n,r){return e.find(function(i){return L3e(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},vge=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,f=e.valueScale,h=e.indexScale,m=e.padding,g=e.innerPadding,v=e.axisTop,b=e.axisRight,y=e.axisBottom,C=y===void 0?In.axisBottom:y,$=e.axisLeft,w=$===void 0?In.axisLeft:$,M=e.enableGridX,R=M===void 0?In.enableGridX:M,E=e.enableGridY,_=E===void 0?In.enableGridY:E,O=e.gridXValues,k=e.gridYValues,A=e.labelPosition,j=A===void 0?In.labelPosition:A,H=e.labelOffset,T=H===void 0?In.labelOffset:H,P=e.layers,V=P===void 0?In.layers:P,I=e.renderBar,L=I===void 0?function(be,Ce){var Te=Ce.bar,ot=Te.color,vt=Te.height,Ct=Te.width,ht=Te.x,Ot=Te.y,rn=Ce.borderColor,It=Ce.borderRadius,fn=Ce.borderWidth,lr=Ce.label,Nt=Ce.labelColor,Rn=Ce.shouldRenderLabel,lt=Ce.labelX,_n=Ce.labelY,cn=Ce.textAnchor;if(be.fillStyle=ot,fn>0&&(be.strokeStyle=rn,be.lineWidth=fn),be.beginPath(),It>0){var hn=Math.min(It,vt);be.moveTo(ht+hn,Ot),be.lineTo(ht+Ct-hn,Ot),be.quadraticCurveTo(ht+Ct,Ot,ht+Ct,Ot+hn),be.lineTo(ht+Ct,Ot+vt-hn),be.quadraticCurveTo(ht+Ct,Ot+vt,ht+Ct-hn,Ot+vt),be.lineTo(ht+hn,Ot+vt),be.quadraticCurveTo(ht,Ot+vt,ht,Ot+vt-hn),be.lineTo(ht,Ot+hn),be.quadraticCurveTo(ht,Ot,ht+hn,Ot),be.closePath()}else be.rect(ht,Ot,Ct,vt);be.fill(),fn>0&&be.stroke(),Rn&&(be.textBaseline="middle",be.textAlign=cn==="middle"?"center":cn,be.fillStyle=Nt,be.fillText(lr,ht+lt,Ot+_n))}:I,N=e.enableLabel,z=N===void 0?In.enableLabel:N,q=e.label,G=e.labelSkipWidth,Y=G===void 0?In.labelSkipWidth:G,ee=e.labelSkipHeight,Q=ee===void 0?In.labelSkipHeight:ee,K=e.labelTextColor,J=e.colorBy,W=e.colors,Z=e.borderRadius,U=Z===void 0?In.borderRadius:Z,F=e.borderWidth,re=F===void 0?In.borderWidth:F,B=e.borderColor,ie=e.annotations,oe=ie===void 0?In.annotations:ie,ve=e.legendLabel,xe=e.tooltipLabel,pe=e.valueFormat,ye=e.isInteractive,Se=ye===void 0?In.isInteractive:ye,me=e.tooltip,ge=me===void 0?In.tooltip:me,ce=e.onClick,$e=e.onMouseEnter,he=e.onMouseLeave,Ae=e.legends,Ie=e.pixelRatio,Re=Ie===void 0?In.pixelRatio:Ie,ke=e.canvasRef,Ye=e.enableTotals,Xe=Ye===void 0?In.enableTotals:Ye,Fe=e.totalsOffset,je=Fe===void 0?In.totalsOffset:Fe,Qe=S.useRef(null),Ze=Pn(),qe=TM(o,a,i),de=qe.margin,Ee=qe.innerWidth,Ke=qe.innerHeight,nt=qe.outerWidth,Ne=qe.outerHeight,ze=d_({indexBy:n,label:q,tooltipLabel:xe,valueFormat:pe,colors:W,colorBy:J,borderColor:B,labelTextColor:K,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:de,width:Ee,height:Ke,padding:m,innerPadding:g,valueScale:f,indexScale:h,enableLabel:z,labelSkipWidth:Y,labelSkipHeight:Q,legends:Ae,legendLabel:ve,totalsOffset:je}),De=ze.bars,Je=ze.barsWithValue,tt=ze.xScale,Be=ze.yScale,Pe=ze.getLabel,ct=ze.getTooltipLabel,pt=ze.getBorderColor,He=ze.getLabelColor,fe=ze.shouldRenderBarLabel,we=ze.legendsWithData,Oe=ze.barTotals,Ge=ze.getColor,We=OM(),rt=We.showTooltipFromEvent,X=We.hideTooltip,ae=fhe({annotations:e_({data:De,annotations:oe,getPosition:function(be){return{x:be.x,y:be.y}},getDimensions:function(be){var Ce=be.width,Te=be.height;return{width:Ce,height:Te,size:Math.max(Ce,Te)}}})}),se=S.useMemo(function(){return{borderRadius:U,borderWidth:re,isInteractive:Se,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:Q,margin:de,width:o,height:a,innerWidth:Ee,innerHeight:Ke,bars:De,legendData:we,enableLabel:z,xScale:tt,yScale:Be,tooltip:ge,getTooltipLabel:ct,onClick:ce,onMouseEnter:$e,onMouseLeave:he,getColor:Ge}},[U,re,Se,Y,Q,de,o,a,Ee,Ke,De,we,z,tt,Be,ge,ct,ce,$e,he,Ge]),Ve=Im(pe),it=l_(l,c,j,T);S.useEffect(function(){var be,Ce=(be=Qe.current)==null?void 0:be.getContext("2d");Qe.current&&Ce&&(Qe.current.width=nt*Re,Qe.current.height=Ne*Re,Ce.scale(Re,Re),Ce.fillStyle=Ze.background,Ce.fillRect(0,0,nt,Ne),Ce.translate(de.left,de.top),V.forEach(function(Te){Te==="grid"?typeof Ze.grid.line.strokeWidth=="number"&&Ze.grid.line.strokeWidth>0&&(Ce.lineWidth=Ze.grid.line.strokeWidth,Ce.strokeStyle=Ze.grid.line.stroke,R&&C9(Ce,{width:Ee,height:Ke,scale:tt,axis:"x",values:O}),_&&C9(Ce,{width:Ee,height:Ke,scale:Be,axis:"y",values:k})):Te==="axes"?she(Ce,{xScale:tt,yScale:Be,width:Ee,height:Ke,top:v,right:b,bottom:C,left:w,theme:Ze}):Te==="bars"?Je.forEach(function(ot){L(Ce,Dt({bar:ot,borderColor:pt(ot),borderRadius:U,borderWidth:re,label:Pe(ot.data),labelColor:He(ot),shouldRenderLabel:fe(ot)},it(ot.width,ot.height)))}):Te==="legends"?we.forEach(function(ot){var vt=ot[0],Ct=ot[1];Bhe(Ce,Dt({},vt,{data:Ct,containerWidth:Ee,containerHeight:Ke,theme:Ze}))}):Te==="annotations"?yhe(Ce,{annotations:ae,theme:Ze}):Te==="totals"&&Xe?function(ot,vt,Ct,ht){ht===void 0&&(ht=In.layout),ot.fillStyle=Ct.text.fill,ot.font="bold "+Ct.labels.text.fontSize+"px "+Ct.labels.text.fontFamily,ot.textBaseline=ht==="vertical"?"alphabetic":"middle",ot.textAlign=ht==="vertical"?"center":"start",vt.forEach(function(Ot){ot.fillText(Ot.formattedValue,Ot.x,Ot.y)})}(Ce,Oe,Ze,l):typeof Te=="function"&&Te(Ce,se)}),Ce.save())},[C,w,b,v,Je,U,re,ae,R,_,pt,Pe,He,O,k,s,a,Ke,Ee,se,V,l,we,de.left,de.top,Ne,nt,Re,L,tt,Be,c,fe,Ze,o,Oe,Xe,Ve,it]);var at=S.useCallback(function(be){if(De&&Qe.current){var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt!==void 0?(rt(S.createElement(ge,Dt({},vt.data,{color:vt.color,label:vt.label,value:Number(vt.data.value)})),be),be.type==="mouseenter"&&($e==null||$e(vt.data,be))):X()}},[X,de,$e,De,rt,ge]),st=S.useCallback(function(be){if(De&&Qe.current){X();var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt&&(he==null||he(vt.data,be))}},[X,de,he,De]),ft=S.useCallback(function(be){if(De&&Qe.current){var Ce=k2(Qe.current,be),Te=Ce[0],ot=Ce[1],vt=P2(De,de,Te,ot);vt!==void 0&&(ce==null||ce(Dt({},vt.data,{color:vt.color}),be))}},[de,ce,De]);return p.jsx("canvas",{ref:function(be){Qe.current=be,ke&&"current"in ke&&(ke.current=be)},width:nt*Re,height:Ne*Re,style:{width:nt,height:Ne,cursor:Se?"auto":"normal"},onMouseEnter:Se?at:void 0,onMouseMove:Se?at:void 0,onMouseLeave:Se?st:void 0,onClick:Se?ft:void 0})},mge=S.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=$l(e,gge);return p.jsx(Nm,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:p.jsx(vge,Dt({},o,{canvasRef:t}))})}),Ml=function(e){return p.jsx(Fm,{children:function(t){var n=t.width,r=t.height;return p.jsx(hge,Dt({width:n,height:r},e))}})};S.forwardRef(function(e,t){return p.jsx(Fm,{children:function(n){var r=n.width,i=n.height;return p.jsx(mge,Dt({width:r,height:i},e,{ref:t}))}})});const Qh=12,f_=14,pge=yt.tspan`
|
|
555
555
|
font: var(--gf-label-md-default);
|
|
556
556
|
color: var(--gf-color-text-secondary);
|
|
557
557
|
font-size: ${Qh}px;
|
|
558
558
|
line-height: ${f_}px;
|
|
559
|
-
`,bge=(e,t,n=12)=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}px Roboto, sans-serif`;const o=e.split(" "),a=[];let s=o[0];for(let l=1;l<o.length;l++){const c=`${s} ${o[l]}`;i.measureText(c).width>t?(a.push(s),s=o[l]):s=c}return a.push(s),a},yge=({data:e=null,height:t=600,margin:n={},labelWidth:r=120,labelPadding:i=20,keys:o=null,indexBy:a=null,tooltip:s=null,legendTitle:l="Legend title"})=>{const c=({bar:g})=>{var O,k;const v=S.useRef(null),[b,y]=S.useState(0),C=g.data.data,$=(O=na==null?void 0:na[C==null?void 0:C[a]])==null?void 0:O.key,w=(k=na==null?void 0:na[C==null?void 0:C[a]])==null?void 0:k.name,M=`${$}. ${w}`,R=bge(M,r,Qh);S.useEffect(()=>{if(v.current){const A=v.current.getBoundingClientRect();y(A.height)}},[]);const E=r+i,_=g.y+g.height/2-b/2;return p.jsx("g",{ref:v,transform:`translate(-${E}, ${_})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:R.map((A,j)=>p.jsx(pge,{x:j==0?0:$<10?14:20,dy:j>0?f_:Qh,children:A},j))})})};let u=null;const d=({bars:g})=>g.map((v,b)=>{var y;if(name=(y=v==null?void 0:v.data)==null?void 0:y.id,!(name!==u&&u!==null))return u=name,p.jsx(c,{bar:v},`bar-label-${b}`)}),f=e.map(g=>g==null?void 0:g.total),h=qo().domain([0,Math.max(...f)]).nice().ticks(5),m=e.slice().reverse();return p.jsx("div",{style:{height:t+20},children:p.jsx(Ml,{data:m,colors:({id:g,data:v})=>String(v[`${g}Color`]),keys:o,indexBy:a,margin:{top:50,right:10,bottom:0,left:140,...n},layout:"horizontal",enableGridY:!1,enableGridX:!0,padding:.5,enableLabel:!1,axisTop:{tickSize:5,tickValues:h,legend:l,legendPosition:"middle",legendOffset:-40},gridXValues:h,axisBottom:null,axisLeft:null,layers:["grid","axes","bars",d],tooltip:g=>p.jsx(Zn,{body:(s==null?void 0:s(g))||p.jsx("span",{children:"Overview barchart tooltip"})})})})},xge=({sankey:e={},bar:t={}})=>{const n=S.useRef(null),[r,i]=S.useState(null),o=()=>{n.current&&i(n.current.clientHeight)};return S.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),p.jsx(p.Fragment,{children:p.jsxs(ko,{gutter:[24,0],children:[p.jsxs(br,{span:12,children:[p.jsx(Q2e,{ref:n,...e}),p.jsx(
|
|
559
|
+
`,bge=(e,t,n=12)=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}px Roboto, sans-serif`;const o=e.split(" "),a=[];let s=o[0];for(let l=1;l<o.length;l++){const c=`${s} ${o[l]}`;i.measureText(c).width>t?(a.push(s),s=o[l]):s=c}return a.push(s),a},yge=({data:e=null,height:t=600,margin:n={},labelWidth:r=120,labelPadding:i=20,keys:o=null,indexBy:a=null,tooltip:s=null,legendTitle:l="Legend title"})=>{const c=({bar:g})=>{var O,k;const v=S.useRef(null),[b,y]=S.useState(0),C=g.data.data,$=(O=na==null?void 0:na[C==null?void 0:C[a]])==null?void 0:O.key,w=(k=na==null?void 0:na[C==null?void 0:C[a]])==null?void 0:k.name,M=`${$}. ${w}`,R=bge(M,r,Qh);S.useEffect(()=>{if(v.current){const A=v.current.getBoundingClientRect();y(A.height)}},[]);const E=r+i,_=g.y+g.height/2-b/2;return p.jsx("g",{ref:v,transform:`translate(-${E}, ${_})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:R.map((A,j)=>p.jsx(pge,{x:j==0?0:$<10?14:20,dy:j>0?f_:Qh,children:A},j))})})};let u=null;const d=({bars:g})=>g.map((v,b)=>{var y;if(name=(y=v==null?void 0:v.data)==null?void 0:y.id,!(name!==u&&u!==null))return u=name,p.jsx(c,{bar:v},`bar-label-${b}`)}),f=e.map(g=>g==null?void 0:g.total),h=qo().domain([0,Math.max(...f)]).nice().ticks(5),m=e.slice().reverse();return p.jsx("div",{style:{height:t+20},children:p.jsx(Ml,{data:m,colors:({id:g,data:v})=>String(v[`${g}Color`]),keys:o,indexBy:a,margin:{top:50,right:10,bottom:0,left:140,...n},layout:"horizontal",enableGridY:!1,enableGridX:!0,padding:.5,enableLabel:!1,axisTop:{tickSize:5,tickValues:h,legend:l,legendPosition:"middle",legendOffset:-40},gridXValues:h,axisBottom:null,axisLeft:null,layers:["grid","axes","bars",d],tooltip:g=>p.jsx(Zn,{body:(s==null?void 0:s(g))||p.jsx("span",{children:"Overview barchart tooltip"})})})})},xge=({sankey:e={},bar:t={}})=>{const n=S.useRef(null),[r,i]=S.useState(null),o=()=>{n.current&&i(n.current.clientHeight)};return S.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),p.jsx(p.Fragment,{children:p.jsxs(ko,{gutter:[24,0],children:[p.jsxs(br,{span:12,children:[p.jsx(Q2e,{ref:n,...e}),p.jsx(zt,{justify:"center",style:{marginTop:16,width:"100%"},children:p.jsx(J2e,{})})]}),p.jsx(br,{span:12,children:p.jsx(yge,{...t,height:r})})]})})},H9=({data:e,graph:t,stroke:n,strokeWidth:r,dashed:i})=>p.jsx("g",{children:p.jsx("line",{x1:t.xScale(e==null?void 0:e.x1),y1:t.yScale(e==null?void 0:e.y1),x2:t.xScale(e==null?void 0:e.x2),y2:t.yScale(e==null?void 0:e.y2),stroke:n||"red",strokeWidth:r||3,strokeDasharray:i?"10, 5":null})}),Cge=({data:e,color:t,graph:n})=>{const r=fS().x(i=>n.xScale(i==null?void 0:i.x)).y0(i=>n.yScale(i==null?void 0:i.y0)).y1(i=>n.yScale(i==null?void 0:i.y1)).curve($u);return p.jsx("path",{d:r(e),fill:t||"#3daff7",fillOpacity:.3})},wge=yt.span`
|
|
560
560
|
font: var(--gf-label-sm-default);
|
|
561
561
|
color: var(--gf-color-text-primary);
|
|
562
|
-
`,an={domestic:"hsl(42, 89%, 49%)",raw:"hsl(331, 100%, 36%)",abiotic:"hsl(0, 0%, 49%)",goal:"hsl(182, 30%, 45%)"},L2=e=>e.reduce((t,n)=>n<t?n:t,1/0),I2=e=>e.reduce((t,n)=>n>t?n:t,-1/0),Sge=({data:e,style:t={},height:n=600,margin:r={},xScale:i={},yScale:o={},axisBottom:a={},axisLeft:s={},tooltip:l=null,maxYear:c=2030})=>{const u=e.map(_=>_==null?void 0:_.points),d=e.map(_=>_==null?void 0:_.area),f=d.map(_=>_==null?void 0:_.id),h=_=>d.map((O,k)=>p.jsx(Cge,{data:O==null?void 0:O.data,color:an==null?void 0:an[O==null?void 0:O.id],graph:_},`area-${k}`)),m=e.map(_=>_==null?void 0:_.line),g=_=>m.map((O,k)=>p.jsx(H9,{data:O==null?void 0:O.data,stroke:an==null?void 0:an[O==null?void 0:O.id],graph:_},`line-${k}`)),v=e.filter(_=>(_==null?void 0:_.goal)!==void 0).map(_=>_==null?void 0:_.goal);v.length&&f.push("goal");const b=_=>v.map((O,k)=>p.jsx(H9,{data:O,graph:_,stroke:an==null?void 0:an.goal,dashed:!0},`goal-${k}`)),y=d.map(_=>_.data.map(O=>O.x)).flat(),C=L2(y);I2(y);const $=d.map(_=>_.data.map(O=>O.y0)).flat(),w=d.map(_=>_.data.map(O=>O.y1)).flat(),M=Math.min(L2($),L2(w)),R=Math.max(I2($),I2(w)),E=({data:_})=>{const O=({color:P})=>p.jsx("div",{style:{minWidth:8,minHeight:4,backgroundColor:P}}),k=({color:P})=>p.jsx("div",{style:{minWidth:8,minHeight:8,borderRadius:4,backgroundColor:P}}),A=(P,V=.3)=>P.replace("hsl","hsla").replace(")",`, ${V})`),j=["abiotic","goal"],H=_.filter(P=>!j.includes(P))[0],T=[{name:"Totaal",color:an==null?void 0:an[H],shape:"line"},{name:"Abiotisch",color:an==null?void 0:an.abiotic,shape:"line"},...v.length?[{name:"Doelstelling 2030",color:an==null?void 0:an.goal,shape:"line"}]:[],{name:"Betrouwbaarheidsmarge",color:A(an==null?void 0:an[H]),shape:"circle"},{name:"Betrouwbaarheidsmarge",color:A(an==null?void 0:an.abiotic),shape:"circle"}];return p.jsx(
|
|
562
|
+
`,an={domestic:"hsl(42, 89%, 49%)",raw:"hsl(331, 100%, 36%)",abiotic:"hsl(0, 0%, 49%)",goal:"hsl(182, 30%, 45%)"},L2=e=>e.reduce((t,n)=>n<t?n:t,1/0),I2=e=>e.reduce((t,n)=>n>t?n:t,-1/0),Sge=({data:e,style:t={},height:n=600,margin:r={},xScale:i={},yScale:o={},axisBottom:a={},axisLeft:s={},tooltip:l=null,maxYear:c=2030})=>{const u=e.map(_=>_==null?void 0:_.points),d=e.map(_=>_==null?void 0:_.area),f=d.map(_=>_==null?void 0:_.id),h=_=>d.map((O,k)=>p.jsx(Cge,{data:O==null?void 0:O.data,color:an==null?void 0:an[O==null?void 0:O.id],graph:_},`area-${k}`)),m=e.map(_=>_==null?void 0:_.line),g=_=>m.map((O,k)=>p.jsx(H9,{data:O==null?void 0:O.data,stroke:an==null?void 0:an[O==null?void 0:O.id],graph:_},`line-${k}`)),v=e.filter(_=>(_==null?void 0:_.goal)!==void 0).map(_=>_==null?void 0:_.goal);v.length&&f.push("goal");const b=_=>v.map((O,k)=>p.jsx(H9,{data:O,graph:_,stroke:an==null?void 0:an.goal,dashed:!0},`goal-${k}`)),y=d.map(_=>_.data.map(O=>O.x)).flat(),C=L2(y);I2(y);const $=d.map(_=>_.data.map(O=>O.y0)).flat(),w=d.map(_=>_.data.map(O=>O.y1)).flat(),M=Math.min(L2($),L2(w)),R=Math.max(I2($),I2(w)),E=({data:_})=>{const O=({color:P})=>p.jsx("div",{style:{minWidth:8,minHeight:4,backgroundColor:P}}),k=({color:P})=>p.jsx("div",{style:{minWidth:8,minHeight:8,borderRadius:4,backgroundColor:P}}),A=(P,V=.3)=>P.replace("hsl","hsla").replace(")",`, ${V})`),j=["abiotic","goal"],H=_.filter(P=>!j.includes(P))[0],T=[{name:"Totaal",color:an==null?void 0:an[H],shape:"line"},{name:"Abiotisch",color:an==null?void 0:an.abiotic,shape:"line"},...v.length?[{name:"Doelstelling 2030",color:an==null?void 0:an.goal,shape:"line"}]:[],{name:"Betrouwbaarheidsmarge",color:A(an==null?void 0:an[H]),shape:"circle"},{name:"Betrouwbaarheidsmarge",color:A(an==null?void 0:an.abiotic),shape:"circle"}];return p.jsx(zt,{gap:16,className:"gf-full",justify:"center",wrap:!0,children:T.map((P,V)=>p.jsxs(zt,{gap:4,align:"center",children:[P.shape==="line"?p.jsx(O,{color:P.color}):p.jsx(k,{color:P.color}),p.jsx(wge,{children:P.name})]},`legend-${V}`))})};return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{vertical:!0,gap:8,style:{width:"100%"},children:[p.jsx("div",{style:{width:"100%",height:n,...t},children:p.jsx(tM,{data:u,colors:_=>an==null?void 0:an[_==null?void 0:_.serieId],margin:{top:20,right:120,bottom:60,left:120,...r},xScale:{type:"linear",min:C,max:c,...i},yScale:{type:"linear",min:M<0?M:0,max:R,...o},axisBottom:{orient:"bottom",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:46,truncateTickAt:0,legend:"axisBottom",...a},axisLeft:{orient:"left",tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:-60,truncateTickAt:0,legend:"axisLeft",...s},layers:["grid","markers","axes","legends",h,g,b,"nodes"],tooltip:({node:_})=>p.jsx(Zn,{body:(l==null?void 0:l({node:_}))||p.jsx("span",{children:"Tooltip"})})})}),p.jsx(E,{data:f})]})]})},Jh=12,Wm=14,O9=yt.tspan`
|
|
563
563
|
font: var(--gf-label-md-default);
|
|
564
564
|
color: var(--gf-color-text-secondary);
|
|
565
565
|
font-size: ${Jh}px;
|
|
@@ -569,7 +569,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
569
569
|
color: var(--gf-color-text-secondary);
|
|
570
570
|
font-size: 10px;
|
|
571
571
|
line-height: ${Wm}px;
|
|
572
|
-
`,h_=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},Mge=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;h_(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},_ge=({data:e=[],height:t=600,margin:n={},padding:r=.5,keys:i=null,indexBy:o=null,tooltip:a=null,enableLabel:s=!1,label:l=null,keyLabelWidth:c=120,keyLabelPadding:u=20,axisBottom:d={},axisTop:f={},layers:h=["grid","axes"],zeroMarker:m=!1,defs:g=[],fill:v=[],enableGridY:b=!1,enableGridX:y=!1})=>{const C=({bar:k})=>{var L;const A=S.useRef(null),[j,H]=S.useState(0),T=((L=k==null?void 0:k.data)==null?void 0:L.indexValue)||"label",P=Mge(T,c,Jh);S.useEffect(()=>{if(A.current){const N=A.current.getBoundingClientRect();H(N.height)}},[]);const V=c+u,I=k.y+k.height/2-j/2;return p.jsx("g",{ref:A,transform:`translate(-${V}, ${I})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:P.map((N,z)=>p.jsx(O9,{x:0,dy:z>0?Wm:Jh,children:N},z))})})};let $=null;const w=({bars:k})=>k.map((A,j)=>{var H;if(name=(H=A==null?void 0:A.data)==null?void 0:H.id,!(name!==$&&$!==null))return $=name,p.jsx(C,{bar:A},`bar-label-${j}`)}),M=({bar:k})=>{const j=l==null?void 0:l(k.data),H=h_(j,10),T=H.actualBoundingBoxRight+H.actualBoundingBoxLeft,P=H.actualBoundingBoxAscent+H.actualBoundingBoxDescent;if(T>=k.width)return p.jsx(p.Fragment,{});const V=k.x+k.width/2-T/2,I=k.y+k.height/2+P/2;return p.jsx("g",{transform:`translate(${V}, ${I})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:p.jsx(O9,{style:{fontSize:10},children:j||"label"})})})},R=({bars:k})=>k.map((A,j)=>p.jsx(M,{bar:A},`bar-inner-label-${j}`)),E=({data:k,keys:A})=>{g.reduce((H,T)=>(H[T.id]={...T},delete H[T.id].id,H),{}),v.reduce((H,T)=>(T.match&&T.match.id&&(H[T.match.id]=T.id),H),{});const j=A==null?void 0:A.map(H=>{var T;return{name:H,color:(T=k[0])==null?void 0:T[`${H}Color`],defs:g}});return p.jsx(qt,{gap:16,className:"gf-full",justify:"center",wrap:!0,children:j.map((H,T)=>p.jsxs(qt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:16,minHeight:16,backgroundColor:H.color}}),p.jsx($ge,{children:H.name})]},`legend-${T}`))})},_=k=>{var H;let A=null,j=0;return(H=k==null?void 0:k.bars)==null||H.forEach(T=>{var P,V;((P=T==null?void 0:T.data)==null?void 0:P.id)!==A&&A!==null||(A=(V=T==null?void 0:T.data)==null?void 0:V.id,T.x>j&&(j=T.x))}),p.jsx("g",{children:p.jsx("line",{x1:j,y1:0,x2:j,y2:(k==null?void 0:k.height)-40+5,stroke:"black",strokeWidth:3})})},O=e.slice().reverse();return h.push("bars"),s&&h.push(R),m&&h.push(_),p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(qt,{vertical:!0,gap:8,style:{width:"100%"},children:[p.jsx("div",{style:{height:t},children:p.jsx(Ml,{data:O,colors:({id:k,data:A})=>String(A[`${k}Color`]),defs:g,fill:v,keys:i,indexBy:o,margin:{top:-10,right:0,bottom:50,left:140,...n},layout:"horizontal",enableGridY:b,enableGridX:y,padding:r,enableLabel:!1,axisBottom:{tickSize:5,legendPosition:"middle",legendOffset:40,...d},axisTop:f,axisLeft:null,layers:[...h,w],tooltip:k=>p.jsx(Zn,{body:(a==null?void 0:a(k))||p.jsx("span",{children:"Tooltip"})})})}),p.jsx(E,{data:e,keys:i})]})]})};function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}var Ege={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},V9=function(e,t){return"translate("+e+"px, "+t+"px)"},g_=S.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Dn(),a=di(),s=a.animate,l=a.config,c=y_(),u=c[0],d=c[1],f=S.useRef(!1),h=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),b=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,b-=d.height+14):r==="right"?(v+=14,b-=d.height/2):r==="bottom"?(v-=d.width/2,b+=14):r==="left"?(v-=d.width+14,b-=d.height/2):r==="center"&&(v-=d.width/2,b-=d.height/2),h={transform:V9(v,b)},f.current||(m=!0),f.current=[v,b]);var y=Qt({to:h,config:l,immediate:!s||m}),C=Va({},Ege,o.tooltip.wrapper,{transform:(t=y.transform)!=null?t:V9(v,b),opacity:y.transform?1:0});return p.jsx(et.div,{ref:u,style:C,children:i})});g_.displayName="TooltipWrapper";var Hge=S.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return p.jsx("span",{style:Va({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Oge=S.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Dn(),u=C_(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=p.jsxs("div",{style:c.tooltip.basic,children:[a&&p.jsx(Hge,{color:s,style:c.tooltip.chip}),d!==void 0?p.jsxs("span",{children:[n,": ",p.jsx("strong",{children:""+d})]}):n]})}return p.jsx("div",{style:c.tooltip.container,children:t})}),Vge={width:"100%",borderCollapse:"collapse"},Rge=S.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Dn();return i.length?(t=typeof o=="function"?o():p.jsxs("div",{children:[n&&n,p.jsx("table",{style:Va({},Vge,a.tooltip.table),children:p.jsx("tbody",{children:i.map(function(s,l){return p.jsx("tr",{children:s.map(function(c,u){return p.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),p.jsx("div",{style:a.tooltip.container,children:t})):null});Rge.displayName="TableTooltip";var eg=S.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Dn(),a=di(),s=a.animate,l=a.config,c=S.useMemo(function(){return Va({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Qt({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return p.jsx(et.line,Va({},u,{fill:"none",style:c}))});eg.displayName="CrosshairLine";var Tge=S.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),p.jsxs(p.Fragment,{children:[t&&p.jsx(eg,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&p.jsx(eg,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Tge.displayName="Crosshair";var v_=S.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),tg={isVisible:!1,position:[null,null],content:null,anchor:null},m_=S.createContext(tg),kge=function(e){var t=S.useState(tg),n=t[0],r=t[1],i=S.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=S.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,m=h.clientX,g=h.clientY,v=(m-u.left)*f,b=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,b],anchor:c,content:s})},[e,r]),a=S.useCallback(function(){r(tg)},[r]);return{actions:S.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},jge=function(){var e=S.useContext(v_);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},Pge=function(){var e=S.useContext(m_);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},Lge=function(e){return e.isVisible},Ige=function(){var e=Pge();return Lge(e)?p.jsx(g_,{position:e.position,anchor:e.anchor,children:e.content}):null},Age=function(e){var t=e.container,n=e.children,r=kge(t),i=r.actions,o=r.state;return p.jsx(v_.Provider,{value:i,children:p.jsx(m_.Provider,{value:o,children:n})})},Nge={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",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}}};function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},No.apply(this,arguments)}function Zm(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Fge=["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"],Dge=function(e,t){return No({},t,e)},zge=function(e,t){var n=Av({},e,t);return Fge.forEach(function(r){ni(n,r,Dge(yn(n,r),n.text))}),n},p_=S.createContext(),b_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=S.useMemo(function(){var s=Sf(o)?Aa[o]:o;return{animate:r,config:s}},[r,o]);return p.jsx(p_.Provider,{value:a,children:t})},_d={animate:D.bool,motionConfig:D.oneOfType([D.oneOf(Object.keys(Aa)),D.shape({mass:D.number,tension:D.number,friction:D.number,clamp:D.bool,precision:D.number,velocity:D.number,duration:D.number,easing:D.func})])};b_.propTypes={children:D.node.isRequired,animate:_d.animate,config:_d.motionConfig};var di=function(){return S.useContext(p_)},Bge=function(e){var t=di(),n=t.animate,r=t.config,i=function(s){var l=S.useRef();return S.useEffect(function(){l.current=s},[s]),l.current}(e),o=S.useMemo(function(){return wf(i,e)},[i,e]),a=Qt({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Vn(a,o)},Wge={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ue(_i),PRGn:ue(Ei),PiYG:ue(Hi),PuOr:ue(Oi),RdBu:ue(Vi),RdGy:ue(Ri),RdYlBu:ue(Ti),RdYlGn:ue(ki),spectral:ue(ji),blues:ue(qi),greens:ue(Gi),greys:ue(Yi),oranges:ue(Qi),purples:ue(Ki),reds:ue(Xi),BuGn:ue(Pi),BuPu:ue(Li),GnBu:ue(Ii),OrRd:ue(Ai),PuBuGn:ue(Ni),PuBu:ue(Fi),PuRd:ue(Di),RdPu:ue(zi),YlGnBu:ue(Bi),YlGn:ue(Wi),YlOrBr:ue(Zi),YlOrRd:ue(Ui)},Zge=Object.keys(Wge);ue(_i),ue(Ei),ue(Hi),ue(Oi),ue(Vi),ue(Ri),ue(Ti),ue(ki),ue(ji),ue(qi),ue(Gi),ue(Yi),ue(Qi),ue(Ki),ue(Xi),ue(Pi),ue(Li),ue(Ii),ue(Ai),ue(Ni),ue(Fi),ue(Di),ue(zi),ue(Bi),ue(Wi),ue(Zi),ue(Ui);D.oneOfType([D.oneOf(Zge),D.func,D.arrayOf(D.string)]);var Uge={basis:U5,basisClosed:q5,basisOpen:G5,bundle:Y5,cardinal:X5,cardinalClosed:J5,cardinalOpen:tm,catmullRom:rm,catmullRomClosed:im,catmullRomOpen:om,linear:Su,linearClosed:am,monotoneX:$u,monotoneY:Rf,natural:sm,step:lm,stepAfter:um,stepBefore:cm},Um=Object.keys(Uge);Um.filter(function(e){return e.endsWith("Closed")});Cl(Um,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Cl(Um,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");D.shape({top:D.number,right:D.number,bottom:D.number,left:D.number}).isRequired;var qge=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];D.oneOf(qge);_r(bo);var Gge={top:0,right:0,bottom:0,left:0},Yge=function(e,t,n){return n===void 0&&(n={}),S.useMemo(function(){var r=No({},Gge,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},y_=function(){var e=S.useRef(null),t=S.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=S.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return S.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Kge=function(e){return S.useMemo(function(){return zge(Nge,e)},[e])},x_=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Wa(e.slice("5")):Da(e):function(t){return""+t}},C_=function(e){return S.useMemo(function(){return x_(e)},[e])},w_=S.createContext(),Xge={},S_=function(e){var t=e.theme,n=t===void 0?Xge:t,r=e.children,i=Kge(n);return p.jsx(w_.Provider,{value:i,children:r})};S_.propTypes={children:D.node.isRequired,theme:D.object};var Dn=function(){return S.useContext(w_)},Qge=["outlineWidth","outlineColor","outlineOpacity"],$_=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Zm(e,Qge)},M_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?S.cloneElement(r,{},t):t};M_.propTypes={children:D.node.isRequired,condition:D.bool.isRequired,wrapper:D.element.isRequired};var Jge={position:"relative"},__=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=S.useRef(null);return p.jsx(S_,{theme:n,children:p.jsx(b_,{animate:s,config:l,children:p.jsx(Age,{container:c,children:p.jsxs(M_,{condition:i,wrapper:p.jsx("div",{style:Jge,ref:c}),children:[t,a&&p.jsx(Ige,{})]})})})})};__.propTypes={children:D.element.isRequired,isInteractive:D.bool,renderWrapper:D.bool,theme:D.object,animate:D.bool,motionConfig:D.oneOfType([D.string,_d.motionConfig])};D.func.isRequired,D.bool,D.bool,D.object.isRequired,D.bool.isRequired,D.oneOfType([D.string,_d.motionConfig]);var E_=function(e){var t=e.children,n=y_(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return p.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};E_.propTypes={children:D.func.isRequired};var eve=["id","colors"],H_=function(e){var t=e.id,n=e.colors,r=Zm(e,eve);return p.jsx("linearGradient",No({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return p.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};H_.propTypes={id:D.string.isRequired,colors:D.arrayOf(D.shape({offset:D.number.isRequired,color:D.string.isRequired,opacity:D.number})).isRequired,gradientTransform:D.string};var tve={linearGradient:H_},tc={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ng=S.memo(function(e){var t=e.id,n=e.background,r=n===void 0?tc.background:n,i=e.color,o=i===void 0?tc.color:i,a=e.size,s=a===void 0?tc.size:a,l=e.padding,c=l===void 0?tc.padding:l,u=e.stagger,d=u===void 0?tc.stagger:u,f=s+c,h=s/2,m=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:r}),p.jsx("circle",{cx:m+h,cy:m+h,r:h,fill:o}),d&&p.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})});ng.displayName="PatternDots",ng.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var rg=function(e){return e*Math.PI/180},nve=function(e){return 180*e/Math.PI},rve=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},ive=function(e){var t=e%360;return t<0&&(t+=360),t},ove={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"}}},nc={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},ig=S.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?nc.spacing:n,i=e.rotation,o=i===void 0?nc.rotation:i,a=e.background,s=a===void 0?nc.background:a,l=e.color,c=l===void 0?nc.color:l,u=e.lineWidth,d=u===void 0?nc.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=h,v=h;return f===0?m=`
|
|
572
|
+
`,h_=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},Mge=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;h_(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},_ge=({data:e=[],height:t=600,margin:n={},padding:r=.5,keys:i=null,indexBy:o=null,tooltip:a=null,enableLabel:s=!1,label:l=null,keyLabelWidth:c=120,keyLabelPadding:u=20,axisBottom:d={},axisTop:f={},layers:h=["grid","axes"],zeroMarker:m=!1,defs:g=[],fill:v=[],enableGridY:b=!1,enableGridX:y=!1})=>{const C=({bar:k})=>{var L;const A=S.useRef(null),[j,H]=S.useState(0),T=((L=k==null?void 0:k.data)==null?void 0:L.indexValue)||"label",P=Mge(T,c,Jh);S.useEffect(()=>{if(A.current){const N=A.current.getBoundingClientRect();H(N.height)}},[]);const V=c+u,I=k.y+k.height/2-j/2;return p.jsx("g",{ref:A,transform:`translate(-${V}, ${I})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:P.map((N,z)=>p.jsx(O9,{x:0,dy:z>0?Wm:Jh,children:N},z))})})};let $=null;const w=({bars:k})=>k.map((A,j)=>{var H;if(name=(H=A==null?void 0:A.data)==null?void 0:H.id,!(name!==$&&$!==null))return $=name,p.jsx(C,{bar:A},`bar-label-${j}`)}),M=({bar:k})=>{const j=l==null?void 0:l(k.data),H=h_(j,10),T=H.actualBoundingBoxRight+H.actualBoundingBoxLeft,P=H.actualBoundingBoxAscent+H.actualBoundingBoxDescent;if(T>=k.width)return p.jsx(p.Fragment,{});const V=k.x+k.width/2-T/2,I=k.y+k.height/2+P/2;return p.jsx("g",{transform:`translate(${V}, ${I})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:p.jsx(O9,{style:{fontSize:10},children:j||"label"})})})},R=({bars:k})=>k.map((A,j)=>p.jsx(M,{bar:A},`bar-inner-label-${j}`)),E=({data:k,keys:A})=>{g.reduce((H,T)=>(H[T.id]={...T},delete H[T.id].id,H),{}),v.reduce((H,T)=>(T.match&&T.match.id&&(H[T.match.id]=T.id),H),{});const j=A==null?void 0:A.map(H=>{var T;return{name:H,color:(T=k[0])==null?void 0:T[`${H}Color`],defs:g}});return p.jsx(zt,{gap:16,className:"gf-full",justify:"center",wrap:!0,children:j.map((H,T)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:16,minHeight:16,backgroundColor:H.color}}),p.jsx($ge,{children:H.name})]},`legend-${T}`))})},_=k=>{var H;let A=null,j=0;return(H=k==null?void 0:k.bars)==null||H.forEach(T=>{var P,V;((P=T==null?void 0:T.data)==null?void 0:P.id)!==A&&A!==null||(A=(V=T==null?void 0:T.data)==null?void 0:V.id,T.x>j&&(j=T.x))}),p.jsx("g",{children:p.jsx("line",{x1:j,y1:0,x2:j,y2:(k==null?void 0:k.height)-40+5,stroke:"black",strokeWidth:3})})},O=e.slice().reverse();return h.push("bars"),s&&h.push(R),m&&h.push(_),p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{vertical:!0,gap:8,style:{width:"100%"},children:[p.jsx("div",{style:{height:t},children:p.jsx(Ml,{data:O,colors:({id:k,data:A})=>String(A[`${k}Color`]),defs:g,fill:v,keys:i,indexBy:o,margin:{top:-10,right:0,bottom:50,left:140,...n},layout:"horizontal",enableGridY:b,enableGridX:y,padding:r,enableLabel:!1,axisBottom:{tickSize:5,legendPosition:"middle",legendOffset:40,...d},axisTop:f,axisLeft:null,layers:[...h,w],tooltip:k=>p.jsx(Zn,{body:(a==null?void 0:a(k))||p.jsx("span",{children:"Tooltip"})})})}),p.jsx(E,{data:e,keys:i})]})]})};function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}var Ege={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},V9=function(e,t){return"translate("+e+"px, "+t+"px)"},g_=S.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Dn(),a=di(),s=a.animate,l=a.config,c=y_(),u=c[0],d=c[1],f=S.useRef(!1),h=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),b=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,b-=d.height+14):r==="right"?(v+=14,b-=d.height/2):r==="bottom"?(v-=d.width/2,b+=14):r==="left"?(v-=d.width+14,b-=d.height/2):r==="center"&&(v-=d.width/2,b-=d.height/2),h={transform:V9(v,b)},f.current||(m=!0),f.current=[v,b]);var y=Qt({to:h,config:l,immediate:!s||m}),C=Va({},Ege,o.tooltip.wrapper,{transform:(t=y.transform)!=null?t:V9(v,b),opacity:y.transform?1:0});return p.jsx(et.div,{ref:u,style:C,children:i})});g_.displayName="TooltipWrapper";var Hge=S.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return p.jsx("span",{style:Va({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),Oge=S.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Dn(),u=C_(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=p.jsxs("div",{style:c.tooltip.basic,children:[a&&p.jsx(Hge,{color:s,style:c.tooltip.chip}),d!==void 0?p.jsxs("span",{children:[n,": ",p.jsx("strong",{children:""+d})]}):n]})}return p.jsx("div",{style:c.tooltip.container,children:t})}),Vge={width:"100%",borderCollapse:"collapse"},Rge=S.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Dn();return i.length?(t=typeof o=="function"?o():p.jsxs("div",{children:[n&&n,p.jsx("table",{style:Va({},Vge,a.tooltip.table),children:p.jsx("tbody",{children:i.map(function(s,l){return p.jsx("tr",{children:s.map(function(c,u){return p.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),p.jsx("div",{style:a.tooltip.container,children:t})):null});Rge.displayName="TableTooltip";var eg=S.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Dn(),a=di(),s=a.animate,l=a.config,c=S.useMemo(function(){return Va({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Qt({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return p.jsx(et.line,Va({},u,{fill:"none",style:c}))});eg.displayName="CrosshairLine";var Tge=S.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),p.jsxs(p.Fragment,{children:[t&&p.jsx(eg,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&p.jsx(eg,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Tge.displayName="Crosshair";var v_=S.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),tg={isVisible:!1,position:[null,null],content:null,anchor:null},m_=S.createContext(tg),kge=function(e){var t=S.useState(tg),n=t[0],r=t[1],i=S.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=S.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,m=h.clientX,g=h.clientY,v=(m-u.left)*f,b=(g-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,b],anchor:c,content:s})},[e,r]),a=S.useCallback(function(){r(tg)},[r]);return{actions:S.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},jge=function(){var e=S.useContext(v_);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},Pge=function(){var e=S.useContext(m_);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},Lge=function(e){return e.isVisible},Ige=function(){var e=Pge();return Lge(e)?p.jsx(g_,{position:e.position,anchor:e.anchor,children:e.content}):null},Age=function(e){var t=e.container,n=e.children,r=kge(t),i=r.actions,o=r.state;return p.jsx(v_.Provider,{value:i,children:p.jsx(m_.Provider,{value:o,children:n})})},Nge={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",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}}};function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},No.apply(this,arguments)}function Zm(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Fge=["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"],Dge=function(e,t){return No({},t,e)},zge=function(e,t){var n=Av({},e,t);return Fge.forEach(function(r){ni(n,r,Dge(yn(n,r),n.text))}),n},p_=S.createContext(),b_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=S.useMemo(function(){var s=Sf(o)?Aa[o]:o;return{animate:r,config:s}},[r,o]);return p.jsx(p_.Provider,{value:a,children:t})},_d={animate:D.bool,motionConfig:D.oneOfType([D.oneOf(Object.keys(Aa)),D.shape({mass:D.number,tension:D.number,friction:D.number,clamp:D.bool,precision:D.number,velocity:D.number,duration:D.number,easing:D.func})])};b_.propTypes={children:D.node.isRequired,animate:_d.animate,config:_d.motionConfig};var di=function(){return S.useContext(p_)},Bge=function(e){var t=di(),n=t.animate,r=t.config,i=function(s){var l=S.useRef();return S.useEffect(function(){l.current=s},[s]),l.current}(e),o=S.useMemo(function(){return wf(i,e)},[i,e]),a=Qt({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Vn(a,o)},Wge={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ue(_i),PRGn:ue(Ei),PiYG:ue(Hi),PuOr:ue(Oi),RdBu:ue(Vi),RdGy:ue(Ri),RdYlBu:ue(Ti),RdYlGn:ue(ki),spectral:ue(ji),blues:ue(qi),greens:ue(Gi),greys:ue(Yi),oranges:ue(Qi),purples:ue(Ki),reds:ue(Xi),BuGn:ue(Pi),BuPu:ue(Li),GnBu:ue(Ii),OrRd:ue(Ai),PuBuGn:ue(Ni),PuBu:ue(Fi),PuRd:ue(Di),RdPu:ue(zi),YlGnBu:ue(Bi),YlGn:ue(Wi),YlOrBr:ue(Zi),YlOrRd:ue(Ui)},Zge=Object.keys(Wge);ue(_i),ue(Ei),ue(Hi),ue(Oi),ue(Vi),ue(Ri),ue(Ti),ue(ki),ue(ji),ue(qi),ue(Gi),ue(Yi),ue(Qi),ue(Ki),ue(Xi),ue(Pi),ue(Li),ue(Ii),ue(Ai),ue(Ni),ue(Fi),ue(Di),ue(zi),ue(Bi),ue(Wi),ue(Zi),ue(Ui);D.oneOfType([D.oneOf(Zge),D.func,D.arrayOf(D.string)]);var Uge={basis:U5,basisClosed:q5,basisOpen:G5,bundle:Y5,cardinal:X5,cardinalClosed:J5,cardinalOpen:tm,catmullRom:rm,catmullRomClosed:im,catmullRomOpen:om,linear:Su,linearClosed:am,monotoneX:$u,monotoneY:Rf,natural:sm,step:lm,stepAfter:um,stepBefore:cm},Um=Object.keys(Uge);Um.filter(function(e){return e.endsWith("Closed")});Cl(Um,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Cl(Um,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");D.shape({top:D.number,right:D.number,bottom:D.number,left:D.number}).isRequired;var qge=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];D.oneOf(qge);_r(bo);var Gge={top:0,right:0,bottom:0,left:0},Yge=function(e,t,n){return n===void 0&&(n={}),S.useMemo(function(){var r=No({},Gge,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},y_=function(){var e=S.useRef(null),t=S.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=S.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return S.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},Kge=function(e){return S.useMemo(function(){return zge(Nge,e)},[e])},x_=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Wa(e.slice("5")):Da(e):function(t){return""+t}},C_=function(e){return S.useMemo(function(){return x_(e)},[e])},w_=S.createContext(),Xge={},S_=function(e){var t=e.theme,n=t===void 0?Xge:t,r=e.children,i=Kge(n);return p.jsx(w_.Provider,{value:i,children:r})};S_.propTypes={children:D.node.isRequired,theme:D.object};var Dn=function(){return S.useContext(w_)},Qge=["outlineWidth","outlineColor","outlineOpacity"],$_=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Zm(e,Qge)},M_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?S.cloneElement(r,{},t):t};M_.propTypes={children:D.node.isRequired,condition:D.bool.isRequired,wrapper:D.element.isRequired};var Jge={position:"relative"},__=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=S.useRef(null);return p.jsx(S_,{theme:n,children:p.jsx(b_,{animate:s,config:l,children:p.jsx(Age,{container:c,children:p.jsxs(M_,{condition:i,wrapper:p.jsx("div",{style:Jge,ref:c}),children:[t,a&&p.jsx(Ige,{})]})})})})};__.propTypes={children:D.element.isRequired,isInteractive:D.bool,renderWrapper:D.bool,theme:D.object,animate:D.bool,motionConfig:D.oneOfType([D.string,_d.motionConfig])};D.func.isRequired,D.bool,D.bool,D.object.isRequired,D.bool.isRequired,D.oneOfType([D.string,_d.motionConfig]);var E_=function(e){var t=e.children,n=y_(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return p.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};E_.propTypes={children:D.func.isRequired};var eve=["id","colors"],H_=function(e){var t=e.id,n=e.colors,r=Zm(e,eve);return p.jsx("linearGradient",No({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return p.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))};H_.propTypes={id:D.string.isRequired,colors:D.arrayOf(D.shape({offset:D.number.isRequired,color:D.string.isRequired,opacity:D.number})).isRequired,gradientTransform:D.string};var tve={linearGradient:H_},tc={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},ng=S.memo(function(e){var t=e.id,n=e.background,r=n===void 0?tc.background:n,i=e.color,o=i===void 0?tc.color:i,a=e.size,s=a===void 0?tc.size:a,l=e.padding,c=l===void 0?tc.padding:l,u=e.stagger,d=u===void 0?tc.stagger:u,f=s+c,h=s/2,m=c/2;return d===!0&&(f=2*s+2*c),p.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:f,height:f,fill:r}),p.jsx("circle",{cx:m+h,cy:m+h,r:h,fill:o}),d&&p.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})});ng.displayName="PatternDots",ng.propTypes={id:D.string.isRequired,color:D.string.isRequired,background:D.string.isRequired,size:D.number.isRequired,padding:D.number.isRequired,stagger:D.bool.isRequired};var rg=function(e){return e*Math.PI/180},nve=function(e){return 180*e/Math.PI},rve=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},ive=function(e){var t=e%360;return t<0&&(t+=360),t},ove={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"}}},nc={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},ig=S.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?nc.spacing:n,i=e.rotation,o=i===void 0?nc.rotation:i,a=e.background,s=a===void 0?nc.background:a,l=e.color,c=l===void 0?nc.color:l,u=e.lineWidth,d=u===void 0?nc.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=h,v=h;return f===0?m=`
|
|
573
573
|
M 0 0 L `+g+` 0
|
|
574
574
|
M 0 `+v+" L "+g+" "+v+`
|
|
575
575
|
`:f===90?m=`
|
|
@@ -601,7 +601,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
601
601
|
color: var(--gf-color-text-secondary);
|
|
602
602
|
font-size: 10px;
|
|
603
603
|
line-height: ${Km}px;
|
|
604
|
-
`,H5e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},O5e=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;H5e(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},ic={crm:{color:"hsl(36, 100%, 50%)",name:"Kritikaliteit index",legend:"Kritikaliteit index"},value:{color:"hsl(197, 100%, 19%)",name:"Aantal unieke kritieke grondstoffen",legend:"Aantal unieke kritieke grondstoffen"}},V5e=({data:e=[],height:t=1300,margin:n={},padding:r=.3,innerPadding:i=3,keys:o=Object.keys(ic),indexBy:a="material",tooltip:s=null,enableLabel:l=!1,label:c=null,keyLabelWidth:u=200,keyLabelPadding:d=20,graphGap:f=40,axisBottom:h={},layers:m=["grid","axes","bars","markers"],defs:g=[],fill:v=[],leftSpan:b=14,rightSpan:y=10})=>{const C=({bar:H})=>{var q;const T=S.useRef(null),[P,V]=S.useState(0),I=((q=H==null?void 0:H.data)==null?void 0:q.indexValue)||"label",L=O5e(I,u,lg);S.useEffect(()=>{if(T.current){const G=T.current.getBoundingClientRect();V(G.height)}},[]);const N=d,z=H.y+H.height/2-P/2;return p.jsx("g",{ref:T,transform:`translate(-${N}, ${z})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:L.map((G,Y)=>p.jsx(_5e,{x:0,dy:Y>0?Km:lg,textAnchor:"end",children:G},Y))})})};let $=null;const w=({bars:H})=>H.map((T,P)=>{var V;if(name=(V=T==null?void 0:T.data)==null?void 0:V.id,!(name!==$&&$!==null))return $=name,p.jsx(C,{bar:T},`bar-label-${P}`)}),M=({bar:H})=>{var N;const T=((N=H==null?void 0:H.data)==null?void 0:N.id)===o[0],P=T?0:-f/2,V=k*(T?b:y)/24,I=T?V-u-f/2:V-f/2,L=(H==null?void 0:H.y)+(H==null?void 0:H.height)/2;return p.jsx("g",{children:p.jsx("line",{x1:P,y1:L,x2:I,y2:L,stroke:"#e1e1e1",strokeWidth:"1"})})},R=({bars:H})=>H.map((T,P)=>p.jsx(M,{bar:T},`bar-grid-${P}`)),E=({data:H,keys:T})=>{g.reduce((V,I)=>(V[I.id]={...I},delete V[I.id].id,V),{}),v.reduce((V,I)=>(I.match&&I.match.id&&(V[I.match.id]=I.id),V),{});const P=T==null?void 0:T.map(V=>{var I,L;return{name:(I=ic[V])==null?void 0:I.name,color:(L=ic[V])==null?void 0:L.color,defs:g}});return p.jsx(
|
|
604
|
+
`,H5e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},O5e=(e,t,n=12)=>{const r=e.split(" "),i=[];let o=r[0];for(let a=1;a<r.length;a++){const s=`${o} ${r[a]}`;H5e(s,n).width>t?(i.push(o),o=r[a]):o=s}return i.push(o),i},ic={crm:{color:"hsl(36, 100%, 50%)",name:"Kritikaliteit index",legend:"Kritikaliteit index"},value:{color:"hsl(197, 100%, 19%)",name:"Aantal unieke kritieke grondstoffen",legend:"Aantal unieke kritieke grondstoffen"}},V5e=({data:e=[],height:t=1300,margin:n={},padding:r=.3,innerPadding:i=3,keys:o=Object.keys(ic),indexBy:a="material",tooltip:s=null,enableLabel:l=!1,label:c=null,keyLabelWidth:u=200,keyLabelPadding:d=20,graphGap:f=40,axisBottom:h={},layers:m=["grid","axes","bars","markers"],defs:g=[],fill:v=[],leftSpan:b=14,rightSpan:y=10})=>{const C=({bar:H})=>{var q;const T=S.useRef(null),[P,V]=S.useState(0),I=((q=H==null?void 0:H.data)==null?void 0:q.indexValue)||"label",L=O5e(I,u,lg);S.useEffect(()=>{if(T.current){const G=T.current.getBoundingClientRect();V(G.height)}},[]);const N=d,z=H.y+H.height/2-P/2;return p.jsx("g",{ref:T,transform:`translate(-${N}, ${z})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:L.map((G,Y)=>p.jsx(_5e,{x:0,dy:Y>0?Km:lg,textAnchor:"end",children:G},Y))})})};let $=null;const w=({bars:H})=>H.map((T,P)=>{var V;if(name=(V=T==null?void 0:T.data)==null?void 0:V.id,!(name!==$&&$!==null))return $=name,p.jsx(C,{bar:T},`bar-label-${P}`)}),M=({bar:H})=>{var N;const T=((N=H==null?void 0:H.data)==null?void 0:N.id)===o[0],P=T?0:-f/2,V=k*(T?b:y)/24,I=T?V-u-f/2:V-f/2,L=(H==null?void 0:H.y)+(H==null?void 0:H.height)/2;return p.jsx("g",{children:p.jsx("line",{x1:P,y1:L,x2:I,y2:L,stroke:"#e1e1e1",strokeWidth:"1"})})},R=({bars:H})=>H.map((T,P)=>p.jsx(M,{bar:T},`bar-grid-${P}`)),E=({data:H,keys:T})=>{g.reduce((V,I)=>(V[I.id]={...I},delete V[I.id].id,V),{}),v.reduce((V,I)=>(I.match&&I.match.id&&(V[I.match.id]=I.id),V),{});const P=T==null?void 0:T.map(V=>{var I,L;return{name:(I=ic[V])==null?void 0:I.name,color:(L=ic[V])==null?void 0:L.color,defs:g}});return p.jsx(zt,{gap:16,className:"gf-full",justify:"center",wrap:!0,children:P.map((V,I)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:8,minHeight:8,backgroundColor:V.color}}),p.jsx(E5e,{children:V.name})]},`legend-${I}`))})},_=({value:H,labels:T})=>{var P;return p.jsx("div",{style:{height:t},children:p.jsx(Ml,{data:j,colors:({id:V,data:I})=>{var L;return(L=ic[V])==null?void 0:L.color},defs:g,fill:v,keys:[H],indexBy:a,groupMode:"grouped",margin:{right:f/2,bottom:50,left:T?u+d:f/2,...n},layout:"horizontal",enableGridY:!1,enableGridX:!0,padding:r,innerPadding:i,enableLabel:!1,axisBottom:{tickSize:5,legendPosition:"middle",legendOffset:40,legend:(P=ic[H])==null?void 0:P.legend},axisLeft:null,layers:[R,...m,...T?[w]:[]],tooltip:V=>p.jsx(Zn,{body:(s==null?void 0:s(V))||p.jsx("span",{children:"Tooltip"})}),markers:[{axis:"x",value:0,lineStyle:{stroke:"#000000",strokeWidth:1}}]})})},O=S.useRef(null),[k,A]=S.useState(0);S.useEffect(()=>{const H=new ResizeObserver(T=>{for(let P of T)A(P.contentRect.width)});return O.current&&H.observe(O.current),()=>H.disconnect()},[]);const j=e.slice().reverse();return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{vertical:!0,gap:8,style:{width:"100%"},ref:O,children:[p.jsx(E,{data:e,keys:o}),p.jsxs(ko,{gutter:[0,0],children:[p.jsx(br,{span:b,children:p.jsx(_,{value:o[0],labels:!0})}),p.jsx(br,{span:y,children:p.jsx(_,{value:o[1]})})]})]})]})},R5e=12,N_=14,T5e=yt.tspan`
|
|
605
605
|
font: var(--gf-label-md-default);
|
|
606
606
|
color: var(--gf-color-text-secondary);
|
|
607
607
|
font-size: ${R5e}px;
|
|
@@ -611,12 +611,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
611
611
|
color: var(--gf-color-text-secondary);
|
|
612
612
|
font-size: 10px;
|
|
613
613
|
line-height: ${N_}px;
|
|
614
|
-
`,j5e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},N2={"Biomassa en voedsel":"hsla(205, 40%, 79%, 1)",Kunststoffen:"hsla(83, 47%, 73%, 1)",Bouwmaterialen:"hsla(4, 55%, 75%, 1)",Consumptiegoederen:"hsla(35, 74%, 73%, 1)",Overig:"hsla(269, 24%, 77%, 1)",Maakindustrie:"hsla(26, 74%, 58%, 1)"},P5e=({data:e,height:t=500,padding:n=.2,keys:r=Object.keys(N2),indexBy:i="year",margin:o={},axisBottom:a={},axisLeft:s={},color:l={},tooltip:c=null,label:u=null})=>{const d=({bar:m})=>{const v=(u==null?void 0:u(m.data))||"label",b=j5e(v,10),y=b.width,C=b.fontBoundingBoxAscent+b.fontBoundingBoxDescent;if(C>=m.height)return p.jsx(p.Fragment,{});const $=m.x+m.width/2-y/2,w=m.y+m.height/2+C/2;return p.jsx("g",{transform:`translate(${$}, ${w})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:p.jsx(T5e,{style:{fontSize:10},children:v})})})},f=({bars:m})=>m.map((g,v)=>p.jsx(d,{bar:g},`bar-inner-label-${v}`)),h=({data:m,keys:g})=>{const v=g==null?void 0:g.map(b=>({name:b,color:N2[b]}));return p.jsx(
|
|
614
|
+
`,j5e=(e,t=12)=>{const r=document.createElement("canvas").getContext("2d");return r.font=`${t}px Roboto, sans-serif`,r.measureText(e)},N2={"Biomassa en voedsel":"hsla(205, 40%, 79%, 1)",Kunststoffen:"hsla(83, 47%, 73%, 1)",Bouwmaterialen:"hsla(4, 55%, 75%, 1)",Consumptiegoederen:"hsla(35, 74%, 73%, 1)",Overig:"hsla(269, 24%, 77%, 1)",Maakindustrie:"hsla(26, 74%, 58%, 1)"},P5e=({data:e,height:t=500,padding:n=.2,keys:r=Object.keys(N2),indexBy:i="year",margin:o={},axisBottom:a={},axisLeft:s={},color:l={},tooltip:c=null,label:u=null})=>{const d=({bar:m})=>{const v=(u==null?void 0:u(m.data))||"label",b=j5e(v,10),y=b.width,C=b.fontBoundingBoxAscent+b.fontBoundingBoxDescent;if(C>=m.height)return p.jsx(p.Fragment,{});const $=m.x+m.width/2-y/2,w=m.y+m.height/2+C/2;return p.jsx("g",{transform:`translate(${$}, ${w})`,children:p.jsx("text",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignmentBaseline:"middle"},children:p.jsx(T5e,{style:{fontSize:10},children:v})})})},f=({bars:m})=>m.map((g,v)=>p.jsx(d,{bar:g},`bar-inner-label-${v}`)),h=({data:m,keys:g})=>{const v=g==null?void 0:g.map(b=>({name:b,color:N2[b]}));return p.jsx(zt,{gap:16,className:"gf-full",justify:"center",wrap:!0,children:v.map((b,y)=>p.jsxs(zt,{gap:8,align:"center",children:[p.jsx("div",{style:{minWidth:16,minHeight:16,backgroundColor:b.color}}),p.jsx(k5e,{children:b.name})]},`legend-${y}`))})};return p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{vertical:!0,gap:8,style:{width:"100%"},children:[p.jsx("div",{style:{height:t},children:p.jsx(Ml,{data:e,keys:r,indexBy:i,colors:({id:m,data:g})=>N2[m]||"orange",enableLabel:!1,margin:{left:50,bottom:50,top:10,right:50,...o},padding:n,axisBottom:{tickSize:5,legendPosition:"middle",legendOffset:40,...a},axisLeft:{tickSize:5,legendPosition:"middle",legendOffset:-40,...s},layers:["grid","axes","bars",f],tooltip:m=>p.jsx(Zn,{body:(c==null?void 0:c(m))||p.jsx("span",{children:"Tooltip"})})})}),p.jsx(h,{data:e,keys:r})]})]})},D9={goodsRenewable:"#36CFC9",goodsNotRenewable:"#BDE7E3",goodsMixed:"#00474F",wasteRenewable:"#FFA940",wasteNotRenewable:"#EEDBBB",wasteMixed:"#873800"},F2={goodsRenewable:"Goederen - Hernieuwbare materialen",goodsNotRenewable:"Goederen - Niet-hernieuwbare materialen",goodsMixed:"Goederen - Gemengde materialen",wasteRenewable:"Afval - Hernieuwbare materialen",wasteNotRenewable:"Afval - Niet-hernieuwbare materialen",wasteMixed:"Afval - Gemengde materialen"},L5e=({data:e,height:t=400,colorMap:n=D9,margin:r={},padding:i=.3,innerPadding:o=4,tooltip:a=null,axisBottom:s={},axisLeft:l={}})=>{const c=d=>d.bars.map((f,h)=>{const m=f.data.id,g=f.data.data,v=m==null?void 0:m.replace("Total",""),b=g==null?void 0:g[`${v}Total`],y=(g==null?void 0:g[`${v}Renewable`])||0,C=(g==null?void 0:g[`${v}NotRenewable`])||0,$=(g==null?void 0:g[`${v}Mixed`])||0,w=b?f.height*y/b:0,M=b?f.height*C/b:0,R=b?f.height*$/b:0;return p.jsxs("g",{children:[p.jsx("rect",{x:f.x,y:f.y+M+R,width:f.width,height:w,fill:n[`${v}Renewable`]}),p.jsx("rect",{x:f.x,y:f.y+R,width:f.width,height:M,fill:n[`${v}NotRenewable`]}),p.jsx("rect",{x:f.x,y:f.y,width:f.width,height:R,fill:n[`${v}Mixed`]})]},h)}),u=()=>p.jsx(zt,{justify:"center",gap:16,wrap:!0,children:Object.entries(D9).map(([d,f],h)=>p.jsxs(zt,{align:"center",gap:8,children:[p.jsx("div",{style:{width:16,height:16,background:f}}),p.jsx("span",{style:{fontSize:12},children:F2==null?void 0:F2[d]})]},h))});return console.log(e),p.jsxs(zt,{vertical:!0,gap:8,children:[p.jsx("div",{style:{position:"relative",height:t,width:"100%",overflow:"visible"},children:p.jsx(Ml,{data:e,keys:["goodsTotal","wasteTotal"],indexBy:"year",groupMode:"grouped",padding:i,innerPadding:o,enableLabel:!1,colors:d=>"rgba(0, 0, 0, 0)",margin:{top:50,right:0,bottom:50,left:60,...r},axisLeft:{legend:"Gewicht (Mt)",legendPosition:"middle",legendOffset:-40,...l},axisBottom:{legend:"Jaar",legendPosition:"middle",legendOffset:40,...s},layers:["axes","grid",c,"bars"],tooltip:d=>p.jsx(Zn,{body:(a==null?void 0:a(d))||p.jsx("span",{children:"Tooltip"})})})}),p.jsx(u,{})]})},I5e=yt.span`
|
|
615
615
|
font: var(--gf-label-md-default);
|
|
616
616
|
font-size: 14px;
|
|
617
617
|
line-height: 22px;
|
|
618
618
|
font-weight: 400;
|
|
619
619
|
color: var(--gf-color-button-primary);
|
|
620
620
|
transition: color 150ms ease, font-weight 150ms ease;
|
|
621
|
-
`,A5e=({items:e,width:t=226,offset:n=0,rootMargin:r=80,containerStyle:i={}})=>{const[o,a]=S.useState(0),s=S.useRef(0);S.useEffect(()=>{s.current=o},[o]);const l=S.useRef(!1),c=S.useRef(null),u=f=>{l.current=!0,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{l.current=!1},f)},d=f=>{var g,v;a(f),u(800);const h=(v=(g=e==null?void 0:e[f])==null?void 0:g.href)==null?void 0:v.current;if(!h)return;const m=h.getBoundingClientRect().top+window.pageYOffset-n;window.scrollTo({top:m,behavior:"smooth"})};return S.useEffect(()=>{const f=(e||[]).map((g,v)=>{var b;return{key:v,el:(b=g.href)==null?void 0:b.current}}).filter(g=>g.el);if(!f.length)return;const h=new Map,m=new IntersectionObserver(g=>{if(l.current)return;for(const y of g)h.set(y.target,{is:y.isIntersecting,top:y.boundingClientRect.top,ratio:y.intersectionRatio});const v=[];for(const{key:y,el:C}of f){const $=h.get(C);$!=null&&$.is&&v.push({key:y,el:C,...$})}if(!v.length)return;const b=v.sort((y,C)=>Math.abs(y.top-n)-Math.abs(C.top-n)||C.ratio-y.ratio)[0];b&&b.key!==s.current&&a(b.key)},{root:null,threshold:[0,.01,.1,.2],rootMargin:`-${n}px 0px -${r}% 0px`});return f.forEach(({el:g})=>m.observe(g)),()=>{m.disconnect(),c.current&&clearTimeout(c.current)}},[e,n,r]),p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(
|
|
621
|
+
`,A5e=({items:e,width:t=226,offset:n=0,rootMargin:r=80,containerStyle:i={}})=>{const[o,a]=S.useState(0),s=S.useRef(0);S.useEffect(()=>{s.current=o},[o]);const l=S.useRef(!1),c=S.useRef(null),u=f=>{l.current=!0,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{l.current=!1},f)},d=f=>{var g,v;a(f),u(800);const h=(v=(g=e==null?void 0:e[f])==null?void 0:g.href)==null?void 0:v.current;if(!h)return;const m=h.getBoundingClientRect().top+window.pageYOffset-n;window.scrollTo({top:m,behavior:"smooth"})};return S.useEffect(()=>{const f=(e||[]).map((g,v)=>{var b;return{key:v,el:(b=g.href)==null?void 0:b.current}}).filter(g=>g.el);if(!f.length)return;const h=new Map,m=new IntersectionObserver(g=>{if(l.current)return;for(const y of g)h.set(y.target,{is:y.isIntersecting,top:y.boundingClientRect.top,ratio:y.intersectionRatio});const v=[];for(const{key:y,el:C}of f){const $=h.get(C);$!=null&&$.is&&v.push({key:y,el:C,...$})}if(!v.length)return;const b=v.sort((y,C)=>Math.abs(y.top-n)-Math.abs(C.top-n)||C.ratio-y.ratio)[0];b&&b.key!==s.current&&a(b.key)},{root:null,threshold:[0,.01,.1,.2],rootMargin:`-${n}px 0px -${r}% 0px`});return f.forEach(({el:g})=>m.observe(g)),()=>{m.disconnect(),c.current&&clearTimeout(c.current)}},[e,n,r]),p.jsxs(p.Fragment,{children:[p.jsx(mn,{}),p.jsxs(zt,{align:"stretch",children:[p.jsxs(zt,{gap:8,vertical:!0,align:"flex-start",style:{width:t,height:"fit-content",paddingTop:48,top:n,position:"sticky",paddingRight:8,...i},children:[p.jsx("span",{style:{fontSize:12},children:"Inhoudsopgave".toUpperCase()}),e==null?void 0:e.map((f,h)=>{const m=h===o;return p.jsx("div",{onClick:()=>d(h),style:{width:"100%",boxSizing:"border-box",padding:8,cursor:"pointer",background:m?"#F0F6FF":"transparent",transition:"background 150ms ease"},children:p.jsx(I5e,{children:f==null?void 0:f.name})},h)})]}),p.jsx("div",{style:{borderRight:"1px solid #DAE1ED"}})]})]})};exports.AddressLink=eD;exports.Anchor=A5e;exports.BarChart=_ge;exports.BenchmarkSankey=A2e;exports.ButtonControls=kF;exports.CrmValueChart=V5e;exports.CustomToolTip=Zn;exports.Description=iD;exports.DomRawChart=Sge;exports.DownloadButton=cC;exports.EmailLink=JF;exports.ExpandButton=uC;exports.GFButton=av;exports.GFCard=Qs;exports.GFMetricsGrid=oD;exports.GoalChart=M5e;exports.ImpactTrend=P5e;exports.Link=Kd;exports.LocationIcon=bC;exports.MailIcon=pC;exports.MaterialHeatmap=S5e;exports.Metrics=vC;exports.NavCard=IF;exports.PhoneIcon=mC;exports.PhoneLink=tD;exports.PieChart=xle;exports.QuickNavCard=WF;exports.RenewableTrend=L5e;exports.Sankey=Ise;exports.ScatterPlot=mde;exports.TabCard=ZF;exports.Title=gC;exports.TreeMap=c2e;exports.Trends=j2e;exports.VisSelectors=L2e;exports.WasteOverview=xge;
|
|
622
622
|
//# sourceMappingURL=index.cjs.js.map
|