var handleSliderChange=function(e){var r,a,n=e.target.closest(".nrf-slider-wrapper");n&&((a=e.target.closest(".nrf-slider-range"))&&(n.querySelector(".nrf-slider-value").value=a.value,n.querySelector(".nrf-slider-value").dispatchEvent(new Event("change",{bubbles:!0}))),(a=e.target.closest(".nrf-slider-value"))&&(n.querySelector(".nrf-slider-range").value=a.value),e=n.querySelector(".nrf-slider-range"),a=e.dataset.baseColor,n=e.dataset.progressColor,a)&&n&&(r=e.max?~~(100*(e.value-e.min)/(e.max-e.min)):e.value,e.style.background="linear-gradient(to right, "+n+" 0%, "+n+" "+r+"%, "+a+" "+r+"%, "+a+" 100%)")};document.addEventListener("change",handleSliderChange),document.addEventListener("input",handleSliderChange);

