function e(o, n) {
  return Array.isArray(n) ? n.every((r) => o.indexOf(r) !== -1) : o.indexOf(n) !== -1;
}
const c = (o, n) => (r) => {
  (r.key === "Enter" || r.key === " ") && (o(r), r.preventDefault(), r.stopPropagation());
}, t = (o = document) => {
  const n = o.activeElement;
  return n ? n.shadowRoot ? t(n.shadowRoot) : n : null;
};
export {
  e as arrayIncludes,
  t as getActiveElement,
  c as onSpaceOrEnter
};
