"use strict";function h(r,c){let n=0,u=1e3/c,e,t;const s=(l,o=Date.now())=>{n=o,e=null,t&&(clearTimeout(t),t=null),r.apply(null,l)};return[(...l)=>{const o=Date.now(),i=o-n;i>=u?s(l,o):(e=l,t||(t=setTimeout(()=>{t=null,s(e)},u-i)))},()=>e&&s(e)]}module.exports=h;
//# sourceMappingURL=index.cjs391.js.map
