(()=>{"use strict";const e=e=>{let t=JSON.parse(e.target.getAttribute("data-progress-bar"));t&&function(r,n){const o=performance.now();requestAnimationFrame(function s(a){const i=a-o;let c;i>=n?(c=r,e.target.removeAttribute("data-progress-bar")):(c=function(e,t,r){return 0*(1-r)+r*t}(0,r,i/n),requestAnimationFrame(s)),function(r){e.target.querySelector(".gkit-progress-bar__progress").style.width=r+"%",t.percentageHide||(e.target.querySelector(".gkit-progress-bar__label").textContent=Math.round(r)+"%")}(c)})}(t.progress,t.duration)};window.addEventListener("load",()=>{((e,t)=>{const r=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}})});document.querySelectorAll(".gkit-progress-bar").forEach(e=>r.observe(e))})(0,e)})})();