function e(e=21){let t=``,n=e;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t}var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){for(let e of r)e()}function a(e){let t=Symbol(e.id);return n.set(t,e),i(),()=>{n.delete(t)&&i()}}function o(){return[...n.values()]}function s(e){return r.add(e),()=>r.delete(e)}export{e as i,s as n,a as r,o as t};