!function(){"use strict";const e={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-faster":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;const n=["STRONG","B","EM","I","U","SPAN","CODE","MARK","SMALL","S","DEL","INS","SUP","SUB"];for(;r&&n.includes(r.tagName);)r=r.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?1:1e3)}}})(n),{suffix:i,prefix:a,number:c}=(e=>{const r=Array.from(e),n=[],o=[],s=[];let i=!0,a=!1;for(const 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),l=[...c].reverse().map(((e,t)=>r.has(e)?{position:t,character:e}:null)).filter((e=>e)),u=c.join("")?.split(".")?.[1]?.length||0,p=parseFloat(c.filter((e=>","!==e)).join("")),f=o.length-i.length,d=e=>{const t=e.split("").reverse();return l.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=>{let t,r=0;const n=Math.ceil(e/.05)+1||1,o=e=>{clearInterval(t),e?.()};return{steps:n,start:(e,s)=>{t=setInterval((()=>{r<n?(e?.(r),r+=1):o(s)}),50)},stop:o}})(s?.speed||2),y=parseFloat((p/m).toFixed(u||2));if(1e-12>y)return;let S=[0];for(let e=1;e<m;++e)S.push(S[e-1]+y);S=S.map((e=>e.toFixed(u))),0<S.length&&(S[m-1]=p.toFixed(u||0),n.innerHTML=d(S[0]),setTimeout((()=>{n.style.whiteSpace="pre",h((e=>{n.innerHTML=d(S[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())}();