import{Qr as e,Yr as t,t as n,tr as r}from"./KXnyWfWg.js";var i=250;const a=r(`logs`,()=>{let r=n(),a=e([]),o=t(!1),s=1,c=[],l=null,u=()=>{l=null,c.length!==0&&(c.reverse(),a.value=[...c,...a.value].slice(0,r.logMaxRows),c=[])},d=()=>{l||=setTimeout(u,i)};return{logs:a,paused:o,addLog:e=>{o.value||(c.push({...e,seq:s}),s++,d())},clearLogs:()=>{l&&=(clearTimeout(l),null),c=[],a.value=[],s=1},togglePaused:()=>{o.value=!o.value}}});export{a as t};