"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loopCreate=exports.clearLoop=exports.LOOP_KEY=void 0;var LOOP_KEY={Activity:"Activity",Chat:"Chat",Report:"Report",Luckymoney:"Luckymoney",Lottery:"Lottery",CheckIn:"CheckIn"};exports.LOOP_KEY=LOOP_KEY;var LOOP_KEY_ID={Activity:null,Chat:null,Report:null,Luckymoney:null,Lottery:null,CheckIn:null},loopCreate=function(e,o,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};clearLoop(e);var l=r.immediate;(void 0===l||l)&&o(),LOOP_KEY_ID[e]=setInterval(function(){o()},t)};exports.loopCreate=loopCreate;var clearLoop=function(e){LOOP_KEY_ID[e]&&(clearInterval(LOOP_KEY_ID[e]),LOOP_KEY_ID[e]=null)};exports.clearLoop=clearLoop;