"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o=0;r--){var i,n,s;t!==(null===(i=o[r])||void 0===i?void 0:i.cb)&&t!==(null===(n=o[r])||void 0===n||null===(s=n.cb)||void 0===s?void 0:s._origin)||o.splice(r,1)}else delete this._stores[e]}else this._stores={}}},{key:"removeAllListeners",value:function(e){this._stores=this._stores||{},e?delete this._stores[e]:this._stores={}}}]),e}();module.exports=EventEmitter;