import { i as r, a as u } from "./detectBrowser-Dn2N72k1.js";
function n(i) {
  i.preventDefault(), i.stopPropagation();
}
function e(i) {
  return "nativeEvent" in i;
}
function p(i) {
  return i.pointerType === "" && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
}
function a(i) {
  return u ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
  i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
}
function c(i, t) {
  const s = ["mouse", "pen"];
  return t || s.push("", void 0), s.includes(i);
}
function d(i) {
  const t = i.type;
  return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
}
export {
  a,
  c as b,
  d as c,
  e as d,
  p as i,
  n as s
};
