import{r as e,B as v,i as g,j as p}from"./app-q0jdcHwC.js";function E(a=50){const t=e(0),o=e(0),i=e(0),s=e(0),n=e(!0),c=v(()=>o.value>=s.value-a),w=v(()=>t.value>=i.value-a),r=d=>{n.value&&(t.value=d.clientX,o.value=d.clientY)},u=()=>{i.value=window.innerWidth,s.value=window.innerHeight},l=()=>{n.value=!1},m=()=>{n.value=!0};return g(()=>{u(),window.addEventListener("mousemove",r),window.addEventListener("resize",u)}),p(()=>{window.removeEventListener("mousemove",r),window.removeEventListener("resize",u)}),{mouseX:t,mouseY:o,windowWidth:i,windowHeight:s,isAtBottom:c,isAtRight:w,isTracking:n,stopTracking:l,startTracking:m}}export{E as u};
