(t=>{function e(t,e){var a=t.find(".tm-counter");new IntersectionObserver((t,e)=>{t.forEach(t=>{var r,n,o;t.isIntersecting&&(r=a.data("counter"),n=r.digits,(o=a.find(".tm-counter__number")).countTo({from:r.from,to:r.to,decimals:r.decimal,speed:r.duration,refreshInterval:50,formatter:function(t,e){e="full"===r.formatType?((t,e,r)=>{var n,o,a=(""+t).split("."),i="";for(e=e||"",r||0===r||(r=3),n=a[0].length;r<n;)o=n-r,i=e+a[0].slice(o,n)+i,n=o;return i=a[0].slice(0,n)+i,a[0]=i,a.join(".")})(t.toFixed(e.decimals),r.separator):((t,e)=>{var r=Math.abs(t),n=Math.sign(t);return 999999999<t?r=n*(Math.round(Math.abs(t)/100)/1e7):999999<t?r=n*(Math.round(Math.abs(t)/100)/1e4):999<t&&(r=n*(Math.round(Math.abs(t)/100)/10)),r.toFixed(e)})(t,n);return e.padStart(2,"0")||0},onUpdate:function(t){var e="";"short"===r.formatType&&(999999999<t?e="b":999999<t?e="m":999<t&&(e="k"),o.append(e))}}))})},{rootMargin:"0px 0px 0px 0px"}).observe(a.get(0))}t(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tm-counter.default",e)})})(jQuery);