class s{constructor(){this.subscribers={}}subscribe(s,i){if(!this.subscribers[s]){this.subscribers[s]=[]}this.subscribers[s].push(i)}publish(s,i){if(!this.subscribers[s]){return}this.subscribers[s].forEach((s=>s(i)))}unsubscribe(s,i){if(!this.subscribers[s]){return}this.subscribers[s]=this.subscribers[s].filter((s=>s!==i))}}export{s as E};
//# sourceMappingURL=p-9d530225.js.map