{"version":3,"file":"timers.mjs","sources":["../../../src/room/timers.ts"],"sourcesContent":["/**\n * Timers that can be overridden with platform specific implementations\n * that ensure that they are fired. These should be used when it is critical\n * that the timer fires on time.\n */\nexport default class CriticalTimers {\n  static setTimeout: (...args: Parameters<typeof setTimeout>) => ReturnType<typeof setTimeout> = (\n    ...args: Parameters<typeof setTimeout>\n    // eslint-disable-next-line @typescript-eslint/no-implied-eval\n  ) => setTimeout(...args);\n\n  static setInterval: (...args: Parameters<typeof setInterval>) => ReturnType<typeof setInterval> =\n    // eslint-disable-next-line @typescript-eslint/no-implied-eval\n    (...args: Parameters<typeof setInterval>) => setInterval(...args);\n\n  static clearTimeout: (\n    ...args: Parameters<typeof clearTimeout>\n  ) => ReturnType<typeof clearTimeout> = (...args: Parameters<typeof clearTimeout>) =>\n    clearTimeout(...args);\n\n  static clearInterval: (\n    ...args: Parameters<typeof clearInterval>\n  ) => ReturnType<typeof clearInterval> = (...args: Parameters<typeof clearInterval>) =>\n    clearInterval(...args);\n}\n"],"names":["CriticalTimers","setTimeout","arguments","setInterval","clearTimeout","clearInterval"],"mappings":"AAAA;;;;AAIG;AACH,MAAqBA,cAAc,CAAA;AAC1BA,cAAA,CAAAC,UAAU,GAA8E,YAAA;AAAA,EAAA,OAG1FA,UAAU,CAAC,GAAAC,SAAO,CAAC;AAAA,CAAA;AAEjBF,cAAA,CAAAG,WAAW;AAChB;AACA,YAAA;AAAA,EAAA,OAA6CA,WAAW,CAAC,GAAAD,SAAO,CAAC;AAAA,CAAA;AAE5DF,cAAA,CAAAI,YAAY,GAEoB,YAAA;AAAA,EAAA,OACrCA,YAAY,CAAC,GAAAF,SAAO,CAAC;AAAA,CAAA;AAEhBF,cAAA,CAAAK,aAAa,GAEoB,YAAA;AAAA,EAAA,OACtCA,aAAa,CAAC,GAAAH,SAAO,CAAC;AAAA,CAAA"}