Loading
function(e,t,n){"use strict";n(140667);var i,r=n(218948),a=n.n(r),s=n(162252);let l=()=>Math.floor(s.u5+s.FO.now()),o=new class{now(){return l()}};class d{milliseconds=0;constructor(e,t,n,i){this.milliseconds+=i||0,this.milliseconds+=1e3*(n||0),this.milliseconds+=6e4*(t||0),this.milliseconds+=36e5*(e||0)}asMilliseconds=()=>this.milliseconds;asSeconds=()=>this.milliseconds/1e3;asMinutes=()=>this.milliseconds/1e3/60;asHours=()=>this.milliseconds/1e3/60/60;isGreaterThan(e){return this.milliseconds>e.milliseconds}isGreaterOrEqualTo(e){return this.milliseconds>=e.milliseconds}add=e=>d.fromMilliseconds(this.milliseconds+e.milliseconds);subtract=e=>d.fromMilliseconds(this.milliseconds-e.milliseconds);subtractOrZero=e=>d.fromMilliseconds(Math.max(this.milliseconds-e.milliseconds,0));static fromMilliseconds=e=>new d(0,0,0,e);static fromSeconds=e=>new d(0,0,e);static fromMinutes=e=>new d(0,e);static fromHours=e=>new d(e)}class c{timestampProducer;startTime=void 0;timePassed=0;constructor(e=o){this.timestampProducer=e}get lastElapsed(){return this.timePassed}get lastStartTime(){return this.startTime}start(){null==this.startTime&&(this.startTime=this.timestampProducer.now())}restart(){this.startTime=this.timestampProducer.now()}reset(){this.startTime=void 0,this.timePassed=0}stop(){null!=this.startTime&&(this.timePassed+=this.timestampProducer.now()-this.startTime,this.startTime=void 0)}toggle(e){e!==this.isRunning()&&(e?this.start():this.stop())}elapsed(){if(null==this.startTime)return d.fromMilliseconds(this.timePassed);let e=this.timestampProducer.now()-this.startTime;return d.fromMilliseconds(this.timePassed+e)}isRunning(){return null!=this.startTime}static startNew(){let e=new c;return e.start(),e}}var u=((i={}).NONE="NONE",i.SECONDS="SECONDS",i.MINUTES="MINUTES",i.HOURS="HOURS",i.DAYS="DAYS",i.WEEKS="WEEKS",i.MONTHS="MONTHS",i.YEARS="YEARS",i);function _(e,t){switch(t){case"NONE":return 0;case"SECONDS":return 60*e;case"MINUTES":return e;case"HOURS":return e/60;case"DAYS":return e/60/24;case"WEEKS":return e/60/24/7;case"MONTHS":return e/60/24/31;case"YEARS":return e/60/24/365}}let E=[{unit:"NONE",max:0},{unit:"SECONDS",max:1},{unit:"MINUTES",max:60},{unit:"HOURS",max:1440},{unit:"DAYS",max:44640},{unit:"WEEKS",max:40320},{unit:"MONTHS",max:525600},{unit:"YEARS",max:1/0}];function A(e,t){let n=E.findIndex(t=>{let{max:n,unit:i}=t;return"NONE"===i&&e===n||e<n}),i=a()(E,e=>{let{unit:n}=e;return t(n)},n);if(null!=i)return i.unit;let r=E.find(e=>{let{unit:n}=e;return t(n)});return null!=r?r.unit:null}n.d(t,{},{$l:function(e,t){if(null==e)return{unit:"NONE",time:0};let n=A(e,e=>t.includes(e)),i=null!=n?_(e,n):null;return{unit:n,time:null!=i?Math.floor(i):null}},TF:o,Ul:A,W0:c,eZ:_,pJ:u,tB:l,w6:class{stopwatch;state;constructor(e,t=o){this.stopwatch=new c(t),this.state=e,this.stopwatch.toggle(e)}set value(e){this.stopwatch.toggle(e),this.state=e}get value(){return this.state}reset(){this.stopwatch.reset(),this.stopwatch.toggle(this.state)}totalDuration(){return this.stopwatch.elapsed().asMilliseconds()}totalDurationSeconds(){return this.stopwatch.elapsed().asSeconds()}},yy:function(e){let t="number"==typeof e?e:e.asMilliseconds();return new Promise(e=>{setTimeout(()=>e(),t)})}})}