PageSourceSearch

https://lescommis.com/showcase-ssg/assets/bus.417be4be.js

js lescommis.com collected 2026-10-01 12:29:00 UTC 978 bytes, 1 lines download raw bytes

1import{b as u,a as h,r as l}from"./index.71e96a73.js";class n{constructor(){this.__stack={}}on(s,i,r){return(this.__stack[s]||(this.__stack[s]=[])).push({fn:i,ctx:r}),this}once(s,i,r){const o=(...f)=>{this.off(s,o),i.apply(r,f)};return o.__callback=i,this.on(s,o,r)}emit(s){const i=this.__stack[s];if(i!==void 0){const r=[].slice.call(arguments,1);i.forEach(o=>{o.fn.apply(o.ctx,r)})}return this}off(s,i){const r=this.__stack[s];if(r===void 0)return this;if(i===void 0)return delete this.__stack[s],this;const o=r.filter(f=>f.fn!==i&&f.fn.__callback!==i);return o.length!==0?this.__stack[s]=o:delete this.__stack[s],this}}var e=u(({app:a})=>{const s=new n,i=h({}),r={},o=s.on.bind(s),f=s.off.bind(s);s.on=(t,c)=>(i[t]||(i[t]=0),i[t]++,r[t]?r[t].value=!0:r[t]=l(!0),o(t,c)),s.off=(t,c)=>(i[t]=Math.max((i[t]??1)-1,0),r[t]?r[t].value=i[t]>0:r[t]=l(!1),f(t,c)),s.has=t=>(r[t]||(r[t]=l((i[t]??0)>0)),r[t]),a.config.globalProperties.$bus=s,a.provide("bus",s)});export{e as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.