import{n as t}from"./constants-DOpa8YMW-CAHGepUD.js";function o(o,e,i,h,r,l){let d=r.left||t.left,g=r.right||t.right,n=r.top||t.top,a=r.bottom||t.bottom,b=h.top||0,f=h.left||0,p=o.top-b,s=o.bottom-b,m=o.left-f,u=o.right-f,w=(o.width,o.height,{top:p>=n,left:m>=d,bottom:s<=h.height-a,right:u<=h.width-g});if(Object.values(w).includes(!1)){let t=0,o=0;w.top?w.bottom||(t=h.height-a-s):t=n-p,w.left?w.right||(o=h.width-g-u):o=d-m,l({longitude:e.longitude-o/h.width*(i.right-i.left),latitude:e.latitude+t/h.height*(i.top-i.bottom)})}}var e="\n  bg-base-white border border-primary-100 w-auto overflow-hidden\n  rounded-lg shadow-sm\n";export{o as n,e as t};
//# sourceMappingURL=styles-hx5_Dz4D-CjeaMkGu.js.map