Loading
function(e,t,n){var l=n(477900);n(582128);var r=n(503698),s=n.n(r),a=n(435558),i=n(855986),o=n(775602),u=n(577568);let c=2*Math.PI*57,d="var(--status-positive)",m="var(--background-mod-strong)",g=-Math.PI/2;function h(e){return`${60+57*Math.cos(e)} ${60+57*Math.sin(e)}`}n.d(t,{},{A:function(e){let{current:t,target:n,progressColor:r=d,segmentGap:E=4,children:p}=e,f=(0,i.bG)([o.Ay],()=>o.Ay.useReducedMotion),x=Math.round(n);if(x>1&&x<=12){let e,n,i;return(0,l.jsxs)("div",{className:u.iE,children:[p,(0,l.jsx)("svg",{className:u.hN,viewBox:"0 0 120 120",children:(e=E/60,n=(0,a.clamp)(Math.floor(t),0,x),i=2*Math.PI/x,Array.from({length:x},(t,l)=>{let r=g+l*i+e/2;return{key:`${x}-${l}`,d:`M ${h(r)} A 57 57 0 0 1 ${h(r+i-e)}`,isFilled:l<n}})).map(e=>(0,l.jsxs)("g",{children:[(0,l.jsx)("path",{className:u.u4,d:e.d,strokeWidth:6,stroke:m}),(0,l.jsx)("path",{className:s()(u.mX,{[u.Vr]:!f}),d:e.d,strokeWidth:6,stroke:r,pathLength:1,strokeDasharray:"1 2",strokeDashoffset:+!e.isFilled})]},e.key))})]})}let A=c*(1-(n<=0?.025:(0,a.clamp)(t/n,.025,1)));return(0,l.jsxs)("div",{className:u.iE,children:[p,(0,l.jsxs)("svg",{className:u.hN,viewBox:"0 0 120 120",children:[(0,l.jsx)("circle",{className:u.u4,cx:60,cy:60,r:57,strokeWidth:6,stroke:m}),(0,l.jsx)("circle",{className:s()(u.M0,{[u.Vr]:!f}),cx:60,cy:60,r:57,strokeWidth:6,stroke:r,strokeDasharray:c,strokeDashoffset:A})]})]})},W:d})}