import{m as e,x as a,aS as s}from"./index-2b50ecca.js";const t=(t,r)=>{const l=e(t);let n;const o=()=>{n=setInterval((()=>{l.value--,0===l.value&&(clearInterval(n),r(),c())}),1e3)},c=()=>{l.value=t,o()};return a((()=>{o()})),s((()=>{clearInterval(n)})),{seconds:l}};export{t as u};
