{"version":3,"sources":["jsdelivr-header.js","/npm/promiseout@0.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,eAAiB,IAEvB,OAAO,QAAU,CAAC,EAAU,QAAQ,UAAW,EAFxB,OAGnB,IAAI,EAAQ,EACZ,MAAM,EAAU,aAAmB,QAAU,EAAU,IAAI,QAAQ,GAC7D,EAAW,IAAI,SAAQ,CAAC,EAAS,KACnC,EAAQ,WAAW,EAAQ,EAAS,IAAI,MAAM,iCAAiC,KAAW,IAG9F,OAAO,QAAQ,KAAK,CAAE,EAAS,IAC1B,MAAM,IACH,aAAa,GACN,KAEV,OAAO,IACJ,aAAa,GACN,QAAQ,OAAO,KACxB","file":"/npm/promiseout@0.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/promiseout@0.0.3/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const defaultTimeout = 3000;\n\nmodule.exports = (handler = Promise.resolve(), timeout = defaultTimeout) => {\n    let timer = 0;\n    const promise = handler instanceof Promise ? handler : new Promise(handler);\n    const rejected = new Promise((resolve, reject) => {\n        timer = setTimeout(reject, timeout, new Error(`timeout of promise is broken: ${timeout}`));\n    });\n\n    return Promise.race([ promise, rejected ])\n        .then((res) => {\n            clearTimeout(timer);\n            return res;\n        })\n        .catch((error) => {\n            clearTimeout(timer);\n            return Promise.reject(error);\n        });\n};\n"]}