import { isJsonEqual as c, deepClone as f } from "@milaboratories/helpers";
import { ref as i, watch as l, computed as n } from "vue";
function d(e) {
  let t, u;
  typeof e == "function" ? t = e : (t = e.get, u = e.set);
  const o = i(t());
  return l(
    t,
    (r) => {
      c(r, o.value) || (o.value = f(r));
    },
    { deep: !0 }
  ), u ? n({
    get: () => o.value,
    set: u
  }) : o;
}
export {
  d as computedCached
};
//# sourceMappingURL=computedCached.js.map
