"use strict";var A1=1.340264,A2=-.081106,A3=893e-6,A4=.003796,M=Math.sqrt(3)/2,EqualEarth={forward:function(A){var a=Math.PI/180,t=Math.asin(M*Math.sin(A[1]*a)),r=t*t,h=r*r*r;return[A[0]*a*Math.cos(t)/(M*(A1+3*A2*r+h*(7*A3+9*A4*r))),t*(A1+A2*r+h*(A3+A4*r))]},inverse:function(A){for(var a,t=180/Math.PI,r=A[1],h=0;h<12&&(r-=a=(r*(A1+A2*(n=r*r)+(s=n*n*n)*(A3+A4*n))-A[1])/(A1+3*A2*n+s*(7*A3+9*A4*n)),!(Math.abs(a)<1e-9));++h);var n,s=(n=r*r)*n*n;return[t*M*A[0]*(A1+3*A2*n+s*(7*A3+9*A4*n))/Math.cos(r),t*Math.asin(Math.sin(r)/M)]}};export default EqualEarth;