module.exports = "(function(t,e,i){var _=i(5894),n=i(7358),s=i(4934);t.exports={initialize:function(){this.__state={},this.on(n.SET_PENDING_EVENT,this.__setEvent),this.on(n.REMOVE_PENDING_EVENT,this.__removeEvent),this.on(n.LOAD_PENDING_EVENTS,this.__loadEvents)},getEvents:function(){return this.__state},getEventsString:function(){return s.stringify(this.__state)},__setEvent:function(t){_.keys(this.__state).length>=1e3&&this.__cleanStore();var e=t.id,i=t.retryCount;this.__state[e]&&this.__state[e].retryCount===i||(this.__state[e]={id:e,timeStamp:t.timeStamp,data:t.data,retryCount:i},this.emitChange())},__removeEvent:function(t){delete this.__state[t.id],this.emitChange()},__loadEvents:function(t){this.__state=t.events,this.__cleanStore(),this.emitChange()},__cleanStore:function(){for(var t=_.sortBy(this.__state,\"timeStamp\"),e=0;e<=t.length-1e3;e++)delete this.__state[t[e].id];this.emitChange()}}})";