1var DOTS_MAX_SLIDES=3,STEPPER_MAX_WIDTH_PX=599,carouselTrackSeq=0,nextCarouselTrackId=function(){return"carousel-track-".concat(++carouselTrackSeq)},getSlideItems=function(e){return Array.from(e.children).filter(function(e){return 1===e.nodeType})},getCarouselLabel=function(e){var t=e.dataset.carouselLabel;return t&&t.trim()?t.trim():"Carosello"},ensureTrackId=function(e){return e.id||(e.id=nextCarouselTrackId()),e.id},applyCarouselRegionSemantics=function(e,t){ensureTrackId(t),t.setAttribute("aria-live","polite")},applySlideSemantics=function(e){var t=e.length;e.forEach(function(e,r){e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-label","".concat(r+1," di ").concat(t))})},linkNavToTrack=function(e,t,r){e&&e.setAttribute("aria-controls",r),t&&t.setAttribute("aria-controls",r)},parseCarouselGap=function(e){var t=window.getComputedStyle(e),r=parseFloat(t.gap||t.columnGap);return Number.isFinite(r)?r:0},getScrollStep=function(e,t){var r=t[0];return r?r.offsetWidth+parseCarouselGap(e):0},parsePositiveInt=function(e,t){if(null==e||""===e)return t;var r=parseInt(e,10);return Number.isFinite(r)&&r>0?r:t},getDotsMaxSlides=function(e){return parsePositiveInt(e.dataset.carouselDotsMaxSlides,DOTS_MAX_SLIDES)},getStepperMaxWidthPx=function(e){return parsePositiveInt(e.dataset.carouselStepperMaxWidthPx,STEPPER_MAX_WIDTH_PX)},isForceStepperEnabled=function(e){return"true"===e.dataset.carouselForceStepper},dotsUseStepper=function(e,t,r,n,i){return e>0&&(i||e<=r&&t<=n)},placeControlsBeforeTrack=function(e,t){e.previousElementSibling!==t&&e.parentElement.insertBefore(t,e)},placeControlsAfterTrack=function(e,t){e.nextElementSibling!==t&&e.parentElement.insertBefore(t,e.nextSibling)},initCarousels=function(){document.querySelectorAll("[data-carousel-style]").forEach(function(e){var t=e.dataset.carouselStyle;"arrows"===t?setupArrowCarousel(e):"dots"===t&&setupDotsCarousel(e)})},setupArrowCarousel=function(e){var t=e.querySelector(".cards-row"),r=e.querySelector(".carousel-btn.prev"),n=e.querySelector(".carousel-btn.next");if(t&&r&&n){var i=getSlideItems(t);applyCarouselRegionSemantics(e,t),applySlideSemantics(i),linkNavToTrack(r,n,t.id);var a=function(){if(i=getSlideItems(t),applySlideSemantics(i),0!==i.length){var a=t.scrollWidth>t.clientWidth+2,o=e.querySelector(".carousel-nav");if(o&&(a?o.classList.add("activated"):o.classList.remove("activated")),a){var s=t.scrollLeft<=0,l=t.scrollLeft+t.clientWidth>=t.scrollWidth-2;r.disabled=s,n.disabled=l}}},o=function(e){var r=getScrollStep(t,i);r&&t.scrollBy({left:r*e,behavior:"smooth"})};n.addEventListener("click",function(){return o(1)}),r.addEventListener("click",function(){return o(-1)}),t.addEventListener("scroll",function(){return requestAnimationFrame(a)},{passive:!0});var s=new ResizeObserver(a);s.observe(t),i.forEach(function(e){return s.observe(e)}),a();var l=function(){var e=t.querySelector("a.active, a div.active");if(e){if(t.scrollWidth>t.clientWidth+2){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect();n.left>=r.left&&n.right<=r.right||e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}};l(),window.addEventListener("dayNavigationChanged",function(){requestAnimationFrame(function(){l()})})}},setupDotsCarousel=function(e){var t=e.querySelector(".cards-row"),r=e.querySelector("[data-carousel-controls]");if(t&&r){var n=r.querySelector(".carousel-dots"),i=r.querySelector(".carousel-btn.prev"),a=r.querySelector(".carousel-btn.next");if(n&&i&&a){var o=getDotsMaxSlides(e),s=getStepperMaxWidthPx(e),l=isForceStepperEnabled(e);applyCarouselRegionSemantics(e,t),linkNavToTrack(i,a,t.id);var c=getSlideItems(t),u=[],d=null,f=0,p=function(){d&&(d.disconnect(),d=null)},v=function(e){if(c.length){f=Math.max(0,Math.min(e,c.length-1)),u.forEach(function(e,t){var r=t===f;e.classList.toggle("active",r),e.setAttribute("aria-current",r?"true":"false"),e.setAttribute("aria-label","Vai alla slide ".concat(t+1," di ").concat(c.length))});var t="".concat(f+1," di ").concat(c.length);u.length?(i.setAttribute("aria-label",0===f?"Slide precedente (prima slide)":"Slide precedente, posizione ".concat(t)),a.setAttribute("aria-label",f>=c.length-1?"Slide successiva (ultima slide)":"Slide successiva, posizione ".concat(t))):(i.setAttribute("aria-label","Slide precedente"),a.setAttribute("aria-label","Slide successiva"))}},S=function(){t.scrollWidth>t.clientWidth+2&&0!==c.length?r.classList.add("activated"):r.classList.remove("activated")},h=function(){if(0!==c.length){if(t.scrollWidth>t.clientWidth+2){var e=t.scrollLeft<=0,r=t.scrollLeft+t.clientWidth>=t.scrollWidth-2;i.disabled=e,a.disabled=r}}},b=function(e){var r=getScrollStep(t,c);r&&t.scrollBy({left:r*e,behavior:"smooth"})},m=function(){c=getSlideItems(t),applySlideSemantics(c);var i=dotsUseStepper(c.length,window.innerWidth,o,s,l);e.dataset.carouselUi=i?"stepper":"arrows",!l&&c.length>o?(n.innerHTML="",u=[],n.classList.remove("carousel-dots--suppressed"),n.setAttribute("hidden",""),n.setAttribute("aria-hidden","true"),r.classList.remove("carousel-control
1s--below-track"),placeControlsBeforeTrack(t,r)):(n.removeAttribute("hidden"),n.innerHTML="",u=[],!l&&(0===c.length||c.length>o)||c.forEach(function(e,t){var r=document.createElement("button");r.type="button",r.classList.add("cdot"),r.addEventListener("click",function(){e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),n.appendChild(r),u.push(r)}),i?(placeControlsAfterTrack(t,r),r.classList.add("carousel-controls--below-track"),n.classList.remove("carousel-dots--suppressed"),n.removeAttribute("aria-hidden")):(placeControlsBeforeTrack(t,r),r.classList.remove("carousel-controls--below-track"),n.classList.add("carousel-dots--suppressed"),n.setAttribute("aria-hidden","true"))),p(),p(),"stepper"===e.dataset.carouselUi&&0!==u.length&&0!==c.length&&(d=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=c.indexOf(e.target);-1!==t&&v(t)}})},{root:t,threshold:.6}),c.forEach(function(e){return d.observe(e)})),S(),h(),v(f)};m(),a.addEventListener("click",function(){return b(1)}),i.addEventListener("click",function(){return b(-1)}),t.addEventListener("scroll",function(){requestAnimationFrame(function(){c=getSlideItems(t),applySlideSemantics(c),S(),h()})},{passive:!0}),new ResizeObserver(function(){m()}).observe(t);var g=window.matchMedia("(max-width: ".concat(s,"px)")),L=function(){return m()};"function"==typeof g.addEventListener?g.addEventListener("change",L):g.addListener(L)}}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",initCarousels):initCarousels();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.