System.register(["./index-legacy-092075fb.js"],(function(e,s){"use strict";var t,i,n,a,c,l,r,u,m,o,d,S;return{setters:[e=>{t=e.bJ,i=e.c,n=e.b,a=e.m,c=e.t,l=e.d,r=e.al,u=e.e,m=e.w,o=e.a2,d=e.a,S=e.k}],execute:function(){const[s,p]=i("count-down"),f={time:n(0),format:a("HH:mm:ss"),autoStart:c,millisecond:Boolean};var h=l({name:s,props:f,emits:["change","finish"],setup(e,{emit:s,slots:i}){const{start:n,pause:a,reset:c,current:l}=r({time:+e.time,millisecond:e.millisecond,onChange:e=>s("change",e),onFinish:()=>s("finish")}),S=u((()=>function(e,s){const{days:i}=s;let{hours:n,minutes:a,seconds:c,milliseconds:l}=s;if(e.includes("DD")?e=e.replace("DD",t(i)):n+=24*i,e.includes("HH")?e=e.replace("HH",t(n)):a+=60*n,e.includes("mm")?e=e.replace("mm",t(a)):c+=60*a,e.includes("ss")?e=e.replace("ss",t(c)):l+=1e3*c,e.includes("S")){const s=t(l,3);e=e.includes("SSS")?e.replace("SSS",s):e.includes("SS")?e.replace("SS",s.slice(0,2)):e.replace("S",s.charAt(0))}return e}(e.format,l.value))),f=()=>{c(+e.time),e.autoStart&&n()};return m((()=>e.time),f,{immediate:!0}),o({start:n,pause:a,reset:f}),()=>d("div",{role:"timer",class:p()},[i.default?i.default(l.value):S.value])}});e("C",S(h))}}}));