!function(t){"object"==typeof module&&"object"==typeof module.exports?t(require,exports):"function"==typeof define&&define.amd&&define(["require","exports"],t)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=(o.prototype.start=function(t,e,i){var o,n=this._tickets;void 0!==n&&(this.stop(t),n[t]=function(){n[t]=void 0,clearTimeout(o)},o=setTimeout(function(){n[t]=void 0,i()},e))},o.prototype.repeat=function(t,e,i){var o,n=this._tickets;void 0!==n&&(this.stop(t),n[t]=function(){n[t]=void 0,clearInterval(o)},o=setInterval(i,e))},o.prototype.stop=function(t){var e=this._tickets;void 0===e||void 0!==(t=e[t])&&t()},o.prototype.dispose=function(){var t=this._tickets;if(void 0!==t)for(var e in this._tickets=void 0,t){e=t[e];void 0!==e&&e()}},o);function o(){this._tickets={}}e.TimerManager=i});