const p = (n, t, e) => {
  if (!t || !t.prevention) return !0;
  const r = n.target.selectionStart ?? 1;
  t && t.prevention && (n.code === "Space" && t.prevention.multipleSpacesNotAllowed && ((e == null ? void 0 : e.toString().slice(r - 1, r)) === " " || (e == null ? void 0 : e.toString().slice(r, r + 1)) === " ") && n.preventDefault(), n.key === "!" && t.prevention.exclamationMarksNotAllowed && n.preventDefault());
};
export {
  p as preventInput
};
