!function(){"use strict";const e={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-fastest":1},t=new Set(Array.from("0123456789,.")),r=new Set(Array.from(","));var n;n=()=>{const n={root:null,rootMargin:"0px",threshold:[.6]},o=new Set("0123456789");setTimeout((()=>{document.querySelectorAll("o-anim-count").forEach((s=>{if(Array.from(s.innerHTML).some((e=>o.has(e)))){const o=new IntersectionObserver((n=>{n.forEach((n=>{n.isIntersecting&&0<n.intersectionRect.height&&(o.unobserve(s),(n=>{const o=n?.innerHTML||"",s=(t=>{let r=t.parentElement;for(let t=0;t<3;++t)if(Array.from(r.classList).some((e=>e.includes("o-count-")))){const t=Array.from(r.classList),n=t.filter((e=>e.includes("o-count-delay-"))).pop(),o=parseInt(n?.split("-")?.[3]||"0"),s=n?.includes("ms"),i=Object.keys(e),a=t?.filter((e=>i.includes(e)))?.pop()||"fast";return{speed:e[a],delay:o*(s?0:1e3)}}})(n),{suffix:i,prefix:a,number:l}=(e=>{const r=Array.from(e),n=[],o=[],s=[];let i=!0,a=!1;for(let e of r)t.has(e)?(i&&(i=!1),a?o.push(e):s.push(e)):i?n.push(e):(a||(a=!0),o.push(e));return{prefix:n.join(""),suffix:o.join(""),number:s}})(o),c=[...l].reverse().map(((e,t)=>r.has(e)?{position:t,character:e}:null)).filter((e=>e)),u=l.join("")?.split(".")?.[1]?.length||0,p=parseFloat(l.filter((e=>","!==e)).join("")),f=o.length-i.length,d=e=>{const t=e.split("").reverse();return c.forEach((e=>{e.position<t.length&&t.splice(e.position,0,e.character)})),((a||"")+t.reverse().join("")).padStart(f," ")+i||""},{start:h,steps:m}=((e,t)=>{let r,n=0;const o=Math.ceil(e/.05)+1||1,s=e=>{clearInterval(r),e?.()};return{steps:o,start:(e,t)=>{r=setInterval((()=>{n<o?(e?.(n),n+=1):s(t)}),50)},stop:s}})(s?.speed||2),y=parseFloat((p/m).toFixed(u||2));if(1e-12>y)return;let v=[0];for(let e=1;e<m;++e)v.push(v[e-1]+y);v=v.map((e=>e.toFixed(u))),0<v.length&&(v[m-1]=p.toFixed(u||0),n.innerHTML=d(v[0]),setTimeout((()=>{n.style.whiteSpace="pre",h((e=>{n.innerHTML=d(v[e])}),(()=>{n.style.whiteSpace="",n.innerHTML=o}))}),s?.delay||0))})(s))}))}),n);o.observe(s)}}))}),300)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",n):n())}();