useCountdown-fd9786ef.js 742 B

1
  1. var i=(r,e,t)=>new Promise((n,u)=>{var o=a=>{try{l(t.next(a))}catch(c){u(c)}},s=a=>{try{l(t.throw(a))}catch(c){u(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(o,s);l((t=t.apply(r,e)).next())});import{r as f,aw as m,u as v,__tla as p}from"./index-b5895273.js";let _,w=Promise.all([(()=>{try{return p}catch(r){}})()]).then(()=>i(void 0,null,function*(){_=function(r){const e=f(r),t=f(!1);let n;function u(){n&&window.clearInterval(n)}function o(){t.value=!1,u(),n=null}function s(){v(t)||n||(t.value=!0,n=setInterval(()=>{v(e)===1?(o(),e.value=r):e.value-=1},1e3))}function l(){e.value=r,o()}function a(){l(),s()}return m(()=>{l()}),{start:s,reset:l,restart:a,clear:u,stop:o,currentCount:e,isStart:t}}}));export{w as __tla,_ as u};