import { watch as c } from "vue";
import { cloneDeep as p, isEqual as u } from "lodash";
const m = (r, t) => {
  c(
    () => p(r.option),
    (e, o) => {
      u(e, o) || t();
    },
    { deep: !0 }
  ), c(
    () => p(r.sources),
    (e, o) => {
      u(e, o) || t();
    },
    { deep: !0 }
  );
};
export {
  m as useWatch
};
