"use strict";function GSgetTimeRemaining(endtime){let dateformated=endtime;if(endtime.includes("-"))dateformated=Date.parse(endtime);else{const date=new Date(1e3*parseInt(endtime)),formattedDate=date.toISOString().slice(0,19);dateformated=Date.parse(formattedDate)}const total=dateformated-Date.parse(new Date),seconds=Math.floor(total/1e3%60),minutes=Math.floor(total/1e3/60%60),hours=Math.floor(total/36e5%24),days=Math.floor(total/864e5);return{total:total,days:days,hours:hours,minutes:minutes,seconds:seconds}}var gccountdown=document.getElementsByClassName("gs-countdown");for(let i=0;i<gccountdown.length;i++){let clock=gccountdown[i],endtime=clock.dataset.endtime,daysSpan=clock.querySelector(".days"),hoursSpan=clock.querySelector(".hours"),minutesSpan=clock.querySelector(".minutes"),secondsSpan=clock.querySelector(".seconds");function GSupdateClock(){let t=GSgetTimeRemaining(endtime);t.days<10?daysSpan.innerHTML=("0"+t.days).slice(-2):daysSpan.innerHTML=t.days,hoursSpan.innerHTML=("0"+t.hours).slice(-2),minutesSpan.innerHTML=("0"+t.minutes).slice(-2),secondsSpan.innerHTML=("0"+t.seconds).slice(-2),t.total<=0&&(daysSpan.innerHTML=hoursSpan.innerHTML=minutesSpan.innerHTML=secondsSpan.innerHTML="00")}GSupdateClock();var timeinterval=setInterval(GSupdateClock,1e3)}