import{aO as o}from"./index-25eb6331.js";const l=(t,i)=>{if(!o||!t||!i)return!1;const e=t.getBoundingClientRect();let n;return i instanceof Element?n=i.getBoundingClientRect():n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},e.top<n.bottom&&e.bottom>n.top&&e.right>n.left&&e.left<n.right},s=t=>{let i,e;return t.type==="touchend"?(e=t.changedTouches[0].clientY,i=t.changedTouches[0].clientX):t.type.startsWith("touch")?(e=t.touches[0].clientY,i=t.touches[0].clientX):(e=t.clientY,i=t.clientX),{clientX:i,clientY:e}};export{s as g,l as i};
