import p from "./index.es132.js";
import c from "./index.es177.js";
function d(l, o, i) {
  var e, s, t, u, r, f = function() {
    var n = c() - s;
    o > n ? e = setTimeout(f, o - n) : (e = null, i || (u = l.apply(r, t)), e || (t = r = null));
  }, a = p(function(n) {
    return r = this, t = n, s = c(), e || (e = setTimeout(f, o), i && (u = l.apply(r, t))), u;
  });
  return a.cancel = function() {
    clearTimeout(e), e = t = r = null;
  }, a;
}
export {
  d as default
};
//# sourceMappingURL=index.es184.js.map
