import{c as z,p as sn}from"./constant.6af51708.js";import{b1 as en,b2 as y,aj as ln,b3 as G,b4 as P,b5 as K,b6 as k,b7 as rn,b8 as an,b9 as t,ba as un,bb as on,bc as tn}from"./state.debd56e5.js";function cn(l){return l.innerRadius}function fn(l){return l.outerRadius}function yn(l){return l.startAngle}function gn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,x,w,j,h,v,B,r){var s=w-l,n=j-x,m=B-h,i=r-v,a=i*s-m*n;if(!(a*aC*C+F*F&&(S=R,d=b),{cx:S,cy:d,x01:-m,y01:-i,x11:S*(h/I-1),y11:d*(h/I-1)}}function hn(){var l=cn,x=fn,w=z(0),j=null,h=yn,v=gn,B=mn,r=null;function s(){var n,m,i=+l.apply(this,arguments),a=+x.apply(this,arguments),c=h.apply(this,arguments)-en,f=v.apply(this,arguments)-en,D=rn(f-c),o=f>c;if(r||(r=n=sn()),ay))r.moveTo(0,0);else if(D>ln-y)r.moveTo(a*G(c),a*P(c)),r.arc(0,0,a,c,f,!o),i>y&&(r.moveTo(i*G(f),i*P(f)),r.arc(0,0,i,f,c,o));else{var E=c,p=f,g=c,A=f,I=D,T=D,O=B.apply(this,arguments)/2,S=O>y&&(j?+j.apply(this,arguments):K(i*i+a*a)),d=k(rn(a-i)/2,+w.apply(this,arguments)),R=d,b=d,e,u;if(S>y){var C=un(S/i*P(O)),F=un(S/a*P(O));(I-=C*2)>y?(C*=o?1:-1,g+=C,A-=C):(I=0,g=A=(c+f)/2),(T-=F*2)>y?(F*=o?1:-1,E+=F,p-=F):(T=0,E=p=(c+f)/2)}var H=a*G(E),J=a*P(E),L=i*G(A),M=i*P(A);if(d>y){var N=a*G(p),Q=a*P(p),V=i*G(g),W=i*P(g),q;if(Dy?b>y?(e=U(V,W,H,J,a,b,o),u=U(N,Q,L,M,a,b,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),by)||!(I>y)?r.lineTo(L,M):R>y?(e=U(L,M,N,Q,i,-R,o),u=U(H,J,V,W,i,-R,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),R