{
  "version": 3,
  "sources": ["debounce.js"],
  "sourcesContent": ["/**\n * `callback` run once `wait` ms have passed without another call, with the\n * arguments of the last one. `.cancel()` drops a call still waiting.\n */\nexport function debounce(callback, wait) {\n    let timer = null;\n    const debounced = (...args) => {\n        clearTimeout(timer);\n        timer = setTimeout(() => callback(...args), wait);\n    };\n    debounced.cancel = () => clearTimeout(timer);\n    return debounced;\n}\n"],
  "mappings": "AAIO,gBAAS,SAASA,EAAUC,EAAM,CACrC,IAAIC,EAAQ,KACZ,MAAMC,EAAY,IAAIC,IAAS,CAC3B,aAAaF,CAAK,EAClBA,EAAQ,WAAW,IAAMF,EAAS,GAAGI,CAAI,EAAGH,CAAI,CACpD,EACA,OAAAE,EAAU,OAAS,IAAM,aAAaD,CAAK,EACpCC,CACX",
  "names": ["callback", "wait", "timer", "debounced", "args"]
}
