import { i as o, t as r } from "./detectBrowser.js";
function n(i) {
  i.preventDefault(), i.stopPropagation();
}
function p(i) {
  return "nativeEvent" in i;
}
function e(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 o ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || 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,
  e as i,
  c as n,
  n as o,
  p as r,
  d as t
};

//# sourceMappingURL=event.js.map