import{I as e,X as t}from"./_plugin-vue_export-helper-BVhEvvHC.js";function n(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}e();var r=n();function i(e){let n=Object.keys(e);for(let t of n)r.on(t,e[t]);let i=()=>{for(let t of n)r.off(t,e[t])};return t(i),i}var a=Symbol(`LocalEventBus`);export{n as i,r as n,i as r,a as t};