import { customRef as m } from "vue";
function f(t, o = 500) {
  let e;
  return m((r, u) => ({
    get() {
      return r(), t;
    },
    set(i) {
      e || (e = window.setTimeout(() => {
        t = i, u(), e = void 0;
      }, o));
    }
  }));
}
export {
  f as default,
  f as useImmediateDebouncedRef
};
