import{a0 as n,a1 as t,a2 as u,a3 as r,a4 as i,a5 as a,a6 as f,a7 as o,a8 as e,a9 as s,aa as c,ab as l,ac as h,ad as p,ae as v}from"./App-DjDfFse6.js";function y(n){return n.innerRadius}function x(n){return n.outerRadius}function d(n){return n.startAngle}function m(n){return n.endAngle}function b(n){return n&&n.padAngle}function j(n,t,u,r,i,a,f){var o=n-u,s=t-r,c=(f?a:-a)/e(o*o+s*s),l=c*s,p=-c*o,v=n+l,y=t+p,x=u+l,d=r+p,m=(v+x)/2,b=(y+d)/2,j=x-v,A=d-y,g=j*j+A*A,k=i-a,q=v*d-x*y,w=(A<0?-1:1)*e(h(0,k*k*g-q*q)),z=(q*A-j*w)/g,B=(-q*j-A*w)/g,C=(q*A+j*w)/g,D=(-q*j+A*w)/g,E=z-m,F=B-b,G=C-m,H=D-b;return E*E+F*F>G*G+H*H&&(z=C,B=D),{cx:z,cy:B,x01:-l,y01:-p,x11:z*(i/k-1),y11:B*(i/k-1)}}function A(){var h=y,A=x,g=i(0),k=null,q=d,w=m,z=b,B=null,C=n(D);function D(){var n,i,y=+h.apply(this,arguments),x=+A.apply(this,arguments),d=q.apply(this,arguments)-a,m=w.apply(this,arguments)-a,b=c(m-d),D=m>d;if(B||(B=n=C()),x<y&&(i=x,x=y,y=i),x>f)if(b>o-f)B.moveTo(x*u(d),x*r(d)),B.arc(0,0,x,d,m,!D),y>f&&(B.moveTo(y*u(m),y*r(m)),B.arc(0,0,y,m,d,D));else{var E,F,G=d,H=m,I=d,J=m,K=b,L=b,M=z.apply(this,arguments)/2,N=M>f&&(k?+k.apply(this,arguments):e(y*y+x*x)),O=s(c(x-y)/2,+g.apply(this,arguments)),P=O,Q=O;if(N>f){var R=p(N/y*r(M)),S=p(N/x*r(M));(K-=2*R)>f?(I+=R*=D?1:-1,J-=R):(K=0,I=J=(d+m)/2),(L-=2*S)>f?(G+=S*=D?1:-1,H-=S):(L=0,G=H=(d+m)/2)}var T=x*u(G),U=x*r(G),V=y*u(J),W=y*r(J);if(O>f){var X,Y=x*u(H),Z=x*r(H),$=y*u(I),_=y*r(I);if(b<t)if(X=function(n,t,u,r,i,a,o,e){var s=u-n,c=r-t,l=o-i,h=e-a,p=h*s-l*c;if(!(p*p<f))return[n+(p=(l*(t-a)-h*(n-i))/p)*s,t+p*c]}(T,U,$,_,Y,Z,V,W)){var nn=T-X[0],tn=U-X[1],un=Y-X[0],rn=Z-X[1],an=1/r(v((nn*un+tn*rn)/(e(nn*nn+tn*tn)*e(un*un+rn*rn)))/2),fn=e(X[0]*X[0]+X[1]*X[1]);P=s(O,(y-fn)/(an-1)),Q=s(O,(x-fn)/(an+1))}else P=Q=0}L>f?Q>f?(E=j($,_,T,U,x,Q,D),F=j(Y,Z,V,W,x,Q,D),B.moveTo(E.cx+E.x01,E.cy+E.y01),Q<O?B.arc(E.cx,E.cy,Q,l(E.y01,E.x01),l(F.y01,F.x01),!D):(B.arc(E.cx,E.cy,Q,l(E.y01,E.x01),l(E.y11,E.x11),!D),B.arc(0,0,x,l(E.cy+E.y11,E.cx+E.x11),l(F.cy+F.y11,F.cx+F.x11),!D),B.arc(F.cx,F.cy,Q,l(F.y11,F.x11),l(F.y01,F.x01),!D))):(B.moveTo(T,U),B.arc(0,0,x,G,H,!D)):B.moveTo(T,U),y>f&&K>f?P>f?(E=j(V,W,Y,Z,y,-P,D),F=j(T,U,$,_,y,-P,D),B.lineTo(E.cx+E.x01,E.cy+E.y01),P<O?B.arc(E.cx,E.cy,P,l(E.y01,E.x01),l(F.y01,F.x01),!D):(B.arc(E.cx,E.cy,P,l(E.y01,E.x01),l(E.y11,E.x11),!D),B.arc(0,0,y,l(E.cy+E.y11,E.cx+E.x11),l(F.cy+F.y11,F.cx+F.x11),D),B.arc(F.cx,F.cy,P,l(F.y11,F.x11),l(F.y01,F.x01),!D))):B.arc(0,0,y,J,I,D):B.lineTo(V,W)}else B.moveTo(0,0);if(B.closePath(),n)return B=null,n+""||null}return D.centroid=function(){var n=(+h.apply(this,arguments)+ +A.apply(this,arguments))/2,i=(+q.apply(this,arguments)+ +w.apply(this,arguments))/2-t/2;return[u(i)*n,r(i)*n]},D.innerRadius=function(n){return arguments.length?(h="function"==typeof n?n:i(+n),D):h},D.outerRadius=function(n){return arguments.length?(A="function"==typeof n?n:i(+n),D):A},D.cornerRadius=function(n){return arguments.length?(g="function"==typeof n?n:i(+n),D):g},D.padRadius=function(n){return arguments.length?(k=null==n?null:"function"==typeof n?n:i(+n),D):k},D.startAngle=function(n){return arguments.length?(q="function"==typeof n?n:i(+n),D):q},D.endAngle=function(n){return arguments.length?(w="function"==typeof n?n:i(+n),D):w},D.padAngle=function(n){return arguments.length?(z="function"==typeof n?n:i(+n),D):z},D.context=function(n){return arguments.length?(B=null==n?null:n,D):B},D}export{A as d};
