import { tapIf as o } from "../helpers/functions.js";
const t = /* @__PURE__ */ new WeakMap(), s = new ResizeObserver((e) => {
  for (const r of e)
    o(t.get(r.target), (n) => n(r));
});
function b(e, r) {
  t.set(e, r), s.unobserve(e), s.observe(e);
}
function v(e) {
  s.unobserve(e), t.delete(e);
}
export {
  b as startResizeObserving,
  v as stopResizeObserving
};
//# sourceMappingURL=resizeObserver.js.map
