import { g as t } from "./utils-CCck-DTo.e4e43b6a.js";
class i {
  constructor() {
    this.listeners = /* @__PURE__ */ new Set(), this.onChange = (e) => {
      this.listeners.forEach((s) => s(e.matches));
    }, this.mediaQueryList = t(), this.mediaQueryList.addEventListener("change", this.onChange);
  }
  subscribe(e) {
    return this.listeners.add(e), e(this.mediaQueryList.matches), () => {
      this.listeners.delete(e);
    };
  }
}
const h = new i();
export {
  h as D
};
