class t{constructor(){this.events=new Map}on(t,s){this.events.has(t)||this.events.set(t,[]),this.events.get(t).push(s)}trigger(t,s){const i=this.events.get(t);i&&i.forEach((t=>{t(s)}))}getCallback(t){return this.events.get(t)||[]}}export{t as E}