1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).webVitals={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n,o=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],urls:[],id:o(),isFinal:!1}},a=!1,r=!1,d=function(e){a=!e.persisted},l=function(){addEventListener("pagehide",d),addEventListener("unload",(function(){}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r||(l(),r=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:a})}),{capture:!0,once:t})},s=function(){return void 0===n&&(n="hidden"===document.visibilityState?0:1/0,c((function(e){var t=e.timeStamp;return n=t}),!0)),{get timeStamp(){return n}}},v=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},u=function(){var e=window.location.pathname.match(/^\/.+-(\d+)\/?(amp)?\/?$/);return e?"cmsvideo_"+e[1]:null},m=function(e,t){for(var n=[],o=e.getElementsByTagName("a"),i=0,a=o.length;i<a;i++)null!==o[i].getAttribute(t)&&""!==o[i].getAttribute(t)&&n.push(o[i]);return n},p=function(e){for(var t=[],n=document.getElementsByClassName("content_box"),o=0,i=n.length;o<i;o++)null!==n[o].getAttribute(e)&&t.push(n[o]);return t},f=function(e,t){return-1!=e.indexOf(t)},g=function(){var e=[];return"undefined"==typeof ioltrack_data||"undefined"==typeof IOL||void 0===IOL.EVNT?[]:(IOL.EVNT.evMngr=new IOL.EVNT.evMngrCls,(ioltrack_data.evnt_tracks||[]).forEach((function(n){if("track"==n)e.push(IOL.EVNT.evMngr.getEventUrls("pgmp_pgnf",{domain:ioltrack_data._domain,pag_id:ioltrack_data._page_id,ref_host:IOL.EVNT.evMngr.getHostFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_host,ref_path:IOL.EVNT.evMngr.getPathFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_path,doc_id:ioltrack_data._doc_id||"",doc_type:ioltrack_data._doc_type||IOL.EVNT.evMngr.doc_types.post,breakpoint:ioltrack_data._breakpoint,metric_type:ioltrack_data._vel}));else if("search"==n){var o=ioltrack_data._area;parseInt(ioltrack_data._evnt_page)>1&&(o=o+"-"+ioltrack_data._evnt_page),e.push(IOL.EVNT.evMngr.getEventUrls("pgmp_pgnf",{domain:ioltrack_data._domain,pag_id:o,ref_host:IOL.EVNT.evMngr.getHostFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_host,ref_path:IOL.EVNT.evMngr.getPathFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_path,doc_id:"",doc_type:0,breakpoint:ioltrack_data._breakpoint,search:ioltrack_data._evnt_query,searchno:ioltrack_data._evnt_num_results}))}else if("boximpress"==n){for(var i=[],a=[],r=p("data-content_box_name"),d=0,l=r.length;d<l;d++){var c=r[d].getAttribute("data-content_box_name"),s=r[d].getAttribute("data-content_box_area");"undefined"!==t(s)&&null!==s||(s="");for(var v=m(r[d],"data-content_box_id_post"),g=0,_=v.length;g<_;g++){var h=v[g].getAttribute("data-content_box_id_post");f(i,h)||i.push(h);var y={area:s,box:c,doc_id:h};f(a,y)||a.push(y)}}var A=u();IOL.EVNT.evMngr.getEventUrls("bxmp",{domain:ioltrack_data._domain,pag_id:ioltrack_data._page_id,ref_host:IOL.EVNT.evMngr.getHostFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_host,ref_path:IOL.EVNT.evMngr.getPathFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_path,boxes_ctr_id:i,boxes_id:a,breakpoint:ioltrack_data._breakpoint,doc_id:A||ioltrack_data._page_id}).forEach((function(t){e.push(t)}))}})),e)},_=function(){"undefined"!=typeof IOL&&void 0!==IOL.EVNT&&p("data-content_box_name").forEach((function(e){var n=e.getAttribute("data-content_box_name"),o=e.getAttribute("data-content_box_area");"undefined"!==t(o)&&null!==o||(o="");var i=u();m(e,"data-content_box_id_post").forEach((function(e,t,a){var r=e.getAttribute("data-content_box_id_post"),d=a.length,l=e.getAttribute("href");e.addEventListener("click",(function(){return IOL.EVNT.evMngr.getAClickH(this,{domain:ioltrack_data._domain,area:o,box:n,dest_id:r,doc_id:i||ioltrack_data._page_id,box_ctr_id:r,pag_id:ioltrack_data._page_id,page:ioltrack_data._page,link_type:t+1,cat1:ioltrack_data._sez,cat2:l,cat3:d,breakpoint:ioltrack_data._breakpoint,ref_host:IOL.EVNT.evMngr.getHostFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_host,ref_path:IOL.EVNT.evMngr.getPathFromUrl(document.referrer)||IOL.EVNT.evMngr.eventTypes.pgmp.ref_path})(event)}),!1)}))}))},h=function(){var e=document.querySelector(".vv-wrp").offsetWidth;return e<600?1:e>=600&&e<768?2:e>=768&&e<1e3?3:e>=1e3&&e<1192?4:5},y=function(e){if(e)for(var t=document.querySelectorAll("picture[data-preview]"),n=function(e){var n=t[e].getElementsByTagName("img")[0].dataset.src;t[e].addEventListener("mouseenter",(function(){var e=this.getAttribute("data-preview");this.getElementsByTagName("img")[0].src=e}),!1),t[e].addEventListener("mouseleave",(function(){this.getElementsByTagName("img")[0].src=n}),!1)},o=0;o<t.length;o++)n(o)},A="wlater",E=function(){var e=w(A);return!!e&&(e=atob(unescape(encodeURIComponent(e))),L(e)>0)},w=function(e){for(var t=document.cookie.split("; "),n=t.length-1;n>=0;n--){var o=t[n].split("=");if(o[0]==e)return o[1]}return null},b=function(e,t){t.indexOf("/playlist/")<0&&"/"===(t=t.split(/[\-]+/).pop()).substr(-1)&&(t=t.substr(0,t.length-1));for(var n=e.split("|"),o=n.length-1;o>=0;o--){if(n[o].indexOf("^")>-1)if(n[o].split("^")[1]==t)return!0}return!1},L=function(e){return e?e.split("|").length:0},k=function(e){return L(e)>=21},I=function(e){var t=24*e*60*60*1e3,n=new Date;return n.setTime(n.getTime()+t),"; expires="+n.toUTCString()},C=function(e,t){var n="0";t.indexOf("/playlist/")<0&&("/"===(t=t.split(/[\-]+/).pop()).substr(-1)&&(t=t.substr(0,t.length-1)),n=t.indexOf("/video/oroscopo-")>=0?"3":"1"),e=e?e+"|"+n+"^"+t:n+"^"+t;var o=I(365),i=";domain="+location.hostname;return document.cookie="wlater="+btoa(e)+o+i+";path=/video/",!1},x=function(e,t){if(!e)return!1;for(var n=e.split("|"),o=[],i=!1,a=n.length-1;a>=0;a--)if(n[a].indexOf("^")>-1){var r=n[a].split("^");
1if(r[1]==t){i=!0;continue}o.push(r[0]+"^"+r[1])}var d="";if(o.length>0)for(var l=0;l<o.length;l++)l>0&&(d+="|"),d+=o[l];if(""!=d){var c=I(365),s=";domain="+location.hostname;document.cookie="wlater="+btoa(d)+c+s+";path=/video/"}else{var v=I(-365),u=";domain="+location.hostname;document.cookie="wlater="+btoa(d)+v+u+";path=/video/",document.getElementsByClassName("vv-lgt2").length>0&&(document.getElementsByClassName("vv-lgt2")[0].innerHTML='<p class="vv-tlst__top-abst">Nessun video salvato</p>')}return i},B=function(e){if(e.type&&e.txtMsg){var t=document.querySelector("body");if(window.MSInputMethodContext&&document.documentMode)switch(e.type){case"confirm":confirm(e.txtMsg)&&e.callbackAct.call();break;case"alert":alert(e.txtMsg),e.callbackAct.call()}else{var n=Object.assign({},{titMsg:"",txtBtOk:"Ok",txtBtKo:"Annulla",callbackAct:function(){},callbackNotAct:function(){}},e);if(!document.querySelector(".vv-dlgs__overlay")){var o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div"),r=document.createElement("div");o.classList.add("vv-dlgs__overlay"),t.appendChild(o),i.classList.add("vv-dlgs"),o.appendChild(i),a.classList.add("vv-dlgs__msg"),r.classList.add("vv-dlgs__bts"),i.appendChild(a),i.appendChild(r)}var d=document.querySelector(".vv-dlgs"),l=d.parentElement,c=d.querySelector(".vv-dlgs__msg"),s=d.querySelector(".vv-dlgs__bts"),v=document.createElement("h6"),u=document.createElement("p"),m=document.createElement("button");m.setAttribute("type","button"),m.classList.add("vv-dlgs__bt"),n.titMsg&&(c.appendChild(v),v.classList.add("vv-dlgs__tit"),v.textContent=n.titMsg),n.txtMsg&&(c.appendChild(u),u.classList.add("vv-dlgs__txt"),u.textContent=n.txtMsg);var p=m.cloneNode(!0);p.textContent=n.txtBtKo,p.addEventListener("click",(function(){g(),n.callbackNotAct.call()}),!1);var f=m.cloneNode(!0);switch(f.classList.add("vv-dlgs__bt-ev"),f.textContent=n.txtBtOk,f.addEventListener("click",(function(){g(),n.callbackAct.call()}),!1),n.type){case"confirm":d.addEventListener("click",(function(e){e.stopPropagation()}),!1),l.addEventListener("click",(function(){g()}),!1),s.appendChild(p),s.appendChild(f),l.classList.add("open");break;case"alert":s.appendChild(f),l.classList.add("open")}var g=function(){for(l.classList.remove("open");c.firstChild;)c.removeChild(c.firstChild);for(;s.firstChild;)s.removeChild(s.firstChild)}}}};window.requestAnimationFrame=window.requestAnimationFrame;var T=document.querySelector("body"),N=function(e){"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)},M=function(e,t,n){t&&t(e),n.classList.toggle(e)},O=function(e){Array.prototype.slice.call(document.querySelectorAll("."+e)).forEach((function(t){t.className=e}))},S=function(e){if(T.classList.contains(e)){var t=document.body.style.top;document.body.style.position="",document.body.style.top="",window.scrollTo(0,-1*parseInt(t||"0"))}else document.body.style.top="-"+window.scrollY+"px",document.body.style.position="fixed"},V=function(e){"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)},q=function(e,t){var n=document.createElement("script");n.async=!0,n.src="//www.iolam.it/js/iam2.0.js?ns="+e,t&&(n.onload=function(){if("undefined"!=typeof vsport_walia_account_id&&"undefined"!=typeof vsport_walia_player_id){var e=document.createElement("script");e.src="https://players.brightcove.net/"+vsport_walia_account_id+"/"+vsport_walia_player_id+"_default/index.min.js",document.body.appendChild(e)}}),document.body.appendChild(n)},U=function(){var e=document.createElement("script");e.async=!0,e.src="/video/js/iolcb.1.2.min.js",document.body.appendChild(e)},R=function(){var e=document.createElement("script");e.async=!0,e.src="//js.agkn.com/prod/v0/tag.js",document.body.appendChild(e)},D=function(){var e=document.createElement("script");e.async=!0,e.onload=function(){exit_popup(null,{aggressive:!1,timer:0,callback:function(){}})},e.src="/video/js/popup.min.js",document.body.appendChild(e)},H=function(){window._seedtagq=window._seedtagq||[],window._seedtagq.push(["_setId","5371-5693-01"]),window._seedtagq.push(["iframe_mode"]);var e=document.createElement("script");e.async=!0,e.src="//config.seedtag.com/loader.js?v="+Math.random(),document.body.appendChild(e)},j=function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e&&H(),t&&U(),o&&F(),n&&R()},P=function(){if(_taboola=_taboola||[],_taboola.push({article:"auto"}),!document.getElementById("tb_loader_script")){var e=document.createElement("script"),t=document.getElementsByTagName("script")[0];e.async=!0,e.src="//cdn.taboola.com/libtrc/iol-sportvirgilio/loader.js",e.id="tb_loader_script",t.parentNode.insertBefore(e,t)}window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic")},F=function(){if(0<document.getElementsByClassName("wtaboola").length){var e=document.getElementsByClassName("wtaboola")[0];t=e,n=P,o=!1,i=function(){var e;if(e=!o){e=t.getBoundingClientRect();var i=document.documentElement;e=0<=e.top&&0<=e.left&&e.bottom-200<=(window.innerHeight||i.clientHeight)&&e.right<=(window.innerWidth||i.clientWidth)}e&&(o=!0,n())},window.addEventListener("scroll",i,!1)}var t,n,o,i},z=0,G=function(){if("undefined"!=typeof IOL&&void 0!==IOL.Video){IOL.Video.API.Player.destroy({dom_id:"iol_player"})}},Q=function(){var e=playerData[index_playerData],t=e.id,n=void 0!==e.title_p?e.title_p:e.title;if(document.getElementById("social_fb")){var o="https://www.virgilio.it/video/";document.location.hostname.indexOf("hpdev")>=0&&(o="https://hpdev.virgilio.it/video/"),o=o+"?s="+t,document.getElementById("social_fb").setAttribute("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o)),document.getElementById("social_tw").setAttribute("href","https://twitter.com/intent/tweet?text="+encodeURIComponent(n)+"&url="+encodeURIComponent(o)),document.getElementById("social_wa")&&(document.getElementById("social_wa").setAttribute("href","whatsapp://send?text="+
1o),document.getElementById("social_ms").setAttribute("data-url",o)),document.getElementById("social_ln").setAttribute("href","https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(o)),document.getElementById("social_mail").setAttribute("href","mailto:?subject="+encodeURIComponent(n)+"&body=Guarda su Virgilio Video "+encodeURIComponent(o)),document.getElementById("social_url")&&document.getElementById("social_url").setAttribute("data-url",o),document.getElementById("copyclip")&&document.getElementById("copyclip").setAttribute("data-url",o)}},J=function(){"function"==typeof refreshTagging&&refreshTagging()},W=function(e){var t="list-"+e;if(document.getElementById(t)){if(e>=0)for(var n=document.getElementById("lista-li").getElementsByTagName("li"),o=0;o<n.length;o++)if(n[o].classList.contains("active")){n[o].classList.remove("active");break}var i=document.getElementById(t);i.classList.add("active"),document.getElementById("num_playlist").innerHTML=("0"+(e+1)).slice(-2)+"/"+("0"+max_indice_player).slice(-2);var a=i.offsetLeft,r=i.offsetTop;i.parentElement.scrollTop=r,i.parentElement.scrollLeft=a}},Y=function(e){if(!("undefined"==typeof playerData||"undefined"==typeof max_indice_player||index_playerData>max_indice_player||e<0||e>max_indice_player-1||e==index_playerData)){index_playerData=e;var t=playerData[index_playerData];if("undefined"!=typeof IOL&&void 0!==IOL.Video){var n={dom_id:"iol_player",video_id:t.id};IOL.Video.API.Player.play(n)}W(index_playerData),Q(),J()}},X=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!("undefined"==typeof playerData||"undefined"==typeof max_indice_player||index_playerData>max_indice_player)){if(e){if(0==index_playerData)return;index_playerData--}else{if(index_playerData>max_indice_player-1)return;index_playerData==max_indice_player-1?index_playerData=0:index_playerData++}var t=playerData[index_playerData];if("undefined"!=typeof IOL&&void 0!==IOL.Video){var n={dom_id:"iol_player",video_id:t.id,adv_mode:!0,publisher:"".concat(t.publisher),category:"".concat(t.cat)};IOL.Video.API.Player.play(n)}W(index_playerData),Q(),J()}},K=function(e){var t=new Array;if(t[0]="GENNAIO",t[1]="FEBBRAIO",t[2]="MARZO",t[3]="APRILE",t[4]="MAGGIO",t[5]="GIUGNO",t[6]="LUGLIO",t[7]="AGOSTO",t[8]="SETTEMBRE",t[9]="OTTOBRE",t[10]="NOVEMBRE",t[11]="DICEMBRE",void 0!==e.detail.url){var n="",o=void 0;if(void 0!==e.detail.video_id&&(n=e.detail.video_id),void 0===o||n!=o){o=n;var i="",a="";void 0!==e.detail.title&&(i=e.detail.title);var r="";if(void 0!==e.detail.published_time&&""!=e.detail.published_time){var d=e.detail.published_time,l=new Date(1e3*d);r=l.getDate()+" "+t[l.getMonth()]+" "+l.getFullYear()}var c="",s="",v="javascript:void(0)",u="",m="",p="",f="",g="",_=0,h="",y="",A="";if(void 0!==e.detail.description&&""!=(c=e.detail.description))for(var E=c.split("\n\n"),w=E.length,b=0;b<w;b++)s=s+"<p>"+E[b]+"</p>";if(void 0!==e.detail.url&&(v=e.detail.url,/(\.st\.|\.pp\.|\-pp\.|hpdev\.)/.test(location.hostname)&&(v=v.replace("www.virgilio.it",location.hostname),/(\.st\.)/.test(location.hostname)&&(v=v.replace("https://","http://")))),void 0!==e.detail.fb_tot&&(_=parseInt(e.detail.fb_tot)),void 0!==e.detail.video_views&&(g=e.detail.video_views),void 0!==e.detail.tags&&(u=e.detail.tags),void 0!==e.detail.author&&(y=e.detail.author),void 0!==e.detail.author_link&&(A=e.detail.author_link),document.getElementsByClassName("foglia-v").length>=1?(""!=u&&(m=m+'<a class="vv-cat" href="/video/'+u.toLowerCase().replace(/ /g,"-")+'/">'+u.toUpperCase()+"</a>",m+="\n"),""!=r&&(m=m+'<span class="vv-date">'+r+"</span>",m+="\n"),h=(h='<a href="/video/" class="vv-brc__lnk">HOME</a> ')+'<a class="vv-brc__lnk" href="/video/'+u.toLowerCase()+'/">'+u.toUpperCase()+"</a> ",h+=i):(m='<div class="vv-vd__top-itm">',""!=u&&(m=m+'<span class="vv-cat">'+u.toUpperCase()+"</span>",m+="\n"),""!=r&&(document.getElementsByClassName("hp-cat-v").length>=1?m=m+'<span class="vv-date">'+r+"</span>":m+=r,m+="\n"),m+="</div>\n"),parseInt(g)>=0&&document.getElementById("vv_view")&&(document.getElementById("vv_view").innerHTML=g+" visualizzazioni",m+="\n"),document.getElementById("vv_fb")&&(document.getElementById("vv_fb").innerHTML=_.toString()),void 0!==e.detail.ke
1ywords&&""!=(p=e.detail.keywords)){var L=p.split(","),k=L.length;k>6&&(k=6);for(var I=0;I<k;I++){var C="";if("#"==L[I].substring(0,1)){var x=L[I].substring(1);C="/video/cerca-video/"+encodeURIComponent(x.toLowerCase())+"/"}else C="/video/cerca-tag/"+encodeURIComponent(L[I].toLowerCase())+"/";f=f+'<a class="vv-vd__tgs-itm" href="'+C+'">'+L[I]+"</a>"}}document.getElementsByClassName("foglia-v").length>=1?(a=i,document.getElementById("vv_title").innerHTML=a,""!=m&&(document.getElementsByClassName("vv-vd__top-itm")[0].innerHTML=m),""!=f&&(document.getElementsByClassName("vv-vd__tgs")[0].innerHTML=f),""!=h&&(document.getElementById("nav_breadcrumb").innerHTML=h),""!=y&&(s+='<p class="m-vdet__disc">Video tratto da: ',""!=A&&(s=s+'<a href="'+A+'" target="_blank" rel="noopener">'),s+=y,""!=A&&(s+="</a>"),s+="</p>")):(a='<a href="'+v+'">'+i+"</a>",document.getElementById("vv_title").innerHTML=a),document.getElementById("vv_leggitutto")&&document.getElementById("vv_leggitutto").setAttribute("href",v),document.title=i+" - Virgilio Video",document.getElementById("vv_description").innerHTML=s,document.getElementsByClassName("m-vdet-vv-vd__top").length>0?document.getElementsByClassName("m-vv-vd__top-info")[0].innerHTML=m:document.getElementsByClassName("m-vdet__info").length>0&&(document.getElementsByClassName("m-vdet__info")[0].innerHTML=m),document.getElementsByClassName("m-video-details__link").length>0&&(document.getElementsByClassName("m-video-details__link")[0].innerHTML='<a href="'+v+'" >Leggi di più</a>'),""!=v&&(!function(e,t){document.querySelector("a[data-shared=sharing-facebook-392266]")&&(document.querySelector("a[data-shared=sharing-facebook-392266]").setAttribute("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e)),document.querySelector("a[data-shared=sharing-twitter-392266]").setAttribute("href","https://twitter.com/intent/tweet?text="+encodeURIComponent(t)+"&url="+encodeURIComponent(e)))}(v,i),document.getElementsByClassName("foglia-v").length>=1&&(window.history.pushState({path:v},"",v),document.querySelector('meta[property="og:title"]').setAttribute("content",i),document.querySelector('meta[property="og:description"]').setAttribute("content",c),document.querySelector('meta[property="og:url"]').setAttribute("content",v),document.querySelector('meta[property="og:image"]').setAttribute("content",""))),J(),document.getElementsByClassName("foglia-v").length>=1&&("undefined"!=typeof IOL&&IOL.adv.refreshSlot(),document.getElementsByClassName("vv-gd__chk").length>=1&&(document.getElementsByClassName("vv-gd__chk")[0].checked=!1))}}},$=function(e){"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)};e.Slider=function(){N((function(){try{(e=document.createElement("script")).async=!0,e.src="/video/js/swiper.min.js",e.onload=function(){var e=document.createElement("script");e.src="/video/js/swiper.conf.js",document.body.appendChild(e)},document.body.appendChild(e)}catch(e){}var e}))},e.Ui=function(e){var t=i("Ui");N((function(){try{var n=document.querySelector("#iol_player_container");!function(){try{if("loading"in HTMLImageElement.prototype)for(var e=document.querySelectorAll("img.lazy"),t=0;t<e.length;t++)e[t].src=e[t].dataset.src;else{window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.lazyClass="lazy";var n=document.createElement("script");n.onload=function(){lazySizes.init()},n.async=!0,n.src="/video/js/lazysizes.min.js",document.body.appendChild(n)}}catch(e){console.log(e)}}(),document.querySelector(".vv-h__pnl-trg").addEventListener("click",(function(){if(M("vv-h__pnl--open",S,T),O("vv-nav__wrp"),n){var e=T.classList.contains("vv-h__pnl--open")?new Event("iol-menu-btn-click"):new Event("iol-close-btn-click");window.dispatchEvent(e)}}));var o=document.querySelector(".vv-h__src-trg"),i=document.querySelector(".pnl-src__close");o.addEventListener("click",(function(){if(M("pnl-src--open",S,T),n){var e=new Event("iol-menu-btn-click");window.dispatchEvent(e)}void 0!==IOL.Video&&void 0!==IOL.Video.API&&IOL.Video.API.Player.stop({dom_id:"iol_player"})})),i.addEventListener("click",(function(){if(M("pnl-src--open",S,T),void 0!==IOL.Video&&void 0!==IOL.Video.API&&IOL.Video.API.Player.play({dom_id:"iol_player"}),n){var e=new Event("iol-close-btn-click");window.dispatchEvent(e)}})),h()<=4&&Array.prototype.slice.call(document.querySelectorAll("span.vv-nav__lbl")).forEac
1h((function(e){e.addEventListener("click",(function(e){e.target.parentElement.classList.contains("vv-nav__wrp--open")||O("vv-nav__wrp"),M("vv-nav__wrp--open",void 0,this.parentElement)}))}));var a=document.querySelector("span.vv-vd__la");a&&a.addEventListener("click",(function(){M("vv-vd__wrp--open",void 0,this.parentElement)}));var r=document.querySelector(".vv-flt");r&&(r.querySelector(".vv-flt__trg").addEventListener("click",(function(){M("vv-flt--open",void 0,this.parentElement)})),Array.prototype.slice.call(document.querySelectorAll(".vv-flt__itm-trg")).forEach((function(e){e.addEventListener("click",(function(e){e.target.parentElement.classList.contains("vv-flt__itm--open")||e.target.parentElement.classList.remove("vv-flt__itm--open"),M("vv-flt__itm--open",void 0,this.parentElement)}))})),Array.prototype.slice.call(document.querySelectorAll(".vv-flt__itm-opt")).forEach((function(e){e.addEventListener("click",(function(){var e,t,n,o,i;M("vv-flt__itm-opt--sel",function(e,t){for(var n=[],o=e.parentNode.firstChild;o;)o!==e&&o.nodeType===Node.ELEMENT_NODE&&n.push(o),o=o.nextElementSibling||o.nextSibling;
1n.forEach((function(e){e.classList.contains("vv-flt__itm-trg")||(e.className=t)}))}(this,"vv-flt__itm-opt"),this),M("vv-flt__itm--open",void 0,this.parentElement),t=(e=this).getAttribute("data-id"),n=e.getAttribute("data-value"),o="",i=window.location.href,window.location.href.indexOf("?")>-1&&(i=window.location.href.split("?")[0],o=window.location.href.split("?")[1]),i=function(e,t,n,o){var i={};if(""!=t)for(var a=t.split("&"),r=0;r<a.length;r++){var d=a[r].split("=");d[0]!=n&&"page"!=d[0]&&(d[1].match(/^[a-z\dà èòùì\s]+$i/)||(i[d[0]]=d[1]))}var l="",c=0;for(var s in i)c>0&&(l+="&"),l=l+s+"="+i[s],c++;return"#"==e.charAt(e.length-1)&&(e=e.slice(0,-1)),c>0?(e=e+"?"+l,"-1"!=o&&(e=e+"&"+n+"="+o)):"-1"!=o&&(e=e+"?"+n+"="+o),e}(i,o,t,n),document.location.href=function(e){return 0===e.indexOf("https://www.virgilio.it")||0===e.indexOf("https://hpdev.virgilio.it")||0===e.indexOf("https://video-mas.virgilio.it")?e:"https://video.virgilio.it"}(i)}))})));var d=document.querySelector(".vv-shr");if(d){var l=d.querySelector(".vv-shr__trg");l&&l.addEventListener("click",(function(){var e,t,n=this;if(n.parentElement.classList.contains("vv-shr--open")){n.parentElement.classList.remove("vv-shr--open");setTimeout((function(){n.parentElement.classList.remove("vv-shr--open--top")}),100)}else e=n.nextElementSibling,(t=e.getBoundingClientRect()).top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||n.parentElement.classList.add("vv-shr--open--top"),n.parentElement.classList.add("vv-shr--open")}))}var c=document.querySelector(".vv-spc__hdr");if(c){var s=c.getAttribute("data-bg");if(s.length>0){var v="url("+s+")";c.style.backgroundImage=v}}if(g=document.querySelector(".vv-h"),_=document.querySelector(".vv-grid"),y=-1,window.addEventListener("scroll",(function(){-1==y&&(y=g.offsetHeight),f=Math.round(_.getBoundingClientRect().top),p=f+y,m&&window.cancelAnimationFrame(m),m=window.requestAnimationFrame((function(){var e=window.pageYOffset||document.body.scrollTop;e>p?(T.classList.add("fixHeader"),T.classList.add("scrollDown")):T.classList.contains("fixHeader")&&e<=p&&(g.setAttribute("style","transition-duration:0ms;-webkit-transition-duration:0ms;-moz-transition-duration:0ms"),T.classList.remove("scrollDown"),T.classList.remove("fixHeader"),setTimeout((function(){g.removeAttribute("style"),y=-1}),150))}))}),!1),E()){var u=document.querySelector(".vv-h__pnl-cnt");u.insertAdjacentHTML("afterbegin",'<a href="/video/video-salvati/" rel="nofollow" class="vv-h__pnl-lnk vv-h__pnl-vs"><span class="vv-h__pnl-lbl vv-h__pnl-lbl-vs">Video Salvati</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="vv-h__pnl-icn"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2a10 10 0 1010 10A10.029 10.029 0 0012 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7z"></path></svg></a>')}t.isFinal=!0,e(t)}catch(e){}var m,p,f,g,_,y}))},e.addValueToCookie=C,e.adv_stk_ftt=function(e){document.querySelector("html").style.setProperty("--ad320-height",e+"px"),document.querySelector(".stk_320x1").classList.add("stk_320x1--active")},e.ajaxCall=function(e,t,n){var o=new XMLHttpRequest;o.ontimeout=function(){console.log("The request for "+e+" timed out.")},o.onload=function(){4===o.readyState&&200===o.status&&n.apply(o)},o.open("GET",e,!0),o.timeout=t,o.responseType="document",o.send(null)},e.checkCookieByString=b,e.fixAdv=function(e){if(e.h<=599){var t,n,o,i,a=document.getElementById("admputop"),r=document.querySelector(".vv-gridI__dx");a.parentNode.classList.add("advContFixed");var d=window.pageYOffset||document.body.scrollTop;setTimeout((function(){n=a.parentNode.getBoundingClientRect().top,o=r.offsetTop-r.scrollTop+r.clientTop,i=Math.round(r.getBoundingClientRect().height-o)}),60),window.addEventListener("scroll",(function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame((function(){d=window.pageYOffset||document.body.scrollTop,a.parentNode.getBoundingClientRect().top<=0&&d>=n?(a.classList.add("fixIt"),d>=i?a.style.top=-(d-i)+"px":a.removeAttribute("style")):a.classList.remove("fixIt")}))}),!1)}},e.generateClick=function(){var e=s(),t=v("first-input",(function(t){t.startTime<e.timeStamp&&_()}));c((function(){t&&t.disconnect()}),!0),t||window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(t,n){n.timeStamp<e.timeStamp&&_()}))},e.generateUrlsEvnt=function(e){var t=i("IOLEvnt"),n=s(),o=v("first-input",(function(o){o.startTime<n.timeStamp&&(t.value=0,t.entries=[],t.isFinal=!0,t.urls=g(),e(t))}));c((function(){o&&o.disconnect()}),!0),o||window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(o,i){i.timeStamp<n.timeStamp&&(t.value=o,t.entries=[],t.isFinal=!0,t.urls=g(),e(t))}))},e.getCookie=w,e.getMainSizeState=h,e.getVideoInfo=K,e.isMaxVideoWatchLater
1=k,e.loadAdv=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],r=arguments.length>6&&void 0!==arguments[6]&&arguments[6],d=arguments.length>7&&void 0!==arguments[7]&&arguments[7];V((function(){try{""!=e&&q(e,t),j(n,o,i,a,r),d&&D()}catch(e){}}))},e.nVideoPlaylist=Y,e.nextVideoPlaylist=X,e.player=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];$((function(){try{if(document.addEventListener("iol-walia-ready",(function(){1&(z|=2)&&2&z&&G()}),!1),e){document.addEventListener("iol-walia-end",(function(){X()}),!1),document.getElementsByClassName("vv-pl__nav-lk vv-pl__nav-lk--prec")[0].addEventListener("click",(function(){X(!0)}),!1),document.getElementsByClassName("vv-pl__nav-lk vv-pl__nav-lk--succ")[0].addEventListener("click",(function(){X()}),!1);var n=document.querySelectorAll(".vv-pl__vs-itm");n&&Array.prototype.slice.call(n).forEach((function(e){e.addEventListener("click",(function(){var t=e.getAttribute("id");if(t){var n="list-",o=parseInt(t.slice(t.indexOf(n)+n.length));Y(o)}}))}))}else document.addEventListener("iol-walia-next",(function(e){K(e)}),!1);if(document.getElementsByClassName("vv-gd__lb").length>0){var o=document.getElementsByClassName("vv-gd")[0],i=!1,a=w(A);a&&(a=atob(unescape(encodeURIComponent(a))),b(a,document.location.pathname)&&(i=!0,document.getElementsByClassName("vv-gd")[0].innerHTML="")),i||o.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.preventDefault();var t=w(A);t?(t=atob(unescape(encodeURIComponent(t))),k(t)?B({titMsg:"Attenzione!",txtMsg:"Hai raggiunto il numero massimo di video salvati. Accedi alla tua lista per modificarla",txtBtOk:"I tuoi video",type:"confirm",callbackAct:function(){document.location.href="/video/video-salvati/"},callbackNotAct:function(){document.getElementsByClassName("vv-gd__chk")[0].checked=!1}}):b(t,document.location.pathname)||(C(t,document.location.pathname),document.getElementsByClassName("vv-gd__chk")[0].checked=!0)):(C(t,document.location.pathname),document.getElementsByClassName("vv-gd__chk")[0].checked=!0)}))}if(document.getElementsByClassName("vv-lgt2__bt").length>0){var r=document.getElementsByClassName("vv-lgt2__bt");Array.from(r).forEach((function(e){var t=e.getAttribute("data-id"),n=document.getElementById(t),o=n.getAttribute("data-path");e.addEventListener("click",(function(){B({titMsg:"Attenzione!",txtMsg:"Sei sicuro di voler rimuovere questo video da quelli salvati",txtBtOk:"Rimuovi",type:"confirm",callbackAct:function(){var e=w(A);e&&(e=atob(unescape(encodeURIComponent(e))),x(e,o)&&(n.remove(),document.getElementsByClassName("vv-tlst__top-nmb").length>0&&(document.getElementsByClassName("vv-tlst__top-nmb")[0].innerHTML=r.length+" video")))}})}),!1)}))}var d;if("undefined"!=typeof vsport_walia_account_id&&"undefined"!=typeof vsport_walia_player_id)if(t)(d=document.createElement("script")).async=!0,d.onload=function(){if("undefined"!=typeof vsport_walia_account_id&&"undefined"!=typeof vsport_walia_player_id){var e=document.createElement("script");e.src="https://i.plug.it/st/iplug/js/lib/iol/video/v2/walia/js/iol_walia_init.js",document.body.appendChild(e)}},d.src="//www.iolam.it/js/iam2.0.js?ns=virgilio/web/video/1.2",document.body.appendChild(d);else(d=document.createElement("script")).async=!0,d.onload=function(){if("undefined"!=typeof vsport_walia_account_id&&"undefined"!=typeof vsport_walia_player_id){var e=document.createElement("script");e.src="https://i.plug.it/iplug/js/lib/iol/video/v2/walia/js/iol_walia_init.min.js",document.body.appendChild(e)}},d.src="//www.iolam.it/js/iam2.0.js?ns=virgilio/web/video/1.2",document.body.appendChild(d)}catch(e){}}))},e.removeValueToCookie=x,e.scrollListPlayerMoving=W,e.showLabelHeader=E,e.thumbPreview=function(e){var t,n,o;e&&(t="animation",n=y,(o=new Image).onload=function(){var e=o.width>0&&o.height>0;n(e)},o.onerror=function(){try{console.log("Animated webp not supported")}catch(e){}},o.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[t])},e.tracking=function(){var e;e=function(){try{(e=document.createElement("script")).async=!0,e.src="https://www.googletagmanager.com/gtag/js?i
1d=G-CNNPFCGDJJ",document.body.appendChild(e)}catch(e){}var e},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)},Object.defineProperty(e,"__esModule",{value:!0})}));
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.