import { hasReducedMotionListener as t, prefersReducedMotion as r } from "./state.es.js";
const o = typeof window < "u";
function d() {
  if (t.current = !0, !!o)
    if (window.matchMedia) {
      const e = window.matchMedia("(prefers-reduced-motion)"), n = () => r.current = e.matches;
      e.addEventListener("change", n), n();
    } else
      r.current = !1;
}
export {
  t as hasReducedMotionListener,
  d as initPrefersReducedMotion,
  r as prefersReducedMotion
};
//# sourceMappingURL=index.es.js.map
