import { __exports as u } from "../../../../../../../_virtual/useMemo.js";
import { __exports as h } from "../../../../../../../_virtual/useMemo.js";
import "./disposables.js";
import { __exports as p } from "../../../../../../../_virtual/disposables.js";
Object.defineProperty(u, "__esModule", {
  value: !0
});
u.useMemo = i;
var a = p;
function i(d, l) {
  let e = /* @__PURE__ */ new Map();
  function t() {
    e.clear(), a.shared.add(t);
  }
  return a.shared.add(t), (...s) => {
    let r = l(...s);
    if (e.has(r))
      return e.get(r);
    let o = d(...s);
    return e.set(r, o), o;
  };
}
export {
  h as default
};
//# sourceMappingURL=useMemo.js.map
