class n {
  _fun;
  _time;
  _cb;
  constructor(t, s = 200) {
    this._cb = t, this._time = s;
  }
  stopRun() {
    this._fun && (clearTimeout(this._fun), this._fun = null);
  }
  run(t) {
    const s = t || this._cb;
    s && (this.stopRun(), this._fun = setTimeout(() => {
      s();
    }, this._time));
  }
}
export {
  n as D
};
//# sourceMappingURL=Tools_delayFun-CA1ktv1L.js.map
