PageSourceSearch

https://static-prod.ilpost.it/apps/home/_next/static/chunks/850-7b5417ab4fb5322b.js

js ilpost.it collected 2026-10-01 08:44:50 UTC 654,038 bytes, 577 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="71818d61-9450-4982-9797-bec75d526ec4",e._sentryDebugIdIdentifier="sentry-dbid-71818d61-9450-4982-9797-bec75d526ec4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[850],{17:e=>{"use strict";e.exports=Object},343:(e,t,i)=>{"use strict";i.d(t,{j:()=>o});var n=i(6029);let r={"peanuts-container":"_peanuts-container_1czkf_1","peanuts-title":"_peanuts-title_1czkf_10","peanuts-read-more":"_peanuts-read-more_1czkf_19","peanuts-random-btn":"_peanuts-random-btn_1czkf_41","scrolling-container":"_scrolling-container_1czkf_65","peanuts-items":"_peanuts-items_1czkf_80","peanuts-image-link":"_peanuts-image-link_1czkf_93","peanuts-image":"_peanuts-image_1czkf_93","peanuts-box-more":"_peanuts-box-more_1czkf_129","peanuts-text":"_peanuts-text_1czkf_144","peanuts-link":"_peanuts-link_1czkf_152"},a={"section-title-16":"_section-title-16_uyojx_1",subtitle:"_subtitle_uyojx_13"};function s({title:e,subtitle:t}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:a["section-title-16"],children:e}),t&&(0,n.jsx)("span",{className:a.subtitle,children:t})]})}function l({color:e="#fff",direction:t="right",size:i=30}){let r=0;return"left"===t?r=180:"up"===t?r=-90:"down"===t&&(r=90),(0,n.jsx)("svg",{height:`${i}px`,width:`${i}px`,viewBox:"0 0 185.343 185.343",transform:`rotate(${r})`,children:(0,n.jsx)("g",{children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{style:{fill:e},d:`M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175
2            l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934
3            c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z`})})})})}function o({image:e,url:t,showRandom:i,showMore:a,date:o}){let c=async()=>{i?.handle&&i?.handle()},d=o?new Intl.DateTimeFormat("it-IT",{day:"2-digit",month:"long",year:"numeric"}).format(new Date(o)):"";return(0,n.jsxs)("div",{className:r["peanuts-container"],children:[(0,n.jsxs)("div",{className:r["peanuts-title"],children:[(0,n.jsx)(s,{title:"Peanuts"}),a&&(0,n.jsxs)("a",{href:a.url,className:r["peanuts-read-more"],children:[a?.buttonTextSmall||"Vedi tutte"," ",(0,n.jsx)(l,{size:10,color:"var(--Greyscale-Text-Label)"})]}),i&&(0,n.jsxs)("button",{onClick:c,className:r["peanuts-random-btn"],children:[i?.buttonText||"Random Peanuts"," ",(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",fill:"none",viewBox:"0 0 7 11",children:(0,n.jsx)("path",{stroke:"#191b1b",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.3",d:"M.65.65 5.5 5.5.65 10.35"})})]})]}),(0,n.jsx)("div",{className:r["scrolling-container"],children:(0,n.jsxs)("div",{className:r["peanuts-items"],children:[(0,n.jsx)("a",{href:t,className:r["peanuts-image-link"],children:(0,n.jsx)("figure",{className:r["peanuts-image"],children:(0,n.jsx)("img",{src:e,alt:"La striscia di oggi",loading:"lazy"})})}),a&&(0,n.jsxs)("div",{className:r["peanuts-box-more"],children:[(0,n.jsxs)("p",{className:r["peanuts-text"],children:[(0,n.jsx)("strong",{children:d})," I Peanuts sono la striscia a fumetti pi\xf9 famosa del mondo, pubblicata quotidianamente tra il 1950 e il 2000."]}),(0,n.jsxs)("a",{href:a.url,className:r["peanuts-link"],children:[a?.buttonText||"Vedi tutte le strisce"," ",(0,n.jsx)(l,{size:14,color:"var(--Greyscale-Text-Label)"})]})]})]})})]})}},425:()=>{},510:(e,t,i)=>{"use strict";var n=i(3140),r=i(4913),a=i(6526),s=i(2206),l=n("%Map%",!0),o=r("Map.prototype.get",!0),c=r("Map.prototype.set",!0),d=r("Map.prototype.has",!0),u=r("Map.prototype.delete",!0),h=r("Map.prototype.size",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(t){if(e){var i=u(e,t);return 0===h(e)&&(e=void 0),i}return!1},get:function(t){if(e)return o(e,t)},has:function(t){return!!e&&d(e,t)},set:function(t,i){e||(e=new l),c(e,t,i)}};return t}},602:()=>{},656:e=>{"use strict";var t=Object.prototype.toString,i=Math.max,n=function(e,t){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var r=0;r<t.length;r+=1)i[r+e.length]=t[r];return i},r=function(e,t){for(var i=[],n=t||0,r=0;n<e.length;n+=1,r+=1)i[r]=e[n];return i},a=function(e,t){for(var i="",n=0;n<e.length;n+=1)i+=e[n],n+1<e.length&&(i+=t);return i};e.exports=function(e){var s,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);
3for(var o=r(arguments,1),c=i(0,l.length-o.length),d=[],u=0;u<c;u++)d[u]="$"+u;if(s=Function("binder","return function ("+a(d,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=l.apply(this,n(o,arguments));return Object(t)===t?t:this}return l.apply(e,n(o,arguments))}),l.prototype){var h=function(){};h.prototype=l.prototype,s.prototype=new h,h.prototype=null}return s}},865:(e,t,i)=>{"use strict";var n=i(2709),r=i(1429),a=i(1093);e.exports=n?function(e){return n(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return r(e)}:a?function(e){return a(e)}:null},959:()=>{},1093:(e,t,i)=>{"use strict";var n,r=i(3639),a=i(7654);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&a&&a(Object.prototype,"__proto__"),l=Object,o=l.getPrototypeOf;e.exports=s&&"function"==typeof s.get?r([s.get]):"function"==typeof o&&function(e){return o(null==e?e:l(e))}},1149:()=>{},1167:e=>{"use strict";e.exports=Math.round},1305:(e,t,i)=>{"use strict";i.d(t,{K:()=>p});var n=i(6029),r=i(5729);let a={"other-news-container":"_other-news-container_1t46q_1","other-news-items":"_other-news-items_1t46q_10",left:"_left_1t46q_27",center:"_center_1t46q_28",right:"_right_1t46q_29"},s={"single-other-news":"_single-other-news_1m8te_1"},l={"article-title":"_article-title_tdzen_7"};function o({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:s=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:l["article-title"],style:{fontSize:o?a:i,fontWeight:s},children:t})}let c={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function d({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
3olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:c["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${c["article-paragraph"]} ${a&&c[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}function u({title:e,text:t,url:i,image:r}){return(0,n.jsx)("article",{className:s["single-other-news"],children:(0,n.jsxs)("a",{href:i,className:s["single-other-news-link"],children:[(0,n.jsx)(o,{titleTag:"h3",fontSize:18,fontWeight:700,text:e}),t&&(0,n.jsx)(d,{fontSize:14,lineHeight:18,fontWeight:400,text:t})]})})}let h={"single-other-news":"_single-other-news_9kiuw_1"};function m({title:e,text:t,image:i,url:r}){return(0,n.jsx)("article",{className:h["single-other-news"],children:(0,n.jsxs)("a",{href:r,className:h["single-other-news-link"],children:[(0,n.jsx)(o,{titleTag:"h2",fontSize:24,fontMobileSize:22,fontWeight:700,text:e}),(0,n.jsx)(d,{fontSize:15,lineHeight:20,fontWeight:400,text:t}),(0,n.jsx)("figure",{className:h["single-other-news-image"],children:(0,n.jsx)("img",{src:i||void 0,alt:"",loading:"lazy"})})]})})}function p({items:e,title:t}){let[i,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{function e(){window.outerWidth<992?s(!0):s(!1)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]);let l=e[0],c=0;return(0,n.jsxs)("div",{className:a["other-news-container"],children:[(0,n.jsx)(o,{titleTag:"h3",fontSize:16,fontWeight:700,text:`${t??"Altre notizie"}`.toUpperCase()}),(0,n.jsxs)("div",{className:a["other-news-items"],children:[(0,n.jsx)("div",{className:a.left,children:(0,n.jsx)(m,{title:l.title,text:l.text,url:l.url,image:l.image},l.url)}),(0,n.jsx)("div",{className:a.center,children:e.slice(1,4).map(e=>(c++,(0,n.jsx)(u,{title:e.title,text:e.text,url:e.url},`${c}`)))}),e.length>4&&(0,n.jsx)("div",{className:a.right,children:e.slice(4,9).map(e=>(c++,(0,n.jsx)(u,{title:e.title,url:e.url},`${c}`)))})]})]})}},1393:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"two-columns-box":"_two-columns-box_aq0di_1","article-column":"_article-column_aq0di_17","article-content":"_article-content_aq0di_32","article-image":"_article-image_aq0di_35"};function o({title1:e,image1:t,url1:i,title2:r,image2:a,url2:o}){return(0,n.jsxs)("div",{className:l["two-columns-box"],children:[(0,n.jsx)("article",{className:l["article-column"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)("div",{className:l["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:t,alt:e,loading:"lazy",decoding:"async"})})}),(0,n.jsx)("div",{className:l["article-content"],children:(0,n.jsx)(s,{titleTag:"h2",fontSize:18,fontWeight:700,text:e})})]})},i),(0,n.jsx)("article",{className:l["article-column"],children:(0,n.jsxs)("a",{href:o,"aria-label":r,children:[(0,n.jsx)("div",{className:l["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:a,alt:r,loading:"lazy",decoding:"async"})})}),(0,n.jsx)("div",{className:l["article-content"],children:(0,n.jsx)(s,{titleTag:"h2",fontSize:18,fontWeight:700,text:r})})]})},o)]})}},1429:(e,t,i)=>{"use strict";e.exports=i(17).getPrototypeOf||null},1451:()=>{},1490:()=>{},1596:()=>{},1602:()=>{},1605:e=>{"use strict";e.exports=Math.pow},1607:()=>{},1652:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},1924:e=>{"use strict";e.exports=EvalError},1925:e=>{"use strict";e.exports=Math.floor},2068:(e,t,i)=>{"use strict";var n=i(6638);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},2120:()=>{},2206:e=>{"use strict";e.exports=TypeError},2214:()=>{},2217:(e,t,i)=>{"use strict";i.d(t,{X:()=>a});var n=i(6029);let r={"elezioni-usa-extended-container":"_elezioni-usa-extended-container_1mjei_2","elezioni-usa-extended-intro":"_elezioni-usa-extended-intro_1mjei_19","intro-left":"_intro-left_1mjei_29","intro-usa":"_intro-usa_1mjei_36","intro-year":"_intro-year_1mjei_40","intro-right":"_intro-right_1mjei_47","intro-summary":"_intro-summary_1mjei_52","intro-button":"_intro-button_1mjei_66","elezioni-usa-container":"_elezioni-usa-container_1mjei_86","with-background":"_with-background_1mjei_93","elezioni-usa-container__left-image":"_elezioni-usa-container__left-image_1mjei_96","elezioni-usa-container__right-image":"_elezioni-usa-container__right-image_1mjei_96","elezioni-usa-container__data":"_elezioni-usa-container__data_1mjei_121",candidate:"_candidate_1mjei_128",left:"_left_1mjei_131",right:"_right_1mjei_134",democrat:"_democrat_1mjei_146",republican:"_republican_1mjei_149",name:"_name_1mjei_152","progress-container":"_progress-container_1mjei_156","progress-container__left":"_progress-container__left_1mjei_166","progress-container__right":"_progress-container__right_1mjei_172","numbers-left":"_numbers-left_1mjei_180","numbers-divider":"_numbers-divider_1mjei_181","numbers-right":"_numbers-right_1mjei_182",wins:"_wins_1mjei_213","double-size":"_double-size_1mjei_252"};function a({leftName:e,leftLastName:t,rightName:i,rightLastName:a,leftImage:s,rightImage:l,leftVotes:o,rightVotes:c,bgColor:d,buttonLink:u,extended:h=!1,doubleSize:m=!1,totalVotes:p=538,neededVotes:f=270}){let v=100*o/p,g=100*c/p,A=o>=f,y=c>=f,w=(0,n.jsxs)("div",{className:`${r["elezioni-usa-container"]} ${!h&&d?r["with-background"]:""} ${m?r["double-size"]:""}`,style:!h&&d?{backgroundColor:d}:{},children:[(0,n.jsx)("div",{className:r["elezioni-usa-container__left-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:s||void 0,alt:`${e} ${t}`,title:`${e} ${t}`})})}),(0,n.jsxs)("div",{className:r["elezioni-usa-container__data"],children:[(0,n.jsx)("div",{className:`${r.candidate} ${r.left}`,children:(0,n.jsxs)("h3",{className:r.democrat,children:[(0,n.jsx)("span",{className:r.name,children:e})," ",t]})}),(0,n.jsx)("div",{className:`${r.candidate} ${r.right}`,children:(0,n.jsxs)("h3",{className:r.republican,children:[(0,n.jsx)("span",{className:r.name,children:i})," ",a]})}),(0,n.jsxs)("div",{className:r["progress-container"],children:[(0,n.jsx)("div",{className:r["progress-container__left"],style:{width:`${v}%`}}),(0,n.jsx)("div",{className:r["progress-container__right"],style:{width:`${g}%`}})]}),(0,n.jsx)("div",{className:`${r["numbers-left"]} ${r.democrat} ${A?r.wins:""}`,children:o}),(0,n.jsx)("div",{className:r["numbers-divider"],children:f}),(0,n.jsx)("div",{className:`${r["numbers-right"]} ${r.republican} ${y?r.wins:""}`,children:c})]}),(0,n.jsx)("div",{className:r["elezioni-usa-container__right-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:l||void 0,alt:`${i} ${a}`,title:`${i} ${a}`})})})]});return h?(0,n.jsxs)("div",{className:r["elezioni-usa-extended-container"],children:[(0,n.jsxs)("div",{className:r["elezioni-usa-extended-intro"],children:[(0,n.jsxs)("div",{className:r["intro-left"],children:[(0,n.jsx)("div",{className:r["intro-usa"],children:"USA"}),(0,n.jsxs)("div",{className:r["intro-year"],children:[(0,n.jsx)("span",{children:"20"}),"24"]})]}),(0,n.jsxs)("div",{className:r["intro-right"],children:[(0,n.jsxs)("p",{className:r["intro-summary"],children:["I risultati in tempo reale:",(0,n.jsx)("br",{}),"vince chi arriva a 270"]}),(0,n.jsx)("a",{href:u,className:r["intro-button"],children:"Vedi la mappa"})]})]}),w]}):w}},2232:(e,t,i)=>{"use strict";i.d(t,{N:()=>h});var n=i(6029),r=i(5729);let a={"article-newsletter":"_article-newsletter_phq7n_1","article-image":"_article-image_phq7n_23","article-content":"_article-content_phq7n_40","article-newsletter-embedded":"_article-newsletter-embedded_phq7n_61"},s={"section-title-16":"_section-title-16_uyojx_1",subtitle:"_subtitle_uyojx_13"};
3function l({title:e,subtitle:t}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:s["section-title-16"],children:e}),t&&(0,n.jsx)("span",{className:s.subtitle,children:t})]})}let o={"article-title":"_article-title_tdzen_7"};function c({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:s=400}){let[l,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:o["article-title"],style:{fontSize:l?a:i,fontWeight:s},children:t})}let d={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function u({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,color:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:d["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${d["article-paragraph"]} ${a&&d[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}function h({title:e,summary:t,image:i,url:r,isEmbeddedOnly:s}){return(0,n.jsxs)("article",{className:`${a["article-newsletter"]} ${s?a["article-newsletter-embedded"]:""}`,children:[!s&&(0,n.jsx)("a",{href:"/newsletter/",children:(0,n.jsx)(l,{title:"Newsletter"})}),(0,n.jsxs)("a",{href:r,"aria-label":`Leggi ${e}`,children:[(0,n.jsx)("div",{className:a["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:`Immagine per ${e}`,loading:"lazy",decoding:"async"})})}),(0,n.jsxs)("div",{className:a["article-content"],children:[(0,n.jsx)(c,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),t&&(0,n.jsx)(u,{text:t,fontSize:14,lineHeight:20,fontWeight:400,classLimitText:"limit-text5"})]})]})]})}},2236:e=>{"use strict";var t=String.prototype.replace,i=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},2421:()=>{},2562:(e,t,i)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,r=i(7684);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},2709:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},2828:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
3olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"article-ok-boomer":"_article-ok-boomer_pkajj_1","article-image":"_article-image_pkajj_13","article-content":"_article-content_pkajj_30","article-author":"_article-author_pkajj_38"};function d({title:e,text:t,author:i,image:r,caption:a,url:l}){return(0,n.jsx)("article",{className:c["article-ok-boomer"],children:(0,n.jsxs)("a",{href:l,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)("div",{className:c["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:r,alt:a||e,loading:"lazy",decoding:"async"})})}),(0,n.jsxs)("div",{className:c["article-content"],children:[(0,n.jsxs)("div",{className:c["article-author"],children:["di ",(0,n.jsx)("strong",{children:i})]}),(0,n.jsx)(s,{titleTag:"h2",fontSize:18,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]})})}},2948:(e,t,i)=>{"use strict";i.d(t,{t:()=>G});var n=i(6029),r=i(5729);let a={"article-open-wide":"_article-open-wide_1ggjc_1","live-label":"_live-label_1ggjc_1","video-container":"_video-container_1ggjc_5","video-loader":"_video-loader_1ggjc_15","article-link":"_article-link_1ggjc_30","article-relateds":"_article-relateds_1ggjc_92","columns-1":"_columns-1_1ggjc_119","columns-2":"_columns-2_1ggjc_122","columns-3":"_columns-3_1ggjc_125","article-live-items":"_article-live-items_1ggjc_148"},s={"article-title":"_article-title_tdzen_7"};function l({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:s["article-title"],style:{fontSize:o?a:i,fontWeight:l},children:t})}let o={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function c({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
3olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:o["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${o["article-paragraph"]} ${a&&o[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let d={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function u({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:d["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:d["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let h={"label-live":"_label-live_y66gb_1"};function m({title:e="Live"}){return(0,n.jsx)("h3",{className:h["label-live"],children:e})}let p={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function f({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:p["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:p["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let v={"single-live-item":"_single-live-item_j9dqo_1"};function g({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:v["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:v["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let A={"breaking-news":"_breaking-news_6kvlp_1"},y=({date:e,expired:t=50})=>{let[i,a]=(0,r.useState)("");if((0,r.useEffect)(()=>{if(!e)return;let i=e=>`${e} ${1===e?"minuto":"minuti"}`,n=e=>`${e} ${1===e?"ora":"ore"}`,r=()=>{let r=new Date,s=new Date(e);if(isNaN(s.getTime()))return;let l=Math.floor((r.getTime()-s.getTime())/6e4);if(l<0||l>t)return void a("");let o=Math.floor(l/60),c=l%60;a(0===o?`${i(c)} fa`:c<=0?`${n(o)} fa`:`${n(o)} e ${i(c)} fa`)};r();let s=setInterval(r,6e4);return()=>clearInterval(s)},[e,t]),!i)return null;let s=new Date(e),l=isNaN(s.getTime())?void 0:s.toISOString();return(0,n.jsx)("time",{className:A["breaking-news"],dateTime:l,children:i})},w=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
4  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
5</svg>`,b=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},_=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
6      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
7    </svg>`,x="DISCONNECTED",E=new Set;async function C(e){let t=window;if("CONNECTING"!==x){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){k("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{k("DISCONNECTED");return}if(!n)return void k("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}
7function k(e){x!==e&&(x=e,E.forEach(t=>t(e)))}function S(e){return E.add(e),e(x),()=>{E.delete(e)}}function L(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function M(e){let t=L();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let N=!1,T=!1,j=null;S(e=>{"CONNECTED"===e&&function(){if(N)return;N=!0;let e=L();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=j;e&&t&&(T=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),T=!1)})}(),"DISCONNECTED"===e&&(N=!1)});let I=e=>{e&&(e.remove(),e=null)},D=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
8    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
9  </svg>`,P=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
10    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.02 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
11  </svg>`,O=()=>/Apple/i.test(navigator.vendor||""),B=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},H=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,$=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},z={top:10,middle:50,bottom:null},Y=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=z[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},V=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
12`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
13`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function W({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.3
1311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let R=null,q=()=>R||(R=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),F=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:m=!1,autoplayPreview:p=!1,link:f,onPlayerEvent:v,customPosterUrl:g,previewVideoUrl:A})=>{let y=(0,r.useRef)(null),E=(0,r.useRef)(v);E.current=v;let[N,z]=(0,r.useState)(()=>"all"===d),R=i&&!p,F=a&&!p,U=s&&!p,Q=l&&!p,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==u;if((0,r.useEffect)(()=>{Z||z(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,Z]),(0,r.useEffect)(()=>{U&&q().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:k("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:k("CONNECTED");break;case n.SESSION_ENDING:k("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:k("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!N&&G,n=y.current;if(!n||!e)return;n.replaceChildren();let r=A||`${t}/${e}/master.m3u8`,a=!!A&&/\.m3u8(\?|$)/i.test(A),s=g||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,f=!1,v=!1,k,z,W={enablePipButton:R,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:p,onSeek:(e,t)=>E.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>E.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>E.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>E.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>E.current?.({type:"pipactivate"}),onCastActivate:()=>E.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:m,onPipActivate:p,onCastActivate:f}=r,v=document.createElement("div");v.id="video-player-container",v.className="video-player-container";let g=document.createElement("div");g.className="video-player-wrapper";let A=document.createElement("video");A.id="video-player",A.controls=!1,A.playsInline=!0,A.poster=t,A.className="video-player-element",c&&(A.muted=!0,A.loop=!0,A.autoplay=!0);let y=document.createElement("div");y.className="controls-bar";let x=document.createElement("div");x.className="controls-row";let{bigPlayButton:E}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=w(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(A),{playButton:k,rewindButton:S,forwardButton:L}=((e,t)=>{let i=b(_(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
14    <g fill="${t}">
15      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
15-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
16    </g>
17  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
18    <g fill="${t}">
19      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
20      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
205.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
21    </g>
22  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(A,h),{volumeContainer:M}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=b(P(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
23    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
24  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
25    <path fill="${t}
25" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
26  </svg>`)(24):a.innerHTML=P(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(A,{hideSlider:c,onMuteToggle:m}),{timeDisplay:N}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=B(e.currentTime),n=B(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(A),{qualityMenu:T,qualityButton:j}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=b(H(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:I,subtitlesButton:O}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
27    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
28    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
29  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
30    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
31  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(A,p),{airplayButton:Y}=(e=>{let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
32    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
33    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
34  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(A),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=b(D(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
35    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
36      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
37    </g>
38    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
39      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
40    </g>
41  </svg>`)(24):a.innerHTML=D(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(g,A,u),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
41" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
42    <div class="cast-modal">
43      <div class="cast-title">Casting to</div>
44      <div class="cast-device">${n}</div>
45
46      <div class="cast-actions">
47        <button class="cast-stop">Interrompi trasmissione</button>
48        <button class="cast-cancel">Annulla</button>
49      </div>
50    </div>
51  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),C(e)},{castButton:i}})({videoUrl:e,onCastActivate:f}),R=document.createElement("div");R.className="control-spacer",x.appendChild(k),x.appendChild(S),x.appendChild(L),x.appendChild(M),x.appendChild(N),x.appendChild(R),a&&x.appendChild(z),x.appendChild(Y),o&&x.appendChild(O),s&&x.appendChild(j),x.appendChild(V),l&&x.appendChild(W),y.appendChild(x);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(A,d);y.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=B(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
52`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=$(r),l=$(a);if(e+1<i.length){let n=i[e+1].trim();
52n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(A,q,g,i);g.appendChild(A),c?g.appendChild(M):(E.classList.add("visible"),g.appendChild(E),g.appendChild(y),g.appendChild(T),g.appendChild(I),g.appendChild(F)),v.appendChild(g);let U=()=>{g.hideControlsTimeout&&clearTimeout(g.hideControlsTimeout),A.paused||(g.hideControlsTimeout=window.setTimeout(()=>{y.classList.remove("visible")},1e3))};if(!c){g.onmouseenter=()=>{y.classList.add("visible"),U()},g.onmouseleave=()=>{A.paused?y.classList.add("visible"):y.classList.remove("visible")},g.onmousemove=()=>{y.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;g.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!y.classList.contains("visible"))&&y.classList.add("visible"),U()},{passive:!0}),g.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),g.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(v),c||(A.addEventListener("play",()=>{k.innerHTML=((e=32,t="#f1f1f3")=>`<svg
53  xmlns="http://www.w3.org/2000/svg"
54  width="${e}"
55  height="${e}"
56  fill="none"
57  viewBox="0 0 32 32"
58>
59    <path
60      fill="${t}"
61      fill-rule="evenodd"
62      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
63      clip-rule="evenodd"
64    />
65</svg>`)(32),y.classList.add("visible"),E.classList.remove("visible"),U()}),A.addEventListener("pause",()=>{k.innerHTML=_(32),y.classList.add("visible")}),A.onclick=()=>{A.paused?A.play():A.pause()}),{video:A,playerWrapper:g,qualityButton:j,qualityMenu:T,subtitlesButton:O,subtitlesMenu:I}})(r,s,l,n,W);j=t,U&&q().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),p||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{T||M(!0)}),t.addEventListener("pause",()=>{T||M(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===x&&function(e){let t=L();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>E.current?.({type:"play"})),t.addEventListener("pause",()=>E.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&E.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>E.current?.({type:"ended"}));let a=!1;(z=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),k=S(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(v)return;v=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
66    <div class="cast-box">
67      <div class="cast-text">
68        In riproduzione su<br/>
69        <strong>${n}</strong>
70      </div>
71
72      <button class="cast-disconnect">DISCONNETTI</button>
73    </div>
74  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),I(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(v=!1,I(null))}),J()},J=()=>{if(A&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=O()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
74if(Array.from(l.textTracks).filter(m).forEach(e=>Y(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&Y(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${H(24)} Auto`:c.innerHTML=`${H(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>E.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};m?t():O()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=w(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
74<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(p){(!A||a)&&V(r);let e=K(!1);n.appendChild(e),X(e)}else(!A||a)&&V(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{f||(f=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{k?.(),j=null,z?.disconnect(),y.current&&y.current.replaceChildren()}},[e,t,R,F,U,Q,o,c,p,N,g,A]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(W,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:y,className:"video-player-embed","data-video-id":e});return p&&f?(0,n.jsx)("a",{href:f,className:"video-player-embed-link",children:X}):X},U={"loading-container":"_loading-container_shx50_1"};function Q(e){return(0,n.jsx)("div",{className:U["loading-container"],children:(0,n.jsx)(W,{size:24,color:e?.color})})}function G({title:e,text:t,image:i,caption:s,url:o,relatedsItems:d,template_related:h,isLive:p=!1,breakingTime:v=null,expireBreakingTime:A=null,video:w,videoUrl:b,derivedInfo:_}){let{showVideo:x,videoContainerRef:E,isCheckingVideo:C}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(w),k="live_items"===h&&_?.live_status!=="close",S=k?a["article-live-items"]:a["article-relateds"],L=_?.live_breadcrumb_logo||_?.live_breadcrumb_titolo||_?.live_breadcrumb_background_color||_?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${a["article-open-wide"]} ${d&&d.length>0?a["with-relateds"]:""}`,children:[p&&(0,n.jsx)("div",{className:a["live-label"],children:L?(0,n.jsx)(u,{logo:_?.live_breadcrumb_logo,backgroundColor:_?.live_breadcrumb_background_color,title:_?.live_breadcrumb_titolo,titleColor:_?.live_breadcrumb_title_color,url:o}):(0,n.jsx)(m,{})}),v&&(0,n.jsx)(y,{date:v,expired:A}),(0,n.jsxs)("a",{href:o,className:a["article-link"],"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(l,{titleTag:"h1",fontSize:48,fontMobileSize:40,fontWeight:700,text:e}),(0,n.jsx)(c,{fontSize:16,lineHeight:20,fontWeight:400,text:t}),!x&&!C&&(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:s||e})})]}),x&&(0,n.jsx)("div",{ref:E,className:a["video-container"],children:(0,n.jsx)(F,{videoId:w?.id||"",baseUrl:w?.baseUrl||"",autoplayPreview:!0,link:b,previewVideoUrl:w?.shortVideoUrl,customPosterUrl:w?.customPosterUrl})}),!x&&C&&(0,n.jsx)("figure",{className:a["video-loader"],children:(0,n.jsx)(Q,{color:"var(--Greyscale-Text-Summary)"})}),h&&""!==h&&!!d?.length&&(0,n.jsxs)("div",{className:`${S} ${a[`columns-${d.length}`]}`,children:[k&&(0,n.jsx)(l,{titleTag:"h2",fontSize:18,fontMobileSize:14,fontWeight:600,text:"Gli ultimi aggiornamenti"}),_?.live_status==="close"&&(0,n.jsx)(l,{titleTag:"h2",fontSize:18,fontMobileSize:14,fontWeight:600,text:"Aggiornamenti importanti"}),d?.map(e=>{let t="";return null!=h&&"live_items"!==h&&(t="all"===h&&e?.summary||""),k?(0,n.jsx)(g,{title:e.title,url:e.link,date:e.date??"",titleTag:"h3"},e.link):(0,n.jsx)(f,{title:e.title,summary:t,url:e.link,titleTag:_?.live_status==="close"?"h3":"h2"},e.link)})]})]})}},3042:(e,t,i)=>{"use strict";i.d(t,{T:()=>Y});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
74olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-red":"_label-red_jovg7_1"};function d({title:e,color:t="#ff0000"}){return(0,n.jsx)("h3",{className:c["label-red"],style:{color:t},children:e})}let u=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
75  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
76</svg>`,h=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},m=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
77      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
78    </svg>`,p="DISCONNECTED",f=new Set;async function v(e){let t=window;if("CONNECTING"!==p){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){g("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{g("DISCONNECTED");return}if(!n)return void g("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}function g(e){p!==e&&(p=e,f.forEach(t=>t(e)))}function A(e){return f.add(e),e(p),()=>{f.delete(e)}}function y(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function w(e){let t=y();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let b=!1,_=!1,x=null;A(e=>{"CONNECTED"===e&&function(){if(b)return;b=!0;let e=y();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=x;e&&t&&(_=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),_=!1)})}(),"DISCONNECTED"===e&&(b=!1)});let E=e=>{e&&(e.remove(),e=null)},C=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
79    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
80  </svg>`,k=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
81    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.
8102 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
82  </svg>`,S=()=>/Apple/i.test(navigator.vendor||""),L=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},M=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,N=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},T={top:10,middle:50,bottom:null},j=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=T[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},I=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
83`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
84`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function D({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let P=null,O=()=>P||(P=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");
84i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),B=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:f,handleLock:b,forceHls:T=!1,autoplayPreview:P=!1,link:B,onPlayerEvent:H,customPosterUrl:$,previewVideoUrl:z})=>{let Y=(0,r.useRef)(null),V=(0,r.useRef)(H);V.current=H;let[W,R]=(0,r.useState)(()=>"all"===d),q=i&&!P,F=a&&!P,U=s&&!P,Q=l&&!P,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==f;if((0,r.useEffect)(()=>{Z||R(!!("all"===d||"registered"===d&&f?.logged||"subscriber"===d&&(f?.issubscriber||f?.admin)))},[f,d,Z]),(0,r.useEffect)(()=>{U&&O().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:g("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:g("CONNECTED");break;case n.SESSION_ENDING:g("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:g("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!W&&G,n=Y.current;if(!n||!e)return;n.replaceChildren();let r=z||`${t}/${e}/master.m3u8`,a=!!z&&/\.m3u8(\?|$)/i.test(z),s=$||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,f=null,g=!1,D=!1,B,H,R={enablePipButton:q,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:P,onSeek:(e,t)=>V.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>V.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>V.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>V.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>V.current?.({type:"pipactivate"}),onCastActivate:()=>V.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=f=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:p,onSkip:f,onMuteToggle:g,onPipActivate:A,onCastActivate:y}=r,w=document.createElement("div");w.id="video-player-container",w.className="video-player-container";let b=document.createElement("div");b.className="video-player-wrapper";let _=document.createElement("video");_.id="video-player",_.controls=!1,_.playsInline=!0,_.poster=t,_.className="video-player-element",c&&(_.muted=!0,_.loop=!0,_.autoplay=!0);let x=document.createElement("div");x.className="controls-bar";let E=document.createElement("div");E.className="controls-row";let{bigPlayButton:S}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=u(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(_),{playButton:T,rewindButton:j,forwardButton:I}=((e,t)=>{let i=h(m(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
85    <g fill="${t}">
86      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
86-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
87    </g>
88  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
89    <g fill="${t}">
90      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
91      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
915.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
92    </g>
93  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(_,f),{volumeContainer:D}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=h(k(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
94    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
95  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
96    <path fill="${t}
96" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
97  </svg>`)(24):a.innerHTML=k(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(_,{hideSlider:c,onMuteToggle:g}),{timeDisplay:P}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=L(e.currentTime),n=L(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(_),{qualityMenu:O,qualityButton:B}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=h(M(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:H,subtitlesButton:$}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
98    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
99    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
100  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
101    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
102  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(_,A),{airplayButton:Y}=(e=>{let t=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
103    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
104    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
105  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(_),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=h(C(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
106    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
107      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
108    </g>
109    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
110      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
111    </g>
112  </svg>`)(24):a.innerHTML=C(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(b,_,p),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
112" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
113    <div class="cast-modal">
114      <div class="cast-title">Casting to</div>
115      <div class="cast-device">${n}</div>
116
117      <div class="cast-actions">
118        <button class="cast-stop">Interrompi trasmissione</button>
119        <button class="cast-cancel">Annulla</button>
120      </div>
121    </div>
122  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),v(e)},{castButton:i}})({videoUrl:e,onCastActivate:y}),R=document.createElement("div");R.className="control-spacer",E.appendChild(T),E.appendChild(j),E.appendChild(I),E.appendChild(D),E.appendChild(P),E.appendChild(R),a&&E.appendChild(z),E.appendChild(Y),o&&E.appendChild($),s&&E.appendChild(B),E.appendChild(V),l&&E.appendChild(W),x.appendChild(E);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(_,d);x.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=L(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
123`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=N(r),l=N(a);if(e+1<i.length){let n=i[e+1].trim();
123n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(_,q,b,i);b.appendChild(_),c?b.appendChild(D):(S.classList.add("visible"),b.appendChild(S),b.appendChild(x),b.appendChild(O),b.appendChild(H),b.appendChild(F)),w.appendChild(b);let U=()=>{b.hideControlsTimeout&&clearTimeout(b.hideControlsTimeout),_.paused||(b.hideControlsTimeout=window.setTimeout(()=>{x.classList.remove("visible")},1e3))};if(!c){b.onmouseenter=()=>{x.classList.add("visible"),U()},b.onmouseleave=()=>{_.paused?x.classList.add("visible"):x.classList.remove("visible")},b.onmousemove=()=>{x.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;b.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!x.classList.contains("visible"))&&x.classList.add("visible"),U()},{passive:!0}),b.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),b.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(w),c||(_.addEventListener("play",()=>{T.innerHTML=((e=32,t="#f1f1f3")=>`<svg
124  xmlns="http://www.w3.org/2000/svg"
125  width="${e}"
126  height="${e}"
127  fill="none"
128  viewBox="0 0 32 32"
129>
130    <path
131      fill="${t}"
132      fill-rule="evenodd"
133      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
134      clip-rule="evenodd"
135    />
136</svg>`)(32),x.classList.add("visible"),S.classList.remove("visible"),U()}),_.addEventListener("pause",()=>{T.innerHTML=m(32),x.classList.add("visible")}),_.onclick=()=>{_.paused?_.play():_.pause()}),{video:_,playerWrapper:b,qualityButton:B,qualityMenu:O,subtitlesButton:$,subtitlesMenu:H}})(r,s,l,n,R);x=t,U&&O().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),P||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{_||w(!0)}),t.addEventListener("pause",()=>{_||w(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===p&&function(e){let t=y();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>V.current?.({type:"play"})),t.addEventListener("pause",()=>V.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&V.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>V.current?.({type:"ended"}));let a=!1;(H=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),B=A(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(D)return;D=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
137    <div class="cast-box">
138      <div class="cast-text">
139        In riproduzione su<br/>
140        <strong>${n}</strong>
141      </div>
142
143      <button class="cast-disconnect">DISCONNETTI</button>
144    </div>
145  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),E(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(D=!1,E(null))}),J()},J=()=>{if(z&&!a){f.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=f;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=S()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
145if(Array.from(l.textTracks).filter(m).forEach(e=>j(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&j(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${M(24)} Auto`:c.innerHTML=`${M(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>V.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};T?t():S()&&f.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=u(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
145<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),b&&t.addEventListener("click",()=>b(d)),n.appendChild(e)})();else if(P){(!z||a)&&I(r);let e=K(!1);n.appendChild(e),X(e)}else(!z||a)&&I(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{g||(g=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{B?.(),x=null,H?.disconnect(),Y.current&&Y.current.replaceChildren()}},[e,t,q,F,U,Q,o,c,P,W,$,z]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(D,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:Y,className:"video-player-embed","data-video-id":e});return P&&B?(0,n.jsx)("a",{href:B,className:"video-player-embed-link",children:X}):X},H={"loading-container":"_loading-container_shx50_1"};function $(e){return(0,n.jsx)("div",{className:H["loading-container"],children:(0,n.jsx)(D,{size:24,color:e?.color})})}let z={"article-ombrellone":"_article-ombrellone_rynxv_1","article-content":"_article-content_rynxv_24","article-image":"_article-image_rynxv_46","video-container":"_video-container_rynxv_57","video-loader":"_video-loader_rynxv_81"};function Y({title:e,text:t,image:i,caption:a,url:l,video:c,videoUrl:u}){let{showVideo:h,videoContainerRef:m,isCheckingVideo:p}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(c);return(0,n.jsxs)("article",{className:z["article-ombrellone"],children:[(0,n.jsx)("div",{className:z["article-content"],children:(0,n.jsxs)("a",{href:l,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(d,{title:"Ombrellone",color:"#e7c60c"}),(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})}),(0,n.jsx)("div",{className:z["article-image"],children:h?(0,n.jsx)("div",{ref:m,className:z["video-container"],children:(0,n.jsx)(B,{videoId:c?.id||"",baseUrl:c?.baseUrl||"",autoplayPreview:!0,link:u,previewVideoUrl:c?.shortVideoUrl,customPosterUrl:c?.customPosterUrl})}):p?(0,n.jsx)("figure",{className:z["video-loader"],children:(0,n.jsx)($,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:l,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:a||e,loading:"lazy",decoding:"async"})})})})]})}},3140:(e,t,i)=>{"use strict";var n,r=i(17),a=i(4002),s=i(1924),l=i(4451),o=i(3339),c=i(9497),d=i(2206),u=i(7016),h=i(3923),m=i(1925),p=i(7025),f=i(5739),v=i(1605),g=i(1167),A=i(2068),y=Function,w=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=i(7654),_=i(3194),x=function(){throw new d},E=b?function(){try{return arguments.callee,x}catch(e){try{return b(arguments,"callee").get}catch(e){return x}}}():x,C=i(2562)(),k=i(865),S=i(1429),L=i(2709),M=i(7379),N=i(5185),T={},j="undefined"!=typeof Uint8Array&&k?k(Uint8Array):n,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&k?k([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
145IteratorPrototype%":C&&k?k(k([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&k?k(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":l,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&k?k(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&k?k(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":j,"%TypeError%":d,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":M,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":S,"%Math.abs%":h,"%Math.floor%":m,"%Math.max%":p,"%Math.min%":f,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":A,"%Reflect.getPrototypeOf%":L};if(k)try{null.error}catch(e){var D=k(k(e));I["%Error.prototype%"]=D}var P=function e(t){var i;if("%AsyncFunction%"===t)i=w("async function () {}");else if("%GeneratorFunction%"===t)i=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)i=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&k&&(i=k(r.prototype))}return I[t]=i,i},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=i(4274),H=i(8516),$=B.call(N,Array.prototype.concat),z=B.call(M,Array.prototype.splice),Y=B.c
vendor: 1,255 bytes, line 145
145all(N,String.prototype.replace),V=B.call(N,String.prototype.slice),W=B.call(N,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,F=function(e){var t=V(e,0,1),i=V(e,-1);if("%"===t&&"%"!==i)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return Y(e,R,function(e,t,i,r){n[n.length]=i?Y(r,q,"$1"):t||e}),n},U=function(e,t){var i,n=e;if(H(O,n)&&(n="%"+(i=O[n])[0]+"%"),H(I,n)){var r=I[n];if(r===T&&(r=P(n)),void 0===r&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=F(e),n=i.length>0?i[0]:"",r=U("%"+n+"%",t),a=r.name,s=r.value,l=!1,o=r.alias;o&&(n=o[0],z(i,$([0,1],o)));for(var u=1,h=!0;u<i.length;
145u+=1){var m=i[u],p=V(m,0,1),f=V(m,-1);if(('"'===p||"'"===p||"`"===p||'"'===f||"'"===f||"`"===f)&&p!==f)throw new c("property names with quotes must have matching quotes");if("constructor"!==m&&h||(l=!0),n+="."+m,H(I,a="%"+n+"%"))s=I[a];else if(null!=s){if(!(m in s)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(b&&u+1>=i.length){var v=b(s,m);s=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[m]}else h=H(s,m),s=s[m];h&&!l&&(I[a]=s)}}return s}},3194:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3339:e=>{"use strict";e.exports=ReferenceError},3447:(e,t,i)=>{"use strict";i.d(t,{d:()=>h});var n=i(6029),r=i(5729);let a={"sidebar-title":"_sidebar-title_1mgz7_1"};function s({text:e}){return(0,n.jsx)("h3",{className:a["sidebar-title"],children:e})}let l={"article-title":"_article-title_tdzen_7"};function o({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:s=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:l["article-title"],style:{fontSize:o?a:i,fontWeight:s},children:t})}let c={"blog-article":"_blog-article_13t5b_1"};function d({text:e,url:t}){return(0,n.jsx)("article",{className:c["blog-article"],children:(0,n.jsx)("a",{href:t,children:(0,n.jsx)(o,{titleTag:"h3",fontSize:16,fontWeight:700,text:e})})})}let u={"blog-container":"_blog-container_1t9xp_1","blog-title":"_blog-title_1t9xp_9"};function h({blogItems:e,archiveUrl:t="https://www.ilpost.it/blog/"}){return(0,n.jsxs)("div",{className:u["blog-container"],children:[(0,n.jsx)("div",{className:u["blog-title"],children:(0,n.jsx)("a",{href:t,children:(0,n.jsx)(s,{text:"Dal Post"})})}),e.map(e=>(0,n.jsx)(d,{text:e.title,url:e.url},e.url))]})}},3469:(e,t,i)=>{"use strict";i.d(t,{T:()=>G});var n=i(6029),r=i(5729);let a={"article-special-foto-piccola":"_article-special-foto-piccola_rv03n_1","live-label":"_live-label_rv03n_1","video-container":"_video-container_rv03n_4","video-loader":"_video-loader_rv03n_14","breaking-news":"_breaking-news_rv03n_29","article-relateds":"_article-relateds_rv03n_94","columns-1":"_columns-1_rv03n_121","columns-2":"_columns-2_rv03n_124","columns-3":"_columns-3_rv03n_127","article-live-items":"_article-live-items_rv03n_150"},s={"article-title":"_article-title_tdzen_7"};function l({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:s["article-title"],style:{fontSize:o?a:i,fontWeight:l},children:t})}let o={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function c({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
145olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:o["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${o["article-paragraph"]} ${a&&o[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let d={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function u({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:d["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:d["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let h={"label-live":"_label-live_y66gb_1"};function m({title:e="Live"}){return(0,n.jsx)("h3",{className:h["label-live"],children:e})}let p={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function f({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:p["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:p["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let v={"single-live-item":"_single-live-item_j9dqo_1"};function g({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:v["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:v["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let A={"breaking-news":"_breaking-news_6kvlp_1"},y=({date:e,expired:t=50})=>{let[i,a]=(0,r.useState)("");if((0,r.useEffect)(()=>{if(!e)return;let i=e=>`${e} ${1===e?"minuto":"minuti"}`,n=e=>`${e} ${1===e?"ora":"ore"}`,r=()=>{let r=new Date,s=new Date(e);if(isNaN(s.getTime()))return;let l=Math.floor((r.getTime()-s.getTime())/6e4);if(l<0||l>t)return void a("");let o=Math.floor(l/60),c=l%60;a(0===o?`${i(c)} fa`:c<=0?`${n(o)} fa`:`${n(o)} e ${i(c)} fa`)};r();let s=setInterval(r,6e4);return()=>clearInterval(s)},[e,t]),!i)return null;let s=new Date(e),l=isNaN(s.getTime())?void 0:s.toISOString();return(0,n.jsx)("time",{className:A["breaking-news"],dateTime:l,children:i})},w=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
146  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
147</svg>`,b=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},_=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
148      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
149    </svg>`,x="DISCONNECTED",E=new Set;async function C(e){let t=window;if("CONNECTING"!==x){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){k("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{k("DISCONNECTED");return}if(!n)return void k("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}
149function k(e){x!==e&&(x=e,E.forEach(t=>t(e)))}function S(e){return E.add(e),e(x),()=>{E.delete(e)}}function L(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function M(e){let t=L();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let N=!1,T=!1,j=null;S(e=>{"CONNECTED"===e&&function(){if(N)return;N=!0;let e=L();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=j;e&&t&&(T=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),T=!1)})}(),"DISCONNECTED"===e&&(N=!1)});let I=e=>{e&&(e.remove(),e=null)},D=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
150    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
151  </svg>`,P=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
152    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.02 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
153  </svg>`,O=()=>/Apple/i.test(navigator.vendor||""),B=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},H=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,$=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},z={top:10,middle:50,bottom:null},Y=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=z[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},V=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
154`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
155`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function W({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.3
15511-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let R=null,q=()=>R||(R=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),F=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:m=!1,autoplayPreview:p=!1,link:f,onPlayerEvent:v,customPosterUrl:g,previewVideoUrl:A})=>{let y=(0,r.useRef)(null),E=(0,r.useRef)(v);E.current=v;let[N,z]=(0,r.useState)(()=>"all"===d),R=i&&!p,F=a&&!p,U=s&&!p,Q=l&&!p,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==u;if((0,r.useEffect)(()=>{Z||z(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,Z]),(0,r.useEffect)(()=>{U&&q().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:k("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:k("CONNECTED");break;case n.SESSION_ENDING:k("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:k("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!N&&G,n=y.current;if(!n||!e)return;n.replaceChildren();let r=A||`${t}/${e}/master.m3u8`,a=!!A&&/\.m3u8(\?|$)/i.test(A),s=g||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,f=!1,v=!1,k,z,W={enablePipButton:R,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:p,onSeek:(e,t)=>E.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>E.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>E.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>E.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>E.current?.({type:"pipactivate"}),onCastActivate:()=>E.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:m,onPipActivate:p,onCastActivate:f}=r,v=document.createElement("div");v.id="video-player-container",v.className="video-player-container";let g=document.createElement("div");g.className="video-player-wrapper";let A=document.createElement("video");A.id="video-player",A.controls=!1,A.playsInline=!0,A.poster=t,A.className="video-player-element",c&&(A.muted=!0,A.loop=!0,A.autoplay=!0);let y=document.createElement("div");y.className="controls-bar";let x=document.createElement("div");x.className="controls-row";let{bigPlayButton:E}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=w(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(A),{playButton:k,rewindButton:S,forwardButton:L}=((e,t)=>{let i=b(_(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
156    <g fill="${t}">
157      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
157-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
158    </g>
159  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
160    <g fill="${t}">
161      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
162      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
1625.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
163    </g>
164  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(A,h),{volumeContainer:M}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=b(P(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
165    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
166  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
167    <path fill="${t}
167" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
168  </svg>`)(24):a.innerHTML=P(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(A,{hideSlider:c,onMuteToggle:m}),{timeDisplay:N}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=B(e.currentTime),n=B(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(A),{qualityMenu:T,qualityButton:j}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=b(H(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:I,subtitlesButton:O}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
169    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
170    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
171  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
172    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
173  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(A,p),{airplayButton:Y}=(e=>{let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
174    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
175    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
176  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(A),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=b(D(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
177    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
178      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
179    </g>
180    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
181      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
182    </g>
183  </svg>`)(24):a.innerHTML=D(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(g,A,u),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
183" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
184    <div class="cast-modal">
185      <div class="cast-title">Casting to</div>
186      <div class="cast-device">${n}</div>
187
188      <div class="cast-actions">
189        <button class="cast-stop">Interrompi trasmissione</button>
190        <button class="cast-cancel">Annulla</button>
191      </div>
192    </div>
193  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),C(e)},{castButton:i}})({videoUrl:e,onCastActivate:f}),R=document.createElement("div");R.className="control-spacer",x.appendChild(k),x.appendChild(S),x.appendChild(L),x.appendChild(M),x.appendChild(N),x.appendChild(R),a&&x.appendChild(z),x.appendChild(Y),o&&x.appendChild(O),s&&x.appendChild(j),x.appendChild(V),l&&x.appendChild(W),y.appendChild(x);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(A,d);y.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=B(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
194`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=$(r),l=$(a);if(e+1<i.length){let n=i[e+1].trim();
194n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(A,q,g,i);g.appendChild(A),c?g.appendChild(M):(E.classList.add("visible"),g.appendChild(E),g.appendChild(y),g.appendChild(T),g.appendChild(I),g.appendChild(F)),v.appendChild(g);let U=()=>{g.hideControlsTimeout&&clearTimeout(g.hideControlsTimeout),A.paused||(g.hideControlsTimeout=window.setTimeout(()=>{y.classList.remove("visible")},1e3))};if(!c){g.onmouseenter=()=>{y.classList.add("visible"),U()},g.onmouseleave=()=>{A.paused?y.classList.add("visible"):y.classList.remove("visible")},g.onmousemove=()=>{y.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;g.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!y.classList.contains("visible"))&&y.classList.add("visible"),U()},{passive:!0}),g.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),g.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(v),c||(A.addEventListener("play",()=>{k.innerHTML=((e=32,t="#f1f1f3")=>`<svg
195  xmlns="http://www.w3.org/2000/svg"
196  width="${e}"
197  height="${e}"
198  fill="none"
199  viewBox="0 0 32 32"
200>
201    <path
202      fill="${t}"
203      fill-rule="evenodd"
204      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
205      clip-rule="evenodd"
206    />
207</svg>`)(32),y.classList.add("visible"),E.classList.remove("visible"),U()}),A.addEventListener("pause",()=>{k.innerHTML=_(32),y.classList.add("visible")}),A.onclick=()=>{A.paused?A.play():A.pause()}),{video:A,playerWrapper:g,qualityButton:j,qualityMenu:T,subtitlesButton:O,subtitlesMenu:I}})(r,s,l,n,W);j=t,U&&q().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),p||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{T||M(!0)}),t.addEventListener("pause",()=>{T||M(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===x&&function(e){let t=L();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>E.current?.({type:"play"})),t.addEventListener("pause",()=>E.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&E.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>E.current?.({type:"ended"}));let a=!1;(z=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),k=S(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(v)return;v=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
208    <div class="cast-box">
209      <div class="cast-text">
210        In riproduzione su<br/>
211        <strong>${n}</strong>
212      </div>
213
214      <button class="cast-disconnect">DISCONNETTI</button>
215    </div>
216  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),I(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(v=!1,I(null))}),J()},J=()=>{if(A&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=O()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
216if(Array.from(l.textTracks).filter(m).forEach(e=>Y(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&Y(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${H(24)} Auto`:c.innerHTML=`${H(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>E.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};m?t():O()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=w(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
216<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(p){(!A||a)&&V(r);let e=K(!1);n.appendChild(e),X(e)}else(!A||a)&&V(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{f||(f=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{k?.(),j=null,z?.disconnect(),y.current&&y.current.replaceChildren()}},[e,t,R,F,U,Q,o,c,p,N,g,A]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(W,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:y,className:"video-player-embed","data-video-id":e});return p&&f?(0,n.jsx)("a",{href:f,className:"video-player-embed-link",children:X}):X},U={"loading-container":"_loading-container_shx50_1"};function Q(e){return(0,n.jsx)("div",{className:U["loading-container"],children:(0,n.jsx)(W,{size:24,color:e?.color})})}function G({title:e,text:t,image:i,caption:s,url:o,relatedsItems:d,template_related:h,isLive:p=!1,breakingTime:v=null,expireBreakingTime:A=null,video:w,videoUrl:b,derivedInfo:_}){let{showVideo:x,videoContainerRef:E,isCheckingVideo:C}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(w),k="live_items"===h&&_?.live_status!=="close",S=k?a["article-live-items"]:a["article-relateds"],L=_?.live_breadcrumb_logo||_?.live_breadcrumb_titolo||_?.live_breadcrumb_background_color||_?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${a["article-special-foto-piccola"]} ${d&&d.length>0?a["with-relateds"]:""}`,children:[p&&(0,n.jsx)("div",{className:a["live-label"],children:L?(0,n.jsx)(u,{logo:_?.live_breadcrumb_logo,backgroundColor:_?.live_breadcrumb_background_color,title:_?.live_breadcrumb_titolo,titleColor:_?.live_breadcrumb_title_color,url:o}):(0,n.jsx)(m,{})}),v&&(0,n.jsx)("div",{className:a["breaking-news"],children:(0,n.jsx)(y,{date:v,expired:A})}),(0,n.jsxs)("a",{href:o,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(l,{titleTag:"h1",fontSize:48,fontMobileSize:40,fontWeight:700,text:e}),(0,n.jsx)(c,{fontSize:16,lineHeight:20,fontWeight:400,text:t}),!x&&!C&&(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:s||e})})]}),x&&(0,n.jsx)("div",{ref:E,className:a["video-container"],children:(0,n.jsx)(F,{videoId:w?.id||"",baseUrl:w?.baseUrl||"",autoplayPreview:!0,link:b,previewVideoUrl:w?.shortVideoUrl})}),!x&&C&&(0,n.jsx)("figure",{className:a["video-loader"],children:(0,n.jsx)(Q,{color:"var(--Greyscale-Text-Summary)"})}),h&&""!==h&&!!d?.length&&(0,n.jsxs)("div",{className:`${S} ${a[`columns-${d.length}`]}`,children:[k&&(0,n.jsx)(l,{titleTag:"h2",fontSize:18,fontMobileSize:14,fontWeight:600,text:"Gli ultimi aggiornamenti"}),_?.live_status==="close"&&(0,n.jsx)(l,{titleTag:"h2",fontSize:18,fontMobileSize:14,fontWeight:600,text:"Aggiornamenti importanti"}),d?.map(e=>{let t="";return null!=h&&"live_items"!==h&&(t="all"===h&&e?.summary||""),k?(0,n.jsx)(g,{title:e.title,url:e.link,date:e.date??"",titleTag:"h3"},e.link):(0,n.jsx)(f,{title:e.title,summary:t,url:e.link,titleTag:_?.live_status==="close"?"h3":"h2"},e.link)})]})]})}},3613:()=>{},3639:(e,t,i)=>{"use strict";var n=i(4274),r=i(2206),a=i(5185),s=i(5605);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return s(n,a,e)}},3649:()=>{},3725:()=>{},3746:(e,t,i)=>{"use strict";i.d(t,{d:()=>h});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
216olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-red":"_label-red_jovg7_1"};function d({title:e,color:t="#ff0000"}){return(0,n.jsx)("h3",{className:c["label-red"],style:{color:t},children:e})}let u={"article-sponsored":"_article-sponsored_ehgzf_1","article-content":"_article-content_ehgzf_22","article-image":"_article-image_ehgzf_44"};function h({title:e,text:t,image:i,caption:r,url:a}){return(0,n.jsx)("article",{className:u["article-sponsored"],children:(0,n.jsxs)("a",{href:a,"aria-label":`Leggi l'articolo sponsorizzato: ${e}`,children:[(0,n.jsxs)("div",{className:u["article-content"],children:[(0,n.jsx)(d,{title:"Articolo sponsorizzato",color:"#956003"}),(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:400,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]}),(0,n.jsx)("div",{className:u["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:r||e,loading:"lazy",decoding:"async"})})})]})})}},3888:(e,t,i)=>{"use strict";i.d(t,{w:()=>e$});var n=i(6029),r=i(5729),a=i(9143);let s={"article-open-standard-big":"_article-open-standard-big_1suxz_1","with-relateds":"_with-relateds_1suxz_18","article-content":"_article-content_1suxz_31","article-link":"_article-link_1suxz_36","breaking-news":"_breaking-news_1suxz_53","article-image":"_article-image_1suxz_70","video-container":"_video-container_1suxz_84","video-loader":"_video-loader_1suxz_109",livestreaming:"_livestreaming_1suxz_114","article-container":"_article-container_1suxz_125","article-relateds":"_article-relateds_1suxz_144","article-live-items":"_article-live-items_1suxz_145",plus:"_plus_1suxz_242"};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}};o.exports=(function(){if(p)return m;p=1;var e=h?u:(h=1,u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function i(){}return i.resetWarningCache=t,m=function(){function n(t,i,n,r,a,s){if(s!==e){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a}})()();let c=l(o.exports),d=l(function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=i.length)return!1;for(r=n;0!=r--;)if(!e(t[r],i[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,a[r]))return!1;for(r=n;0!=r--;){var n,r,a,s=a[r];if(!e(t[s],i[s]))return!1}return!0}return t!=t&&i!=i});var u,h,m,p,f={exports:{}},v=function(){var e={},t={};return e.on=function(e,i){var n={name:e,handler:i};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var i=t[e.name].indexOf(e);-1!==i&&t[e.name].splice(i,1)},e.trigger=function(e,i){var n,r=t[e];if(r)for(n=r.length;n--;)r[n].handler(i)},e},g={exports:{}},A=function(e,t,i){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");"function"==typeof t&&(i=t,t={}),i=i||function(){},r.type=(t=t||{}).type||"text/javascript",r.charset=t.charset||"utf8",r.async=!("async"in t)||!!t.async,r.src=e,t.attrs&&function(e,t){for(var i in t)e.setAttribute(i,t[i])}(r,t.attrs),t.text&&(r.text=""+t.text),("onload"in r?y:function(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}})(r,i),r.onload||y(r,i),n.appendChild(r)};function y(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}
216!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,n=(i=A)&&i.__esModule?i:{default:i};t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var i="http:"===window.location.protocol?"http:":"https:";(0,n.default)(i+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){r&&r(),t(window.YT)}})},e.exports=t.default}(g,g.exports);var w=g.exports,b={exports:{}},_={exports:{}},x={exports:{}},E=function(e,t){t=t||{};var i,n,r=typeof e;if("string"===r&&e.length>0){var a=e;if(!((a=String(a)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===r&&!1===isNaN(e)){return t.long?C(i=e,864e5,"day")||C(i,36e5,"hour")||C(i,6e4,"minute")||C(i,1e3,"second")||i+" ms":(n=e)>=864e5?Math.round(n/864e5)+"d":n>=36e5?Math.round(n/36e5)+"h":n>=6e4?Math.round(n/6e4)+"m":n>=1e3?Math.round(n/1e3)+"s":n+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C(e,t,i){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+i:Math.ceil(e/t)+" "+i+"s"}!function(e,t){var i;function n(e){function n(){if(n.enabled){var e=+new Date;n.diff=e-(i||e),n.prev=i,n.curr=e,i=e;for(var r=Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var s=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,i){if("%%"===e)return e;s++;var a=t.formatters[i];if("function"==typeof a){var l=r[s];e=a.call(n,l),r.splice(s,1),s--}return e}),t.formatArgs.call(n,r),(n.log||t.log||console.log.bind(console)).apply(n,r)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i)|0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,r=0;r<n;r++)i[r]&&("-"===(e=i[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var i,n;for(i=0,n=t.skips.length;i<n;i++)if(t.skips[i].test(e))return!1;for(i=0,n=t.names.length;i<n;i++)if(t.names[i].test(e))return!0;return!1},t.humanize=E,t.names=[],t.skips=[],t.formatters={}}(x,x.exports);var k=x.exports;!function(e,t){function i(){var e;try{e=t.storage.debug}catch{}return!e&&"u">typeof a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=k).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+t.humanize(this.diff),i){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))}),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch{}},t.load=i,t.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="u">typeof chrome&&"u">typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}(_,_.exports);
216var S=_.exports,L={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default}(L,L.exports);var M=L.exports,N={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default}(N,N.exports);var T=N.exports,j={exports:{}},I={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default}(I,I.exports);var D=I.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,n=(i=D)&&i.__esModule?i:{default:i};t.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default}(j,j.exports);var P=j.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=s(S),n=s(M),r=s(T),a=s(P);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)("youtube-player"),o={};o.proxyEvents=function(e){var t={},i=function(i){var n="on"+i.slice(0,1).toUpperCase()+i.slice(1);t[n]=function(t){l('event "%s"',n,t),e.trigger(i,t)}},n=!0,a=!1,s=void 0;try{for(var o,c=r.default[Symbol.iterator]();!(n=(o=c.next()).done);n=!0){var d=o.value;i(d)}}catch(e){a=!0,s=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw s}}return t},o.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={},r=function(n){t&&a.default[n]?i[n]=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.then(function(e){var t=a.default[n],r=e.getPlayerState(),s=e[n].apply(e,i);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(r)?new Promise(function(i){e.addEventListener("onStateChange",function n(){var r=e.getPlayerState(),a=void 0;"number"==typeof t.timeout&&(a=setTimeout(function(){e.removeEventListener("onStateChange",n),i()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(r)&&(e.removeEventListener("onStateChange",n),clearTimeout(a),i())})}).then(function(){return s}):s})}:i[n]=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.then(function(e){return e[n].apply(e,i)})}},s=!0,l=!1,o=void 0;try{for(var c,d=n.default[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var u=c.value;r(u)}}catch(e){l=!0,o=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw o}}return i},t.default=o,e.exports=t.default}(b,b.exports);var O=b.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="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},n=s(v),r=s(w),a=s(O);function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,n.default)();if(l||(l=(0,r.default)(o)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=a.default.proxyEvents(o);var c=new Promise(function(n){(typeof e>"u"?"undefined":i(e))==="object"&&e.playVideo instanceof Function?n(e):l.then(function(i){var r=new i.Player(e,t);return o.on("ready",function(){n(r)}),null})}),d=a.default.promisifyPlayer(c,s);return d.on=o.on,d.off=o.off,d},e.exports=t.default}(f,f.exports);let B=l(f.exports);var H=Object.defineProperty,$=Object.defineProperties,z=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,R=(e,t,i)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,q=(e,t)=>
216{for(var i in t||(t={}))V.call(t,i)&&R(e,i,t[i]);if(Y)for(var i of Y(t))W.call(t,i)&&R(e,i,t[i]);return e},F=(e,t)=>$(e,z(t));function U(e={}){return F(q({},e),{height:0,width:0,playerVars:F(q({},e.playerVars),{autoplay:0,start:0,end:0})})}var Q={videoId:c.string,id:c.string,className:c.string,iframeClassName:c.string,style:c.object,title:c.string,loading:c.oneOf(["lazy","eager"]),opts:c.objectOf(c.any),onReady:c.func,onError:c.func,onPlay:c.func,onPause:c.func,onEnd:c.func,onStateChange:c.func,onPlaybackRateChange:c.func,onPlaybackQualityChange:c.func},G=class extends r.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,i;return null==(i=(t=this.props).onReady)?void 0:i.call(t,e)},this.onPlayerError=e=>{var t,i;return null==(i=(t=this.props).onError)?void 0:i.call(t,e)},this.onPlayerStateChange=e=>{var t,i,n,r,a,s,l,o;switch(null==(i=(t=this.props).onStateChange)||i.call(t,e),e.data){case G.PlayerState.ENDED:null==(r=(n=this.props).onEnd)||r.call(n,e);break;case G.PlayerState.PLAYING:null==(s=(a=this.props).onPlay)||s.call(a,e);break;case G.PlayerState.PAUSED:null==(o=(l=this.props).onPause)||o.call(l,e)}},this.onPlayerPlaybackRateChange=e=>{var t,i;return null==(i=(t=this.props).onPlaybackRateChange)?void 0:i.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,i;return null==(i=(t=this.props).onPlaybackQualityChange)?void 0:i.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if(typeof document>"u")return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=F(q({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=B(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,i,n;if(typeof this.props.videoId>"u"||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let r=!1,a={videoId:this.props.videoId};if(null!=(t=this.props.opts)&&t.playerVars&&(r=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),r){null==(i=this.internalPlayer)||i.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,i;return t=this,i=function*(){var t,i,n,r,a,s;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(i=e.opts)?void 0:i.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(r=e.opts)?void 0:r.height)!==(null==(a=t.opts)?void 0:a.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),s=this.props,e.videoId===s.videoId&&d(U(e.opts),U(s.opts))||(yield this.resetPlayer()),function(e,t){var i,n;if(e.videoId!==t.videoId)return!0;let r=(null==(i=e.opts)?void 0:i.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return r.start!==a.start||r.end!==a.end}(e,this.props)&&this.updateVideo()}
216,new Promise((e,n)=>{var r=e=>{try{s(i.next(e))}catch(e){n(e)}},a=e=>{try{s(i.throw(e))}catch(e){n(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,a);s((i=i.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return r.createElement("div",{className:this.props.className,style:this.props.style},r.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};G.propTypes=Q,G.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},G.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};let Z={"article-title":"_article-title_tdzen_7"};function X({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:s=400}){let[l,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&o(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:Z["article-title"],style:{fontSize:l?a:i,fontWeight:s},children:t})}let J={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function K({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
216olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:J["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${J["article-paragraph"]} ${a&&J[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let ee={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function et({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:ee["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:ee["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let ei={"label-live":"_label-live_y66gb_1"};function en({title:e="Live"}){return(0,n.jsx)("h3",{className:ei["label-live"],children:e})}let er={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function ea({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:er["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:er["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let es={"single-live-item":"_single-live-item_j9dqo_1"};function el({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:es["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:es["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let eo={"breaking-news":"_breaking-news_6kvlp_1"},ec=({date:e,expired:t=50})=>{let[i,a]=(0,r.useState)("");if((0,r.useEffect)(()=>{if(!e)return;let i=e=>`${e} ${1===e?"minuto":"minuti"}`,n=e=>`${e} ${1===e?"ora":"ore"}`,r=()=>{let r=new Date,s=new Date(e);if(isNaN(s.getTime()))return;let l=Math.floor((r.getTime()-s.getTime())/6e4);if(l<0||l>t)return void a("");let o=Math.floor(l/60),c=l%60;a(0===o?`${i(c)} fa`:c<=0?`${n(o)} fa`:`${n(o)} e ${i(c)} fa`)};r();let s=setInterval(r,6e4);return()=>clearInterval(s)},[e,t]),!i)return null;let s=new Date(e),l=isNaN(s.getTime())?void 0:s.toISOString();return(0,n.jsx)("time",{className:eo["breaking-news"],dateTime:l,children:i})},ed=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
217  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
218</svg>`,eu=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},eh=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
219      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
220    </svg>`,em="DISCONNECTED",ep=new Set;async function ef(e){let t=window;if("CONNECTING"!==em){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){ev("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{ev("DISCONNECTED");return}if(!n)return void ev("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}function ev(e){em!==e&&(em=e,ep.forEach(t=>t(e)))}function eg(e){return ep.add(e),e(em),()=>{ep.delete(e)}}function eA(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function ey(e){let t=eA();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let ew=!1,eb=!1,e_=null;eg(e=>{"CONNECTED"===e&&function(){if(ew)return;ew=!0;let e=eA();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=e_;e&&t&&(eb=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),eb=!1)})}(),"DISCONNECTED"===e&&(ew=!1)});let ex=e=>{e&&(e.remove(),e=null)},eE=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
221    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
222  </svg>`,eC=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
223    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.
22302 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
224  </svg>`,ek=()=>/Apple/i.test(navigator.vendor||""),eS=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},eL=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,eM=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},eN={top:10,middle:50,bottom:null},eT=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=eN[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},ej=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
225`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
226`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function eI({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let eD=null,eP=()=>eD||(eD=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");
226i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),eO=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:m=!1,autoplayPreview:p=!1,link:f,onPlayerEvent:v,customPosterUrl:g,previewVideoUrl:A})=>{let y=(0,r.useRef)(null),w=(0,r.useRef)(v);w.current=v;let[b,_]=(0,r.useState)(()=>"all"===d),x=i&&!p,E=a&&!p,C=s&&!p,k=l&&!p,S="registered"===d||"subscriber"===d,L="all"!==d&&null==u;if((0,r.useEffect)(()=>{L||_(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,L]),(0,r.useEffect)(()=>{C&&eP().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:ev("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:ev("CONNECTED");break;case n.SESSION_ENDING:ev("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:ev("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[C]),(0,r.useEffect)(()=>{if(L)return;let i=!b&&S,n=y.current;if(!n||!e)return;n.replaceChildren();let r=A||`${t}/${e}/master.m3u8`,a=!!A&&/\.m3u8(\?|$)/i.test(A),s=g||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,f=!1,v=!1,_,M,N={enablePipButton:x,enableQualityButton:E,enableCastButton:C,enableSubtitlesButton:k,minimal:p,onSeek:(e,t)=>w.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>w.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>w.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>w.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>w.current?.({type:"pipactivate"}),onCastActivate:()=>w.current?.({type:"castactivate"})},T=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:m,onPipActivate:p,onCastActivate:f}=r,v=document.createElement("div");v.id="video-player-container",v.className="video-player-container";let g=document.createElement("div");g.className="video-player-wrapper";let A=document.createElement("video");A.id="video-player",A.controls=!1,A.playsInline=!0,A.poster=t,A.className="video-player-element",c&&(A.muted=!0,A.loop=!0,A.autoplay=!0);let y=document.createElement("div");y.className="controls-bar";let w=document.createElement("div");w.className="controls-row";let{bigPlayButton:b}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=ed(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(A),{playButton:_,rewindButton:x,forwardButton:E}=((e,t)=>{let i=eu(eh(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
227    <g fill="${t}">
228      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
228-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
229    </g>
230  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
231    <g fill="${t}">
232      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
233      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
2335.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
234    </g>
235  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(A,h),{volumeContainer:C}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=eu(eC(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
236    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
237  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
238    <path fill="${t}
238" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
239  </svg>`)(24):a.innerHTML=eC(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(A,{hideSlider:c,onMuteToggle:m}),{timeDisplay:k}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=eS(e.currentTime),n=eS(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(A),{qualityMenu:S,qualityButton:L}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=eu(eL(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:M,subtitlesButton:N}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
240    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
241    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
242  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:T}=((e,t)=>{let i=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
243    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
244  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(A,p),{airplayButton:j}=(e=>{let t=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
245    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
246    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
247  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(A),{fullscreenButton:I}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=eu(eE(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
248    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
249      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
250    </g>
251    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
252      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
253    </g>
254  </svg>`)(24):a.innerHTML=eE(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(g,A,u),{castButton:D}=(({videoUrl:e,onCastActivate:t})=>{let i=eu(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
254" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
255    <div class="cast-modal">
256      <div class="cast-title">Casting to</div>
257      <div class="cast-device">${n}</div>
258
259      <div class="cast-actions">
260        <button class="cast-stop">Interrompi trasmissione</button>
261        <button class="cast-cancel">Annulla</button>
262      </div>
263    </div>
264  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),ef(e)},{castButton:i}})({videoUrl:e,onCastActivate:f}),P=document.createElement("div");P.className="control-spacer",w.appendChild(_),w.appendChild(x),w.appendChild(E),w.appendChild(C),w.appendChild(k),w.appendChild(P),a&&w.appendChild(T),w.appendChild(j),o&&w.appendChild(N),s&&w.appendChild(L),w.appendChild(I),l&&w.appendChild(D),y.appendChild(w);let{progressContainer:O}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(A,d);y.appendChild(O);let{thumbnailPreview:B}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=eS(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
265`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=eM(r),l=eM(a);if(e+1<i.length){let n=i[e+1].trim();
265n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(A,O,g,i);g.appendChild(A),c?g.appendChild(C):(b.classList.add("visible"),g.appendChild(b),g.appendChild(y),g.appendChild(S),g.appendChild(M),g.appendChild(B)),v.appendChild(g);let H=()=>{g.hideControlsTimeout&&clearTimeout(g.hideControlsTimeout),A.paused||(g.hideControlsTimeout=window.setTimeout(()=>{y.classList.remove("visible")},1e3))};if(!c){g.onmouseenter=()=>{y.classList.add("visible"),H()},g.onmouseleave=()=>{A.paused?y.classList.add("visible"):y.classList.remove("visible")},g.onmousemove=()=>{y.classList.add("visible"),H()};let e=0,t=0,i=!1,n=!1;g.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!y.classList.contains("visible"))&&y.classList.add("visible"),H()},{passive:!0}),g.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),g.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(v),c||(A.addEventListener("play",()=>{_.innerHTML=((e=32,t="#f1f1f3")=>`<svg
266  xmlns="http://www.w3.org/2000/svg"
267  width="${e}"
268  height="${e}"
269  fill="none"
270  viewBox="0 0 32 32"
271>
272    <path
273      fill="${t}"
274      fill-rule="evenodd"
275      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
276      clip-rule="evenodd"
277    />
278</svg>`)(32),y.classList.add("visible"),b.classList.remove("visible"),H()}),A.addEventListener("pause",()=>{_.innerHTML=eh(32),y.classList.add("visible")}),A.onclick=()=>{A.paused?A.play():A.pause()}),{video:A,playerWrapper:g,qualityButton:L,qualityMenu:S,subtitlesButton:N,subtitlesMenu:M}})(r,s,l,n,N);e_=t,C&&eP().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),p||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{eb||ey(!0)}),t.addEventListener("pause",()=>{eb||ey(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===em&&function(e){let t=eA();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>w.current?.({type:"play"})),t.addEventListener("pause",()=>w.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&w.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>w.current?.({type:"ended"}));let a=!1;(M=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),_=eg(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(v)return;v=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
279    <div class="cast-box">
280      <div class="cast-text">
281        In riproduzione su<br/>
282        <strong>${n}</strong>
283      </div>
284
285      <button class="cast-disconnect">DISCONNETTI</button>
286    </div>
287  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),ex(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(v=!1,ex(null))}),j()},j=()=>
287{if(A&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=ek()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;if(Array.from(l.textTracks).filter(m).forEach(e=>eT(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&eT(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${eL(24)} Auto`:c.innerHTML=`${eL(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>w.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};m?t():ek()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},I=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=ed(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
287<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(p){(!A||a)&&ej(r);let e=I(!1);n.appendChild(e),T(e)}else(!A||a)&&ej(r),(()=>{let e=I(!0);e.addEventListener("click",()=>{f||(f=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,T(e)})(e))}),n.appendChild(e)})();return()=>{_?.(),e_=null,M?.disconnect(),y.current&&y.current.replaceChildren()}},[e,t,x,E,C,k,o,c,p,b,g,A]),L)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(eI,{show:!0,color:"#4ce0f7",size:32})})});let M=(0,n.jsx)("div",{ref:y,className:"video-player-embed","data-video-id":e});return p&&f?(0,n.jsx)("a",{href:f,className:"video-player-embed-link",children:M}):M},eB={"loading-container":"_loading-container_shx50_1"};function eH(e){return(0,n.jsx)("div",{className:eB["loading-container"],children:(0,n.jsx)(eI,{size:24,color:e?.color})})}function e$({title:e,text:t,image:i,caption:a,url:l,relatedsItems:o,template_related:c,isLive:d=!1,breakingTime:u=null,expireBreakingTime:h=null,livestreaming:m=!1,livestreaming_id:p="",livestreaming_subscriber:f=!1,livestreaming_id_subscriber:v="",subscriber:g=!1,plus:A=!1,video:y,videoUrl:w,derivedInfo:b}){let{showVideo:_,videoContainerRef:x,isCheckingVideo:E}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(y),C={height:"390",width:"640",playerVars:{autoplay:1,showinfo:0,enablejsapi:1,playsinline:1,mute:1}},k=e=>{e.target.playVideo()},S="live_items"===c&&b?.live_status!=="close",L=S?s["article-live-items"]:s["article-relateds"],M=b?.live_breadcrumb_logo||b?.live_breadcrumb_titolo||b?.live_breadcrumb_background_color||b?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${s["article-open-standard-big"]} ${o&&o.length>0?s["with-relateds"]:""} ${A&&s.plus}`,children:[(0,n.jsxs)("div",{className:s["article-content"],children:[d&&(M?(0,n.jsx)(et,{logo:b?.live_breadcrumb_logo,backgroundColor:b?.live_breadcrumb_background_color,title:b?.live_breadcrumb_titolo,titleColor:b?.live_breadcrumb_title_color,url:l}):(0,n.jsx)(en,{})),u&&(0,n.jsx)("div",{className:s["breaking-news"],children:(0,n.jsx)(ec,{date:u,expired:h})}),(0,n.jsx)("a",{href:l,className:s["article-link"],"aria-label":`Leggi l'articolo: ${e}`,children:A?(0,n.jsx)(X,{titleTag:"h1",fontSize:48,fontMobileSize:40,fontWeight:700,text:e}):(0,n.jsx)(X,{titleTag:"h1",fontSize:32,fontMobileSize:32,fontWeight:700,text:e})})]}),(0,n.jsxs)("div",{className:s["article-image"],children:[m&&!f&&""!=p&&(0,n.jsx)("div",{className:s.livestreaming,children:(0,n.jsx)(G,{videoId:p,opts:C,onReady:e=>k(e)})}),m&&f&&""!=v&&g&&(0,n.jsx)("div",{className:s.livestreaming,children:(0,n.jsx)(G,{videoId:v,opts:C,onReady:e=>k(e)})}),m&&f&&""!=v&&!g&&(0,n.jsx)("div",{className:s["livestreaming-no-subscriber"],children:(0,n.jsx)(G,{videoId:p,opts:C,onReady:e=>k(e)})}),!m&&(_?(0,n.jsx)("div",{ref:x,className:s["video-container"],children:(0,n.jsx)(eO,{videoId:y?.id||"",baseUrl:y?.baseUrl||"",autoplayPreview:!0,link:w,previewVideoUrl:y?.shortVideoUrl,customPosterUrl:y?.customPosterUrl})}):E?(0,n.jsx)("figure",{className:s["video-loader"],children:(0,n.jsx)(eH,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:l,"aria-label":`Leggi: ${e}`,children:(0,n.jsx)("img",{src:i,alt:a||e})})}))]}),(0,n.jsx)("div",{className:s["article-container"],children:(0,n.jsx)("a",{href:l,"aria-label":`Leggi: ${e}`,children:(0,n.jsx)(K,{fontSize:14,lineHeight:20,fontWeight:400,text:t})})}),c&&""!==c&&!!o?.length&&(0,n.jsxs)("div",{className:L,children:[S&&(0,n.jsx)(X,{titleTag:"h2",fontSize:15,fontWeight:600,text:"Ultimi aggiornamenti"}),b?.live_status==="close"&&(0,n.jsx)(X,{titleTag:"h2",fontSize:15,fontWeight:600,text:"Aggiornamenti importanti"}),o?.map(e=>{let t="all"===c||S?e.summary??"":"";return S?(0,n.jsx)(el,{title:e.title,summary:t,url:e.link,date:e.date??"",titleTag:"h3"},e.link):(0,n.jsx)(ea,{title:e.title,summary:t,url:e.link,titleTag:b?.live_status==="close"?"h3":"h2"},e.link)})]})]})}},3923:e=>{"use strict";e.exports=Math.abs},4e3:()=>{},4002:e=>{"use strict";e.exports=Error},4245:(e,t,i)=>{"use strict";var n=i(2236),r=i(5397),a=Object.prototype.hasOwnProperty,s=Array.isArray,l=r(),o=function(e,t){return l.set(e,t),e},c=function(e){return l.has(e)},d=function(e){return l.get(e)},u=function(e,t){l.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),m=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(s(i)){for(var n=[],r=0;r<i.length;++r)void 0!==i[r]&&(n[n.length]=i[r]);t.obj[t.prop]=n}}},p=function(e,t){for(var i=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i};e.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,i){return e[i]=t[i],e},e)},combine:function(e,t,i,n){if(c(e)){var r=d(e)+1;return e[r]=t,u(e,r),e}var a=[].concat(e,t);return a.length>i?o(p(a,{plainObjects:n}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var r=t[n],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var o=s[l],c=a[o];"object"==typeof c&&null!==c&&-1===i.indexOf(c)&&(t[t.length]={obj:a,prop:o},i[i.length]=c)}return m(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");
287if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i,r,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===i)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",o=0;o<s.length;o+=1024){for(var c=s.length>=1024?s.slice(o,o+1024):s,d=[],u=0;u<c.length;++u){var m=c.charCodeAt(u);if(45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(40===m||41===m)){d[d.length]=c.charAt(u);continue}if(m<128){d[d.length]=h[m];continue}if(m<2048){d[d.length]=h[192|m>>6]+h[128|63&m];continue}if(m<55296||m>=57344){d[d.length]=h[224|m>>12]+h[128|m>>6&63]+h[128|63&m];continue}u+=1,m=65536+((1023&m)<<10|1023&c.charCodeAt(u)),d[d.length]=h[240|m>>18]+h[128|m>>12&63]+h[128|m>>6&63]+h[128|63&m]}l+=d.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:o,maybeMap:function(e,t){if(s(e)){for(var i=[],n=0;n<e.length;n+=1)i[i.length]=t(e[n]);return i}return t(e)},merge:function e(t,i,n){if(!i)return t;if("object"!=typeof i&&"function"!=typeof i){if(s(t)){var r=t.length;if(n&&"number"==typeof n.arrayLimit&&r>n.arrayLimit)return o(p(t.concat(i),n),r);t[r]=i}else if(!t||"object"!=typeof t)return[t,i];else if(c(t)){var l=d(t)+1;t[l]=i,u(t,l)}else{if(n&&n.strictMerge)return[t,i];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t){if(c(i)){for(var h=Object.keys(i),m=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},f=0;f<h.length;f++)m[parseInt(h[f],10)+1]=i[h[f]];return o(m,d(i)+1)}var v=[t].concat(i);return n&&"number"==typeof n.arrayLimit&&v.length>n.arrayLimit?o(p(v,n),v.length-1):v}var g=t;return(s(t)&&!s(i)&&(g=p(t,n)),s(t)&&s(i))?(i.forEach(function(i,r){if(a.call(t,r)){var s=t[r];s&&"object"==typeof s&&i&&"object"==typeof i?t[r]=e(s,i,n):t[t.length]=i}else t[r]=i}),t):Object.keys(i).reduce(function(t,r){var s=i[r];if(a.call(t,r)?t[r]=e(t[r],s,n):t[r]=s,c(i)&&!c(t)&&o(t,d(i)),c(t)){var l=parseInt(r,10);String(l)===r&&l>=0&&l>d(t)&&u(t,l)}return t},g)}}},4274:(e,t,i)=>{"use strict";var n=i(656);e.exports=Function.prototype.bind||n},4451:e=>{"use strict";e.exports=RangeError},4595:()=>{},4732:()=>{},4741:()=>{},4913:(e,t,i)=>{"use strict";var n=i(3140),r=i(3639),a=r([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var i=n(e,!!t);return"function"==typeof i&&a(e,".prototype.")>-1?r([i]):i}},5127:()=>{},5146:(e,t,i)=>{"use strict";var n=i(3140),r=i(4913),a=i(6526),s=i(510),l=i(2206),o=n("%WeakMap%",!0),c=r("WeakMap.prototype.get",!0),d=r("WeakMap.prototype.set",!0),u=r("WeakMap.prototype.has",!0),h=r("WeakMap.prototype.delete",!0);e.exports=o?function(){var e,t,i={assert:function(e){if(!i.has(e))throw new l("Side channel does not contain "+a(e))},delete:function(i){if(o&&i&&("object"==typeof i||"function"==typeof i)){if(e)return h(e,i)}else if(s&&t)return t.delete(i);return!1},get:function(i){return o&&i&&("object"==typeof i||"function"==typeof i)&&e?c(e,i):t&&t.get(i)},has:function(i){return o&&i&&("object"==typeof i||"function"==typeof i)&&e?u(e,i):!!t&&t.has(i)},set:function(i,n){o&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new o),d(e,i,n)):s&&(t||(t=s()),t.set(i,n))}};return i}:s},5185:e=>{"use strict";e.exports=Function.prototype.call},5260:()=>{},5336:()=>{},5387:(e,t,i)=>{"use strict";var n=i(4245),r=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(e,t,i){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&i>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},o=function(e,t){var i={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=o.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&d.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var u=-1,h=t.charset;if(t.charsetSentinel)for(m=0;m<d.length;++m)0===d[m].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[m]?h="utf-8":"utf8=%26%2310003%3B"===d[m]&&(h="iso-8859-1"),u=m,m=d.length);for(m=0;m<d.length;++m)if(m!==u){var m,p,f,v=d[m],g=v.indexOf("]="),A=-1===g?v.indexOf("="):g+1;if(-1===A?(p=t.decoder(v,s.decoder,h,"key"),f=t.strictNullHandling?null:""):null!==(p=t.decoder(v.slice(0,A),s.decoder,h,"key"))&&(f=n.maybeMap(l(v.slice(A+1),t,a(i[p])?i[p].length:0),function(e){return t.decoder(e,s.decoder,h,"value")}
287)),f&&t.interpretNumericEntities&&"iso-8859-1"===h&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),v.indexOf("[]=")>-1&&(f=a(f)?[f]:f),t.comma&&a(f)&&f.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");f=n.combine([],f,t.arrayLimit,t.plainObjects)}if(null!==p){var y=r.call(i,p);y&&("combine"===t.duplicates||v.indexOf("[]=")>-1)?i[p]=n.combine(i[p],f,t.arrayLimit,t.plainObjects):y&&"last"!==t.duplicates||(i[p]=f)}}return i},c=function(e,t,i,r){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");a=Array.isArray(t)&&t[s]?t[s].length:0}for(var o=r?t:l(t,i,a),c=e.length-1;c>=0;--c){var d,u=e[c];if("[]"===u&&i.parseArrays)d=n.isOverflow(o)?o:i.allowEmptyArrays&&(""===o||i.strictNullHandling&&null===o)?[]:n.combine([],o,i.arrayLimit,i.plainObjects);else{d=i.plainObjects?{__proto__:null}:{};var h="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,m=i.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(m,10),f=!isNaN(p)&&u!==m&&String(p)===m&&p>=0&&i.parseArrays;if(i.parseArrays||""!==m)if(f&&p<i.arrayLimit)(d=[])[p]=o;else if(f&&i.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(1===i.arrayLimit?"":"s")+" allowed in an array.");else f?(d[p]=o,n.markOverflow(d,p)):"__proto__"!==m&&(d[m]=o);else d={0:o}}o=d}return o},d=function(e,t){var i=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,i)&&!t.allowPrototypes)return;return[i]}var n=[],a=i.indexOf("["),s=a>=0?i.slice(0,a):i;if(s){if(!t.plainObjects&&r.call(Object.prototype,s)&&!t.allowPrototypes)return;n[n.length]=s}for(var l=i.length,o=a,c=0;o>=0&&c<t.depth;){for(var d=1,u=o+1,h=-1;u<l&&h<0;){var m=i.charCodeAt(u);91===m?d+=1:93===m&&0==(d-=1)&&(h=u),u+=1}if(h<0)return n[n.length]="["+i.slice(o)+"]",n;var p=i.slice(o,h+1),f=p.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,f)&&!t.allowPrototypes)return;n[n.length]=p,c+=1,o=i.indexOf("[",h+1)}if(o>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+i.slice(o)+"]"}return n},u=function(e,t,i,n){if(e){var r=d(e,i);if(r)return c(r,t,i,n)}},h=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,i=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:i,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:s.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var i=h(t);if(""===e||null==e)return i.plainObjects?{__proto__:null}:{};for(var r="string"==typeof e?o(e,i):e,a=i.plainObjects?{__proto__:null}:{},s=Object.keys(r),l=0;l<s.length;++l){var c=s[l],d=u(c,r[c],i,"string"==typeof e);
287a=n.merge(a,d,i)}return!0===i.allowSparse?a:n.compact(a)}},5397:(e,t,i)=>{"use strict";var n=i(2206),r=i(6526),a=i(9782),s=i(510),l=i(5146)||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+(e&&Object(e)===e?"the given object key":r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,i){e||(e=l()),e.set(t,i)}};return t}},5432:()=>{},5593:()=>{},5605:(e,t,i)=>{"use strict";var n=i(4274),r=i(7379),a=i(5185);e.exports=i(7978)||n.call(a,r)},5739:e=>{"use strict";e.exports=Math.min},5761:(e,t,i)=>{"use strict";var n=i(5397),r=i(4245),a=i(2236),s=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,c=Array.prototype.push,d=function(e,t){c.apply(e,o(t)?t:[t])},u=Date.prototype.toISOString,h=a.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p={},f=function e(t,i,a,s,l,c,u,h,f,v,g,A,y,w,b,_,x,E){for(var C,k,S=t,L=E,M=0,N=!1;void 0!==(L=L.get(p))&&!N;){var T=L.get(t);if(M+=1,void 0!==T)if(T===M)throw RangeError("Cyclic object value");else N=!0;void 0===L.get(p)&&(M=0)}if("function"==typeof v?S=v(i,S):S instanceof Date?S=y(S):"comma"===a&&o(S)&&(S=r.maybeMap(S,function(e){return e instanceof Date?y(e):e})),null===S){if(c)return b(f&&!_?f(i,m.encoder,x,"key",w):i);S=""}if("string"==typeof(C=S)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||r.isBuffer(S))return f?[b(_?i:f(i,m.encoder,x,"key",w))+"="+b(f(S,m.encoder,x,"value",w))]:[b(i)+"="+b(String(S))];var j=[];if(void 0===S)return j;if("comma"===a&&o(S))_&&f&&(S=r.maybeMap(S,function(e){return null==e?e:f(e)})),k=[{value:S.length>0?S.join(",")||null:void 0}];else if(o(v))k=v;else{var I=Object.keys(S);k=g?I.sort(g):I}var D=h?String(i).replace(/\./g,"%2E"):String(i),P=s&&o(S)&&1===S.length?D+"[]":D;if(l&&o(S)&&0===S.length)return P+"[]";for(var O=0;O<k.length;++O){var B=k[O],H="object"==typeof B&&B&&void 0!==B.value?B.value:S[B];if(!u||null!==H){var $=A&&h?String(B).replace(/\./g,"%2E"):String(B),z=o(S)?"function"==typeof a?a(P,$):P:P+(A?"."+$:"["+$+"]");E.set(t,M);var Y=n();Y.set(p,E),d(j,e(H,z,a,s,l,c,u,h,"comma"===a&&_&&o(S)?null:f,v,g,A,y,w,b,_,x,Y))}}return j},v=function(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,i=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],c=m.filter;if(("function"==typeof e.filter||o(e.filter))&&(c=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:t,charset:i,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}};e.exports=function(e,t){var i,r=e,a=v(t);"function"==typeof a.filter?r=(0,a.filter)("",r):o(a.filter)&&(i=a.filter);var s=[];if("object"!=typeof r||null===r)return"";var c=l[a.arrayFormat],u="comma"===c&&a.commaRoundTrip;i||(i=Object.keys(r)),a.sort&&i.sort(a.sort);for(var h=n(),m=0;m<i.length;++m){var p=i[m];if(null!=p){var g=r[p];a.skipNulls&&null===g||d(s,f(g,p,c,u,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}}var A=s.join(a.delimiter),y=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?y+="utf8=%26%2310003%3B"+a.delimiter:y+="utf8=%E2%9C%93"+a.delimiter),A.length>0?y+A:""}},5855:()=>{},5877:()=>{},6006:()=>{},6017:(e,t,i)=>{"use strict";i.d(t,{O:()=>p});var n=i(6029);function r({size:e=24,color:t="#000",direction:i="right",type:r="s"}){let a=0;"left"===i?a=180:"up"===i?a=-90:"down"===i&&(a=90);let s=1.3;return"l"===r?s=2.2:"xl"===r&&(s=3.1),(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",transform:`rotate(${a})`,children:(0,n.jsx)("path",{d:"M14 6L20 12M20 12L14 18M20 12H4",stroke:t,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})}let a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAMpElEQVR4Ae3dPXQURxYG0JLPRoZYThdiFJvYyomt2MTI6UIMmxrHbKxNV44hNrEdg1MTm021VajkFRjBjDSjeq/63nP6jH8xVtd8/ep1VXcpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC57BTYgJOTkxv14+YFf/uPnZ2dtwWuSGCxkh5It+txqx67/Wh/3ELqxoq/TAut3/vn63q86Z+vBBqrEFh8VA+ou+U0lL6ux1dlu17V47d6/FyP1zXAfi/wAYHFn3pI3avHnXrslbF+qcfLdggvzgisheshtV9Oq6jRIXWRFl4vanA9LyyawFqoc9VUO1btQY3Wel5tyviTqmuZBNbCJA2qj3lRjyPBtSwCayEmCqrz2p3F4xpaR4VFEFgLUMOq9aYelO3f6RulTRWP9LjmJ7Am1quq78tpQ30JTBMnJ7AmtYCq6iKt2npaQ+uXwnQE1oRqWB3Uj4OybEd6W/MRWBNZ4BTwc9oSiKe2/cxDYE2ihlXb2/ewnO734//aFPGRvtYcBNYEelg9LsvrV61KaE1CYCUnrFYmtCYgsBITVmsTWskJrKSE1aUJrcQEVkL9buAPRVhdVgutQ3cP8/mikFFbuiCsLq9Vp4eFdARWMn1RqHVWV3e3/yxJRGAlUr9g7ZHFvmSbc9C3MJGEwEqiN9m/K2zaw/qzNb1OQmDl0SorX6zNazcwHhRSEFgJ1AqgPXN9v7Ate/VnfK8QnsAKrk8Fvy1s20FfLkJgAis+U8Hr0cLKDY3gBFZgvboyFbw+99w1jE1gxWZx4/Uz/Q5MYAXVG+2u9tdvT5UVl8CKy5V+HD/7oARWQP0Kr9E+jiorKIEVkyv8eM5BQAIrmH5n0NV9PFVWQAIrHmuB4vBUjGAEViB9pfXdQhT7Vr/HIrBiaWHlCxJHOxcW7gYisGL5phCNaWEgAisIzfaw9kwL4xBYcQiruEwLgxBYcZgOxmVaGITACqBPOVRYcd02LYxBYMUgrGJrYXW7MJzAiuFOITrTwgAEVgwqrPhcVAIQWIP13sitQnT6WAEIrPH0RvJwrgYTWOOprvJwrgYTWOPpX+WhwhpMYI23W8ji74WhBNZ4phl5eGz1YAJroL7hmTxu1HMmtAYSWGMZ/Pm4yAwksMYy+PNxzgYSWGMZ/Pk4ZwMJrLGsnM7HORtIYI1l8OdzszCMwBrL9CKfLwvDCCxYj6p4IIEFpCGwxjIlzMfauYEEFpCGwALSEFhAGgIL1vNHYRiBNdabQjZvC8MILCANgTWWCisfFdZAAgvW89/CMAJrLBVWPr8XhhFYY5le5OOcDSSwxjL481EVDySwxnpdyMZFZiCBNZZFiPm8KgwjsAba2dlp0wtX7Dze1nPmfA0ksMbTE8lDdTWYwBrPlyAP1dVgAms8jfc8fi0MJbDGE1h5OFeDCazxTAnzcK4GE1iD9btOtnvE98odwvEEVgx6I/H9VhhOYMUgsOL7pTCcwIrBlyE+F5UABFYAfcW7PlZcrX/l/AQgsOJ4WYjqt0IIAisOgRXX80IIAiuOtsbHbfN42oZnPcYgBFYQfY3Pz4VoVL6BCKxYXhSicREJRGDFYloYy5ta+QqsQARWIH1aqMEbh7VXwQisePRM4vhPIRSBFUy/I+Wu1HhtsajHyQQjsGJSZY33UyEcgRVT62Npvo/Tmu16iQEJrIB68/24MIqwCkpgxdUCS5U1hvVwQQmsoFRZw7zwZIa4BFZsqqzrd1QIS2AFpsq6dkeqq9gEVnyqrOvRHqKodxWcwAquV1mmKdunukpAYCVQv0ityvJOvO2x7ioJgZXHvwrb8qSQgsBKou8x1IDfvLaMQfWahMDKpfWy9Fk2pzXa9QcTEViJ9Ab8j4VNearRnovASsbUcGOOvFwiH4GVUP2iPSvuGl5FuytoKpiQwMqr3dmyoHR9rW/1qJCSwEqqv97e7fj1PdG3yktgJdZ7MM8Kq3pmCUNuAiu5vgpeP+bzjvrPisR2ClM4OTk5qB8HhY850mSfgwprEv0LaT/cXx0Lq3mosCaj0nrPcV8CwiQE1oSE1jumgRMSWJNaeGg902Cfk8CaWA2tu/XjsB43yjK0hbRPbLmZl8C
287aXA2t3frxuB5flbm19VX/tCh0bgJrIWpw3a8f98qc3q1F60+zYGICa0FqaO3VjwdlnmqrbU96agq4HAJrYWpotX5Wq7SyN+TbHcBjVdWyCKyF6r2tFlr7JZdWTf2oV7VMAmvhanDdrh/f1WOvxNaC6t+mf8smsHgnaMXVpnttu9FLQUUjsHhPD65WbX1TxlVdLZxe1uO5HhXnCSwu9EF4tanjthagtlBq66iEFJ8ksFhZ73fdqUcLslvlciHWwqg1zF/341cP1WNVAosrq0HW1nXt9j+9Ud4PsTfnPv9QPQEAAAAAAAAAAAAAAAAAAJCepzUM1J9ycBmeenBFfvY5CawN6G+iOXvEyo3+efa4lfN/fLNs7iF4jzw2+HL6G7Efls04exnG+cfovO3Hm7M/98yvzRBYa+hX5fbgurMH2LWj/bURr4JvX4hHvgjr6Q8hbG/CHnXO2vlqDy580z9fqdhWJ7Au0KumNri/Lpd/uua2tYH+vVderaY/8rmFVbQXybbwakH2az1eq5wvJrDO6W9GvtOP6K+9OtMG+yOh9WmBw+oiZy/i8AjpcxYfWD2kWhXVXm8VrYJaldD6hIRh9aF2flv19Xzp1dciA6v3MVpItVe2Zw2pD7Wr8CP9kPf1qf0PJW9YfegsvI6WeIFaVGD1aurbkme6ty6h9YF6zltY3S5zatXWi3q+n5eFWERg1UHbpnstqGa5yn5KmzY8LbTzflhivcl6W1rVdbSE4Jo6sBYWVOcd18H7rCxYPff3y+mUf0mmD64pA2sBU79VtIF7VBaonv+D+nFQlmvamzBTBVZvsLaBurQr60UWF1rC6j3H5XQMTNPTnCawelX1oCxv+vc5z+qAPS4LUMdAu1DdL5zXqq0ns6zlmiKwDNTPejp7Q7b3Kw8LF5mi2k4dWH0K2IJqCXeCrmLqfYd9Xd0Phc/5uZxevNJOEdMGVl+93Hbcz7rGZtOmDK0+DtoyjlkWAG9b6ob8FyWhc1sthNXq2hf64RWeAxXOuXEgrFb37meWdRykq7Am2Bc22hS3vI2DK0s5DlIFlkG6MW2wHmbtZRgHG5MutNJMCXuD3SDdjLNpQbqpVP89t96lcXB16cZBph5WuxtokG5O6/9t6jHB1+n7one5SWc3r1JIEVh99bKlC5u31zcIp9B/r18XNm2v770ML3xg9X6FrRbbs98vCKG5aG3dvb5bJLQMFdbjwrYdRA4t+wOvzWH0flbowOoDVd/qeoQMLWF1rcLPZsIGlqngEAd9T14I/fdiDFyv0FPDyBWWzcxjHEYYsP1lpzYzj/FtCSpkYPXBercwysO+oXiI/t8WVuPs9e9gOFErrO8KI71bpDtiv1lvBfyj2B84WsgZTrjA6tMRjfbxrj20bLkJZTdiLytihRV2/rxA17azX1iFFO67GCqw+qBd8osjIno3Rdvm+hz7RMPai1ZlRauw3MKOqTXBt7JJVliFF2orVLTAulOIqoXWNhqx94vNzJHtR1r9Hiaw+m1UV9nY9je5Sbb/WvYHxtbCKswSh0gVll34OdzbxBae/mt4f2QO35QgIgWWhaJ5XGnfof2B6dyOMi0MEVj9ToSFgrkc9PdBrqX/O8Iql/bdDHG3MEqFZTqY0/11Nkv3f9Ye0ZxC3BCLEljWXuV1uMq+Q/sD0wvRshkeWH1ufKuQ2eNPhda5VezktXsS4F2GESos1VV+F76k1ctOpzJ8WhghsFRXc/jLvkP7A6cz/LsaIbCsbp/Hn++5E1ZTGh5Yfyvj2ZYxl/P9KmE1l+Hf1aGB1RvuehvzcRGaU6ucvxr5avvRU0IDG3IZOi0cHVga7pDLbhlodGAN/Z8H1rbowNKUhVwWHVhfFiCTRQeWpjvkMnRWNDqwLGmAXIZ+Z4cFVl8JDSQzchP0yArrZgEyGtZ7HhlYpoOQ07BiQ2AB6xrWzhFYQBoCC1jXsO+uwALWtcjAAliLwALSMCUE1rXIhaMCC1iLKSGQhsAC0hBYQBoCC0hDYAFpCCwgDYEFpCGwgDQEFpCGwALSEFhAGgILSENgAWkILCANgQWkIbCANAQWkIbAAtIQWEAaAgtIQ2ABaQgsIA2BBaQhsIA0BBaQhsAC0hBYQBoCC0hDYAFpCCwgDYEFpCGwgDQEFpCGwALSEFhAGgILSON/A+23W6Zx13sAAAAASUVORK5CYII=",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAMgCAYAAAAz4JsCAAAkHElEQVR4Ae3diW4bV7qu4cV50Oih+yDYOBd2rrQv6CAIstOOLYkSqWIVuVVOeyfpdizbEqmPxecBBBseMlmpWvVqrb96//jHP/5fAQAAAIBQ/QIAAAAAwQQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAABEE7AAAAAAiCZgAQAAABBNwAIAAAAgmoAFAAAAQDQBCwAAAIBoAhYAAAAA0QQsAAAAAKIJWAAAAFCAZAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBsWAACexXa77TdNM2i/PxgMml6vtykAADyZgAUA8ATLqprdr1anq3UzfyhYf9rdPuj16tFosBpPJnfzyeS2AADwXQQsAIDv0Iarxe3t26bZ/uV6qtluh01Vn64ePm4Xd/XJbPZhPp/eFAAAvomABQDwDdpjgteLxavl/fr8W35fG7Ou7+7erpv1+OLs7F0BAOCrGeIOAPCV2nj17urqh2+NV3/U/t5/fvjwX9t/O24IAMBfs3ACAPhKVzd3b+p6My5P1P41rm5u3hQAAL6KgAUA8BWWVXW6qu5PyzNp52Jd3y4vCgAAjxKwAAAesdlshovb21flmd2tVpeOEgIAPM6CCQDgEfd1Pf3S2wa/WzsQ3i4sAIBHCVgAAI+4X
287dztLDKtm/W0AADwRQIWAMAXtMcH683TB7f/lXrdTB0jBAD4MoslAIAvuK/rUdmxZVXNCgAAf0nAAgD4skHZtcYOLACAL7FYAgAAACCagAUAAABANAELAAAAgGgCFgAAAADRBCwAAAAAoglYAAAAAEQTsAAAAACIJmABAAAAEE3AAgAAACCagAUAAABANAELAAAAgGgCFgAAAADRBCwAAAAAoglYAAAAAEQTsAAAAACIJmABAAAAEE3AAgAAACCagAUAAABANAELAAAAgGgCFgAAAADRBCwAAAAAoglYAAAAAEQTsAAAAACIJmABAAAAEE3AAgAAACCagAUAAABAtGEBAL7Ldrvtr9bryXrdjLebzXC7bfr1djtsv9/+fLN5+ELRw68p8Ijru7u37UfhsPV6m0G/bHoP37bf75WyGfaHda/fr0ejQTUdje4//hwA8M0ELAD4SnVdj+7u1/N1XU03m824abbuo8DvHoJ107QnHLb/+0Pr0vz2nWUpVw/fDHq9uj/sV6PheDUeD1dt1CoAwKMsvAHgC5ZVNaseolVVV3PBCniqZrsdNutmuF4v53fL34LWaDRYTabTxWw8XhYA4LMsxAHg37RHA2/uVmdttKrXzbQA7MjHoFXVp6tqcbp4iFkns9mH2Wxy66ghAPyZgAUA/9KGq+vb24vl/frc7Cpg39qY1c5Cu10uL8eT0eJsPr/p9/t1AQAELABoteHqblVdClfAS2tD1vLhelTdr0/bHVnz+fSmAMCRE7AAOGpV04yvF4s3jgoCaf64I+vNq4uf7MYC4JgJWAAcrY+7rpb3rwtAsDZk/fevH/7vbDr+cHF6+r4AwBESsAA4Ou2sq6ubmzerqj4tAAeiPVa43VwPL87O3hnyDsCxMecDgKOy2WyG766ufhCvgEPUXrv++euH/2qvZQUAjoiABcDR+BSv6nozLgAHqj1S+O791Q8iFgDHRMAC4Ch8ildNs/XABxw8EQuAYyNgAdB57cwr8QromjZi/Xp9/X/aa1wBgI5zswOg8x4e8P4mXgFd1B6Jbq9xBQA6TsACoNOuFotX63UzLwAd1V7jrm+XFwUAOkzAAqCz2tkw7WvnC0DH3S2Xr6um8YIKADpLwAKgs9q5VwXgSFzf3DhKCEBnCVgAdNL17e2FuVfAMWnnYV0t7l4VAOggAQuAzmmPDt5X1XkBODLL+/tzbyUEoIvc3ADonOvF8pXdV8BReohXBroD0EUCFgCd0u6+Wq0rbx0EjpZdWAB0kRsbAJ1yX9fT4sENOGZ2YQHQQRb4AHTK4vbWAGPg6LW7sAoAdIiABUBnLKtqZvYVQPm4C+vjjlQA6AiLfAA64361Pi1BBoNhXYCj0jR1zPp6tbw/mZwNVwUAOkDAAqAz1k31MrsNer3NdDS+6w/61XQ6Xo76/br38GMFOErtAPWqacb39+vJptmM22vTS+wOXVbV6UU5eVcAoAMELAA64SWODw5Ho9XZyez9ZGiHA/C7NmC314Xfrw0nZbVezxd3q4t6vd5faP/XMULXKAC6QMACoBOqao+zXh4eTi/PT3+ZjkZ3BeArtNeL6cXort0VdXVz+2Zfb0tdrarZ5FTAAuDwGeIOQCesmz3taniIV39/dfGjeAV8j9l4vGivIWVPx4z3dm0EgB0TsADohLrejMsenM9mv/b7fcPZge/WXkPaXZxlD/Z1bQSAXROwADh47bDkfRzHmY6Hi/l8elMAnqjdxTkcDXZ/tO/h2ljX9agAwIETsAA4ePX9fh7OZvO5eAU8m7OTk/dlD/Y6IxAAdkTAAuDgrTfNzo/IDHq92pu8gOfUXlMGg+HOjySvNxsvbgLg4AlYABy87Wa784ez0T6O+gBHZzwc7PyFENtNLWABcPAELAAOXr3d/cPZeDLx1kHg2Y0no/uyY822b80PwMFzMwPg8DW7H+A+HA7XBeCZ7eNo8qZeexMhAAdPwALg4G17u99dMB4MqgLwzPr9/s5nYAFAFwhYABy8ptntEcJ2gHsB2JFdD3JvtlszsAA4eAIWADyiN+htCsCO9LYb1xgAeISABQCP6Q08XAK7I5IDwKMELAAO2mazcTQG4BF1XY8KABwwAQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAB03GAwaAoAHDABC4CD1u/36wLAF/V6vU0BgAMmYAHAI7Z1PSwAu9JsrckB4BFulgAA8ILq7VYkB4BHCFgAHLzBYLjTY4TNw8PldmuHBLAjO76+DHo9R60BOHgW4wAcvN52s/PZLuvNxg4J4NlVTTMuO9YbmH8FwOETsAA4eL0d78Bq1ffrSQF4Zs0eAtbDRVLAAuDgCVgAHLxhf/fHY6q6mhaAZ3a/Ws/Kjo36/aoAwIETsAA4eL1+f+cBa7Vu5uZgAc9t3ew+ju/jGgkAu2YhDsDBG/b28HD2EK+WVbXznRLA8Xi4ppw2ze7fQDiZjO4LABw4AQuAgzed7ufh7G65vCwAz2Rxe/uq7MHIDiwAOkDAAuDg9duHs97u37JV15vx1WKxlwdOoNvaa8k+dl8Ner26L2AB0AECFgCdMBqOVmUPlqvq8vp2eVEAvtPd3d1Zey0pe9AfjgxwB6ATdv5VHwDYh9FwsFqvy7zswd1y+Xq7qYdnJydXdjYAX6t9EcT1YvFqeb8+L3vSXhsLAHSAgAVAJ5zOJrdtWCp70j6AVtXVfDQarKaz2fV0ZEgy8HntCyCqqpp+DFd7fpvpdDpeFgDoAAELgE5od0INBsO6aeq93dua7XbYVPXpqro5/ThnZtivRsPxajjs171eb2NwMhyf+iFQbZpmXDftt+vxummm+5h19TntdWk8GDhCCEAnCFgAdMZ4NFwsm/pF3hT4MWatm+F6vdzLMUaAx4zH47sCAB1hiDsAneGoDMDvzk5mVwUAOkLAAqAzJsPhajgysBhgOBqtvGQCgC4RsADolJPZ7KYAHLn5aLQoANAhAhYAnTIbjxel19sUgCPVDm+fz6diPgCdImAB0Dmns/n7AnCkTmazDwUAOkbAAqBzTueT68GgZ/YLcHTsvgKgqwQsADrp/OzslwJwZOy+AqCrBCwAOql9I+FoNLgrAEdiOh4u7L4CoKsELAA66/X5+S8GugPHoD06eH56av4fAJ0lYAHQWb2HePXq4uznAtBxZ+en7/r9vtl/AHSWgAVAp7VHCU+8lRDosPYaNx2NHJkGoNMELAA67+xk+mE2NRcG6J75bHbVXuMKAHScgAXAUbg4nf9TxAK6pL2mnZ/Mfi0AcAQELACOhogFdEV7LWuvaQUA
287jsSwAMAR+fjAt91ul/f35wXgALXHBu28AuDY2IEFwNG5ODt5Z7A7cIhO5yfvxCsAjpEdWAAcpXbo8clsvHh3dfVD02zdD4Fog16vvrg8/3k8GFQFAI6QHVgAHK1+v1+/vbz8cTaZXBeAUO2RwbevL38UrwA4Zr7iDMBR6/V6m/ZI4dnJ7Or9zd2b9bqaF4AAw9FodX46fydcAYCABQAftbux3lyc/nxf19Ob2+Wrer2eFoAX0Iarh6j+fjIcrgoA8JGABQB/0D4wTi7OftpsNsPrxfLVuqmmZmQBO9frbWbj8WI6m9wKVwDwnyzIAeAz2h1Zl+cnv5RyUlbr9Xy1rE7ELOBZPUSr6Wh8N5tPbtpjgu2R5gIAfJZFOAA8Yjoa3bUfbcyqmma8WlWzdd1Mt9vNsK7rcQH4CoPBsB4NBqv+oF9Np+Ol2VYA8PUELAD4Bu0D5/hk1j50Xn36sTZqbbfb/v39etJ+u938tkurfghchW+zbfp1vYmJgu0son38Mw0GvbrXf+ihQbPXhsNhVewI+ia90tsM/vXfrNfv1ePxcN3uqmqvG+2uzgIAfDcLawB4ok+7KMyteZo2/r27uvqhhLg4Of1lNhsvllV1enW9+FvZoZPJ7MN8Pr3Zx9/r623Km/OLnx1rAwAS9AsAwAv7FK9Sdl99ildlz9oh3hfnp7+UAO2fRftn0v7ZFACAF2ZBAgC8KPHqz0QsAID/ZDECALwY8erzRCwAgD+zEAEAXoR49WUiFgDA7yxCAIC9E6++jogFAPAbCxAAYK/Eq28jYgEACFgAwB6JV99HxAIAjp2FBwCwF+LV04hYAMAxs+gAAHZOvHoeIhYAcKwsOACAnRKvnpeIBQAcI4sNAGBnxKvdELEAgGNjoQEA7IR4tVsiFgBwTCwyAIBnJ17th4gFABwLCwwA4FmJV/slYgEAx8DiAgB4NuLVyxCxAICus7AAAJ6FePWyRCwAoMssKgCAJxOvMohYAEBXWVAAAE8iXmURsQCALrKYAAC+m3iVScQCALrGQgIA+C7iVTYRCwDoEosIAOCbiVeHQcQCALrCAgIA+Cbi1WERsQCALrB4AAC+mnh1mEQsAODQWTgAAF9FvDpsIhYAcMgsGgCAR4lX3SBiAQCHyoIBAPgi8apbRCwA4BBZLAAAf0m86iYRCwA4NBYKAMBniVfdJmIBAIfEIgEA+A/i1XEQsQCAQ2GBAAD8iXh1XEQsAOAQWBwAAP9LvDpOIhYAkM7CAAD4SLw6biIWAJDMogAAEK/4SMQCAFJZEADAkROv+CMRCwBIZDEAAEdMvOJzRCwAII2FAAAcKfHq62zr7bbs2qC3KWFELAAgiUUAABwh8errTaej+7Jjw+FwXQKJWABACgsAADgy4tW36ff7dentbofUoNerx4N
287BVUKJWABAAjd/ADgi4tX3aSNO2ZHRaLAq4UQsAOClufEDwJEQr77f2cnsquzI+enp+3IARCwA4CW56QPAERCvnqY9RjibTK7LM5uOh4uPRxQPhIgFALwUN3wA6Djx6nmcn87fDwa9Z4tN7eyri7Ozd+XAiFgAwEtwsweADhOvnk+v19u8ubj46TkiVhuv3ry6+Km3w+HwuyRiAQD75kYPAB0lXj2/9rjfUyPWp3h1SEcHP0fEAgD2yU0eADpIvNqdNjy9vbz8cTqefPO/z3w2u3r7+vLHQ49Xn4hYAMC+uMEDQAddLxavxKvdaY/+XZ6f/PL315f/vw1ZX9yR9fBr2wHwry7Pfzo/mf16qMcG/0paxLq6uXlTAIDOGRYAoFOWVXW6vF+flwBdjFd/1O6kakNWKSelaprxZrMZVlU9an9uNBo0g8GgGj98lI5rI1Y5Py1X14u/lRe2qurTu7vVaj6f3hQAoDMELADomMXt7asSoOvx6t99DFUPH9PRqByjpIh1vVy+ns0mt13b7QYAx8wRQgDokHb3VdNsX/wLVMcWr/hNzHHC7bZ/c7c6KwBAZwhYANAht8vliz+0i1fHLSViVXU1LwBAZwhYANAh9bqZlhckXtFKiFjtQHdvJASA7nBTB4COaIeIlxckXvFHLx6xHuJV0zSDAgB0goAFAB3xkg/r4hWf89IRqylFwAKAjhCwAIAnEa/4kpjB7gDAQROwAKAjBoNBU/ZMvOJriFgAwFMJWADQEaN+vy57JF7xLV4iYo0Hg6oAAJ0gYAFAR/R6vc1wNFiVPRCv+B77jFjDYb9q/58oAEAnCFgA0CGjwWjnAUu84in2FbHm4+l1AQA6Q8ACgA45P5ldlR3uOhGveA77iFjT6XhZAIDOELAAoEPaI1OzyWQnO0/EK57TLiPWyWz+vr/nmXAAwG4JWADQMe0urHb+T3lG4hW7sIuINej16rOT6YcCAHSKgAUAHdPuwnp9fv7zYNB7lh0o4hW79JwRq41Xb15d/FQAgM4RsACgg9rjU28uLn56UsR6CGGXF2c/i1fsWhux2s+1p8xv+xSvHB0EgG4SsACgo9oH+beXlz9Ox5NvDlDD0Wj191cXP05Ho7sCe9B+rrWfc99z/HU+m129fX35o3gFAN01LABAZ7XHCS/PT37ZbGbvrxfLV6t1NS/b7V9+AasNV2cns/eT4XBVYM8+RddlVZ3eLu/P6vV6+pe/uH1hwXi8mM4mtz5fAaD7BCwAOAJtGGhDVikn5b6up/f368n2XyGrjVzj8XDdRoDeE45wwXNpw1T70X6Otp+vVVWP/vj5OpmM7seDQeXzFQCOh4AFAEemDVV2rHAI2kDVHi18+CgAwHEzAwsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACiCVgAAAAARBOwAAAAAIgmYAEAAAAQTcACAAAAIJqABQAAAEA0AQsAAACAaAIWAAAAANEELAAAAACi/Q/v/d+3lCsV9wAAAABJRU5ErkJggg==",l={"sr-only":"_sr-only_5k937_1","course-item-container":"_course-item-container_5k937_12","course-item-content":"_course-item-content_5k937_34","course-item-image":"_course-item-image_5k937_53","course-item-title":"_course-item-title_5k937_57","course-item-date":"_course-item-date_5k937_66","course-item-badge":"_course-item-badge_5k937_100","course-item-format":"_course-item-format_5k937_137","course-item-author":"_course-item-author_5k937_142","course-item-authors":"_course-item-authors_5k937_145","course-item-authors__avatars":"_course-item-authors__avatars_5k937_149","course-item-author__image":"_course-item-author__image_5k937_149","course-item-authors__names":"_course-item-authors__names_5k937_155","course-item-summary":"_course-item-summary_5k937_160","course-item-read-more":"_course-item-read-more_5k937_178","title-highlight":"_title-highlight_5k937_217","is-new":"_is-new_5k937_273",current:"_current_5k937_285",upcoming:"_upcoming_5k937_290","course-item-date__arrow":"_course-item-date__arrow_5k937_313","course-item-authors__more":"_course-item-authors__more_5k937_397","course-item-author__prefix":"_course-item-author__prefix_5k937_411","course-item-author__info":"_course-item-author__info_5k937_423","course-item-author__name":"_course-item-author__name_5k937_427","course-item-author__role":"_course-item-author__role_5k937_441","course-item-actions":"_course-item-actions_5k937_464","with-icon":"_with-icon_5k937_504",primary:"_primary_5k937_511",tert
287iary:"_tertiary_5k937_520"},o=/(\{[^}]*\}|\[[^\]]*\])/g;function c(e){return e.split(o).map((e,t)=>e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")?(0,n.jsx)("span",{className:l["title-highlight"],children:e},t):e)}let d=["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],u=/^(\d{4})-(\d{2})-(\d{2})/;function h(e,t=!1){let i=function(e){let t=e?.match(u);return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):null}(e);if(!i)return e;let n=`${i.getDate()} ${d[i.getMonth()]}`;return t?`${n} ${i.getFullYear()}`:n}function m({title:e,image:t,titleTag:i="h2",type:o="lezioni",variant:d="standard",link:u,deliveryType:m,backgroundColor:p,backgroundColorLight:f,backgroundColorLightRgb:v,isNew:g,upcoming:A=!1,current:y=!1,startDate:w,endDate:b,periodSummary:_,authors:x,authorsText:E,summary:C,summary_home:k,layout:S="horizontal",linkShop:L,purchasable:M,onShopClick:N}){let T=v||f,j={...p&&{"--accent":p},...T&&{"--course-bg":T}};return(0,n.jsxs)("article",{className:l["course-item-container"],"data-type":o,"data-layout":S,"data-variant":d,style:j,children:[(0,n.jsx)("figure",{className:l["course-item-image"],children:u?(0,n.jsx)("a",{href:u,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:t||s,alt:""})}):(0,n.jsx)("img",{src:t||s,alt:""})}),(0,n.jsxs)("div",{className:l["course-item-content"],children:["embed"!==d&&(0,n.jsxs)(n.Fragment,{children:[g&&(0,n.jsx)("span",{className:`${l["is-new"]} ${l["course-item-badge"]}`,children:"Novit\xe0"}),A&&(0,n.jsx)("span",{className:`${l.upcoming} ${l["course-item-badge"]}`,children:"In arrivo"}),y&&(0,n.jsx)("span",{className:`${l.current} ${l["course-item-badge"]}`,children:"In corso"}),(w||b)&&(0,n.jsxs)("p",{className:l["course-item-date"],children:[w&&h(w,!b),w&&b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:l["sr-only"],children:" al "}),(0,n.jsx)("span",{"aria-hidden":"true",className:l["course-item-date__arrow"],children:(0,n.jsx)(r,{color:"currentColor",size:24})})]}),b&&h(b,!0)]}),!w&&!b&&_&&(0,n.jsx)("p",{className:l["course-item-date"],children:_})]}),(0,n.jsx)(i,{className:l["course-item-title"],children:u?(0,n.jsx)("a",{href:u,children:c(e)}):c(e)}),m&&(0,n.jsx)("div",{className:l["course-item-format"],children:m}),x&&x.length>0&&(x.length<2?(0,n.jsxs)("div",{className:l["course-item-author"],children:[(0,n.jsx)("figure",{className:l["course-item-author__image"],children:(0,n.jsx)("img",{src:x[0].authorImage||a,alt:x[0].author})}),(0,n.jsxs)("span",{className:l["course-item-author__info"],children:[(0,n.jsxs)("span",{className:l["course-item-author__name"],children:[E&&(0,n.jsxs)("span",{className:l["course-item-author__prefix"],children:[E," "]}),x[0].author]}),x[0].role&&(0,n.jsx)("span",{className:l["course-item-author__role"],
287children:x[0].role})]})]}):(0,n.jsxs)("div",{className:l["course-item-authors"],children:[(0,n.jsxs)("div",{className:l["course-item-authors__avatars"],children:[x.slice(0,3).map(({author:e,authorImage:t},i)=>(0,n.jsx)("figure",{className:l["course-item-author__image"],children:(0,n.jsx)("img",{src:t||a,alt:e})},`${e}-${i}`)),x.length>3&&(0,n.jsxs)("span",{className:l["course-item-authors__more"],"aria-hidden":"true",children:["+",x.length-3]})]}),(0,n.jsxs)("span",{className:l["course-item-authors__names"],children:[E&&(0,n.jsxs)("span",{className:l["course-item-author__prefix"],children:[E," "]}),x.slice(0,3).map(e=>e.author).join(", "),x.length>3&&(0,n.jsx)("span",{className:l["sr-only"],children:x.length-3==1?" e un altro autore":` e altri ${x.length-3} autori`})]})]})),(k||C)&&(0,n.jsx)("p",{className:l["course-item-summary"],children:k||C}),"embed"===d&&u&&(0,n.jsx)("a",{href:u,className:l["course-item-read-more"],children:"Scopri"}),"featured"===d&&M&&L&&(0,n.jsxs)("div",{className:l["course-item-actions"],children:[(0,n.jsx)("a",{href:u,className:l.primary,children:"Acquista"}),u&&(0,n.jsxs)("a",{href:u,className:`${l.tertiary} ${l["with-icon"]}`,children:[(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32",children:[(0,n.jsx)("path",{stroke:"var(--Button-Color, #4ce0f7)",strokeLinejoin:"round",strokeWidth:"2",d:"M15.996 7.775v17.546m-8.34-9.798h16.695M11.648 2.975c1.707-.991 2.693.725 2.693.725l1.314 2.288s.986 1.649-.721 2.64c-1.708.99-2.694-.726-2.694-.726l-1.314-2.22s-.986-1.717.722-2.707Zm8.57-.001c-1.707-.99-2.693.725-2.693.725l-1.314 2.288s-.986 1.65.722 2.64 2.693-.725 2.693-.725L20.94 5.68s.986-1.716-.721-2.707Z"}),(0,n.jsx)("path",{fill:"var(--generic-icon-color)",d:"M5.336 8.975v-1a1 1 0 0 0-1 1zm21.333 0h1a1 1 0 0 0-1-1zm-1.333 17.333v1a1 1 0 0 0 1-1zm-18.667 0h-1a1 1 0 0 0 1 1zM5.336 15.52h-1a1 1 0 0 0 1 1zm1.333 0h1v-1h-1zm20 0v1a1 1 0 0 0 1-1zm-1.333 0v-1h-1v1zm0 10.788v-1H6.669v2h18.667zm-20-10.788h1V8.975h-2v6.545zm1.333 10.788h1V15.52h-2v10.788zm0-10.788v-1H5.336v2h1.333zm20-6.545h-1v6.545h2V8.975zm0 6.545v-1h-1.333v2h1.333zm-1.333 0h-1v10.788h2V15.52zm-8.34-6.545v1h9.673v-2h-9.673zm-11.66 0v1h9.668v-2H5.336z"})]}),"Regala"]})]})]})]})}function p(e){return(0,n.jsx)(m,{...e,variant:"skin"})}},6155:()=>{},6199:()=>{},6262:()=>{},6404:()=>{},6462:()=>{},6526:(e,t,i)=>{var n="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&r&&"function"==typeof r.get?r.get:null,s=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,o=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&o&&"function"==typeof o.get?o.get:null,d=l&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,f=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,A=String.prototype.slice,y=String.prototype.replace,w=String.prototype.toUpperCase,b=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,E=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,L=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N?"object":"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-k(-e):k(e);if(n!==e){var r=String(n),a=A.call(t,r.length+1);
287return y.call(r,i,"$&_")+"."+y.call(y.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,i,"$&_")}var P=i(6973),O=P.custom,B=R(O)?O:null,H={__proto__:null,double:'"',single:"'"},$={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,i){var n=H[i.quoteStyle||t];return n+e+n}function Y(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function V(e){return"[object Array]"===U(e)&&Y(e)}function W(e){return"[object RegExp]"===U(e)&&Y(e)}function R(e){if(N)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,l){var o,f,w,_,k,L=n||{};if(F(L,"quoteStyle")&&!F(H,L.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(F(L,"maxStringLength")&&("number"==typeof L.maxStringLength?L.maxStringLength<0&&L.maxStringLength!==1/0:null!==L.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var O=!F(L,"customInspect")||L.customInspect;if("boolean"!=typeof O&&"symbol"!==O)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(L,"indent")&&null!==L.indent&&"	"!==L.indent&&!(parseInt(L.indent,10)===L.indent&&L.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(L,"numericSeparator")&&"boolean"!=typeof L.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=L.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,i){if(t.length>i.maxStringLength){var n=t.length-i.maxStringLength;return e(A.call(t,0,i.maxStringLength),i)+("... "+n)+" more character"+(n>1?"s":"")}var r=$[i.quoteStyle||"single"];return r.lastIndex=0,z(y.call(y.call(t,r,"\\$1"),/[\x00-\x1f]/g,G),"single",i)}(t,L);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return q?D(t,et):et}if("bigint"==typeof t){var ei=String(t)+"n";return q?D(t,ei):ei}var en=void 0===L.depth?5:L.depth;if(void 0===r&&(r=0),r>=en&&en>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var er=function(e,t){var i;if("	"===e.indent)i="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;i=E.call(Array(e.indent+1)," ")}return{base:i,prev:E.call(Array(t+1),i)}}(L,r);if(void 0===l)l=[];else if(Q(l,t)>=0)return"[Circular]";function ea(t,i,n){if(i&&(l=C.call(l)).push(i),n){var a={depth:L.depth};return F(L,"quoteStyle")&&(a.quoteStyle=L.quoteStyle),e(t,a,r+1,l)}return e(t,L,r+1,l)}if("function"==typeof t&&!W(t)){var es=function(e){if(e.name)return e.name;var t=g.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),el=ee(t,ea);return"[Function"+(es?": "+es:" (anonymous)")+"]"+(el.length>0?" { "+E.call(el,", ")+" }":"")}if(R(t)){var eo=N?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||N?eo:Z(eo)}if((ec=t)&&"object"==typeof ec&&("undefined"!=typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,ed,eu="<"+b.call(String(t.nodeName)),eh=t.attributes||[],em=0;em<eh.length;em++){eu+=" "+eh[em].name+"="+z((ed=eh[em].value,y.call(String(ed),/"/g,"&quot;")),"double",L)}return eu+=">",t.childNodes&&t.childNodes.length&&(eu+="..."),eu+="</"+b.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ep=ee(t,ea);return er&&!function(e){for(var t=0;t<e.length;t++)if(Q(e[t],"\n")>=0)return!1;return!0}(ep)?"["+K(ep,er)+"]":"[ "+E.call(ep,", ")+" ]"}if("[object Error]"===U(o=t)&&Y(o)){var ef=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ef.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ef,", ")+" }":"{ ["+String(t)+"] "+E.call(x.call("[cause]: "+ea(t.cause),ef),", ")+" }"}if("object"==typeof t&&O){if(B&&"function"==typeof t[B]&&P)return P(t,{depth:en-r});else if("symbol"!==O&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ev=[];return s&&s.call(t,function(e,i){ev.push(ea(i,t,!0)+" => "+ea(e,t))}),J("Map",a.call(t),ev,er)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return d&&d.call(t,function(e){eg.push(ea(e,t))}),J("Set",c.call(t),eg,er)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===U(f=t)&&Y(f))return Z(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return Z(ea(S.call(t)));if("[object Boolean]"===U(w=t)&&Y(w))return Z(p.call(t));if("[object String]"===U(_=t)&&Y(_))return Z(ea(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==i.g&&t===i.g)return"{ [object globalThis] }";if(!("[object Date]"===U(k=t)&&Y(k))&&!W(t)){var eA=ee(t,ea),ey=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,ew=t instanceof Object?"":"null prototype",eb=!ey&&T&&Object(t)===t&&T in t?A.call(U(t),8,-1):ew?"Object":"",e_=(ey||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eb||ew?"["+E.call(x.call([],eb||[],ew||[]),": ")+"] ":"");return 0===eA.length?e_+"{}":er?e_+"{"+K(eA,er)+"}":e_+"{ "+E.call(eA,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return q.call(e,t)}function U(e){return f.call(e)}function Q(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return -1}function G(e){var t=e.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return i?"\\"+i:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,i,n){return e+" ("+t+") {"+(n?K(i,n):E.call(i,", "))+"}"}function K(e,t){if(0===e.length)return"";var i="\n"+t.prev+t.base;return i+E.call(e,","+i)+"\n"+t.prev}function ee(e,t){var i,n=V(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=F(e,a)?t(e[a],e):""}var s="function"==typeof L?L(e):[];if(N){i={};for(var l=0;l<s.length;l++)i["$"+s[l]]=s[l]}for(var o in e)if(F(e,o)&&(!n||String(Number(o))!==o||!(o<e.length)))if(N&&i["$"+o]instanceof Symbol)continue;
287else _.call(/[^\w$]/,o)?r.push(t(o,e)+": "+t(e[o],e)):r.push(o+": "+t(e[o],e));if("function"==typeof L)for(var c=0;c<s.length;c++)j.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},6529:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(6029);let r={"referendum-container":"_referendum-container_g438g_1",single:"_single_g438g_45","referendum-header":"_referendum-header_g438g_52","referendum-title":"_referendum-title_g438g_61","referendum-summary":"_referendum-summary_g438g_70","referendum-summary__item":"_referendum-summary__item_g438g_86","referendum-results":"_referendum-results_g438g_93","referendum-bar":"_referendum-bar_g438g_106","referendum-bar--yes":"_referendum-bar--yes_g438g_134","referendum-bar--no":"_referendum-bar--no_g438g_137"};function a({backgroundColor:e="#a9e56c",title:t,sectionsScrutinized:i,sectionsTotal:a,resultsNull:s=0,resultsBlanks:l=0,resultsContested:o=0,turnout:c,resultsYes:d,resultsNo:u,className:h,showInvalidResult:m=!1}){let p=e=>e.toLocaleString("it-IT");return(0,n.jsxs)("div",{className:`${r["referendum-container"]} ${h?r[h]:""}`,style:{"--bg":e},children:[(0,n.jsxs)("header",{className:r["referendum-header"],style:{backgroundColor:e},children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32",children:(0,n.jsx)("path",{fill:"#4b5254",d:"M16.739 8.666a.738.738 0 1 0-1.477 0h1.477m-.739 18v.74zm-5.335-.738a.738.738 0 1 0 0 1.477v-1.477m10.667 1.477a.738.738 0 1 0 0-1.477v1.477m3.607-10.008a.738.738 0 1 0 1.32-.66l-.66.33zm-2.007-5.663.66-.33a.738.738 0 0 0-1.32 0zm-3.327 5.003a.738.738 0 1 0 1.321.66l-.66-.33zm-8.532.66a.739.739 0 1 0 1.32-.66l-.66.33zm-2.006-5.663.66-.33a.738.738 0 0 0-1.32 0zm-3.328 5.003a.739.739 0 1 0 1.321.66l-.66-.33zm1.728-5.742a.739.739 0 0 0 0 1.477v-1.477m17.067 1.477a.739.739 0 0 0 0-1.477v1.477m-4.826-2.338-.518.526zm-7.415 0 .518.526zm13.862 8.99-.675-.3zm-6.618-.17-.693.254zm-7.336.436-.675-.301zm-6.618-.17-.693.254zM16 8.666h-.738v18h1.477v-18zm0 18v-.738h-5.335v1.477H16zm0 0v.74l5.332-.001v-1.477H16zm9.599-9.599.66-.33-2.666-5.333-.66.33-.661.33 2.667 5.333zm-2.667-5.333-.66-.33-2.667 5.333.66.33.661.33 2.667-5.333zm-11.199 5.333.66-.33-2.666-5.333-.66.33-.66.33 2.666 5.333zm-2.666-5.333-.66-.33-2.668 5.333.66.33.661.33 2.667-5.333zm-1.6 0v.738h1.118v-1.477H7.467zm15.949 0v.738h1.118v-1.477h-1.118zm-3.708-1.6-.518.526c1.176 1.157 2.665 1.812 4.226 1.812v-1.477c-1.135 0-2.261-.474-3.19-1.388zm-7.415 0 .518.526c1.88-1.85 4.499-1.85 6.379 0l.518-.527.518-.526c-2.455-2.416-5.996-2.416-8.451 0zm-3.708 1.6v.738c1.561 0 3.05-.655 4.226-1.812l-.518-.527-.518-.526c-.929.914-2.055 1.388-3.19 1.388zm14.291 9.6v-.738c-1.291 0-2.242-.79-2.645-1.895l-.694.254-.693.253c.589 1.612 2.044 2.865 4.032 2.865zm3.279-2.21-.675-.3c-.47 1.052-1.361 1.772-2.604 1.772v1.477c1.93 0 3.29-1.164 3.953-2.647zm-4.927-2.056v.738h3.231V16.33h-3.231zm4.927 2.057.674.301c.147-.328.317-.696.378-1.05a1.65 1.65 0 0 0-.263-1.224l-.62.402-.62.402c.04.061.048.092.05.1a.2.2 0 0 1-.003.07c-.009.051-.03.127-.077.25-.048.122-.11.262-.194.447zm-1.696-2.057v.738c.548 0 .847.004 1.054.046.145.03.163.06.192.104l.62-.402.619-.401c-.286-.442-.685-.656-1.135-.748-.389-.08-.865-.076-1.35-.076zm-4.922 1.887.694-.254a8 8 0 0 1-.139-.397 1 1 0 0 1-.047-.204.1.1 0 0 1 .002-.05.4.4 0 0 1 .057-.104l-.605-.423-.605-.423c-.248.354-.356.72-.32 1.131.03.338.163.685.27.977zm1.691-1.887v-.739c-.439 0-.88-.003-1.247.072-.429.09-.803.293-1.087.699l.605.423.605.423c.035-.05.055-.073.176-.098.184-.038.447-.042.948-.042zM17.6 6.933h-.739a.86.86 0 0 1-.861.862v1.477a2.34 2.34 0 0 0 2.338-2.339zm-1.6 1.6v-.738a.86.86 0 0 1-.862-.862h-1.477A2.34 2.34 0 0 0 16 9.272zm-1.6-1.6h.738c0-.476.386-.861.862-.861V4.595a2.34 2.34 0 0 0-2.339 2.338zm1.6-1.6v.739c.476 0 .861.385.861.861h1.477A2.34 2.34 0 0 0 16 4.595zM8.922 21.6v-.739c-1.291 0-2.242-.79-2.645-1.894l-.694.253-.693.254c.588 1.611 2.044 2.864 4.032 2.864zm3.278-2.21-.674-.301c-.47 1.053-1.361 1.773-2.604 1.773v1.476c1.929 0 3.29-1.163 3.953-2.646zm-4.926-2.057v.739h3.231v-1.477H7.274zm4.927 2.058.674.301c.146-.329.317-.696.378-1.05a1.65 1.65 0 0 0-.263-1.224l-.62.402-.62.401c.04.062.048.092.05.101a.2.2 0 0 1-.003.07 1.3 1.3 0 0 1-.078.249c-.047.122-.11.262-.193.448zm-1.696-2.058v.739c.548 0 .847.003 1.054.046.145.03.163.059.191.103l.62-.401.62-.402c-.287-.442-.685-.655-1.136-.747-.388-.08-.864-.076-1.35-.076zM5.583 19.22l.694-.253a9 9 0 0 1-.139-.397 1 1 0 0 1-.047-.205.1.1 0 0 1 .002-.05.4.4 0 0 1 .057-.103l-.605-.423-.605-.424c-.248.355-.357.72-.32 
2871.132.03.338.163.685.27.977zm1.691-1.887v-.738c-.44 0-.881-.004-1.247.072-.43.089-.803.292-1.087.698l.605.424.605.423c.035-.05.055-.074.176-.099.184-.038.447-.041.948-.041z"})}),(0,n.jsx)("h2",{className:r["referendum-title"],children:t})]}),(0,n.jsxs)("div",{className:r["referendum-summary"],children:[(0,n.jsxs)("div",{className:r["referendum-summary__item"],children:["Sezioni scrutinate"," ",(0,n.jsxs)("span",{children:[i," su ",a]})]}),m&&(0,n.jsxs)("div",{className:r["referendum-summary__item"],children:["Schede nulle ",(0,n.jsxs)("span",{children:[p(s+l+o),"%"]})]}),(0,n.jsxs)("div",{className:r["referendum-summary__item"],children:["Affluenza ",(0,n.jsxs)("span",{children:[p(c),"%"]})]})]}),(0,n.jsxs)("div",{className:r["referendum-results"],children:[(0,n.jsx)("div",{className:`${r["referendum-bar"]} ${r["referendum-bar--yes"]}`,style:{"--pct":`${d}%`},"data-label":"S\xec","data-pct":`${p(d)}%`}),(0,n.jsx)("div",{className:`${r["referendum-bar"]} ${r["referendum-bar--no"]}`,style:{"--pct":`${u}%`},"data-label":"No","data-pct":`${p(u)}%`})]})]})}},6638:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6776:(e,t,i)=>{"use strict";i.d(t,{Y:()=>i6});var n,r,a=i(6029),s=i(5729);let l={"site-header":"_site-header_16zjc_1","header-container":"_header-container_16zjc_38","header-left":"_header-left_16zjc_55","header-left-links":"_header-left-links_16zjc_70","header-search":"_header-search_16zjc_78","search-box":"_search-box_16zjc_78","menu-button":"_menu-button_16zjc_86","header-center":"_header-center_16zjc_95",logo:"_logo_16zjc_106","header-right":"_header-right_16zjc_120","header-right-links":"_header-right-links_16zjc_134","subscribe-button-container":"_subscribe-button-container_16zjc_143","user-status":"_user-status_16zjc_152","categories-container":"_categories-container_16zjc_161",categories:"_categories_16zjc_161",sticky:"_sticky_16zjc_176"};function o({size:e=24,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"M24 11v3H0v-3h24Zm-6 7v3H0v-3h18Zm6-14v3H0V4h24Z"})})}function c({size:e=24,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"m20.792969 18.144531-6.148438-6.171875 6.164063-6.09375c.253906-.253906.253906-.667968 0-.917968l-1.753906-1.765626c-.121094-.121093-.285157-.1875-.460938-.1875-.171875 0-.335938.070313-.457031.1875L12 9.273438 5.855469 3.203125c-.121094-.125-.285157-.1875-.460938-.1875-.171875 0-.335937.070313-.457031.1875l-1.75 1.761719c-.253906.253906-.253906.664062 0 .917968l6.164062 6.09375-6.144531 6.167969c-.121093.121094-.191406.285157-.191406.460938 0 .171875.0625.335937.191406.457031l1.753907 1.765625c.125.125.289062.191406.457031.191406.164062 0 .332031-.0625.460937-.191406L12 14.675781l6.125 6.144531c.128906.128907.292969.195313.460938.195313.164062 0 .332031-.0625.460937-.195313l1.75-1.761718c.125-.121094.195313-.285156.195313-.457032-.007813-.171874-.078126-.335937-.199219-.457031Zm0 0"})})}function d({width:e=214,height:t=76,primaryColor:i="#2A2522",secondaryColor:n="#14B6D1"}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,fill:"none",viewBox:"0 0 214 76",children:[(0,a.jsx)("path",{fill:i,d:"M97.4012 59.6176c-1.5931.7261-3.3543 1.0896-5.2845 1.0896-1.9294 0-3.691-.3742-5.2832-1.1253-1.593-.7498-2.9561-1.7532-4.0892-3.0129-1.1348-1.2575-2.0148-2.7084-2.6429-4.3561-.6268-1.6439-.9396-3.3863-.9396-5.2253v-.1459c0-1.839.2999-3.5819.9036-5.2265.6023-1.6447 1.4712-3.0853 2.6047-4.3196 1.1352-1.2347 2.4867-2.2144 4.0548-2.941 1.5677-.7256 3.3174-1.0887 5.2481-1.0887 1.9294 0 3.691.3756 5.284 1.1262 1.5922.7511 2.967 1.7541 4.125 3.0116 1.157 1.2588 2.051 2.7123 2.678 4.3566.627 1.6451.942 3.388.942 5.2273v.1447c0 1.8398-.315 3.5814-.942 5.2253-.627 1.6464-1.496 3.0865-2.605 4.3203-1.111 1.2343-2.4612 2.2145-4.0538 2.9397Zm-16.219 11.7243c3.3199 1.3794 6.9285 2.0698 10.8272 2.0698 3.897 0 7.5056-.6904 10.8256-2.0698 3.321-1.3789 6.209-3.2665 8.662-5.6614 2.454-2.3958 4.367-5.2024 5.739-8.4212 1.371-3.2183 2.058-6.6429 2.058-10.2717v-.1459c0-3.6292-.687-7.0413-2.058-10.2364-1.372-3.1942-3.26-5.9759-5.666-8.3475-2.408-2.3708-5.27-4.2476-8.59-5.6262-3.3199-1.3798-6.9286-2.0689-10.8268-2.0689-3.897 0-7.5061.6891-10.826 2.0689-3.3212 1.3786-6.2078 3.2662-8.6628 5.6615-2.4536 2.3962-4.3667 5.2028-5.7379 8.4224-1.3717 3.2179-2.0569 6.6417-2.0569 10.2721v.1447c0 3.6297.6852 7.0418 2.0569 10.2356 1.3712 3.1937 3.2589 5.978 5.6663 8.3492 2.4052 2.3716 5.269 4.2459 8.5894 5.6248ZM47.2315 45.0853c-1.4262 1.1732-3.3937 1.7596-5.9035 1.7596h-6.6635v-13.284h6.5903c2.5589 0 4.5505.563 5.9767 1.6871 1.4229 1.124 2.1354 2.7649 2.1354 4.9189v.144c0 2.0112-.7125 3.603-2.1354 4.7744Zm-4.8901-23.0942H20.6136v49.9922h14.0509V57.6995h6.9528c3.1375 0 6.0473-.3801 8.7281-1.1423 2.6791-.76 4.9844-1.9035 6.9161-3.4275 1.9309-1.5236 3.4398-3.4043 4.5273-5.6421 1.0857-2.2375 1.6299-4.8329 1.6299-7.7842v-.1437c0-2.7607-.496-5.2362-1.4866-7.427-.9893-2.1896-2.4018-4.036-4.2366-5.535-1.8348-1.5002-4.0563-2.642-6.663-3.4279-2.6067-.7864-5.5041-1.1787-8.6911-1.1787ZM186.161 34.1319h-15.212V21.9911h44.471v12.1408h-15.209v37.8514h-14.05V34.1319ZM6.31675 26.2761H.587891v-4.285H6.31675v4.285Zm0 15.7119H.587891V29.1328H6.31675V41.988Zm2.86443 0H14.91V21.9911H9.18118V41.988Z"}),(0,a.jsx)("path",{fill:n,d:"M148.429.565918c5.481 0 10.745 1.928282 14.534 5.353812 3.524 3.1847 5.782 7.65907 5.782 13.09737 0 6.7917-2.933 9.8388-5.426 12.4056-1.14 1.1735-2.201 2.2228-2.719 3.5733 2.816.7018 5.351 2.3119 7.214 4.4867 1.986 2.3192 3.207 5.2772 3.207 8.4561 0 7.7388-3.682 11.1072-8.971 15.8219-3.6 3.209-7.949 7.08-12.275 13.6173-.138.2083-.273.4156-.407.6219-.198-.1544-.392-.2981-.58-.4301-4.251-2.9837-14.867-6.3957-19.859-6.3957-2.371 0-3.612.9484-4.752 2.9197l-.162.2885-3.121-.931c4.081-5.2237 7.861-10.8997 10.769-16.917-2.714-1.4074-5.079-3.1242-6.725-5.3464-1.536-2.0742-2.458-4.5867-2.458-7.7075 0-6.7911 4.354-11.0115 9.371-14.9337l.369-.2865.883-.6793 1.425-1.0868c3.854-2.9448 7.659-5.9653 9.458-10.2652.159-.3802.301-.7653.426-1.1542.247.3306.503.6539.765.9694 2.568 3.0939 5.946 5.7251 9.969 5.7251 2.272 0 4.525-.6243 6.117-1.9913 1.322-1.1354 2.164-2.7906 2.164-5.0017 0-3.261-1.679-5.68339-4.014-7.39643-3.211-2.35624-7.657-3.40072-10.984-3.40072-3.874 0-7.717 1.11069-10.643 3.0501-2.649 1.75569-4.5
28751 4.19485-4.946 7.12065-.231 1.7185.419 3.0888 1.302 4.0578.89.976 2.238 1.2772 3.727 1.2772.412 0 .813-.0231 1.197-.0769-.149.4291-.354.8464-.622 1.2289-1.059 1.5152-2.938 2.242-4.154 2.242-1.911 0-3.209-.731-4.08-1.7318-1.189-1.366-1.565-3.2848-1.533-4.6485.111-4.7497 2.281-8.68312 5.754-11.45955 3.562-2.84756 8.511-4.473032 13.998-4.473032ZM146.886 46.4527c-2.697 0-5.364 1.1485-7.666 2.9063-2.27 1.7331-4.189 4.0637-5.436 6.5263 7.844.2861 15.211 3.5041 21.913 7.775.794-1.3684 1.002-3.0693 1.002-4.6016 0-3.4358-.906-6.8495-2.82-9.2704-1.603-2.027-3.922-3.3356-6.993-3.3356Zm-10.518-18.6415c-.323.2605-.553.6022-.719.9815-.35.7988-.433 1.7584-.433 2.6181 0 3.0199 1.151 6.2814 3.136 8.6771 1.716 2.0704 4.065 3.4969 6.851 3.4969 2.464 0 4.896-1.1718 6.976-2.8735 1.861-1.522 3.445-3.475 4.52-5.45-1.377.5-2.958.7224-4.44.7224-5.943 0-11.899-3.7955-15.891-8.1725Z"})]})}let u={"header-left-link":"_header-left-link_1uzbz_1"};function h({label:e,url:t}){return(0,a.jsx)("a",{href:t,className:u["header-left-link"],children:e})}let m={"header-right-link":"_header-right-link_3z9it_1"};function p({label:e,url:t,id:i}){return(0,a.jsx)("a",{href:t,className:m["header-right-link"],id:i||"",children:e})}let f={"subscribe-button":"_subscribe-button_19e5e_1"};function v({url:e="https://abbonati.ilpost.it"}){return(0,a.jsx)("a",{href:e,id:"button_abbonamento_header","data-ga":"click","data-ga-event":"button_abbonamento",className:f["subscribe-button"],"aria-label":"Abbonati al Post",children:"Abbonati"})}function g({size:e=21,color:t="#000"}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("mask",{id:"a",width:e+1,height:e+1,x:"1",y:"0",maskUnits:"userSpaceOnUse",children:(0,a.jsx)("path",{fill:"#fff",d:"M12 22.0416c-6.07513 0-11-4.7197-11-10.5417C1 5.67792 5.92487.958252 12 .958252c6.0751 0 11 4.719668 11 10.541648 0 5.822-4.9249 10.5417-11 10.5417Z"})}),(0,a.jsx)("g",{mask:"url(#a)",children:(0,a.jsx)("path",{fill:t,fillRule:"evenodd",d:"M5.77558 20.1928C7.54562 21.359 9.68963 22.0416 12 22.0416c2.3104 0 4.4544-.6826 6.2244-1.8488.0323.4976.4169.8905.8867.8905.4909 0 .8889-.4291.8889-.9584v-1.3897c1.8598-1.8879 3-4.434 3-7.2353C23 5.67792 18.0751.958252 12 .958252 5.92487.958252 1 5.67792 1 11.4999c0 2.8013 1.14015 5.3474 3 7.2353v1.3897c0 .5293.39797.9584.88889.9584.46976 0 .85441-.3929.88669-.8905Zm13.79902-4.0329c-.7123-1.6217-2.2442-2.7433-4.019-2.7433H8.44444c-1.77486 0-3.30673 1.1216-4.01904 2.7433C3.52331 14.8161 3 13.2166 3 11.4999c0-4.76344 4.02944-8.62498 9-8.62498 4.9706 0 9 3.86154 9 8.62498 0 1.7167-.5233 3.3162-1.4254 4.66ZM12 12.4583c-2.20914 0-4-1.7163-4-3.83338 0-2.11709 1.79086-3.83333 4-3.83333 2.2091 0 4 1.71624 4 3.83333 0 2.11708-1.7909 3.83338-4 3.83338Z",clipRule:"evenodd"})})]})}function A({size:e=21,color:t="#000"}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:t,d:"M21.6 17.9997v3.6h-2.28v-3.6c0-.72-3.72-2.52-7.32-2.52-3.59998 0-7.31998 1.8-7.31998 2.52v3.6h-2.28v-3.6c0-3.24 6.36001-4.8 9.59998-4.8 3.24 0 9.6 1.56 9.6 4.8Z"}),(0,a.jsx)("path",{fill:t,d:"M12 4.6799c1.44 0 2.52 1.08 2.52 2.52s-1.08 2.52-2.52 2.52-2.51999-1.08-2.51999-2.52S10.56 4.6799 12 4.6799Zm0-2.28c-2.63999 0-4.79999 2.16-4.79999 4.8 0 2.64 2.16 4.8 4.79999 4.8 2.64 0 4.8-2.16 4.8-4.8 0-2.64-2.16-4.8-4.8-4.8Z"})]})}function y({width:e=14,height:t=13,color:i="#000"}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,fill:"none",viewBox:"0 0 14 13",children:[(0,a.jsx)("path",{d:"m12.9529 11.5688-.3585.32-3.78515-3.37774c-.8367.65778-1.91247 1.06666-3.12768 1.06666C3.09176 9.57772 1 7.71106 1 5.39995c0-2.31112 2.09176-4.17778 4.68157-4.17778 2.5898 0 4.68153 1.86666 4.68153 4.17778 0 1.06666-.45816 2.04444-1.19526 2.79111l3.78506 3.37774Z"}),(0,a.jsx)("path",{fill:i,d:"m12.5944 11.8888-.5178.5802.5178.462.5177-.462-.5177-.5802ZM8.80925 8.51106l.51775-.58018-.48612-.43381-.51221.40268.48058.61131Zm.35859-.32-.55338-.54629-.57451.58197.61015.54449.51774-.58017Zm3.26736 2.79764-.3586.32 1.0355 1.1603.3586-.32-1.0355-1.1603Zm.6769.32L9.327 7.93088 8.29151 9.09123 12.0766 12.469l1.0355-1.1603ZM8.328
28767 7.89975c-.70356.5531-1.61107.90037-2.6471.90037v1.55518c1.3944 0 2.63842-.47048 3.60827-1.23293l-.96117-1.22262Zm-2.6471.90037c-2.24596 0-3.90397-1.5994-3.90397-3.40017H.2224c0 2.82144 2.52552 4.95535 5.45917 4.95535V8.80012ZM1.7776 5.39995c0-1.80078 1.65801-3.40018 3.90397-3.40018V.444568C2.74792.444568.2224 2.5785.2224 5.39995h1.5552Zm3.90397-3.40018c2.24596 0 3.90397 1.5994 3.90397 3.40018h1.55516c0-2.82145-2.52548-4.955382-5.45913-4.955382V1.99977Zm3.90397 3.40018c0 .8361-.35823 1.62401-.97108 2.24482l1.10676 1.09258c.86138-.87253 1.41948-2.04018 1.41948-3.3374H9.58554ZM8.6501 8.77123l3.7851 3.37777 1.0355-1.1603-3.78511-3.37782L8.6501 8.77123Z"})]})}function w(){return en.apply(null,arguments)}function b(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function _(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function E(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(x(e,t))return!1;return!0}function C(e){return void 0===e}function k(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function S(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function L(e,t){var i,n=[],r=e.length;for(i=0;i<r;++i)n.push(t(e[i],i));return n}function M(e,t){for(var i in t)x(t,i)&&(e[i]=t[i]);return x(t,"toString")&&(e.toString=t.toString),x(t,"valueOf")&&(e.valueOf=t.valueOf),e}function N(e,t,i,n){return tw(e,t,i,n,!0).utc()}function T(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){var t=null,i=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=T(e),i=er.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function I(e){var t=N(NaN);return null!=e?M(T(t),e):T(t).userInvalidated=!0,t}er=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var D=w.momentProperties=[],P=!1;function O(e,t){var i,n,r,a=D.length;if(C(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),C(t._i)||(e._i=t._i),C(t._f)||(e._f=t._f),C(t._l)||(e._l=t._l),C(t._strict)||(e._strict=t._strict),C(t._tzm)||(e._tzm=t._tzm),C(t._isUTC)||(e._isUTC=t._isUTC),C(t._offset)||(e._offset=t._offset),C(t._pf)||(e._pf=T(t)),C(t._locale)||(e._locale=t._locale),a>0)for(i=0;i<a;i++)C(r=t[n=D[i]])||(e[n]=r);return e}function B(e){O(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===P&&(P=!0,w.updateOffset(this),P=!1)}function H(e){return e instanceof B||null!=e&&null!=e._isAMomentObject}function $(e){!1===w.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function z(e,t){var i=!0;return M(function(){if(null!=w.deprecationHandler&&w.deprecationHandler(null,e),i){var n,r,a,s=[],l=arguments.length;for(r=0;r<l;r++){if(n="","object"==typeof arguments[r]){for(a in n+=`
288[`+r+"] ",arguments[0])x(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[r];s.push(n)}$(e+`
289Arguments: `+Array.prototype.slice.call(s).join("")+`
290`+Error().stack),i=!1}return t.apply(this,arguments)},t)}var Y={};function V(e,t){null!=w.deprecationHandler&&w.deprecationHandler(e,t),Y[e]||($(t),Y[e]=!0)}function W(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e,t){var i,n=M({},e);for(i in t)x(t,i)&&(_(e[i])&&_(t[i])?(n[i]={},M(n[i],e[i]),M(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)x(e,i)&&!x(t,i)&&_(e[i])&&(n[i]=M({},n[i]));return n}function q(e){null!=e&&this.set(e)}function F(e,t,i){var n=""+Math.abs(e);return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}w.suppressDeprecationWarnings=!1,w.deprecationHandler=null;var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
290|x|X|zz?|ZZ?|.)/g,Q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},Z={};function X(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(Z[e]=r),t&&(Z[t[0]]=function(){return F(r.apply(this,arguments),t[1],t[2])}),i&&(Z[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function J(e,t){return e.isValid()?(G[t=K(t,e.localeData())]=G[t]||function(e){var t,i,n,r=e.match(U);for(i=0,n=r.length;i<n;i++)Z[r[i]]?r[i]=Z[r[i]]:r[i]=(t=r[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var i,a="";for(i=0;i<n;i++)a+=W(r[i])?r[i].call(t,e):r[i];return a}}(t),G[t](e)):e.localeData().invalidDate()}function K(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(Q.lastIndex=0;i>=0&&Q.test(e);)e=e.replace(Q,n),Q.lastIndex=0,i-=1;return e}var ee={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function et(e){return"string"==typeof e?ee[e]||ee[e.toLowerCase()]:void 0}function ei(e){var t,i,n={};for(i in e)x(e,i)&&(t=et(i))&&(n[t]=e[i]);return n}var en,er,ea,es={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},el=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)x(e,t)&&i.push(t);return i},eo=/\d/,ec=/\d\d/,ed=/\d{3}/,eu=/\d{4}/,eh=/[+-]?\d{6}/,em=/\d\d?/,ep=/\d\d\d\d?/,ef=/\d\d\d\d\d\d?/,ev=/\d{1,3}/,eg=/\d{1,4}/,eA=/[+-]?\d{1,6}/,ey=/\d+/,ew=/[+-]?\d+/,eb=/Z|[+-]\d\d:?\d\d/gi,e_=/Z|[+-]\d\d(?::?\d\d)?/gi,ex=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,eE=/^[1-9]\d?/,eC=/^([1-9]\d|\d)/;function ek(e,t,i){ea[e]=W(t)?t:function(e,n){return e&&i?i:t}}function eS(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eL(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eM(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=eL(t)),i}ea={};var eN={};function eT(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),k(t)&&(r=function(e,i){i[t]=eM(e)}),n=e.length,i=0;i<n;i++)eN[e[i]]=r}function ej(e,t){eT(e,function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eI(e){return e%4==0&&e%100!=0||e%400==0}function eD(e){return eI(e)?366:365}X("Y",0,0,function(){var e=this.year();return e<=9999?F(e,4):"+"+e}),X(0,["YY",2],0,function(){return this.year()%100}),X(0,["YYYY",4],0,"year"),X(0,["YYYYY",5],0,"year"),X(0,["YYYYYY",6,!0],0,"year"),ek("Y",ew),ek("YY",em,ec),ek("YYYY",eg,eu),ek("YYYYY",eA,eh),ek("YYYYYY",eA,eh),eT(["YYYYY","YYYYYY"],0),eT("YYYY",function(e,t){t[0]=2===e.length?w.parseTwoDigitYear(e):eM(e)}),eT("YY",function(e,t){t[0]=w.parseTwoDigitYear(e)}),eT("Y",function(e,t){t[0]=parseInt(e,10)}),w.parseTwoDigitYear=function(e){return eM(e)+(eM(e)>68?1900:2e3)};var eP=eO("FullYear",!0);function eO(e,t){return function(i){return null!=i?(eH(this,e,i),w.updateOffset(this,t),this):eB(this,e)}}function eB(e,t){if(!e.isValid())return NaN;var i=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function eH(e,t,i){var n,r,a,s;
290if(!(!e.isValid()||isNaN(i))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}a=e.month(),s=29!==(s=e.date())||1!==a||eI(i)?s:28,r?n.setUTCFullYear(i,a,s):n.setFullYear(i,a,s)}}function e$(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1===i?eI(e)?29:28:31-i%7%2}e3=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},X("M",["MM",2],"Mo",function(){return this.month()+1}),X("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),X("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ek("M",em,eE),ek("MM",em,ec),ek("MMM",function(e,t){return t.monthsShortRegex(e)}),ek("MMMM",function(e,t){return t.monthsRegex(e)}),eT(["M","MM"],function(e,t){t[1]=eM(e)-1}),eT(["MMM","MMMM"],function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);null!=r?t[1]=r:T(i).invalidMonth=e});var ez="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eY=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eV(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=N([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=e3.call(this._shortMonthsParse,s))?r:null:-1!==(r=e3.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=e3.call(this._shortMonthsParse,s))||-1!==(r=e3.call(this._longMonthsParse,s))?r:null:-1!==(r=e3.call(this._longMonthsParse,s))||-1!==(r=e3.call(this._shortMonthsParse,s))?r:null}function eW(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eM(t);else if(!k(t=e.localeData().monthsParse(t)))return e}var i=t,n=e.date();return n=n<29?n:Math.min(n,e$(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,n):e._d.setMonth(i,n),e}function eR(e){return null!=e?(eW(this,e),w.updateOffset(this,!0),this):eB(this,"Month")}function eq(){function e(e,t){return t.length-e.length}var t,i,n,r,a=[],s=[],l=[];for(t=0;t<12;t++)i=N([2e3,t]),n=eS(this.monthsShort(i,"")),r=eS(this.months(i,"")),a.push(n),s.push(r),l.push(r),l.push(n);a.sort(e),s.sort(e),l.sort(e),this._monthsRegex=RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+a.join("|")+")","i")}function eF(e,t,i,n,r,a,s){var l;return e<100&&e>=0?isFinite((l=new Date(e+400,t,i,n,r,a,s)).getFullYear())&&l.setFullYear(e):l=new Date(e,t,i,n,r,a,s),l}function eU(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,i))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eQ(e,t,i){var n=7+t-i;return-((7+eU(e,0,n).getUTCDay()-t)%7)+n-1}function eG(e,t,i,n,r){var a,s,l=1+7*(t-1)+(7+i-n)%7+eQ(e,n,r);return l<=0?s=eD(a=e-1)+l:l>eD(e)?(a=e+1,s=l-eD(e)):(a=e,s=l),{year:a,dayOfYear:s}}function eZ(e,t,i){var n,r,a=eQ(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+eX(r=e.year()-1,t,i):s>eX(e.year(),t,i)?(n=s-eX(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function eX(e,t,i){var n=eQ(e,t,i),r=eQ(e+1,t,i);return(eD(e)-n+r)/7}function eJ(e,t){return e.slice(t,7).concat(e.slice(0,t))}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),ek("w",em,eE),ek("ww",em,ec),ek("W",em,eE),ek("WW",em,ec),ej(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=eM(e)}),X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),ek("d",em),ek("e",em),ek("E",em),ek("dd",function(e,t){return t.weekdaysMinRegex(e)}),ek("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ek("dddd",function(e,t){return t.weekdaysRegex(e)}),ej(["dd","ddd","dddd"],function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:T(i).invalidWeekday=e}),ej(["d","e","E"],function(e,t,i,n){t[n]=eM(e)});var eK="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function e1(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=N([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=e3.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=e3.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=e3.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=e3.call(this._weekdaysParse,s))||-1!==(r=e3.call(this._shortWeekdaysParse,s))||-1!==(r=e3.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=e3.call(this._shortWeekdaysParse,s))||-1!==(r=e3.call(this._weekdaysParse,s))||-1!==(r=e3.call(this._minWeekdaysParse,s))?r:null:-1!==(r=e3.call(this._minWeekdaysParse,s))||-1!==(r=e3.call(this._weekdaysParse,s))||-1!==(r=e3.call(this._shortWeekdaysParse,s))?r:null}function e0(){function e(e,t){return t.length-e.length}var t,i,n,r,a,s=[],l=[],o=[],c=[];for(t=0;t<7;t++)i=N([2e3,1]).day(t),n=eS(this.weekdaysMin(i,"")),r=eS(this.weekdaysShort(i,"")),a=eS(this.weekdays(i,"")),s.push(n),l.push(r),o.push(a),c.push(n),c.push(r),c.push(a);s.sort(e),l.sort(e),o.sort(e),c.sort(e),this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+s.join("|")+")","i")}function e2(){return this.hours()%12||12}function e6(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function e5(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,e2),X("k",["kk",2],0,function(){return this.hours()||24}),X("hmm",0,0,function(){return""+e2.apply(this)+F(this.minutes(),2)}
290),X("hmmss",0,0,function(){return""+e2.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),e6("a",!0),e6("A",!1),ek("a",e5),ek("A",e5),ek("H",em,eC),ek("h",em,eE),ek("k",em,eE),ek("HH",em,ec),ek("hh",em,ec),ek("kk",em,ec),ek("hmm",ep),ek("hmmss",ef),ek("Hmm",ep),ek("Hmmss",ef),eT(["H","HH"],3),eT(["k","kk"],function(e,t,i){var n=eM(e);t[3]=24===n?0:n}),eT(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),eT(["h","hh"],function(e,t,i){t[3]=eM(e),T(i).bigHour=!0}),eT("hmm",function(e,t,i){var n=e.length-2;t[3]=eM(e.substr(0,n)),t[4]=eM(e.substr(n)),T(i).bigHour=!0}),eT("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=eM(e.substr(0,n)),t[4]=eM(e.substr(n,2)),t[5]=eM(e.substr(r)),T(i).bigHour=!0}),eT("Hmm",function(e,t,i){var n=e.length-2;t[3]=eM(e.substr(0,n)),t[4]=eM(e.substr(n))}),eT("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=eM(e.substr(0,n)),t[4]=eM(e.substr(n,2)),t[5]=eM(e.substr(r))});var e3,e4,e7=eO("Hours",!0),e8={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ez,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eK,meridiemParse:/[ap]\.?m?\.?/i},e9={},te={};function tt(e){return e&&e.toLowerCase().replace("_","-")}function ti(e){var t=null;if(void 0===e9[e]&&"u">typeof module&&module&&module.exports&&e&&e.match("^[^/\\\\]*$"))try{t=e4._abbr,function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),tn(t)}catch{e9[e]=null}return e9[e]}function tn(e,t){var i;return e&&((i=C(t)?ta(e):tr(e,t))?e4=i:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),e4._abbr}function tr(e,t){if(null===t)return delete e9[e],null;var i,n=e8;if(t.abbr=e,null!=e9[e])V("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=e9[e]._config;else if(null!=t.parentLocale)if(null!=e9[t.parentLocale])n=e9[t.parentLocale]._config;else{if(null==(i=ti(t.parentLocale)))return te[t.parentLocale]||(te[t.parentLocale]=[]),te[t.parentLocale].push({name:e,config:t}),null;n=i._config}return e9[e]=new q(R(n,t)),te[e]&&te[e].forEach(function(e){tr(e.name,e.config)}),tn(e),e9[e]}function ta(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return e4;if(!b(e)){if(t=ti(e))return t;e=[e]}return function(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=tt(e[a]).split("-")).length,i=(i=tt(e[a+1]))?i.split("-"):null;t>0;){if(n=ti(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,i)>=t-1)break;t--}a++}return e4}(e)}function ts(e){var t,i=e._a;return i&&-2===T(e).overflow&&(t=i[1]<0||i[1]>11?1:i[2]<1||i[2]>e$(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,T(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),T(e)._overflowWeeks&&-1===t&&(t=7),T(e)._overflowWeekday&&-1===t&&(t=8),T(e).overflow=t),e}var tl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,to=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tc=/Z|[+-]\d\d(?::?\d\d)?/,td=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],th=/^\/?Date\((-?\d+)/i,tm=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tf(e){var t,i,n,r,a,s,l=e._i,o=tl.exec(l)||to.exec(l),c=td.length,d=tu.length;if(o){for(T(e).iso=!0,t=0,i=c;t<i;t++)if(td[t][1].exec(o[1])){r=td[t][0],n=!1!==td[t][2];break}if(null==r){e._isValid=!1;return}if(o[3]){for(t=0,i=d;t<i;t++)if(tu[t][1].exec(o[3])){a=(o[2]||" ")+tu[t][0];break}if(null==a){e._isValid=!1;return}}if(!n&&null!=a){e._isValid=!1;return}if(o[4])if(tc.exec(o[4]))s="Z";else{e._isValid=!1;return}e._f=r+(a||"")+(s||""),tA(e)}else e._isValid=!1}function tv(e){var t,i,n,r,a,s,l,o,c,d,u,h=tm.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(a=h[4],s=h[3],l=h[2],o=h[5],c=h[6],d=h[7],u=[(t=parseInt(a,10))<=49?2e3+t:t<=999?1900+t:t,ez.indexOf(s),parseInt(l,10),parseInt(o,10),parseInt(c,10)],d&&u.push(parseInt(d,10)),i=h[1],n=u,r=e,i&&eK.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(T(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=u,e._tzm=function(e,t,i){if(e)return tp[e];if(t)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(h[8],h[9],h[10]),e._d=eU.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function tg(e){var t,i,n,r,a,s,l,o,c,d,u,h,m,p,f,v,g,A,y,b,_,x,E,C,k,S,L=[];if(!e._d){for(y=new Date(w.now()),C=e._useUTC?[y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()]:[y.getFullYear(),y.getMonth(),y.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(i=(t=e)._w).GG||null!=i.W||null!=i.E?(s=1,l=4,u=i.GG,h=t._a[0],m=eZ(tb(),1,4).year,n=u??h??m,r=i.W??1??void 0,((a=i.E??1??void 0)<1||a>7)&&(c=!0)):(s=t._locale._week.dow,l=t._locale._week.doy,d=eZ(tb(),s,l),p=i.gg,f=t._a[0],v=d.year,n=p??f??v,g=i.w,A=d.week,r
290=g??A??void 0,null!=i.d?((a=i.d)<0||a>6)&&(c=!0):null!=i.e?(a=i.e+s,(i.e<0||i.e>6)&&(c=!0)):a=s),r<1||r>eX(n,s,l)?T(t)._overflowWeeks=!0:null!=c?T(t)._overflowWeekday=!0:(o=eG(n,r,a,s,l),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)),null!=e._dayOfYear&&(b=e._a[0],_=C[0],S=b??_??void 0,(e._dayOfYear>eD(S)||0===e._dayOfYear)&&(T(e)._overflowDayOfYear=!0),E=eU(S,0,e._dayOfYear),e._a[1]=E.getUTCMonth(),e._a[2]=E.getUTCDate()),x=0;x<3&&null==e._a[x];++x)e._a[x]=L[x]=C[x];for(;x<7;x++)e._a[x]=L[x]=null==e._a[x]?+(2===x):e._a[x];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eU:eF).apply(null,L),k=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"u">typeof e._w.d&&e._w.d!==k&&(T(e).weekdayMismatch=!0)}}function tA(e){if(e._f===w.ISO_8601)return void tf(e);if(e._f===w.RFC_2822)return void tv(e);e._a=[],T(e).empty=!0;var t,i,n,r,a,s,l,o,c,d,u,h=""+e._i,m=h.length,p=0;for(u=(l=K(e._f,e._locale).match(U)||[]).length,a=0;a<u;a++)o=l[a],(s=(h.match(x(ea,o)?ea[o](e._strict,e._locale):new RegExp(eS(o.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r}))))||[])[0])&&((c=h.substr(0,h.indexOf(s))).length>0&&T(e).unusedInput.push(c),h=h.slice(h.indexOf(s)+s.length),p+=s.length),Z[o]?(s?T(e).empty=!1:T(e).unusedTokens.push(o),null!=s&&x(eN,o)&&eN[o](s,e._a,e,o)):e._strict&&!s&&T(e).unusedTokens.push(o);T(e).charsLeftOver=m-p,h.length>0&&T(e).unusedInput.push(h),e._a[3]<=12&&!0===T(e).bigHour&&e._a[3]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[3]=(t=e._locale,i=e._a[3],null==(n=e._meridiem)?i:null!=t.meridiemHour?t.meridiemHour(i,n):(null!=t.isPM&&((r=t.isPM(n))&&i<12&&(i+=12),r||12!==i||(i=0)),i)),null!==(d=T(e).era)&&(e._a[0]=e._locale.erasConvertYear(d,e._a[0])),tg(e),ts(e)}function ty(e){var t,i,n=e._i,r=e._f;return e._locale=e._locale||ta(e._l),null===n||void 0===r&&""===n?I({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),H(n)?new B(ts(n)):(S(n)?e._d=n:b(r)?function(e){var t,i,n,r,a,s,l=!1,o=e._f.length;if(0===o){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<o;r++)a=0,s=!1,t=O({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],tA(t),j(t)&&(s=!0),a+=T(t).charsLeftOver,a+=10*T(t).unusedTokens.length,T(t).score=a,l?a<n&&(n=a,i=t):(null==n||a<n||s)&&(n=a,i=t,s&&(l=!0));M(e,i||t)}(e):r?tA(e):C(i=(t=e)._i)?t._d=new Date(w.now()):S(i)?t._d=new Date(i.valueOf()):"string"==typeof i?function(e){var t=th.exec(e._i);if(null!==t){e._d=new Date(+t[1]);return}if(tf(e),!1===e._isValid)delete e._isValid,tv(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:w.createFromInputFallback(e))}(t):b(i)?(t._a=L(i.slice(0),function(e){return parseInt(e,10)}),tg(t)):_(i)?function(e){if(!e._d){var t=ei(e._i),i=void 0===t.day?t.date:t.day;e._a=L([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),tg(e)}}(t):k(i)?t._d=new Date(i):w.createFromInputFallback(t),j(e)||(e._d=null),e))}function tw(e,t,i,n,r){var a,s={};return(!0===t||!1===t)&&(n=t,t=void 0),(!0===i||!1===i)&&(n=i,i=void 0),(_(e)&&E(e)||b(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=e,s._f=t,s._strict=n,(a=new B(ts(ty(s))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function tb(e,t,i,n){return tw(e,t,i,n,!1)}w.createFromInputFallback=z("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),w.ISO_8601=function(){},w.RFC_2822=function(){};var t_=z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tb.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I()}),tx=z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tb.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:I()});function tE(e,t){var i,n;if(1===t.length&&b(t[0])&&(t=t[0]),!t.length)return tb();for(i=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](i))&&(i=t[n]);return i}var tC=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tk(e){var t=ei(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,o=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=tC.length;for(t in e)if(x(e,t)&&!(-1!==e3.call(tC,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(i=0;i<r;++i)if(e[tC[i]]){if(n)return!1;parseFloat(e[tC[i]])!==eM(e[tC[i]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*o+1e3*l*3600,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=ta(),this._bubble()}function tS(e){return e instanceof tk}function tL(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tM(e,t){X(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+F(~~(e/60),2)+t+F(~~e%60,2)})}tM("Z",":"),tM("ZZ",""),ek("Z",e_),ek("ZZ",e_),eT(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=tT(e_,e)});var tN=/([\+\-]|\d\d)/gi;function tT(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(i=((r[r.length-1]||[])+"").match(tN)||["-",0,0])[1])+eM(i[2]))?0:"+"===i[0]?n:-n}function tj(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(H(e)||S(e)?e.valueOf():tb(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),w.updateOffset(i,!1),i):tb(e).local()}function tI(e){return-Math.round(e._d.getTimezoneOffset())}function tD(){return!!this.isValid()&&this._isUTC&&0===this._offset}w.updateOffset=function(){};var tP=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tB(e,t){var i,n,r,a,s,l,o=e,c=null;return tS(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:k(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(c=tP.exec(e))?(a="-"===c[1]?-1:1,o={y:0,d:eM(c[2])*a,h:eM(c[3])*a,m:eM(c[4])
290*a,s:eM(c[5])*a,ms:eM(tL(1e3*c[6]))*a}):(c=tO.exec(e))?(a="-"===c[1]?-1:1,o={y:tH(c[2],a),M:tH(c[3],a),w:tH(c[4],a),d:tH(c[5],a),h:tH(c[6],a),m:tH(c[7],a),s:tH(c[8],a)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=tb(o.from),n=tb(o.to),l=i.isValid()&&n.isValid()?(n=tj(n,i),i.isBefore(n)?r=t$(i,n):((r=t$(n,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(o={}).ms=l.milliseconds,o.M=l.months),s=new tk(o),tS(e)&&x(e,"_locale")&&(s._locale=e._locale),tS(e)&&x(e,"_isValid")&&(s._isValid=e._isValid),s}function tH(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function t$(e,t){var i={};return i.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=t-e.clone().add(i.months,"M"),i}function tz(e,t){return function(i,n){var r;return null===n||isNaN(+n)||(V(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),tY(this,tB(i,n),e),this}}function tY(e,t,i,n){var r=t._milliseconds,a=tL(t._days),s=tL(t._months);e.isValid()&&(n=n??!0,s&&eW(e,eB(e,"Month")+s*i),a&&eH(e,"Date",eB(e,"Date")+a*i),r&&e._d.setTime(e._d.valueOf()+r*i),n&&w.updateOffset(e,a||s))}tB.fn=tk.prototype,tB.invalid=function(){return tB(NaN)};var tV=tz(1,"add"),tW=tz(-1,"subtract");function tR(e){return"string"==typeof e||e instanceof String}function tq(e,t){if(e.date()<t.date())return-tq(t,e);var i,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return i=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+i)||0}function tF(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ta(e))&&(this._locale=t),this)}w.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",w.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tU=z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tQ(){return this._locale}function tG(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-126227808e5:new Date(e,t,i).valueOf()}function tZ(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-126227808e5:Date.UTC(e,t,i)}function tX(e,t){return t.erasAbbrRegex(e)}function tJ(){var e,t,i,n,r,a=[],s=[],l=[],o=[],c=this.eras();for(e=0,t=c.length;e<t;++e)i=eS(c[e].name),n=eS(c[e].abbr),r=eS(c[e].narrow),s.push(i),a.push(n),l.push(r),o.push(i),o.push(n),o.push(r);this._erasRegex=RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+l.join("|")+")","i")}function tK(e,t){X(0,[e,e.length],0,t)}function t1(e,t,i,n,r){var a;return null==e?eZ(this,n,r).year:(t>(a=eX(e,n,r))&&(t=a),t0.call(this,e,t,i,n,r))}function t0(e,t,i,n,r){var a=eG(e,t,i,n,r),s=eU(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}X("N",0,0,"eraAbbr"),X("NN",0,0,"eraAbbr"),X("NNN",0,0,"eraAbbr"),X("NNNN",0,0,"eraName"),X("NNNNN",0,0,"eraNarrow"),X("y",["y",1],"yo","eraYear"),X("y",["yy",2],0,"eraYear"),X("y",["yyy",3],0,"eraYear"),X("y",["yyyy",4],0,"eraYear"),ek("N",tX),ek("NN",tX),ek("NNN",tX),ek("NNNN",function(e,t){return t.erasNameRegex(e)}),ek("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eT(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?T(i).era=r:T(i).invalidEra=e}),ek("y",ey),ek("yy",ey),ek("yyy",ey),ek("yyyy",ey),ek("yo",function(e,t){return t._eraYearOrdinalRegex||ey}),eT(["y","yy","yyy","yyyy"],0),eT(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[0]=i._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tK("gggg","weekYear"),tK("ggggg","weekYear"),tK("GGGG","isoWeekYear"),tK("GGGGG","isoWeekYear"),ek("G",ew),e
290k("g",ew),ek("GG",em,ec),ek("gg",em,ec),ek("GGGG",eg,eu),ek("gggg",eg,eu),ek("GGGGG",eA,eh),ek("ggggg",eA,eh),ej(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=eM(e)}),ej(["gg","GG"],function(e,t,i,n){t[n]=w.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),ek("Q",eo),eT("Q",function(e,t){t[1]=(eM(e)-1)*3}),X("D",["DD",2],"Do","date"),ek("D",em,eE),ek("DD",em,ec),ek("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eT(["D","DD"],2),eT("Do",function(e,t){t[2]=eM(e.match(em)[0])});var t2=eO("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),ek("DDD",ev),ek("DDDD",ed),eT(["DDD","DDDD"],function(e,t,i){i._dayOfYear=eM(e)}),X("m",["mm",2],0,"minute"),ek("m",em,eC),ek("mm",em,ec),eT(["m","mm"],4);var t6=eO("Minutes",!1);X("s",["ss",2],0,"second"),ek("s",em,eC),ek("ss",em,ec),eT(["s","ss"],5);var t5=eO("Seconds",!1);for(X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ek("S",ev,eo),ek("SS",ev,ec),ek("SSS",ev,ed),n="SSSS";n.length<=9;n+="S")ek(n,ey);function t3(e,t){t[6]=eM(("0."+e)*1e3)}for(n="S";n.length<=9;n+="S")eT(n,t3);r=eO("Milliseconds",!1),X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var t4=B.prototype;function t7(e){return e}t4.add=tV,t4.calendar=function(e,t){1==arguments.length&&(arguments[0]?(a=arguments[0],H(a)||S(a)||tR(a)||k(a)||(n=b(i=a),r=!1,n&&(r=0===i.filter(function(e){return!k(e)&&tR(i)}).length),n&&r)||function(e){var t,i,n=_(e)&&!E(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(t=0;t<s;t+=1)i=a[t],r=r||x(e,i);return n&&r}(a)||null==a)?(e=arguments[0],t=void 0):function(e){var t,i,n=_(e)&&!E(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=a[t],r=r||x(e,i);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i,n,r,a,s=e||tb(),l=tj(s,this).startOf("day"),o=w.calendarFormat(this,l)||"sameElse",c=t&&(W(t[o])?t[o].call(this,s):t[o]);return this.format(c||this.localeData().calendar(o,this,tb(s)))},t4.clone=function(){return new B(this)},t4.diff=function(e,t,i){var n,r,a;if(!this.isValid()||!(n=tj(e,this)).isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=et(t)){case"year":a=tq(this,n)/12;break;case"month":a=tq(this,n);break;case"quarter":a=tq(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-r)/864e5;break;case"week":a=(this-n-r)/6048e5;break;default:a=this-n}return i?a:eL(a)},t4.endOf=function(e){var t,i;if(void 0===(e=et(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tZ:tG,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-((t+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":t=this._d.valueOf(),t+=6e4-(t%6e4+6e4)%6e4-1;break;case"second":t=this._d.valueOf(),t+=1e3-(t%1e3+1e3)%1e3-1}return this._d.setTime(t),w.updateOffset(this,!0),this},t4.format=function(e){e||(e=this.isUtc()?w.defaultFormatUtc:w.defaultFormat);var t=J(this,e);return this.localeData().postformat(t)},t4.from=function(e,t){return this.isValid()&&(H(e)&&e.isValid()||tb(e).isValid())?tB({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},t4.fromNow=function(e){return this.from(tb(),e)},t4.to=function(e,t){return this.isValid()&&(H(e)&&e.isValid()||tb(e).isValid())?tB({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},t4.toNow=function(e){return this.to(tb(),e)},t4.get=function(e){return W(this[e=et(e)])?this[e]():this},t4.invalidAt=function(){return T(this).overflow},t4.isAfter=function(e,t){var i=H(e)?e:tb(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=et(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},t4.isBefore=function(e,t){var i=H(e)?e:tb(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=et(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}
290,t4.isBetween=function(e,t,i,n){var r=H(e)?e:tb(e),a=H(t)?t:tb(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))},t4.isSame=function(e,t){var i,n=H(e)?e:tb(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=et(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},t4.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},t4.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},t4.isValid=function(){return j(this)},t4.lang=tU,t4.locale=tF,t4.localeData=tQ,t4.max=tx,t4.min=t_,t4.parsingFlags=function(){return M({},T(this))},t4.set=function(e,t){if("object"==typeof e){var i,n=function(e){var t,i=[];for(t in e)x(e,t)&&i.push({unit:t,priority:es[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ei(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(W(this[e=et(e)]))return this[e](t);return this},t4.startOf=function(e){var t,i;if(void 0===(e=et(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tZ:tG,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=((t+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":t=this._d.valueOf(),t-=(t%6e4+6e4)%6e4;break;case"second":t=this._d.valueOf(),t-=(t%1e3+1e3)%1e3}return this._d.setTime(t),w.updateOffset(this,!0),this},t4.subtract=tW,t4.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},t4.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},t4.toDate=function(){return new Date(this.valueOf())},t4.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return 0>i.year()||i.year()>9999?J(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",J(i,"Z")):J(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},t4.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i)},"u">typeof Symbol&&null!=Symbol.for&&(t4[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),t4.toJSON=function(){return this.isValid()?this.toISOString():null},t4.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},t4.unix=function(){return Math.floor(this.valueOf()/1e3)},t4.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},t4.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},t4.eraName=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].name;return""},t4.eraNarrow=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].narrow;return""},t4.eraAbbr=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].abbr;return""},t4.eraYear=function(){var e,t,i,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(i=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-w(r[e].since).year())*i+r[e].offset;return this.year()},t4.year=eP,t4.isLeapYear=function(){return eI(this.year())},t4.weekYear=function(e){return t1.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},t4.isoWeekYear=function(e){return t1.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},t4.quarter=t4.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},t4.month=eR,t4.daysInMonth=function(){return e$(this.year(),this.month())},t4.week=t4.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},t4.isoWeek=t4.isoWeeks=function(e){var t=eZ(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},t4.weeksInYear=function(){var e=this.localeData()._week;return eX(this.year(),e.dow,e.doy)},t4.weeksInWeekYear=function(){var e=this.localeData()._week;return eX(this.weekYear(),e.dow,e.doy)},t4.isoWeeksInYear=function(){return eX(this.year(),1,4)},t4.isoWeeksInISOWeekYear=function(){return eX(this.isoWeekYear(),1,4)},t4.date=t2,t4.day=t4.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=eB(this,"Day");return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},t4.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},t4.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,i=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},t4.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},t4.hour=t4.hours=e7,t4.minute=t4.minutes=t6,t4.second=t4.seconds=t5,t4.millisecond=t4.milliseconds=r,t4.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:tI(this);if("string"==typeof e){if(null===(e=tT(e_,e)))return this}else 16>Math.abs(e)&&!i&&(e*=60);return!this._isUTC&&t&&(n=tI(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?tY(this,tB(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,w.updateOffset(this,!0),this._changeInProgress=null)),this},t4.utc=function(e){return this.utcOffset(0,e)},t4.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tI(this),"m")),this},t4.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tT(eb,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},t4.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tb(e).utcOffset():0,(this.utcOffset()-e)%60==0)},t4.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},t4.isLocal=function(){return!!this.isValid()&&!this._isUTC},t4.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},t4.isUtc=tD,t4.isUTC=tD,t4.zoneAbbr=function(){return this._isUTC?"UTC":""},t4.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},t4.dates=z("dates accessor is deprecated. Use date instead.",t2),t4.months=z("months accessor is deprecated. Use month instead",eR),t4.years=z("years accessor is deprecated. Use year instead",eP),t4.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),t4.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!C(this._isDSTShifted))return this._isDSTShifted;var e,t={};return O(t,this),(t=ty(t))._a?(e=t._isUTC?N(t._a):tb(t._a),this._isDSTShifted=this.isValid()&&function(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)eM(e[n])!==eM(t[n])&&s++;return s+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t8=q.prototype;function t9(e,t,i,n){var r=ta(),a=N().set(n,t);return r[i](a,e)}function ie(e,t,i){if(k(e)&&(t=e,e=void 0),e=e||"",null!=t)return t9(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=t9(e,n,i,"month");return r}function it(e,t,i,n){"boolean"==typeof e||(i=t=e,e=!1),k(t)&&(i=t,t=void 0),t=t||"";var r,a=ta(),s=e?a._week.dow:0,l=[];
vendor: 6,417 bytes, line 290
290if(null!=i)return t9(t,(i+s)%7,n,"day");for(r=0;r<7;r++)l[r]=t9(t,(r+s)%7,n,"day");return l}t8.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return W(n)?n.call(t,i):n},t8.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(U).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},t8.invalidDate=function(){return this._invalidDate},t8.ordinal=function(e){return this._ordinal.replace("%d",e)},t8.preparse=t7,t8.postformat=t7,t8.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return W(r)?r(e,t,i,n):r.replace(/%d/i,e)},t8.pastFuture=function(e,t){var i=this._relativeTime[e>0?"future":"past"];return W(i)?i(t):i.replace(/%s/i,t)},t8.set=function(e){var t,i;for(i in e)x(e,i)&&(W(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t8.eras=function(e,t){var i,n,r,a=this._eras||ta("en")._eras;for(i=0,n=a.length;i<n;++i)switch("string"==typeof a[i].since&&(r=w(a[i].since).startOf("day"),a[i].since=r.valueOf()),typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":r=w(a[i].until).startOf("day").valueOf(),a[i].until=r.valueOf()}return a},t8.erasParse=function(e,t,i){var n,r,a,s,l,o=this.eras();for(e=e.toUpperCase(),n=0,r=o.length;n<r;++n)if(a=o[n].name.toUpperCase(),s=o[n].abbr.toUpperCase(),l=o[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[n];break;case"NNNN":if(a===e)return o[n];break;case"NNNNN":if(l===e)return o[n]}else if([a,s,l].indexOf(e)>=0)return o[n]},t8.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?w(e.since).year():w(e.since).year()+(t-e.offset)*i},t8.erasAbbrRegex=function(e){return x(this,"_erasAbbrRegex")||tJ.call(this),e?this._erasAbbrRegex:this._erasRegex},t8.erasNameRegex=function(e){return x(this,"_erasNameRegex")||tJ.call(this),e?this._erasNameRegex:this._erasRegex},t8.erasNarrowRegex=function(e){return x(this,"_erasNarrowRegex")||tJ.call(this),e?this._erasNarrowRegex:this._erasRegex},t8.months=function(e,t){return e?b(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eY).test(t)?"format":"standalone"][e.month()]:b(this._months)?this._months:this._months.standalone},t8.monthsShort=function(e,t){return e?b(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eY.test(t)?"format":"standalone"][e.month()]:b(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t8.monthsParse=function(e,t,i){var n,r,a;if(this._monthsParseExact)return eV.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=N([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e)||i&&"MMM"===t&&this._shortMonthsParse[n].test(e)||!i&&this._monthsParse[n].test(e))return n},t8.monthsRegex=function(e){return this._monthsParseExact?(x(this,"_monthsRegex")||eq.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=ex),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},t8.monthsShortRegex=function(e){return this._monthsParseExact?(x(this,"_monthsRegex")||eq.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=ex),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},t8.week=function(e){return eZ(e,this._week.dow,this._week.doy).week},t8.firstDayOfYear=function(){return this._week.doy},t8.firstDayOfWeek=function(){return this._week.dow},t8.weekdays=function(e,t){var i=b(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eJ(i,this._week.dow):e?i[e.day()]:i},t8.weekdaysMin=function(e){return!0===e?eJ(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},t8.weekdaysShort=function(e){return!0===e?eJ(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},t8.weekdaysParse=function(e,t,i){var n,r,a;if(this._weekdaysParseExact)return e1.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=N([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e)||i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e)||i&&"dd"===t&&this._minWeekdaysParse[n].test(e)||!i&&this._weekdaysParse[n].test(e))return n},t8.weekdaysRegex=function(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||e0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=ex),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},t8.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||e0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ex),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t8.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||e0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ex),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t8.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)}
vendor: 1,810 bytes, line 290
290,t8.meridiem=function(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"},tn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===eM(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),w.lang=z("moment.lang is deprecated. Use moment.locale instead.",tn),w.langData=z("moment.langData is deprecated. Use moment.localeData instead.",ta);var ii=Math.abs;function ir(e,t,i,n){var r=tB(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function ia(e){return e<0?Math.floor(e):Math.ceil(e)}function is(e){return 4800*e/146097}function il(e){return 146097*e/4800}function io(e){return function(){return this.as(e)}}var ic=io("ms"),id=io("s"),iu=io("m"),ih=io("h"),im=io("d"),ip=io("w"),iv=io("M"),ig=io("Q"),iA=io("y");function iy(e){return function(){return this.isValid()?this._data[e]:NaN}}var iw=iy("milliseconds"),ib=iy("seconds"),i_=iy("minutes"),ix=iy("hours"),iE=iy("days"),iC=iy("months"),ik=iy("years"),iS=Math.round,iL={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function iM(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}var iN=Math.abs;function iT(e){return(e>0)-(e<0)||+e}function ij(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,s,l,o=iN(this._milliseconds)/1e3,c=iN(this._days),d=iN(this._months),u=this.asSeconds();return u?(e=eL(o/60),t=eL(e/60),o%=60,e%=60,i=eL(d/12),d%=12,n=o?o.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",a=iT(this._months)!==iT(u)?"-":"",s=iT(this._days)!==iT(u)?"-":"",l=iT(this._milliseconds)!==iT(u)?"-":"",r+"P"+(i?a+i+"Y":"")+(d?a+d+"M":"")+(c?s+c+"D":"")+(t||e||o?"T":"")+(t?l
290+t+"H":"")+(e?l+e+"M":"")+(o?l+n+"S":"")):"P0D"}var iI=tk.prototype;iI.isValid=function(){return this._isValid},iI.abs=function(){var e=this._data;return this._milliseconds=ii(this._milliseconds),this._days=ii(this._days),this._months=ii(this._months),e.milliseconds=ii(e.milliseconds),e.seconds=ii(e.seconds),e.minutes=ii(e.minutes),e.hours=ii(e.hours),e.months=ii(e.months),e.years=ii(e.years),this},iI.add=function(e,t){return ir(this,e,t,1)},iI.subtract=function(e,t){return ir(this,e,t,-1)},iI.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=et(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+is(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(il(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},iI.asMilliseconds=ic,iI.asSeconds=id,iI.asMinutes=iu,iI.asHours=ih,iI.asDays=im,iI.asWeeks=ip,iI.asMonths=iv,iI.asQuarters=ig,iI.asYears=iA,iI.valueOf=ic,iI._bubble=function(){var e,t,i,n,r,a=this._milliseconds,s=this._days,l=this._months,o=this._data;return a>=0&&s>=0&&l>=0||a<=0&&s<=0&&l<=0||(a+=864e5*ia(il(l)+s),s=0,l=0),o.milliseconds=a%1e3,o.seconds=(e=eL(a/1e3))%60,o.minutes=(t=eL(e/60))%60,o.hours=(i=eL(t/60))%24,s+=eL(i/24),l+=r=eL(is(s)),s-=ia(il(r)),n=eL(l/12),l%=12,o.days=s,o.months=l,o.years=n,this},iI.clone=function(){return tB(this)},iI.get=function(e){return e=et(e),this.isValid()?this[e+"s"]():NaN},iI.milliseconds=iw,iI.seconds=ib,iI.minutes=i_,iI.hours=ix,iI.days=iE,iI.weeks=function(){return eL(this.days()/7)},iI.months=iC,iI.years=ik,iI.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,r,a,s,l,o,c,d,u,h,m,p,f=!1,v=iL;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(v=Object.assign({},iL,t),null!=t.s&&null==t.ss&&(v.ss=t.s-1)),m=this.localeData(),i=!f,n=v,r=tB(this).abs(),a=iS(r.as("s")),s=iS(r.as("m")),l=iS(r.as("h")),o=iS(r.as("d")),c=iS(r.as("M")),d=iS(r.as("w")),u=iS(r.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||o<=1&&["d"]||o<n.d&&["dd",o],null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=i,h[3]=+this>0,h[4]=m,p=iM.apply(null,h),f&&(p=m.pastFuture(+this,p)),m.postformat(p)},iI.toISOString=ij,iI.toString=ij,iI.toJSON=ij,iI.locale=tF,iI.localeData=tQ,iI.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ij),iI.lang=tU,X("X",0,0,"unix"),X("x",0,0,"valueOf"),ek("x",ew),ek("X",/[+-]?\d+(\.\d{1,3})?/),eT("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),eT("x",function(e,t,i){i._d=new Date(eM(e))}),w.version="2.30.1",en=tb,w.fn=t4,w.min=function(){var e=[].slice.call(arguments,0);return tE("isBefore",e)},w.max=function(){var e=[].slice.call(arguments,0);return tE("isAfter",e)},w.now=function(){return Date.now?Date.now():+new Date},w.utc=N,w.unix=function(e){return tb(1e3*e)},w.months=function(e,t){return ie(e,t,"months")},w.isDate=S,w.locale=tn,w.invalid=I,w.duration=tB,w.isMoment=H,w.weekdays=function(e,t,i){return it(e,t,i,"weekdays")},w.parseZone=function(){return tb.apply(null,arguments).parseZone()},w.localeData=ta,w.isDuration=tS,w.monthsShort=function(e,t){return ie(e,t,"monthsShort")},w.weekdaysMin=function(e,t,i){return it(e,t,i,"weekdaysMin")},w.defineLocale=tr,w.updateLocale=function(e,t){if(null!=t){var i,n,r=e8;null!=e9[e]&&null!=e9[e].parentLocale?e9[e].set(R(e9[e]._config,t)):(null!=(n=ti(e))&&(r=n._config),t=R(r,t),null==n&&(t.abbr=e),(i=new q(t)).parentLocale=e9[e],e9[e]=i),tn(e)}else null!=e9[e]&&(null!=e9[e].parentLocale?(e9[e]=e9[e].parentLocale,e===tn()&&tn(e)):null!=e9[e]&&delete e9[e]);return e9[e]},w.locales=function(){return el(e9)},w.weekdaysShort=function(e,t,i){return it(e,t,i,"weekdaysShort")},w.normalizeUnits=et,w.relativeTimeRounding=function(e){return void 0===e?iS:"function"==typeof e&&(iS=e,!0)},w.relativeTimeThreshold=function(e,t){return void 0!==iL[e]&&(void 0===t?iL[e]:(iL[e]=t,"
290s"===e&&(iL.ss=t-1),!0))},w.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},w.prototype=t4,w.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},(0,s.createContext)({});let iD=({iconName:e,mode:t=!1,isSecondary:i})=>{let n={GenericIcon:{light:"#0c0d0e",dark:"#e3e7e7"},LogoIcon:{light:"#2a2522",dark:"#e3e7e7",secondary:{light:"#14b6d1",dark:"#e3e7e7"}},GiftIcon:{light:"#0ec8e3",dark:"#0ec8e3",secondary:{light:"#0c0d0e",dark:"#e3e7e7"}},ScrollArrowIcon:{light:"#0c0d0e",dark:"#7a888b4d",secondary:{light:"#e3e7e7",dark:"#f1f3f3"}},ScrollArrowIconAlt:{light:"var(--Color-Alpha-Bg-button)",dark:"var(--Color-Alpha-Bg-button)",secondary:{light:"#0c0d0e",dark:"#f1f3f3"}},GenericArrowIcon:{light:"rgba(122, 136, 139, 0.08)",dark:"rgba(122, 136, 139, 0.20)",secondary:{light:"#0C0D0E",dark:"#F1F3F3"}},PlayerIcon:{light:"#4b5254",dark:"#f1f3f3"}},r=t?"dark":"light";return i&&n[e].secondary?n[e].secondary[r]:n[e][r]},iP={"search-form":"_search-form_1xkq1_1","search-input":"_search-input_1xkq1_9","search-submit":"_search-submit_1xkq1_34"};function iO({isDarkMode:e=!1}){let[t,i]=(0,s.useState)("");return(0,a.jsxs)("form",{name:"",action:"/cerca/",className:iP["search-form"],children:[(0,a.jsx)("button",{type:"submit",className:iP["search-submit"],"aria-label":"Cerca",children:(0,a.jsx)(y,{width:14,height:13,color:iD({iconName:"GenericIcon",mode:e})})}),(0,a.jsx)("input",{type:"text",name:"qs",placeholder:"Cerca",value:t,className:iP["search-input"],onChange:e=>{i(e.target.value)}})]})}let iB={"main-menu":"_main-menu_14v9y_1",open:"_open_14v9y_22","sidebar-search":"_sidebar-search_14v9y_39","menu-section-header":"_menu-section-header_14v9y_43","menu-theme-toggle":"_menu-theme-toggle_14v9y_60"},iH={"search-form":"_search-form_1e0mi_1","search-input":"_search-input_1e0mi_6","old-version":"_old-version_1e0mi_20","search-submit":"_search-submit_1e0mi_30"};function i$({isDarkMode:e,oldVersion:t=!1,searchUrl:i="https://ilpost.it"}){let[n,r]=(0,s.useState)("");return(0,a.jsxs)("form",{name:"",action:`${i}/cerca/`,className:iH["search-form"],children:[(0,a.jsx)("input",{type:"text",name:"qs",placeholder:"Cerca",value:n,onChange:e=>{r(e.target.value)},className:`${iH["search-input"]} ${t&&iH["old-version"]}`}),(0,a.jsx)("button",{type:"submit",className:iH["search-submit"],"aria-label":"Cerca",children:(0,a.jsx)(y,{width:20,height:18,color:iD({iconName:"GenericIcon",mode:e})})})]})}let iz={"menu-item":"_menu-item_1liii_1","category-menu":"_category-menu_1liii_7"};function iY({uppercase:e,label:t,url:i}){return(0,a.jsx)("a",{href:i,className:`${iz["menu-item"]} ${e?iz["category-menu"]:""}`,children:t})}let iV={"home-menu":"_home-menu_1iom7_1","second-level-menu":"_second-level-menu_1iom7_10"};function iW({items:e}){return(0,a.jsx)("ul",{className:iV["home-menu"],children:e.map(e=>(0,a.jsx)("li",{className:iV["second-level-menu"],children:(0,a.jsx)(iY,{label:e.label,url:e.url})},e.url))})}function iR({size:e=21,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"M12 1C5.95 1 1 5.95 1 12s4.95 11 11 11 11-4.95 11-11S18.05 1 12 1Zm-1.1 19.69C6.61 20.14 3.2 16.4 3.2 12c0-.66.11-1.32.22-1.98L8.7 15.3v1.1c0 1.21.99 2.2 2.2 2.2v2.09Zm7.59-2.75c-.33-.88-1.1-1.54-2.09-1.54h-1.1v-3.3c0-.66-.44-1.1-1.1-1.1H7.6V9.8h2.2c.66 0 1.1-.44 1.1-1.1V6.5h2.2c1.21 0 2.2-.99 2.2-2.2v-.44c3.19 1.32 5.5 4.51 5.5 8.14 0 2.31-.88 4.4-2.31 5.94Z"})})}function iq({size:e=21,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"M12.5 14.8947c2.0643 0 3.6429-1.5052 3.6429-3.4736V4.47368C16.1429 2.50526 14.5643 1 12.5 1c-2.0643 0-3.64286 1.50526-3.64286 3.47368v6.94742c0 1.9684 1.57856 3.4736 3.64286 3.4736Zm0 2.4316c-3.4 0-6.43571-2.4316-6.43571-5.9052H4c0 3.9368 3.27857 7.1789 7.2857 7.7578V23h2.4286v-3.8211C17.7214 18.6 21 15.3579 21 11.4211h-2.0643c0 3.4736-3.0357 5.9052-6.4357 5.9052Z"})})}function iF({size:e=21,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"M20 3.5c1.6569 0 3 1.34315 3 3v11c0 1.6569-1.3431 3-3 3H4c-1.65685 0-3-1.3431-3-3v-11c0-1.65685 1.34315-3 3-3h16Zm0 2H4c-.3423 0-.64444.17199-.8247.43427l8.827 5.39473 8.8496-5.35305C20.6758 5.69036 20.3601 5.5 20 5.5Zm1 2.7239-8.4824 5.1317c-.3196.1934-.7204.1925-1.0391-.0024L3 8.17114V17.5c0 .5523.44772 1 1 1h16c.5523 0 1-.4477 1-1V8.2239Z"})})}function iU({size:e=21,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,d:"M20 2.9918C20 1.8975 19.096 1 17.9932 1H6.00685C4.90117 1 4 1.88821 4 2.9918v18.9006l.00525.108c.07281.7453.89033 1.2597 1.61797.7872L12 18.647l6.3768 4.1406c.7289.4734 1.6232-.0757 1.6232-.8952V2.9918Zm-2.0057.00858c.0021.00093.0057.00252.0057-.00858V20.159l-5.45
29054-3.5431L12 16.2622l-.5446.3537L6 20.158V2.99603C6.00012 2.9996 6.00107 3 6.00685 3H17.9932c.0002 0 .0006.00017.0011.00038ZM6 2.99603V2.9918c0 .00063 0 .00121-.00001.00175-.00001.00096-.00001.00178.00001.00248Z"})})}function iQ({size:e=21,color:t="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:t,fillRule:"evenodd",d:"M16.9671 5.78939C17.0064 3.1706 14.7725 1.03656 12.0136 1c-2.78535.03656-5.01918 2.1706-4.97976 4.80435l-.00003 1.19556H2.5V18.7568c0 1.7911 1.45199 3.2431 3.2431 3.2431h12.5138c1.7911 0 3.2431-1.452 3.2431-3.2431V6.99991h-4.5329V5.78939Zm-2 3.21052v1.63159c0 .5523.4477 1 1 1 .5522 0 1-.4477 1-1V8.99991H19.5v9.75689c0 .6866-.5566 1.2431-1.2431 1.2431H5.7431l-.1271-.0064c-.62684-.0637-1.116-.5931-1.116-1.2367V8.99991h2.53377l-.00004 1.63159c0 .5523.44772 1 1 1 .55229 0 1-.4477 1-1V8.99991h5.93337Zm0-2 .0001-1.22549c.0223-1.49355-1.2952-2.75227-2.9536-2.7746-1.6848.02233-3.00234 1.28105-2.97987 2.78957v1.21052h5.93337Z",clipRule:"evenodd"})})}function iG({color:e="#000"}){return(0,a.jsx)("svg",{width:"20px",height:"19px",viewBox:"0 0 20 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,a.jsx)("g",{id:"Artboard",transform:"translate(-72, -789)",fill:e,fillRule:"nonzero",children:(0,a.jsx)("g",{id:"ICN-Calendar-Outline",transform:"translate(73, 790)",children:(0,a.jsx)("path",{d:"M12.375,-1 C12.9272847,-1 13.375,-0.55228475 13.375,0 L13.375,1 L15.75,1 C17.5086787,1 19,2.24275204 19,3.875 L19,15.125 C19,16.7572691 17.5086885,18 15.75,18 L2.25,18 C0.491283167,18 -1,16.7572774 -1,15.125 L-1,3.875 C-1,2.24274373 0.491293054,1 2.25,1 L4.625,1 L4.625,0 C4.625,-0.55228475 5.07271525,-1 5.625,-1 C6.17728475,-1 6.625,-0.55228475 6.625,0 L6.625,1 L11.375,1 L11.375,0 C11.375,-0.55228475 11.8227153,-1 12.375,-1 Z M17,9 L1,9 L1,15.125 C1,15.5638275 1.52341266,16 2.25,16 L15.75,16 C16.4765633,16 17,15.5638128 17,15.125 L17,9 Z M11.375,3 L6.625,3 L6.625,4 C6.625,4.55228475 6.17728475,5 5.625,5 C5.07271525,5 4.625,4.55228475 4.625,4 L4.625,3 L2.25,3 C1.52342608,3 1,3.43618824 1,3.875 L1,7 L17,7 L17,3.875 C17,3.43620295 16.4765498,3 15.75,3 L13.375,3 L13.375,4 C13.375,4.55228475 12.9272847,5 12.375,5 C11.8227153,5 11.375,4.55228475 11.375,4 L11.375,3 Z"})})})})})}function iZ({color:e="var(--Greyscale-Text-Body)",size:t=24}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:t,height:t,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M1.844 12h2.049m0 7.171 2.049-2.049m5.122 2.049v2.049m5.122-4.098 2.049 2.049M3.893 4.829l2.049 2.049M18.235 12h2.049m-4.098-5.122 2.049-2.049M11.064 2.78V4.83M14.137 12a3.073 3.073 0 1 1-6.146 0 3.073 3.073 0 0 1 6.146 0Z"})})}function iX({color:e="var(--Greyscale-Text-Body)",size:t=24}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:t,height:t,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{fill:e,d:"M10.27 9.984a.75.75 0 0 0 0-1.5v1.5ZM8.254 6.468a.75.75 0 1 0-1.5 0h1.5ZM4.738 8.484a.75.75 0 1 0 0 1.5v-1.5ZM6.754 12a.75.75 0 0 0 1.5 0h-1.5Zm-2.016 4.215.165-.732a.75.75 0 0 0-.784 1.155l.619-.423Zm6.441-11.59.02-.75a.75.75 0 0 0-.605 1.218l.585-.469Zm-.91 3.859a2.016 2.016 0 0 1-2.015-2.016h-1.5a3.516 3.516 0 0 0 3.516 3.516v-1.5ZM6.755 6.468a2.016 2.016 0 0 1-2.016 2.016v1.5a3.516 3.516 0 0 0 3.516-3.516h-1.5ZM4.738 9.984c1.113 0 2.016.903 2.016 2.016h1.5a3.516 3.516 0 0 0-3.516-3.516v1.5ZM8.254 12c0-1.113.902-2.016 2.016-2.016v-1.5A3.516 3.516 0 0 0 6.754 12h1.5Zm11.064 0c0-4.433-3.628-8.008-8.119-8.126l-.04 1.5c3.72.097 6.659 3.047 6.659 6.626h1.5Zm-8.139 8.126c4.623 0 8.139-3.644 8.139-8.126h-1.5c0 3.667-2.858 6.626-6.639 6.626v1.5Zm-7.06-3.488c1.521 2.226 4.199 3.488 7.06 3.488v-1.5c-2.44 0-4.62-1.074-5.822-2.834l-1.238.846Zm.453.308c3.7.838 7.142-.25 8.838-2.747 1.726-2.54 1.43-6.202-1.645-10.044l-1.171.938c2.829 3.534 2.801 6.458 1.575 8.264-1.257 1.85-3.988 2.869-7.266 2.126l-.33 1.463Z"})})}let iJ={"theme-mode-toggle":"_theme-mode-toggle_1ov0a_1",active:"_active_1ov0a_23","theme-mode-toggle__system":"_theme-mode-toggle__system_1ov0a_30","theme-mode-toggle__light":"_theme-mode-toggle__light_1ov0a_37","theme-mode-toggle__dark":"_theme-mode-toggle__dark_1ov0a_43"};function iK({systemText:e="Auto",type:t="light",setTheme:i}
290){let[n,r]=(0,s.useState)(t);(0,s.useEffect)(()=>{r(t)},[t]);let l=e=>{r(e),i(e)};return(0,a.jsxs)("div",{className:iJ["theme-mode-toggle"],children:[(0,a.jsx)("div",{className:`${iJ["theme-mode-toggle__system"]} ${"system"===n?iJ.active:""}`,onClick:()=>l("system"),children:e}),(0,a.jsx)("div",{className:`${iJ["theme-mode-toggle__light"]} ${"light"===n?iJ.active:""}`,onClick:()=>l("light"),children:(0,a.jsx)(iZ,{})}),(0,a.jsx)("div",{className:`${iJ["theme-mode-toggle__dark"]} ${"dark"===n?iJ.active:""}`,onClick:()=>l("dark"),children:(0,a.jsx)(iX,{})})]})}function i1({logged:e,urlLinkIcon:t,subscribeUrl:i="https://abbonati.ilpost.it",homeMenuItems:n,logoutAction:r,menuOpen:l=!0,baseUrl:o,searchUrl:c="https://ilpost.it",isDarkMode:d=!1,type:u="light",setTheme:h,isDarkModeEnabled:m=!1}){let[p,f]=(0,s.useState)("");(0,s.useEffect)(()=>{f(window.location.href)},[]);let v=`${i}/mio-account/wp-logout?redirect_to=${p}`;return(0,a.jsx)("nav",{className:`${iB["main-menu"]} ${l?iB.open:""}`,children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{className:iB["sidebar-search"],children:m&&h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:iB["search-box"],children:(0,a.jsx)(i$,{searchUrl:c,isDarkMode:d})}),(0,a.jsx)("div",{className:iB["menu-theme-toggle"],children:(0,a.jsx)(iK,{setTheme:h,type:u})})]}):(0,a.jsx)(i$,{searchUrl:c,oldVersion:!0})},"sidebar-search"),(0,a.jsxs)("li",{className:iB["menu-section-header"],children:[(0,a.jsxs)("a",{href:o,className:iB.home,children:[(0,a.jsx)(iR,{color:iD({iconName:"GenericIcon",mode:d})}),"Home"]}),(0,a.jsx)(iW,{items:n}),(0,a.jsx)("ul",{id:"menu-navi-main",className:"menu"})]},"menu-world"),(0,a.jsx)("li",{className:iB["menu-section-header"],children:(0,a.jsxs)("a",{href:`${o}/podcasts/`,className:iB.podcast,children:[(0,a.jsx)(iq,{color:iD({iconName:"GenericIcon",mode:d})}),"Podcast"]})},"menu-podcast"),(0,a.jsx)("li",{className:iB["menu-section-header"],children:(0,a.jsxs)("a",{href:`${o}/newsletter`,className:iB.newsletter,children:[(0,a.jsx)(iF,{color:iD({iconName:"GenericIcon",mode:d})}),"Newsletter"]})},"menu-newsletter"),(0,a.jsx)("li",{className:iB["menu-section-header"],children:(0,a.jsxs)("a",{href:`${o}/preferiti/`,className:iB.bookmark,children:[(0,a.jsx)(iU,{color:iD({iconName:"GenericIcon",mode:d})}),"I miei preferiti"]})},"menu-preferiti"),(0,a.jsx)("li",{className:iB["menu-section-header"],children:(0,a.jsxs)("a",{href:`${o}/negozio/`,className:iB.shop,children:[(0,a.jsx)(iQ,{color:iD({iconName:"GenericIcon",mode:d})}),"Shop"]})},"menu-shop"),(0,a.jsx)("li",{className:iB["menu-section-header"],children:(0,a.jsxs)("a",{href:`${o}/calendario/`,className:iB.calendar,children:[(0,a.jsx)(iG,{color:iD({iconName:"GenericIcon",mode:d})}),"Calendario"]})},"menu-calendario"),(0,a.jsxs)("li",{className:iB["menu-section-header"],children:[(0,a.jsxs)("a",{href:t,className:iB["area-personale"],children:[!e&&(0,a.jsx)(A,{color:iD({iconName:"GenericIcon",mode:d})}),e&&(0,a.jsx)(g,{color:iD({iconName:"GenericIcon",mode:d})}),"Area Personale"]}),(0,a.jsxs)("ul",{className:iB.sidebarpersonalarea,children:[!e&&(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:t,children:"Entra"})},"sidebar-personal"),e&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:`${i}/mio-account/`,children:"Area Personale"})},"sidebar-account"),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:`${i}/mio-account/newsletter/`,children:"Newsletter"})},"sidebar-newsletter"),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:`${i}/mio-account/push-mobile/`,children:"Notifiche mobile"})},"sidebar-push"),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:`${i}/mio-account/give-subscription/`,children:"Regala il Post"})},"sidebar-gift"),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:`${i}/mio-account/need-help/`,children:"Hai bisogno di aiuto?"})},"sidebar-help"),(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:v,onClick:e=>{e.preventDefault(),r?(window.location.pathname.indexOf("test")&&console.log("logout"),r(e)):window.location.href=e.currentTarget.href},children:"Esci"})},"sidebar-esci")]},"fragment")]})]},"menu-logged")]})})}let i0={"main-menu":"_main-menu_12sxw_1"};function i2({items:e}){return(0,a.jsx)("nav",{className:i0["main-menu"],children:(0,a.jsx)("ul",{children:e.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)(iY,{label:e.label,url:e.url,uppercase:!0})},`${t}-category-item`))})})}function i6({logged:e,subscriber:t,categories:i,homeMenuItems:n,urlLinkIcon:r,isDarkMode:u,type:m="light",setTheme:f,isDarkModeEnabled:y=!1,baseUrl:w="https://ilpost.it",subscribeUrl:b="https://abbonati.ilpost.it"}
290){let[_,x]=(0,s.useState)(!1),[E,C]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=()=>{C(window.scrollY>96)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("header",{className:`${l["site-header"]} ${E?l.sticky:""} `,children:(0,a.jsxs)("div",{className:l["header-container"],children:[(0,a.jsxs)("div",{className:`col ${l["header-left"]}`,children:[(0,a.jsx)("div",{className:`${l["menu-button"]} ${_?l.open:""}`,onClick:()=>x(!_),children:_?(0,a.jsx)(c,{color:iD({iconName:"GenericIcon",mode:u})}):(0,a.jsx)(o,{color:iD({iconName:"GenericIcon",mode:u})})}),(0,a.jsxs)("div",{className:`${l["header-left-links"]}`,children:[(0,a.jsx)(h,{label:"Newsletter",url:"/newsletter/"}),(0,a.jsx)(h,{label:"Podcast",url:"/podcasts/"}),(0,a.jsx)(h,{label:"Lezioni",url:"/lezioni/"})]}),(0,a.jsx)("div",{className:l["header-search"],children:(0,a.jsx)("div",{className:l["search-box"],children:(0,a.jsx)(iO,{isDarkMode:u})})})]}),(0,a.jsx)("div",{className:l["header-center"],children:(0,a.jsx)("a",{href:"/",className:l.logo,"aria-label":"Il Post",children:(0,a.jsx)(d,{primaryColor:iD({iconName:"LogoIcon",mode:u}),secondaryColor:iD({iconName:"LogoIcon",mode:u,isSecondary:!0})})})}),(0,a.jsxs)("div",{className:l["header-right"],children:[(0,a.jsxs)("div",{className:l["header-right-links"],children:[(0,a.jsx)(p,{label:"Shop",url:"https://abbonati.ilpost.it/negozio/",id:"link_shop_header"}),(0,a.jsx)(p,{label:"Regala",url:"https://abbonati.ilpost.it/regala-il-post/",id:"link_regalo_header"})]}),!t&&(0,a.jsx)("div",{className:l["subscribe-button-container"],children:(0,a.jsx)(v,{})}),(0,a.jsx)("div",{className:l["user-status"],children:e?(0,a.jsx)("a",{href:r,rel:"nofollow",id:"icon_login_header","aria-label":"Vai alla tua area personale",children:(0,a.jsx)(g,{color:iD({iconName:"GenericIcon",mode:u})})}):(0,a.jsx)("a",{href:r,rel:"nofollow",id:"icon_login_header","aria-label":"Accedi",children:(0,a.jsx)(A,{color:iD({iconName:"GenericIcon",mode:u})})})})]}),(0,a.jsx)("div",{className:l["categories-container"],children:(0,a.jsx)("div",{className:l.categories,children:(0,a.jsx)(i2,{items:i})})}),_&&(0,a.jsx)(i1,{homeMenuItems:n,logged:e,urlLinkIcon:r,baseUrl:w,subscribeUrl:b,isDarkMode:u,type:m,setTheme:f,isDarkModeEnabled:y})]})})}},7016:e=>{"use strict";e.exports=URIError},7023:()=>{},7025:e=>{"use strict";e.exports=Math.max},7036:(e,t,i)=>{"use strict";var n=i(5761),r=i(5387);e.exports={formats:i(2236),parse:r,stringify:n}},7043:()=>{},7337:(e,t,i)=>{"use strict";i.d(t,{_:()=>Y});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"label-live":"_label-live_y66gb_1"};function o({title:e="Live"}){return(0,n.jsx)("h3",{className:l["label-live"],children:e})}let c={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function d({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:c["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:c["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let u=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
291  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
292</svg>`,h=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},m=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
293      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
294    </svg>`,p="DISCONNECTED",f=new Set;async function v(e){let t=window;if("CONNECTING"!==p){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){g("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{g("DISCONNECTED");return}if(!n)return void g("DISCONNECTED")}
294let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}function g(e){p!==e&&(p=e,f.forEach(t=>t(e)))}function A(e){return f.add(e),e(p),()=>{f.delete(e)}}function y(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function w(e){let t=y();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let b=!1,_=!1,x=null;A(e=>{"CONNECTED"===e&&function(){if(b)return;b=!0;let e=y();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=x;e&&t&&(_=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),_=!1)})}(),"DISCONNECTED"===e&&(b=!1)});let E=e=>{e&&(e.remove(),e=null)},C=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
295    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
296  </svg>`,k=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
297    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.02 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
298  </svg>`,S=()=>/Apple/i.test(navigator.vendor||""),L=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},M=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,N=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},T={top:10,middle:50,bottom:null},j=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=T[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},I=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
299`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
300`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function D({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.3
30011-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let P=null,O=()=>P||(P=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),B=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:f,handleLock:b,forceHls:T=!1,autoplayPreview:P=!1,link:B,onPlayerEvent:H,customPosterUrl:$,previewVideoUrl:z})=>{let Y=(0,r.useRef)(null),V=(0,r.useRef)(H);V.current=H;let[W,R]=(0,r.useState)(()=>"all"===d),q=i&&!P,F=a&&!P,U=s&&!P,Q=l&&!P,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==f;if((0,r.useEffect)(()=>{Z||R(!!("all"===d||"registered"===d&&f?.logged||"subscriber"===d&&(f?.issubscriber||f?.admin)))},[f,d,Z]),(0,r.useEffect)(()=>{U&&O().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:g("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:g("CONNECTED");break;case n.SESSION_ENDING:g("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:g("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!W&&G,n=Y.current;if(!n||!e)return;n.replaceChildren();let r=z||`${t}/${e}/master.m3u8`,a=!!z&&/\.m3u8(\?|$)/i.test(z),s=$||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,f=null,g=!1,D=!1,B,H,R={enablePipButton:q,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:P,onSeek:(e,t)=>V.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>V.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>V.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>V.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>V.current?.({type:"pipactivate"}),onCastActivate:()=>V.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=f=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:p,onSkip:f,onMuteToggle:g,onPipActivate:A,onCastActivate:y}=r,w=document.createElement("div");w.id="video-player-container",w.className="video-player-container";let b=document.createElement("div");b.className="video-player-wrapper";let _=document.createElement("video");_.id="video-player",_.controls=!1,_.playsInline=!0,_.poster=t,_.className="video-player-element",c&&(_.muted=!0,_.loop=!0,_.autoplay=!0);let x=document.createElement("div");x.className="controls-bar";let E=document.createElement("div");E.className="controls-row";let{bigPlayButton:S}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=u(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(_),{playButton:T,rewindButton:j,forwardButton:I}=((e,t)=>{let i=h(m(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
301    <g fill="${t}">
302      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
302-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
303    </g>
304  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
305    <g fill="${t}">
306      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
307      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
3075.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
308    </g>
309  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(_,f),{volumeContainer:D}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=h(k(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
310    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
311  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
312    <path fill="${t}
312" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
313  </svg>`)(24):a.innerHTML=k(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(_,{hideSlider:c,onMuteToggle:g}),{timeDisplay:P}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=L(e.currentTime),n=L(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(_),{qualityMenu:O,qualityButton:B}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=h(M(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:H,subtitlesButton:$}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
314    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
315    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
316  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
317    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
318  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(_,A),{airplayButton:Y}=(e=>{let t=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
319    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
320    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
321  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(_),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=h(C(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
322    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
323      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
324    </g>
325    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
326      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
327    </g>
328  </svg>`)(24):a.innerHTML=C(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(b,_,p),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=h(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
328" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
329    <div class="cast-modal">
330      <div class="cast-title">Casting to</div>
331      <div class="cast-device">${n}</div>
332
333      <div class="cast-actions">
334        <button class="cast-stop">Interrompi trasmissione</button>
335        <button class="cast-cancel">Annulla</button>
336      </div>
337    </div>
338  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),v(e)},{castButton:i}})({videoUrl:e,onCastActivate:y}),R=document.createElement("div");R.className="control-spacer",E.appendChild(T),E.appendChild(j),E.appendChild(I),E.appendChild(D),E.appendChild(P),E.appendChild(R),a&&E.appendChild(z),E.appendChild(Y),o&&E.appendChild($),s&&E.appendChild(B),E.appendChild(V),l&&E.appendChild(W),x.appendChild(E);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(_,d);x.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=L(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
339`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=N(r),l=N(a);if(e+1<i.length){let n=i[e+1].trim();
339n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(_,q,b,i);b.appendChild(_),c?b.appendChild(D):(S.classList.add("visible"),b.appendChild(S),b.appendChild(x),b.appendChild(O),b.appendChild(H),b.appendChild(F)),w.appendChild(b);let U=()=>{b.hideControlsTimeout&&clearTimeout(b.hideControlsTimeout),_.paused||(b.hideControlsTimeout=window.setTimeout(()=>{x.classList.remove("visible")},1e3))};if(!c){b.onmouseenter=()=>{x.classList.add("visible"),U()},b.onmouseleave=()=>{_.paused?x.classList.add("visible"):x.classList.remove("visible")},b.onmousemove=()=>{x.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;b.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!x.classList.contains("visible"))&&x.classList.add("visible"),U()},{passive:!0}),b.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),b.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(w),c||(_.addEventListener("play",()=>{T.innerHTML=((e=32,t="#f1f1f3")=>`<svg
340  xmlns="http://www.w3.org/2000/svg"
341  width="${e}"
342  height="${e}"
343  fill="none"
344  viewBox="0 0 32 32"
345>
346    <path
347      fill="${t}"
348      fill-rule="evenodd"
349      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
350      clip-rule="evenodd"
351    />
352</svg>`)(32),x.classList.add("visible"),S.classList.remove("visible"),U()}),_.addEventListener("pause",()=>{T.innerHTML=m(32),x.classList.add("visible")}),_.onclick=()=>{_.paused?_.play():_.pause()}),{video:_,playerWrapper:b,qualityButton:B,qualityMenu:O,subtitlesButton:$,subtitlesMenu:H}})(r,s,l,n,R);x=t,U&&O().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),P||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{_||w(!0)}),t.addEventListener("pause",()=>{_||w(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===p&&function(e){let t=y();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>V.current?.({type:"play"})),t.addEventListener("pause",()=>V.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&V.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>V.current?.({type:"ended"}));let a=!1;(H=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),B=A(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(D)return;D=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
353    <div class="cast-box">
354      <div class="cast-text">
355        In riproduzione su<br/>
356        <strong>${n}</strong>
357      </div>
358
359      <button class="cast-disconnect">DISCONNETTI</button>
360    </div>
361  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),E(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(D=!1,E(null))}),J()},J=()=>{if(z&&!a){f.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=f;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=S()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
361if(Array.from(l.textTracks).filter(m).forEach(e=>j(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&j(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${M(24)} Auto`:c.innerHTML=`${M(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>V.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};T?t():S()&&f.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=u(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
361<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),b&&t.addEventListener("click",()=>b(d)),n.appendChild(e)})();else if(P){(!z||a)&&I(r);let e=K(!1);n.appendChild(e),X(e)}else(!z||a)&&I(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{g||(g=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{B?.(),x=null,H?.disconnect(),Y.current&&Y.current.replaceChildren()}},[e,t,q,F,U,Q,o,c,P,W,$,z]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(D,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:Y,className:"video-player-embed","data-video-id":e});return P&&B?(0,n.jsx)("a",{href:B,className:"video-player-embed-link",children:X}):X},H={"loading-container":"_loading-container_shx50_1"};function $(e){return(0,n.jsx)("div",{className:H["loading-container"],children:(0,n.jsx)(D,{size:24,color:e?.color})})}let z={"article-standard-3":"_article-standard-3_11kvr_1","article-content":"_article-content_11kvr_25","article-image":"_article-image_11kvr_63","video-container":"_video-container_11kvr_74","video-loader":"_video-loader_11kvr_98","article-relateds":"_article-relateds_11kvr_103"};function Y({title:e,image:t,caption:i,url:a,relatedsItems:l,isLive:c=!1,video:u,videoUrl:h}){let m=!1;Array.isArray(l)&&l.length&&(m=!0);let{showVideo:p,videoContainerRef:f,isCheckingVideo:v}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(u);return(0,n.jsxs)("article",{className:z["article-standard-3"],children:[(0,n.jsxs)("div",{className:z["article-content"],children:[c&&(0,n.jsx)(o,{}),(0,n.jsx)("a",{href:a,"aria-label":`Leggi l'articolo: ${e}`,children:(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e})})]}),(0,n.jsx)("div",{className:z["article-image"],children:p?(0,n.jsx)("div",{ref:f,className:z["video-container"],children:(0,n.jsx)(B,{videoId:u?.id||"",baseUrl:u?.baseUrl||"",autoplayPreview:!0,link:h,previewVideoUrl:u?.shortVideoUrl,customPosterUrl:u?.customPosterUrl})}):v?(0,n.jsx)("figure",{className:z["video-loader"],children:(0,n.jsx)($,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:a,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:t,alt:i||e,loading:"lazy",decoding:"async"})})})}),m&&(0,n.jsx)("div",{className:z["article-relateds"],"aria-label":"Articoli correlati",children:l?.map((e,t)=>(0,n.jsx)(d,{title:e.summary,url:e.url},t))})]})}},7379:e=>{"use strict";e.exports=Function.prototype.apply},7540:(e,t,i)=>{"use strict";i.d(t,{L:()=>l});var n=i(6029);let r={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function a({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:a=400,classLimitText:s,color:l="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:r["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:a,color:l}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${r["article-paragraph"]} ${s&&r[`article-paragraph-${s}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:a,color:l},children:e})})}let s={"article-virgolette":"_article-virgolette_8bffm_2"};function l({title:e,summary:t,url:i}
361){return(0,n.jsx)("article",{className:s["article-virgolette"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)("h2",{children:"Virgolette"}),(0,n.jsx)("h3",{children:e}),(0,n.jsx)(a,{fontSize:16,lineHeight:20,fontWeight:400,text:t})]})})}},7654:(e,t,i)=>{"use strict";var n=i(1652);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},7684:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},7799:(e,t,i)=>{"use strict";i.d(t,{_:()=>W});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
361olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-live":"_label-live_y66gb_1"};function d({title:e="Live"}){return(0,n.jsx)("h3",{className:c["label-live"],children:e})}let u={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function h({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:u["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:u["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let m=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
362  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
363</svg>`,p=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},f=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
364      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
365    </svg>`,v="DISCONNECTED",g=new Set;async function A(e){let t=window;if("CONNECTING"!==v){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){y("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{y("DISCONNECTED");return}if(!n)return void y("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}function y(e){v!==e&&(v=e,g.forEach(t=>t(e)))}function w(e){return g.add(e),e(v),()=>{g.delete(e)}}function b(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function _(e){let t=b();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let x=!1,E=!1,C=null;w(e=>{"CONNECTED"===e&&function(){if(x)return;x=!0;let e=b();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=C;e&&t&&(E=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),E=!1)})}(),"DISCONNECTED"===e&&(x=!1)});let k=e=>{e&&(e.remove(),e=null)},S=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
366    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
367  </svg>`,L=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
368    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.
36802 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
369  </svg>`,M=()=>/Apple/i.test(navigator.vendor||""),N=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},T=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,j=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},I={top:10,middle:50,bottom:null},D=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=I[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},P=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
370`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
371`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function O({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let B=null,H=()=>B||(B=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");
371i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),$=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:g=!1,autoplayPreview:x=!1,link:I,onPlayerEvent:B,customPosterUrl:$,previewVideoUrl:z})=>{let Y=(0,r.useRef)(null),V=(0,r.useRef)(B);V.current=B;let[W,R]=(0,r.useState)(()=>"all"===d),q=i&&!x,F=a&&!x,U=s&&!x,Q=l&&!x,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==u;if((0,r.useEffect)(()=>{Z||R(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,Z]),(0,r.useEffect)(()=>{U&&H().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:y("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:y("CONNECTED");break;case n.SESSION_ENDING:y("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:y("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!W&&G,n=Y.current;if(!n||!e)return;n.replaceChildren();let r=z||`${t}/${e}/master.m3u8`,a=!!z&&/\.m3u8(\?|$)/i.test(z),s=$||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,y=!1,I=!1,O,B,R={enablePipButton:q,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:x,onSeek:(e,t)=>V.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>V.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>V.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>V.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>V.current?.({type:"pipactivate"}),onCastActivate:()=>V.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:v,onPipActivate:g,onCastActivate:y}=r,w=document.createElement("div");w.id="video-player-container",w.className="video-player-container";let b=document.createElement("div");b.className="video-player-wrapper";let _=document.createElement("video");_.id="video-player",_.controls=!1,_.playsInline=!0,_.poster=t,_.className="video-player-element",c&&(_.muted=!0,_.loop=!0,_.autoplay=!0);let x=document.createElement("div");x.className="controls-bar";let E=document.createElement("div");E.className="controls-row";let{bigPlayButton:C}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=m(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(_),{playButton:k,rewindButton:M,forwardButton:I}=((e,t)=>{let i=p(f(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
372    <g fill="${t}">
373      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
373-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
374    </g>
375  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
376    <g fill="${t}">
377      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
378      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
3785.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
379    </g>
380  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(_,h),{volumeContainer:D}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=p(L(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
381    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
382  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
383    <path fill="${t}
383" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
384  </svg>`)(24):a.innerHTML=L(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(_,{hideSlider:c,onMuteToggle:v}),{timeDisplay:P}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=N(e.currentTime),n=N(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(_),{qualityMenu:O,qualityButton:B}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=p(T(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:H,subtitlesButton:$}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
385    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
386    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
387  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
388    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
389  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(_,g),{airplayButton:Y}=(e=>{let t=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
390    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
391    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
392  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(_),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=p(S(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
393    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
394      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
395    </g>
396    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
397      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
398    </g>
399  </svg>`)(24):a.innerHTML=S(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(b,_,u),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=p(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
399" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
400    <div class="cast-modal">
401      <div class="cast-title">Casting to</div>
402      <div class="cast-device">${n}</div>
403
404      <div class="cast-actions">
405        <button class="cast-stop">Interrompi trasmissione</button>
406        <button class="cast-cancel">Annulla</button>
407      </div>
408    </div>
409  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),A(e)},{castButton:i}})({videoUrl:e,onCastActivate:y}),R=document.createElement("div");R.className="control-spacer",E.appendChild(k),E.appendChild(M),E.appendChild(I),E.appendChild(D),E.appendChild(P),E.appendChild(R),a&&E.appendChild(z),E.appendChild(Y),o&&E.appendChild($),s&&E.appendChild(B),E.appendChild(V),l&&E.appendChild(W),x.appendChild(E);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(_,d);x.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=N(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
410`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=j(r),l=j(a);if(e+1<i.length){let n=i[e+1].trim();
410n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(_,q,b,i);b.appendChild(_),c?b.appendChild(D):(C.classList.add("visible"),b.appendChild(C),b.appendChild(x),b.appendChild(O),b.appendChild(H),b.appendChild(F)),w.appendChild(b);let U=()=>{b.hideControlsTimeout&&clearTimeout(b.hideControlsTimeout),_.paused||(b.hideControlsTimeout=window.setTimeout(()=>{x.classList.remove("visible")},1e3))};if(!c){b.onmouseenter=()=>{x.classList.add("visible"),U()},b.onmouseleave=()=>{_.paused?x.classList.add("visible"):x.classList.remove("visible")},b.onmousemove=()=>{x.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;b.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!x.classList.contains("visible"))&&x.classList.add("visible"),U()},{passive:!0}),b.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),b.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(w),c||(_.addEventListener("play",()=>{k.innerHTML=((e=32,t="#f1f1f3")=>`<svg
411  xmlns="http://www.w3.org/2000/svg"
412  width="${e}"
413  height="${e}"
414  fill="none"
415  viewBox="0 0 32 32"
416>
417    <path
418      fill="${t}"
419      fill-rule="evenodd"
420      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
421      clip-rule="evenodd"
422    />
423</svg>`)(32),x.classList.add("visible"),C.classList.remove("visible"),U()}),_.addEventListener("pause",()=>{k.innerHTML=f(32),x.classList.add("visible")}),_.onclick=()=>{_.paused?_.play():_.pause()}),{video:_,playerWrapper:b,qualityButton:B,qualityMenu:O,subtitlesButton:$,subtitlesMenu:H}})(r,s,l,n,R);C=t,U&&H().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),x||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{E||_(!0)}),t.addEventListener("pause",()=>{E||_(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===v&&function(e){let t=b();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>V.current?.({type:"play"})),t.addEventListener("pause",()=>V.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&V.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>V.current?.({type:"ended"}));let a=!1;(B=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),O=w(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(I)return;I=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
424    <div class="cast-box">
425      <div class="cast-text">
426        In riproduzione su<br/>
427        <strong>${n}</strong>
428      </div>
429
430      <button class="cast-disconnect">DISCONNETTI</button>
431    </div>
432  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),k(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(I=!1,k(null))}),J()},J=()=>{if(z&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=M()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
432if(Array.from(l.textTracks).filter(m).forEach(e=>D(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&D(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${T(24)} Auto`:c.innerHTML=`${T(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>V.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};g?t():M()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=m(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
432<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(x){(!z||a)&&P(r);let e=K(!1);n.appendChild(e),X(e)}else(!z||a)&&P(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{y||(y=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{O?.(),C=null,B?.disconnect(),Y.current&&Y.current.replaceChildren()}},[e,t,q,F,U,Q,o,c,x,W,$,z]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(O,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:Y,className:"video-player-embed","data-video-id":e});return x&&I?(0,n.jsx)("a",{href:I,className:"video-player-embed-link",children:X}):X},z={"loading-container":"_loading-container_shx50_1"};function Y(e){return(0,n.jsx)("div",{className:z["loading-container"],children:(0,n.jsx)(O,{size:24,color:e?.color})})}let V={rullo:"_rullo_c99zl_1","article-standard-1":"_article-standard-1_c99zl_1","article-content":"_article-content_c99zl_25","article-image":"_article-image_c99zl_62","video-container":"_video-container_c99zl_73","video-loader":"_video-loader_c99zl_97","article-relateds":"_article-relateds_c99zl_102"};function W({title:e,text:t,image:i,caption:a,url:l,relatedsItems:c,template_related:u,isLive:m=!1,video:p,videoUrl:f}){let v=!1;Array.isArray(c)&&c.length&&(v=!0);let{showVideo:g,videoContainerRef:A,isCheckingVideo:y}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(p);return(0,n.jsxs)("article",{className:`${V.rullo} ${V["article-standard-1"]}`,children:[(0,n.jsxs)("div",{className:V["article-content"],children:[m&&(0,n.jsx)(d,{}),(0,n.jsxs)("a",{href:l,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]}),(0,n.jsx)("div",{className:V["article-image"],children:g?(0,n.jsx)("div",{ref:A,className:V["video-container"],children:(0,n.jsx)($,{videoId:p?.id||"",baseUrl:p?.baseUrl||"",autoplayPreview:!0,link:f,previewVideoUrl:p?.shortVideoUrl,customPosterUrl:p?.customPosterUrl})}):y?(0,n.jsx)("figure",{className:V["video-loader"],children:(0,n.jsx)(Y,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:l,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:a||e,loading:"lazy",decoding:"async"})})})}),u&&""!==u&&!!c?.length&&v&&(0,n.jsx)("div",{className:V["article-relateds"],"aria-label":"Articoli correlati",children:c?.map((e,t)=>(0,n.jsx)(h,{title:e.title,summary:e.summary,url:e.url},t))})]})}},7978:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7997:()=>{},8162:(e,t,i)=>{"use strict";i.d(t,{w:()=>o});var n=i(6029);
432let r={footer:"_footer_ox929_1",container:"_container_ox929_19","footer-row":"_footer-row_ox929_26","col-logo":"_col-logo_ox929_50","col-menu":"_col-menu_ox929_72","col-text":"_col-text_ox929_127","col-meta":"_col-meta_ox929_147"},a={"subscribe-button":"_subscribe-button_19e5e_1"};function s({url:e="https://abbonati.ilpost.it"}){return(0,n.jsx)("a",{href:e,id:"button_abbonamento_header","data-ga":"click","data-ga-event":"button_abbonamento",className:a["subscribe-button"],"aria-label":"Abbonati al Post",children:"Abbonati"})}function l({width:e=214,height:t=76,primaryColor:i="#2A2522",secondaryColor:r="#14B6D1"}){return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,fill:"none",viewBox:"0 0 214 76",children:[(0,n.jsx)("path",{fill:i,d:"M97.4012 59.6176c-1.5931.7261-3.3543 1.0896-5.2845 1.0896-1.9294 0-3.691-.3742-5.2832-1.1253-1.593-.7498-2.9561-1.7532-4.0892-3.0129-1.1348-1.2575-2.0148-2.7084-2.6429-4.3561-.6268-1.6439-.9396-3.3863-.9396-5.2253v-.1459c0-1.839.2999-3.5819.9036-5.2265.6023-1.6447 1.4712-3.0853 2.6047-4.3196 1.1352-1.2347 2.4867-2.2144 4.0548-2.941 1.5677-.7256 3.3174-1.0887 5.2481-1.0887 1.9294 0 3.691.3756 5.284 1.1262 1.5922.7511 2.967 1.7541 4.125 3.0116 1.157 1.2588 2.051 2.7123 2.678 4.3566.627 1.6451.942 3.388.942 5.2273v.1447c0 1.8398-.315 3.5814-.942 5.2253-.627 1.6464-1.496 3.0865-2.605 4.3203-1.111 1.2343-2.4612 2.2145-4.0538 2.9397Zm-16.219 11.7243c3.3199 1.3794 6.9285 2.0698 10.8272 2.0698 3.897 0 7.5056-.6904 10.8256-2.0698 3.321-1.3789 6.209-3.2665 8.662-5.6614 2.454-2.3958 4.367-5.2024 5.739-8.4212 1.371-3.2183 2.058-6.6429 2.058-10.2717v-.1459c0-3.6292-.687-7.0413-2.058-10.2364-1.372-3.1942-3.26-5.9759-5.666-8.3475-2.408-2.3708-5.27-4.2476-8.59-5.6262-3.3199-1.3798-6.9286-2.0689-10.8268-2.0689-3.897 0-7.5061.6891-10.826 2.0689-3.3212 1.3786-6.2078 3.2662-8.6628 5.6615-2.4536 2.3962-4.3667 5.2028-5.7379 8.4224-1.3717 3.2179-2.0569 6.6417-2.0569 10.2721v.1447c0 3.6297.6852 7.0418 2.0569 10.2356 1.3712 3.1937 3.2589 5.978 5.6663 8.3492 2.4052 2.3716 5.269 4.2459 8.5894 5.6248ZM47.2315 45.0853c-1.4262 1.1732-3.3937 1.7596-5.9035 1.7596h-6.6635v-13.284h6.5903c2.5589 0 4.5505.563 5.9767 1.6871 1.4229 1.124 2.1354 2.7649 2.1354 4.9189v.144c0 2.0112-.7125 3.603-2.1354 4.7744Zm-4.8901-23.0942H20.6136v49.9922h14.0509V57.6995h6.9528c3.1375 0 6.0473-.3801 8.7281-1.1423 2.6791-.76 4.9844-1.9035 6.9161-3.4275 1.9309-1.5236 3.4398-3.4043 4.5273-5.6421 1.0857-2.2375 1.6299-4.8329 1.6299-7.7842v-.1437c0-2.7607-.496-5.2362-1.4866-7.427-.9893-2.1896-2.4018-4.036-4.2366-5.535-1.8348-1.5002-4.0563-2.642-6.663-3.4279-2.6067-.7864-5.5041-1.1787-8.6911-1.1787ZM186.161 34.1319h-15.212V21.9911h44.471v12.1408h-15.209v37.8514h-14.05V34.1319ZM6.31675 26.2761H.587891v-4.285H6.31675v4.285Zm0 15.7119H.587891V29.1328H6.31675V41.988Zm2.86443 0H14.91V21.9911H9.18118V41.988Z"}),(0,n.jsx)("path",{fill:r,d:"M148.429.565918c5.481 0 10.745 1.928282 14.534 5.353812 3.524 3.1847 5.782 7.65907 5.782 13.09737 0 6.7917-2.933 9.8388-5.426 12.4056-1.14 1.1735-2.201 2.2228-2.719 3.5733 2.816.7018 5.351 2.3119 7.214 4.4867 1.986 2.3192 3.207 5.2772 3.207 8.4561 0 7.7388-3.682 11.1072-8.971 15.8219-3.6 3.209-7.949 7.08-12.275 13.6173-.138.2083-.273.4156-.407.6219-.198-.1544-.392-.2981-.58-.4301-4.251-2.9837-14.867-6.3957-19.859-6.3957-2.371 0-3.612.9484-4.752 2.9197l-.162.2885-3.121-.931c4.081-5.2237 7.861-10.8997 10.769-16.917-2.714-1.4074-5.079-3.1242-6.725-5.3464-1.536-2.0742-2.458-4.5867-2.458-7.7075 0-6.7911 4.354-11.0115 9.371-14.9337l.369-.2865.883-.6793 1.425-1.0868c3.854-2.9448 7.659-5.9653 9.458-10.2652.159-.3802.301-.7653.426-1.1542.247.3306.503.6539.765.9694 2.568 3.0939 5.946 5.7251 9.969 5.7251 2.272 0 4.525-.6243 6.117-1.9913 1.322-1.1354 2.164-2.7906 2.164-5.0017 0-3.261-1.679-5.68339-4.014-7.39643-3.211-2.35624-7.657-3.40072-10.984-3.40072-3.874 0-7.717 1.11069-10.643 3.0501-2.649 1.75569-4.551 4.19485-4.946 7.12065-.231 1.7185.419 3.0888 1.302 4.0578.89.976 2.238 1.2772 3.727 1.2772.412 0 .813-.0231 1.197-.0769-.149.4291-.354.8464-.622 1.2289-1.059 1.5152-2.938 2.242-4.154 2.242-1.911 0-3.209-.731-4.08-1.7318-1.189-1.366-1.565-3.2848-1.533-4.6485.111-4.7497 2.281-8.68312 5.754-11.45955 3.562-2.84756 8.511-4.473032 13.998-4.473032ZM146.886 46.4527c-2.697 0-5.364 1.1485-7.666 2.9063-2.27 1.7331-4.189 4.0637-5.436 6.5263 7.844.2861 15.211 3.5041 21.913 7.775.794-1.3684 1.002-3.0693 1.002-4.6016 0-3.4358-.906-6.8495-2.82-9.2704-1.603-2.027-3.922-3.3356-6.993-3.3356Zm-10.518-18.6415c-.323.2605-.553.6022-.719.9815-.35.7988-.433 1.7584-.433 2.6181 0 3.0199 1.151 6.2814 3.136 8.6771 1.716 2.0704 4.065 3.4969 6.851 3.4969 2.464 0 4.896-1.1718 6.976-2.8735 1.861-1.522 3.445-3.475 4.52-5.45-1.377.5-2.958.7224-4.44.7224
432-5.943 0-11.899-3.7955-15.891-8.1725Z"})]})}function o({logged:e=!1,subscriber:t=!1,adv:i,cookieProvider:a="onetrust"}){return(0,n.jsx)("footer",{className:`footer-minimal ${r.footer}`,children:(0,n.jsx)("div",{className:r.container,children:(0,n.jsxs)("div",{className:r["footer-row"],children:[(0,n.jsx)("div",{className:r["col-logo"],children:(0,n.jsx)("a",{href:"/",className:r.logo,"aria-label":"Il Post",children:(0,n.jsx)(l,{width:102,height:36})})}),(0,n.jsx)("div",{className:r["col-menu"],children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/chi-siamo/",children:"Chi siamo"})}),i&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:i.link,rel:"nofollow noreferrer",target:"_blank",children:i.text})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/privacy/",children:"Privacy"})}),(0,n.jsxs)("li",{children:["onetrust"==a&&(0,n.jsx)("a",{href:"#",className:"ot-sdk-show-settings",children:"Gestisci le preferenze"}),"iubenda"==a&&(0,n.jsx)("a",{href:"#",className:"iubenda-banner-link",children:"Gestisci le preferenze"})]}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/condizioni-generali/",children:"Condizioni d'uso"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/dichiarazione-di-accessibilita/",children:"Dichiarazione di accessibilit\xe0"})})]})}),(0,n.jsx)("p",{className:r["col-text"],children:"Il Post \xe8 una testata registrata presso il Tribunale di Milano, 419 del 28 settembre 2009 - ISSN 2610-9980"}),(0,n.jsx)("div",{className:r["col-meta"],children:(e&&!t||!e)&&(0,n.jsx)(s,{})})]})})})}},8165:()=>{},8214:()=>{},8316:()=>{},8353:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-bits":"_article-bits_9aq0l_1","article-content":"_article-content_9aq0l_22","article-image":"_article-image_9aq0l_38"};function o({title:e,image:t,url:i,caption:r}){return(0,n.jsx)("article",{className:l["article-bits"],children:(0,n.jsxs)("a",{href:i,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)("div",{className:l["article-content"],children:(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e})}),(0,n.jsx)("div",{className:l["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:t,alt:r||e,loading:"lazy"})})})]})})}},8359:()=>{},8414:(e,t,i)=>{"use strict";i.d(t,{N:()=>U});var n=i(6029),r=i(5729);let a={"article-open-standard":"_article-open-standard_12km2_1","with-relateds":"_with-relateds_12km2_22","article-content":"_article-content_12km2_35","article-link":"_article-link_12km2_40","article-image":"_article-image_12km2_57","video-container":"_video-container_12km2_68","video-loader":"_video-loader_12km2_93","article-container":"_article-container_12km2_98","article-relateds":"_article-relateds_12km2_125","article-live-items":"_article-live-items_12km2_141"},s={"article-title":"_article-title_tdzen_7"};function l({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:s["article-title"],style:{fontSize:o?a:i,fontWeight:l},children:t})}let o={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function c({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
432olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:o["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${o["article-paragraph"]} ${a&&o[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let d={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function u({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:d["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:d["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let h={"label-live":"_label-live_y66gb_1"};function m({title:e="Live"}){return(0,n.jsx)("h3",{className:h["label-live"],children:e})}let p={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function f({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:p["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:p["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let v={"single-live-item":"_single-live-item_j9dqo_1"};function g({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:v["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:v["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let A=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
433  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
434</svg>`,y=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},w=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
435      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
436    </svg>`,b="DISCONNECTED",_=new Set;async function x(e){let t=window;if("CONNECTING"!==b){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){E("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{E("DISCONNECTED");return}if(!n)return void E("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}function E(e){b!==e&&(b=e,_.forEach(t=>t(e)))}function C(e){return _.add(e),e(b),()=>{_.delete(e)}}function k(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function S(e){let t=k();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let L=!1,M=!1,N=null;C(e=>{"CONNECTED"===e&&function(){if(L)return;L=!0;let e=k();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=N;e&&t&&(M=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),M=!1)})}(),"DISCONNECTED"===e&&(L=!1)});let T=e=>{e&&(e.remove(),e=null)},j=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
437    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
438  </svg>`,I=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
439    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.
43902 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
440  </svg>`,D=()=>/Apple/i.test(navigator.vendor||""),P=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},O=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,B=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},H={top:10,middle:50,bottom:null},$=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=H[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},z=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
441`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
442`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function Y({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let V=null,W=()=>V||(V=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");
442i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),R=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:m=!1,autoplayPreview:p=!1,link:f,onPlayerEvent:v,customPosterUrl:g,previewVideoUrl:_})=>{let L=(0,r.useRef)(null),H=(0,r.useRef)(v);H.current=v;let[V,R]=(0,r.useState)(()=>"all"===d),q=i&&!p,F=a&&!p,U=s&&!p,Q=l&&!p,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==u;if((0,r.useEffect)(()=>{Z||R(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,Z]),(0,r.useEffect)(()=>{U&&W().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:E("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:E("CONNECTED");break;case n.SESSION_ENDING:E("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:E("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!V&&G,n=L.current;if(!n||!e)return;n.replaceChildren();let r=_||`${t}/${e}/master.m3u8`,a=!!_&&/\.m3u8(\?|$)/i.test(_),s=g||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,f=!1,v=!1,E,Y,R={enablePipButton:q,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:p,onSeek:(e,t)=>H.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>H.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>H.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>H.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>H.current?.({type:"pipactivate"}),onCastActivate:()=>H.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:m,onPipActivate:p,onCastActivate:f}=r,v=document.createElement("div");v.id="video-player-container",v.className="video-player-container";let g=document.createElement("div");g.className="video-player-wrapper";let b=document.createElement("video");b.id="video-player",b.controls=!1,b.playsInline=!0,b.poster=t,b.className="video-player-element",c&&(b.muted=!0,b.loop=!0,b.autoplay=!0);let _=document.createElement("div");_.className="controls-bar";let E=document.createElement("div");E.className="controls-row";let{bigPlayButton:C}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=A(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(b),{playButton:k,rewindButton:S,forwardButton:L}=((e,t)=>{let i=y(w(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
443    <g fill="${t}">
444      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
444-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
445    </g>
446  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
447    <g fill="${t}">
448      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
449      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
4495.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
450    </g>
451  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(b,h),{volumeContainer:M}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=y(I(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
452    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
453  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
454    <path fill="${t}
454" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
455  </svg>`)(24):a.innerHTML=I(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(b,{hideSlider:c,onMuteToggle:m}),{timeDisplay:N}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=P(e.currentTime),n=P(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(b),{qualityMenu:T,qualityButton:D}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=y(O(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:H,subtitlesButton:$}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
456    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
457    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
458  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
459    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
460  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(b,p),{airplayButton:Y}=(e=>{let t=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
461    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
462    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
463  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(b),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=y(j(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
464    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
465      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
466    </g>
467    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
468      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
469    </g>
470  </svg>`)(24):a.innerHTML=j(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(g,b,u),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=y(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
470" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
471    <div class="cast-modal">
472      <div class="cast-title">Casting to</div>
473      <div class="cast-device">${n}</div>
474
475      <div class="cast-actions">
476        <button class="cast-stop">Interrompi trasmissione</button>
477        <button class="cast-cancel">Annulla</button>
478      </div>
479    </div>
480  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),x(e)},{castButton:i}})({videoUrl:e,onCastActivate:f}),R=document.createElement("div");R.className="control-spacer",E.appendChild(k),E.appendChild(S),E.appendChild(L),E.appendChild(M),E.appendChild(N),E.appendChild(R),a&&E.appendChild(z),E.appendChild(Y),o&&E.appendChild($),s&&E.appendChild(D),E.appendChild(V),l&&E.appendChild(W),_.appendChild(E);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(b,d);_.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=P(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
481`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=B(r),l=B(a);if(e+1<i.length){let n=i[e+1].trim();
481n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(b,q,g,i);g.appendChild(b),c?g.appendChild(M):(C.classList.add("visible"),g.appendChild(C),g.appendChild(_),g.appendChild(T),g.appendChild(H),g.appendChild(F)),v.appendChild(g);let U=()=>{g.hideControlsTimeout&&clearTimeout(g.hideControlsTimeout),b.paused||(g.hideControlsTimeout=window.setTimeout(()=>{_.classList.remove("visible")},1e3))};if(!c){g.onmouseenter=()=>{_.classList.add("visible"),U()},g.onmouseleave=()=>{b.paused?_.classList.add("visible"):_.classList.remove("visible")},g.onmousemove=()=>{_.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;g.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!_.classList.contains("visible"))&&_.classList.add("visible"),U()},{passive:!0}),g.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),g.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(v),c||(b.addEventListener("play",()=>{k.innerHTML=((e=32,t="#f1f1f3")=>`<svg
482  xmlns="http://www.w3.org/2000/svg"
483  width="${e}"
484  height="${e}"
485  fill="none"
486  viewBox="0 0 32 32"
487>
488    <path
489      fill="${t}"
490      fill-rule="evenodd"
491      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
492      clip-rule="evenodd"
493    />
494</svg>`)(32),_.classList.add("visible"),C.classList.remove("visible"),U()}),b.addEventListener("pause",()=>{k.innerHTML=w(32),_.classList.add("visible")}),b.onclick=()=>{b.paused?b.play():b.pause()}),{video:b,playerWrapper:g,qualityButton:D,qualityMenu:T,subtitlesButton:$,subtitlesMenu:H}})(r,s,l,n,R);N=t,U&&W().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),p||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{M||S(!0)}),t.addEventListener("pause",()=>{M||S(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===b&&function(e){let t=k();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>H.current?.({type:"play"})),t.addEventListener("pause",()=>H.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&H.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>H.current?.({type:"ended"}));let a=!1;(Y=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),E=C(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(v)return;v=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
495    <div class="cast-box">
496      <div class="cast-text">
497        In riproduzione su<br/>
498        <strong>${n}</strong>
499      </div>
500
501      <button class="cast-disconnect">DISCONNETTI</button>
502    </div>
503  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),T(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(v=!1,T(null))}),J()},J=()=>{if(_&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=D()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
503if(Array.from(l.textTracks).filter(m).forEach(e=>$(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&$(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${O(24)} Auto`:c.innerHTML=`${O(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>H.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};m?t():D()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=A(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
503<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(p){(!_||a)&&z(r);let e=K(!1);n.appendChild(e),X(e)}else(!_||a)&&z(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{f||(f=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{E?.(),N=null,Y?.disconnect(),L.current&&L.current.replaceChildren()}},[e,t,q,F,U,Q,o,c,p,V,g,_]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(Y,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:L,className:"video-player-embed","data-video-id":e});return p&&f?(0,n.jsx)("a",{href:f,className:"video-player-embed-link",children:X}):X},q={"loading-container":"_loading-container_shx50_1"};function F(e){return(0,n.jsx)("div",{className:q["loading-container"],children:(0,n.jsx)(Y,{size:24,color:e?.color})})}function U({title:e,text:t,image:i,caption:s,url:o,relatedsItems:d,template_related:h,isLive:p=!1,video:v,videoUrl:A,derivedInfo:y}){let{showVideo:w,videoContainerRef:b,isCheckingVideo:_}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(v),x="live_items"===h&&y?.live_status!=="close",E=x?a["article-live-items"]:a["article-relateds"],C=y?.live_breadcrumb_logo||y?.live_breadcrumb_titolo||y?.live_breadcrumb_background_color||y?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${a["article-open-standard"]} ${d&&d.length>0?a["with-relateds"]:""}`,children:[(0,n.jsxs)("div",{className:a["article-content"],children:[p&&(C?(0,n.jsx)(u,{logo:y?.live_breadcrumb_logo,backgroundColor:y?.live_breadcrumb_background_color,title:y?.live_breadcrumb_titolo,titleColor:y?.live_breadcrumb_title_color,url:o}):(0,n.jsx)(m,{})),(0,n.jsx)("a",{href:o,className:a["article-link"],"aria-label":`Leggi l'articolo: ${e}`,children:(0,n.jsx)(l,{titleTag:"h1",fontSize:26,fontMobileSize:32,fontWeight:700,text:e})})]}),(0,n.jsx)("div",{className:a["article-image"],children:w?(0,n.jsx)("div",{ref:b,className:a["video-container"],children:(0,n.jsx)(R,{videoId:v?.id||"",baseUrl:v?.baseUrl||"",autoplayPreview:!0,link:A,previewVideoUrl:v?.shortVideoUrl,customPosterUrl:v?.customPosterUrl})}):_?(0,n.jsx)("figure",{className:a["video-loader"],children:(0,n.jsx)(F,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:o,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:s||e})})})}),(0,n.jsx)("div",{className:a["article-container"],children:(0,n.jsx)("a",{href:o,children:(0,n.jsx)(c,{fontSize:14,lineHeight:20,fontWeight:400,text:t})})}),h&&""!==h&&!!d?.length&&(0,n.jsxs)("div",{className:E,"aria-label":"live_items"===h?"Ultimi aggiornamenti":"Articoli correlati",children:[x&&(0,n.jsx)(l,{titleTag:"h2",fontSize:15,fontWeight:700,text:"Gli ultimi aggiornamenti"}),y?.live_status==="close"&&(0,n.jsx)(l,{titleTag:"h2",fontSize:15,fontWeight:700,text:"Aggiornamenti importanti"}),d?.map(e=>{let t="";return null!=h&&"live_items"!==h&&(t="all"===h&&e?.summary||""),x?(0,n.jsx)(g,{title:e.title,url:e.link,date:e.date??"",titleTag:"h3"},e.link):(0,n.jsx)(f,{title:e.title,summary:t,url:e.link,titleTag:y?.live_status==="close"?"h3":"h2"},e.link)})]})]})}},8516:(e,t,i)=>{"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;e.exports=i(4274).call(n,r)},8627:(e,t,i)=>{"use strict";i.d(t,{d:()=>h});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
503olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-live":"_label-live_y66gb_1"};function d({title:e="Live"}){return(0,n.jsx)("h3",{className:c["label-live"],children:e})}let u={"article-foto-small":"_article-foto-small_1i3qa_1","article-image":"_article-image_1i3qa_13","article-content":"_article-content_1i3qa_30"};function h({title:e,text:t,image:i,caption:r,url:a,isLive:l=!1}){return(0,n.jsx)("article",{className:u["article-foto-small"],children:(0,n.jsxs)("a",{href:a,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)("div",{className:u["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:r||e,loading:"lazy",decoding:"async"})})}),(0,n.jsxs)("div",{className:u["article-content"],children:[l&&(0,n.jsx)(d,{"aria-label":"Evento in diretta"}),(0,n.jsx)(s,{titleTag:"h2",fontSize:18,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]})})}},8746:(e,t,i)=>{"use strict";i.d(t,{d:()=>iS,z:()=>iL});var n,r,a=i(6029),s=i(5729);
503let l={IlPostUserModal:"_IlPostUserModal_1lbmt_2",IlPostUserDelete:"_IlPostUserDelete_1lbmt_3",error:"_error_1lbmt_37",checkemail:"_checkemail_1lbmt_76",checktoken:"_checktoken_1lbmt_80",passwordBox:"_passwordBox_1lbmt_84",icon:"_icon_1lbmt_93",stepRegistration:"_stepRegistration_1lbmt_123",checkbox:"_checkbox_1lbmt_151",checkmark:"_checkmark_1lbmt_177","password-info":"_password-info_1lbmt_276",link:"_link_1lbmt_283",IlPostUserModalNoSubscriber:"_IlPostUserModalNoSubscriber_1lbmt_299",IlPostUserModalNoSubscriberInternal:"_IlPostUserModalNoSubscriberInternal_1lbmt_316",plan:"_plan_1lbmt_398",plan_box:"_plan_box_1lbmt_403"};function o({width:e=22,height:t=14,color:i="#000"}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 22 14",preserveAspectRatio:"xMidYMid",children:(0,a.jsx)("path",{fill:i,fillRule:"nonzero",d:"M17.5876533 2.86855929c1.3044933.9751838 2.5732904 2.25044936 3.805869 3.82299307l.0064557.00908857.001.00035007.0349825.05391992.0200921.0398267c.0049032.01093619.0095329.02234167.0137307.03388257.0055684.01508067.0102502.03014029.0141977.04532831l.0088078.04141953c.0025658.01442233.0044186.02919156.0056114.04398801.0010553.01348226.00162.0272042.0016213.04093907l-.0016776.0403918c-.0011416.01487411-.0030356.02990991-.0056195.04486867-.0023538.01304473-.0051488.02608352-.0084619.03900304-.0038674.01552019-.0087169.03121907-.0143708.04672069l-.0071679.01840569-.0078121.01806213c-.0056019.01226308-.0117227.02432319-.0183745.03619231-.0092627.01673101-.0197246.03316972-.0312092.049042l-.0117149.01535035c-3.2203657 4.11108931-6.6879973 6.19166831-10.3936134 6.19166831-1.55441183 0-3.06694811-.3660965-4.53692383-1.0945938l.83223411-.7139619c1.21254805.539911 2.44728263.8085557 3.70468972.8085557 3.2708838 0 6.3883492-1.8178443 9.3609502-5.49967995l.0320281.04032078-.0638597-.08009403c-1.1519515-1.42026728-2.3256517-2.5610028-3.5215995-3.42488582l.7801345-.66710179ZM18.379628.67460438c.1597432.18636704.1583076.45647695.0087635.64041738l-.0629961.0646066L4.32539537 13.3796284c-.20966292.179711-.52531291.1554303-.70502399-.0542326-.15974318-.1863671-.15830762-.456477-.00876349-.6404174l.0629961-.0646066 1.28279626-1.0978571C3.46060105 10.5062906 2.01000688 9.10018102.60638623 7.30833179l-.01171487-.01535035-.02222155-.03365497.02352819.03331446-.028-.042-.0228823-.04285022c-.00544947-.01198519-.01040567-.0241117-.01487278-.03639151-.00576919-.01562151-.0106187-.03132039-.01467112-.04715632-.003128-.01260378-.00592303-.02564257-.0081959-.03876671-.00266484-.01487935-.00455879-.02991515-.00576872-.04497896L.5003873 7.02012205.499978 6.99955767c.00002904-.01366676.00059326-.02705283.00168947-.0403913.00112451-.01460678.00297733-.02937601.00549576-.04407156.00242956-.01362326.00539704-.0274249.00894485-.04109144.00385773-.01524289.0085396-.03030251.01396234-.0451805.00434342-.01174358.00897317-.02314906.01403172-.0343929.00592508-.0131737.01264444-.0264643.02000782-.03952194.00846625-.0151977.01784228-.03001756.02804815-.04438403.00453517-.00617902.00933798-.01261677.014319-.01897164C3.82685224 2.5829457 7.29446437.50364093 10.9999997.50364093c1.7718658 0 3.4893318.47542047 5.1513799 1.42079459L17.674604.62037176c.2096629-.17971107.5253129-.1554303.705024.05423262Zm-7.3796283.82903655c-3.16874498 0-6.19345563 1.70497937-9.08193642 5.1568377L1.637978 6.997991l.07676517.0956414c1.31518165 1.61364422 2.65868759 2.86309449 4.03125682 3.7523375l2.29836178-1.97051931c-.34469999-.54210045-.54436209-1.1854587-.54436209-1.87545053 0-1.93299662 1.56700338-3.5 3.50000002-3.5.8828745 0 1.689399.32689306 2.3051409.86624643l2.0357167-1.7455216c-1.4161437-.74613997-2.8628322-1.11708396-4.3408576-1.11708396Zm3.2589169 4.21728774c.1556233.39619944.2410831.82765532.2410831 1.27907139 0 1.93299663-1.5670034 3.50000004-3.5 3.50000004-.6422932 0-1.24417744-.17301129-1.76159184-.47497291l.82549686-.70618296c.28912855.11683095.60509978.18115583.93609498.18115583 1.3807119 0 2.5-1.11928812 2.5-2.5 0-.19668463-.0227131-.38806433-.0656595-.57165928l.8245764-.70741211Zm-3.2589169-1.22092861c-1.38071189 0-2.50000002 1.11928813-2.50000002 2.5 0 .44085774.11411236.8550631.31441134 1.21469034l3.71982868-3.18869191c-.4235375-.32965671-.9559597-.52599843-1.53424-.52599843Z"})})}function c({show:e=!0,size:t,color:i}){return e?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,a.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.3
50311-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,a.jsx)(a.Fragment,{})}let d={"loading-container":"_loading-container_shx50_1"};function u(e){return(0,a.jsx)("div",{className:d["loading-container"],children:(0,a.jsx)(c,{size:24,color:e?.color})})}function h(){return G.apply(null,arguments)}function m(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function p(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(f(e,t))return!1;return!0}function g(e){return void 0===e}function A(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function w(e,t){var i,n=[],r=e.length;for(i=0;i<r;++i)n.push(t(e[i],i));return n}function b(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,i,n){return th(e,t,i,n,!0).utc()}function x(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function E(e){var t=null,i=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=x(e),i=Z.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function C(e){var t=_(NaN);return null!=e?b(x(t),e):x(t).userInvalidated=!0,t}Z=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),n=i.length>>>0;for(t=0;t<n;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var k=h.momentProperties=[],S=!1;function L(e,t){var i,n,r,a=k.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=x(t)),g(t._locale)||(e._locale=t._locale),a>0)for(i=0;i<a;i++)g(r=t[n=k[i]])||(e[n]=r);return e}function M(e){L(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===S&&(S=!0,h.updateOffset(this),S=!1)}function N(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function T(e){!1===h.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function j(e,t){var i=!0;return b(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,e),i){var n,r,a,s=[],l=arguments.length;for(r=0;r<l;r++){if(n="","object"==typeof arguments[r]){for(a in n+=`
504[`+r+"] ",arguments[0])f(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[r];s.push(n)}T(e+`
505Arguments: `+Array.prototype.slice.call(s).join("")+`
506`+Error().stack),i=!1}return t.apply(this,arguments)},t)}var I={};function D(e,t){null!=h.deprecationHandler&&h.deprecationHandler(e,t),I[e]||(T(t),I[e]=!0)}function P(e){return"u">typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var i,n=b({},e);for(i in t)f(t,i)&&(p(e[i])&&p(t[i])?(n[i]={},b(n[i],e[i]),b(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&p(e[i])&&(n[i]=b({},n[i]));return n}function B(e){null!=e&&this.set(e)}function H(e,t,i){var n=""+Math.abs(e);return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;var $=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
506|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},V={};function W(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(V[e]=r),t&&(V[t[0]]=function(){return H(r.apply(this,arguments),t[1],t[2])}),i&&(V[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(Y[t=q(t,e.localeData())]=Y[t]||function(e){var t,i,n,r=e.match($);for(i=0,n=r.length;i<n;i++)V[r[i]]?r[i]=V[r[i]]:r[i]=(t=r[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var i,a="";for(i=0;i<n;i++)a+=P(r[i])?r[i].call(t,e):r[i];return a}}(t),Y[t](e)):e.localeData().invalidDate()}function q(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;i>=0&&z.test(e);)e=e.replace(z,n),z.lastIndex=0,i-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function U(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function Q(e){var t,i,n={};for(i in e)f(e,i)&&(t=U(i))&&(n[t]=e[i]);return n}var G,Z,X,J={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},K=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i},ee=/\d/,et=/\d\d/,ei=/\d{3}/,en=/\d{4}/,er=/[+-]?\d{6}/,ea=/\d\d?/,es=/\d\d\d\d?/,el=/\d\d\d\d\d\d?/,eo=/\d{1,3}/,ec=/\d{1,4}/,ed=/[+-]?\d{1,6}/,eu=/\d+/,eh=/[+-]?\d+/,em=/Z|[+-]\d\d:?\d\d/gi,ep=/Z|[+-]\d\d(?::?\d\d)?/gi,ef=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ev=/^[1-9]\d?/,eg=/^([1-9]\d|\d)/;function eA(e,t,i){X[e]=P(t)?t:function(e,n){return e&&i?i:t}}function ey(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ew(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eb(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=ew(t)),i}X={};var e_={};function ex(e,t){var i,n,r=t;for("string"==typeof e&&(e=[e]),A(t)&&(r=function(e,i){i[t]=eb(e)}),n=e.length,i=0;i<n;i++)e_[e[i]]=r}function eE(e,t){ex(e,function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)})}function eC(e){return e%4==0&&e%100!=0||e%400==0}function ek(e){return eC(e)?366:365}W("Y",0,0,function(){var e=this.year();return e<=9999?H(e,4):"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),eA("Y",eh),eA("YY",ea,et),eA("YYYY",ec,en),eA("YYYYY",ed,er),eA("YYYYYY",ed,er),ex(["YYYYY","YYYYYY"],0),ex("YYYY",function(e,t){t[0]=2===e.length?h.parseTwoDigitYear(e):eb(e)}),ex("YY",function(e,t){t[0]=h.parseTwoDigitYear(e)}),ex("Y",function(e,t){t[0]=parseInt(e,10)}),h.parseTwoDigitYear=function(e){return eb(e)+(eb(e)>68?1900:2e3)};var eS=eL("FullYear",!0);function eL(e,t){return function(i){return null!=i?(eN(this,e,i),h.updateOffset(this,t),this):eM(this,e)}}function eM(e,t){if(!e.isValid())return NaN;var i=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function eN(e,t,i){var n,r,a,s;
506if(!(!e.isValid()||isNaN(i))){switch(n=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}a=e.month(),s=29!==(s=e.date())||1!==a||eC(i)?s:28,r?n.setUTCFullYear(i,a,s):n.setFullYear(i,a,s)}}function eT(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1===i?eC(e)?29:28:31-i%7%2}eX=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),eA("M",ea,ev),eA("MM",ea,et),eA("MMM",function(e,t){return t.monthsShortRegex(e)}),eA("MMMM",function(e,t){return t.monthsRegex(e)}),ex(["M","MM"],function(e,t){t[1]=eb(e)-1}),ex(["MMM","MMMM"],function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);null!=r?t[1]=r:x(i).invalidMonth=e});var ej="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eI=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eD(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=_([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=eX.call(this._shortMonthsParse,s))?r:null:-1!==(r=eX.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=eX.call(this._shortMonthsParse,s))||-1!==(r=eX.call(this._longMonthsParse,s))?r:null:-1!==(r=eX.call(this._longMonthsParse,s))||-1!==(r=eX.call(this._shortMonthsParse,s))?r:null}function eP(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=eb(t);else if(!A(t=e.localeData().monthsParse(t)))return e}var i=t,n=e.date();return n=n<29?n:Math.min(n,eT(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,n):e._d.setMonth(i,n),e}function eO(e){return null!=e?(eP(this,e),h.updateOffset(this,!0),this):eM(this,"Month")}function eB(){function e(e,t){return t.length-e.length}var t,i,n,r,a=[],s=[],l=[];for(t=0;t<12;t++)i=_([2e3,t]),n=ey(this.monthsShort(i,"")),r=ey(this.months(i,"")),a.push(n),s.push(r),l.push(r),l.push(n);a.sort(e),s.sort(e),l.sort(e),this._monthsRegex=RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+a.join("|")+")","i")}function eH(e,t,i,n,r,a,s){var l;return e<100&&e>=0?isFinite((l=new Date(e+400,t,i,n,r,a,s)).getFullYear())&&l.setFullYear(e):l=new Date(e,t,i,n,r,a,s),l}function e$(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,i))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ez(e,t,i){var n=7+t-i;return-((7+e$(e,0,n).getUTCDay()-t)%7)+n-1}function eY(e,t,i,n,r){var a,s,l=1+7*(t-1)+(7+i-n)%7+ez(e,n,r);return l<=0?s=ek(a=e-1)+l:l>ek(e)?(a=e+1,s=l-ek(e)):(a=e,s=l),{year:a,dayOfYear:s}}function eV(e,t,i){var n,r,a=ez(e.year(),t,i),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+eW(r=e.year()-1,t,i):s>eW(e.year(),t,i)?(n=s-eW(e.year(),t,i),r=e.year()+1):(r=e.year(),n=s),{week:n,year:r}}function eW(e,t,i){var n=ez(e,t,i),r=ez(e+1,t,i);return(ek(e)-n+r)/7}function eR(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),eA("w",ea,ev),eA("ww",ea,et),eA("W",ea,ev),eA("WW",ea,et),eE(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=eb(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),eA("d",ea),eA("e",ea),eA("E",ea),eA("dd",function(e,t){return t.weekdaysMinRegex(e)}),eA("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eA("dddd",function(e,t){return t.weekdaysRegex(e)}),eE(["dd","ddd","dddd"],function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:x(i).invalidWeekday=e}),eE(["d","e","E"],function(e,t,i,n){t[n]=eb(e)});var eq="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eF(e,t,i){var n,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=_([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=eX.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=eX.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=eX.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=eX.call(this._weekdaysParse,s))||-1!==(r=eX.call(this._shortWeekdaysParse,s))||-1!==(r=eX.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=eX.call(this._shortWeekdaysParse,s))||-1!==(r=eX.call(this._weekdaysParse,s))||-1!==(r=eX.call(this._minWeekdaysParse,s))?r:null:-1!==(r=eX.call(this._minWeekdaysParse,s))||-1!==(r=eX.call(this._weekdaysParse,s))||-1!==(r=eX.call(this._shortWeekdaysParse,s))?r:null}function eU(){function e(e,t){return t.length-e.length}var t,i,n,r,a,s=[],l=[],o=[],c=[];for(t=0;t<7;t++)i=_([2e3,1]).day(t),n=ey(this.weekdaysMin(i,"")),r=ey(this.weekdaysShort(i,"")),a=ey(this.weekdays(i,"")),s.push(n),l.push(r),o.push(a),c.push(n),c.push(r),c.push(a);s.sort(e),l.sort(e),o.sort(e),c.sort(e),this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+s.join("|")+")","i")}function eQ(){return this.hours()%12||12}function eG(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eZ(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,eQ),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+eQ.apply(this)+H(this.minutes(),2)}
506),W("hmmss",0,0,function(){return""+eQ.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),eG("a",!0),eG("A",!1),eA("a",eZ),eA("A",eZ),eA("H",ea,eg),eA("h",ea,ev),eA("k",ea,ev),eA("HH",ea,et),eA("hh",ea,et),eA("kk",ea,et),eA("hmm",es),eA("hmmss",el),eA("Hmm",es),eA("Hmmss",el),ex(["H","HH"],3),ex(["k","kk"],function(e,t,i){var n=eb(e);t[3]=24===n?0:n}),ex(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),ex(["h","hh"],function(e,t,i){t[3]=eb(e),x(i).bigHour=!0}),ex("hmm",function(e,t,i){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n)),x(i).bigHour=!0}),ex("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r)),x(i).bigHour=!0}),ex("Hmm",function(e,t,i){var n=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n))}),ex("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[3]=eb(e.substr(0,n)),t[4]=eb(e.substr(n,2)),t[5]=eb(e.substr(r))});var eX,eJ,eK=eL("Hours",!0),e1={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ej,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eq,meridiemParse:/[ap]\.?m?\.?/i},e0={},e2={};function e6(e){return e&&e.toLowerCase().replace("_","-")}function e5(e){var t=null;if(void 0===e0[e]&&"u">typeof module&&module&&module.exports&&e&&e.match("^[^/\\\\]*$"))try{t=eJ._abbr,function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+e),e3(t)}
506catch{e0[e]=null}return e0[e]}function e3(e,t){var i;return e&&((i=g(t)?e7(e):e4(e,t))?eJ=i:"u">typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eJ._abbr}function e4(e,t){if(null===t)return delete e0[e],null;var i,n=e1;if(t.abbr=e,null!=e0[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=e0[e]._config;else if(null!=t.parentLocale)if(null!=e0[t.parentLocale])n=e0[t.parentLocale]._config;else{if(null==(i=e5(t.parentLocale)))return e2[t.parentLocale]||(e2[t.parentLocale]=[]),e2[t.parentLocale].push({name:e,config:t}),null;n=i._config}return e0[e]=new B(O(n,t)),e2[e]&&e2[e].forEach(function(e){e4(e.name,e.config)}),e3(e),e0[e]}function e7(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eJ;if(!m(e)){if(t=e5(e))return t;e=[e]}return function(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=e6(e[a]).split("-")).length,i=(i=e6(e[a+1]))?i.split("-"):null;t>0;){if(n=e5(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,i)>=t-1)break;t--}a++}return eJ}(e)}function e8(e){var t,i=e._a;return i&&-2===x(e).overflow&&(t=i[1]<0||i[1]>11?1:i[2]<1||i[2]>eT(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,x(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),x(e)._overflowWeeks&&-1===t&&(t=7),x(e)._overflowWeekday&&-1===t&&(t=8),x(e).overflow=t),e}var e9=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,te=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tt=/Z|[+-]\d\d(?::?\d\d)?/,ti=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tr=/^\/?Date\((-?\d+)/i,ta=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ts={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tl(e){var t,i,n,r,a,s,l=e._i,o=e9.exec(l)||te.exec(l),c=ti.length,d=tn.length;if(o){for(x(e).iso=!0,t=0,i=c;t<i;t++)if(ti[t][1].exec(o[1])){r=ti[t][0],n=!1!==ti[t][2];break}if(null==r){e._isValid=!1;return}if(o[3]){for(t=0,i=d;t<i;t++)if(tn[t][1].exec(o[3])){a=(o[2]||" ")+tn[t][0];break}if(null==a){e._isValid=!1;return}}if(!n&&null!=a){e._isValid=!1;return}if(o[4])if(tt.exec(o[4]))s="Z";else{e._isValid=!1;return}e._f=r+(a||"")+(s||""),td(e)}else e._isValid=!1}function to(e){var t,i,n,r,a,s,l,o,c,d,u,h=ta.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(a=h[4],s=h[3],l=h[2],o=h[5],c=h[6],d=h[7],u=[(t=parseInt(a,10))<=49?2e3+t:t<=999?1900+t:t,ej.indexOf(s),parseInt(l,10),parseInt(o,10),parseInt(c,10)],d&&u.push(parseInt(d,10)),i=h[1],n=u,r=e,i&&eq.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(x(r).weekdayMismatch=!0,r._isValid=!1,1))return;e._a=u,e._tzm=function(e,t,i){if(e)return ts[e];if(t)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(h[8],h[9],h[10]),e._d=e$.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),x(e).rfc2822=!0}else e._isValid=!1}function tc(e){var t,i,n,r,a,s,l,o,c,d,u,m,p,f,v,g,A,y,w,b,_,E,C,k,S,L,M=[];if(!e._d){for(w=new Date(h.now()),k=e._useUTC?[w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()]:[w.getFullYear(),w.getMonth(),w.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(i=(t=e)._w).GG||null!=i.W||null!=i.E?(s=1,l=4,u=i.GG,m=t._a[0],p=eV(tm(),1,4).year,n=u??m??p,r=i.W??1??void 0,((a=i.E??1??void 0)<1||a>7)&&(c=!0)):(s=t._locale._week.dow,l=t._locale._week.doy,d=eV(tm(),s,l),f=i.gg,v=t._a[0],g=d.year,n=f??v??g,A=i.w,y=d.week,r
506=A??y??void 0,null!=i.d?((a=i.d)<0||a>6)&&(c=!0):null!=i.e?(a=i.e+s,(i.e<0||i.e>6)&&(c=!0)):a=s),r<1||r>eW(n,s,l)?x(t)._overflowWeeks=!0:null!=c?x(t)._overflowWeekday=!0:(o=eY(n,r,a,s,l),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)),null!=e._dayOfYear&&(b=e._a[0],_=k[0],L=b??_??void 0,(e._dayOfYear>ek(L)||0===e._dayOfYear)&&(x(e)._overflowDayOfYear=!0),C=e$(L,0,e._dayOfYear),e._a[1]=C.getUTCMonth(),e._a[2]=C.getUTCDate()),E=0;E<3&&null==e._a[E];++E)e._a[E]=M[E]=k[E];for(;E<7;E++)e._a[E]=M[E]=null==e._a[E]?+(2===E):e._a[E];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?e$:eH).apply(null,M),S=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"u">typeof e._w.d&&e._w.d!==S&&(x(e).weekdayMismatch=!0)}}function td(e){if(e._f===h.ISO_8601)return void tl(e);if(e._f===h.RFC_2822)return void to(e);e._a=[],x(e).empty=!0;var t,i,n,r,a,s,l,o,c,d,u,m=""+e._i,p=m.length,v=0;for(u=(l=q(e._f,e._locale).match($)||[]).length,a=0;a<u;a++)o=l[a],(s=(m.match(f(X,o)?X[o](e._strict,e._locale):new RegExp(ey(o.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r}))))||[])[0])&&((c=m.substr(0,m.indexOf(s))).length>0&&x(e).unusedInput.push(c),m=m.slice(m.indexOf(s)+s.length),v+=s.length),V[o]?(s?x(e).empty=!1:x(e).unusedTokens.push(o),null!=s&&f(e_,o)&&e_[o](s,e._a,e,o)):e._strict&&!s&&x(e).unusedTokens.push(o);x(e).charsLeftOver=p-v,m.length>0&&x(e).unusedInput.push(m),e._a[3]<=12&&!0===x(e).bigHour&&e._a[3]>0&&(x(e).bigHour=void 0),x(e).parsedDateParts=e._a.slice(0),x(e).meridiem=e._meridiem,e._a[3]=(t=e._locale,i=e._a[3],null==(n=e._meridiem)?i:null!=t.meridiemHour?t.meridiemHour(i,n):(null!=t.isPM&&((r=t.isPM(n))&&i<12&&(i+=12),r||12!==i||(i=0)),i)),null!==(d=x(e).era)&&(e._a[0]=e._locale.erasConvertYear(d,e._a[0])),tc(e),e8(e)}function tu(e){var t,i,n=e._i,r=e._f;return e._locale=e._locale||e7(e._l),null===n||void 0===r&&""===n?C({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),N(n)?new M(e8(n)):(y(n)?e._d=n:m(r)?function(e){var t,i,n,r,a,s,l=!1,o=e._f.length;if(0===o){x(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<o;r++)a=0,s=!1,t=L({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],td(t),E(t)&&(s=!0),a+=x(t).charsLeftOver,a+=10*x(t).unusedTokens.length,x(t).score=a,l?a<n&&(n=a,i=t):(null==n||a<n||s)&&(n=a,i=t,s&&(l=!0));b(e,i||t)}(e):r?td(e):g(i=(t=e)._i)?t._d=new Date(h.now()):y(i)?t._d=new Date(i.valueOf()):"string"==typeof i?function(e){var t=tr.exec(e._i);if(null!==t){e._d=new Date(+t[1]);return}if(tl(e),!1===e._isValid)delete e._isValid,to(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:h.createFromInputFallback(e))}(t):m(i)?(t._a=w(i.slice(0),function(e){return parseInt(e,10)}),tc(t)):p(i)?function(e){if(!e._d){var t=Q(e._i),i=void 0===t.day?t.date:t.day;e._a=w([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),tc(e)}}(t):A(i)?t._d=new Date(i):h.createFromInputFallback(t),E(e)||(e._d=null),e))}function th(e,t,i,n,r){var a,s={};return(!0===t||!1===t)&&(n=t,t=void 0),(!0===i||!1===i)&&(n=i,i=void 0),(p(e)&&v(e)||m(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=e,s._f=t,s._strict=n,(a=new M(e8(tu(s))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function tm(e,t,i,n){return th(e,t,i,n,!1)}h.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var tp=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tm.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:C()}),tf=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tm.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:C()});function tv(e,t){var i,n;if(1===t.length&&m(t[0])&&(t=t[0]),!t.length)return tm();for(i=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](i))&&(i=t[n]);return i}var tg=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tA(e){var t=Q(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,o=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=tg.length;for(t in e)if(f(e,t)&&!(-1!==eX.call(tg,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(i=0;i<r;++i)if(e[tg[i]]){if(n)return!1;parseFloat(e[tg[i]])!==eb(e[tg[i]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*o+1e3*l*3600,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=e7(),this._bubble()}function ty(e){return e instanceof tA}function tw(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tb(e,t){W(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+H(~~(e/60),2)+t+H(~~e%60,2)})}tb("Z",":"),tb("ZZ",""),eA("Z",ep),eA("ZZ",ep),ex(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=tx(ep,e)});var t_=/([\+\-]|\d\d)/gi;function tx(e,t){var i,n,r=(t||"").match(e);return null===r?null:0===(n=+(60*(i=((r[r.length-1]||[])+"").match(t_)||["-",0,0])[1])+eb(i[2]))?0:"+"===i[0]?n:-n}function tE(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(N(e)||y(e)?e.valueOf():tm(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),h.updateOffset(i,!1),i):tm(e).local()}function tC(e){return-Math.round(e._d.getTimezoneOffset())}function tk(){return!!this.isValid()&&this._isUTC&&0===this._offset}h.updateOffset=function(){};var tS=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tL=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tM(e,t){var i,n,r,a,s,l,o=e,c=null;return ty(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:A(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(c=tS.exec(e))?(a="-"===c[1]?-1:1,o={y:0,d:eb(c[2])*a,h:eb(c[3])*a,m:eb(c[4])*a,s:eb(c[5])*a,ms:eb(tw(1e3*c[6]))*a}):(c=tL.exec(e))?(a="-"===c[1]?-1:1,o={y:tN(c[2],a),M:tN(c[3],a),w:tN(c[4],a),d:tN(c[5],a),h:tN(c[6],a),m:tN(c[7],a),s:tN(c[8],a)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=tm(o.from),n=tm(o.to),l=i.isValid()&&n.isValid()?(n=tE(n,i),i.isBefore(n)?r=tT(i,n):((r=tT(n,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(o={}).ms=l.milliseconds,o.M=l.months),s=new tA(o),ty(e)&&f(e,"_locale")&&(s._locale=e._locale),ty(e)&&f(e,"_isValid")&&(s._isValid=e._isValid),s}function tN(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function tT(e,t){var i={};return i.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=t-e.clone().add(i.months,"M"),i}function tj(e,t){return function(i,n){var r;return null===n||isNaN(+n)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),tI(this,tM(i,n),e),this}}function tI(e,t,i,n){var r=t._milliseconds,a=tw(t._days),s=tw(t._months);e.isValid()&&(n=n??!0,s&&eP(e,eM(e,"Month")+s*i),a&&eN(e,"Date",eM(e,"Date")+a*i),r&&e._d.setTime(e._d.valueOf()+r*i),n&&h.updateOffset(e,a||s))}tM.fn=tA.prototype,tM.invalid=function(){return tM(NaN)};var tD=tj(1,"add"),tP=tj(-1,"subtract");function tO(e){return"string"==typeof e||e instanceof String}function tB(e,t){if(e.date()<t.date())return-tB(t,e);var i,n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months");return i=t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r),-(n+i)||0}function tH(e){var t;return void 0===e?this._locale._abbr:(null!=(t=e7(e))&&(this._locale=t),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var t$=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tz(){return this._locale}function tY(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-126227808e5:new Date(e,t,i).valueOf()}function tV(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-126227808e5:Date.UTC(e,t,i)}function tW(e,t){return t.erasAbbrRegex(e)}function tR(){var e,t,i,n,r,a=[],s=[],l=[],o=[],c=this.eras();for(e=0,t=c.length;e<t;++e)i=ey(c[e].name),n=ey(c[e].abbr),r=ey(c[e].narrow),s.push(i),a.push(n),l.push(r),o.push(i),o.push(n),o.push(r);this._erasRegex=RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+l.join("|")+")","i")}function tq(e,t){W(0,[e,e.length],0,t)}function tF(e,t,i,n,r){var a;return null==e?eV(this,n,r).year:(t>(a=eW(e,n,r))&&(t=a),tU.call(this,e,t,i,n,r))}function tU(e,t,i,n,r){var a=eY(e,t,i,n,r),s=e$(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}W("N",0,0,"eraAbbr"),W("NN",0,0,"eraAbbr"),W("NNN",0,0,"eraAbbr"),W("NNNN",0,0,"eraName"),W("NNNNN",0,0,"eraNarrow"),W("y",["y",1],"yo","eraYear"),W("y",["yy",2],0,"eraYear"),W("y",["yyy",3],0,"eraYear"),W("y",["yyyy",4],0,"eraYear"),eA("N",tW),eA("NN",tW),eA("NNN",tW),eA("NNNN",function(e,t){return t.erasNameRegex(e)}),eA("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ex(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){var r=i._locale.erasParse(e,n,i._strict);r?x(i).era=r:x(i).invalidEra=e}),eA("y",eu),eA("yy",eu),eA("yyy",eu),eA("yyyy",eu),eA("yo",function(e,t){return t._eraYearOrdinalRegex||eu}),ex(["y","yy","yyy","yyyy"],0),ex(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[0]=i._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)}),W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tq("gggg","weekYear"),tq("ggggg","weekYear"),tq("GGGG","isoWeekYear"),tq("GGGGG","isoWeekYear"),eA("G",eh),eA("g",eh),eA("GG",ea,et),eA("gg",ea,et),eA("GGGG",ec,en),eA("gggg",ec,en),eA("GGGGG",ed,er),eA("ggggg",ed,er),eE(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=eb(e)}),eE(["gg","GG"],function(e,t,i,n){t[n]=h.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),eA("Q",ee),ex("Q",function(e,t){t[1]=(eb(e)-1)*3}),W("D",["DD",2],"Do","date"),eA("D",ea,ev),eA("DD",ea,et),eA("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ex(["D","DD"],2),ex("Do",function(e,t){t[2]=eb(e.match(ea)[0])});var tQ=eL("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),eA("DDD",eo),eA("DDDD",ei),ex(["DDD","DDDD"],function(e,t,i){i._dayOfYear=eb(e)}),W("m",["mm",2],0,"minute"),eA("m",ea,eg),eA("mm",ea,et),ex(["m","mm"],4);var tG=eL("Minutes",!1);W("s",["ss",2],0,"second"),eA("s",ea,eg),eA("ss",ea,et),ex(["s","ss"],5);var tZ=eL("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eA("S",eo,ee),eA("SS",eo,et),eA("SSS",eo,ei),n="SSSS";n.length<=9;n+="S")eA(n,eu);function tX(e,t){t[6]=eb(("0."+e)*1e3)}for(n="S";n.length<=9;n+="S")ex(n,tX);r=eL("Milliseconds",!1),W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var tJ=M.prototype;function tK(e){return e}tJ.add=tD,tJ.calendar=function(e,t){1==arguments.length&&(arguments[0]?(a=arguments[0],N(a)||y(a)||tO(a)||A(a)||(n=m(i=a),r=!1,n&&(r=0===i.filter(function(e){return!A(e)&&tO(i)}).length),n&&r)||function(e){var t,i,n=p(e)&&!v(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(t=0;t<s;t+=1)i=a[t],r=r||f(e,i);return n&&r}(a)||null==a)?(e=arguments[0],t=void 0):function(e){var t,i,n=p(e)&&!v(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=a[t],r=r||f(e,i);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i,n,r,a,s=e||tm(),l=tE(s,this).startOf("day"),o=h.calendarFormat(this,l)||"sameElse",c=t&&(P(t[o])?t[o].c
506all(this,s):t[o]);return this.format(c||this.localeData().calendar(o,this,tm(s)))},tJ.clone=function(){return new M(this)},tJ.diff=function(e,t,i){var n,r,a;if(!this.isValid()||!(n=tE(e,this)).isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,t=U(t)){case"year":a=tB(this,n)/12;break;case"month":a=tB(this,n);break;case"quarter":a=tB(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-r)/864e5;break;case"week":a=(this-n-r)/6048e5;break;default:a=this-n}return i?a:ew(a)},tJ.endOf=function(e){var t,i;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tV:tY,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-((t+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":t=this._d.valueOf(),t+=6e4-(t%6e4+6e4)%6e4-1;break;case"second":t=this._d.valueOf(),t+=1e3-(t%1e3+1e3)%1e3-1}return this._d.setTime(t),h.updateOffset(this,!0),this},tJ.format=function(e){e||(e=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},tJ.from=function(e,t){return this.isValid()&&(N(e)&&e.isValid()||tm(e).isValid())?tM({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tJ.fromNow=function(e){return this.from(tm(),e)},tJ.to=function(e,t){return this.isValid()&&(N(e)&&e.isValid()||tm(e).isValid())?tM({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tJ.toNow=function(e){return this.to(tm(),e)},tJ.get=function(e){return P(this[e=U(e)])?this[e]():this},tJ.invalidAt=function(){return x(this).overflow},tJ.isAfter=function(e,t){var i=N(e)?e:tm(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},tJ.isBefore=function(e,t){var i=N(e)?e:tm(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},tJ.isBetween=function(e,t,i,n){var r=N(e)?e:tm(e),a=N(t)?t:tm(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))},tJ.isSame=function(e,t){var i,n=N(e)?e:tm(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},tJ.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tJ.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tJ.isValid=function(){return E(this)},tJ.lang=t$,tJ.locale=tH,tJ.localeData=tz,tJ.max=tf,tJ.min=tp,tJ.parsingFlags=function(){return b({},x(this))},tJ.set=function(e,t){if("object"==typeof e){var i,n=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:J[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=Q(e)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](e[n[i].unit])}else if(P(this[e=U(e)]))return this[e](t);return this},tJ.startOf=function(e){var t,i;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tV:tY,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=((t+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":t=this._d.valueOf(),t-=(t%6e4+6e4)%6e4;break;case"second":t=this._d.valueOf(),t-=(t%1e3+1e3)%1e3}return this._d.setTime(t),h.updateOffset(this,!0),this},tJ.subtract=tP,tJ.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tJ.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tJ.toDate=function(){return new Date(this.valueOf())},tJ.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return 0>i.year()||i.year()>9999?R(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(i,"Z")):R(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
506,tJ.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i)},"u">typeof Symbol&&null!=Symbol.for&&(tJ[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tJ.toJSON=function(){return this.isValid()?this.toISOString():null},tJ.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tJ.unix=function(){return Math.floor(this.valueOf()/1e3)},tJ.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tJ.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tJ.eraName=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].name;return""},tJ.eraNarrow=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].narrow;return""},tJ.eraAbbr=function(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return n[e].abbr;return""},tJ.eraYear=function(){var e,t,i,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(i=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-h(r[e].since).year())*i+r[e].offset;return this.year()},tJ.year=eS,tJ.isLeapYear=function(){return eC(this.year())},tJ.weekYear=function(e){return tF.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tJ.isoWeekYear=function(e){return tF.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tJ.quarter=tJ.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tJ.month=eO,tJ.daysInMonth=function(){return eT(this.year(),this.month())},tJ.week=tJ.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tJ.isoWeek=tJ.isoWeeks=function(e){var t=eV(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tJ.weeksInYear=function(){var e=this.localeData()._week;return eW(this.year(),e.dow,e.doy)},tJ.weeksInWeekYear=function(){var e=this.localeData()._week;return eW(this.weekYear(),e.dow,e.doy)},tJ.isoWeeksInYear=function(){return eW(this.year(),1,4)},tJ.isoWeeksInISOWeekYear=function(){return eW(this.isoWeekYear(),1,4)},tJ.date=tQ,tJ.day=tJ.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=eM(this,"Day");return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},tJ.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tJ.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,i=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},tJ.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tJ.hour=tJ.hours=eK,tJ.minute=tJ.minutes=tG,tJ.second=tJ.seconds=tZ,tJ.millisecond=tJ.milliseconds=r,tJ.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:tC(this);if("string"==typeof e){if(null===(e=tx(ep,e)))return this}else 16>Math.abs(e)&&!i&&(e*=60);return!this._isUTC&&t&&(n=tC(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?tI(this,tM(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this},tJ.utc=function(e){return this.utcOffset(0,e)},tJ.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tC(this),"m")),this},tJ.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tx(em,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tJ.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tm(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tJ.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tJ.isLocal=function(){return!!this.isValid()&&!this._isUTC},tJ.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tJ.isUtc=tk,tJ.isUTC=tk,tJ.zoneAbbr=function(){return this._isUTC?"UTC":""},tJ.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tJ.dates=j("dates accessor is deprecated. Use date instead.",tQ),tJ.months=j("months accessor is deprecated. Use month instead",eO),tJ.years=j("years accessor is deprecated. Use year instead",eS),tJ.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tJ.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e,t={};return L(t,this),(t=tu(t))._a?(e=t._isUTC?_(t._a):tm(t._a),this._isDSTShifted=this.isValid()&&function(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<r;n++)eb(e[n])!==eb(t[n])&&s++;return s+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var t1=B.prototype;function t0(e,t,i,n){var r=e7(),a=_().set(n,t);return r[i](a,e)}function t2(e,t,i){if(A(e)&&(t=e,e=void 0),e=e||"",null!=t)return t0(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=t0(e,n,i,"month");return r}function t6(e,t,i,n){"boolean"==typeof e||(i=t=e,e=!1),A(t)&&(i=t,t=void 0),t=t||"";var r,a=e7(),s=e?a._week.dow:0,l=[];
vendor: 8,227 bytes, line 506
506if(null!=i)return t0(t,(i+s)%7,n,"day");for(r=0;r<7;r++)l[r]=t0(t,(r+s)%7,n,"day");return l}t1.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return P(n)?n.call(t,i):n},t1.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match($).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},t1.invalidDate=function(){return this._invalidDate},t1.ordinal=function(e){return this._ordinal.replace("%d",e)},t1.preparse=tK,t1.postformat=tK,t1.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return P(r)?r(e,t,i,n):r.replace(/%d/i,e)},t1.pastFuture=function(e,t){var i=this._relativeTime[e>0?"future":"past"];return P(i)?i(t):i.replace(/%s/i,t)},t1.set=function(e){var t,i;for(i in e)f(e,i)&&(P(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},t1.eras=function(e,t){var i,n,r,a=this._eras||e7("en")._eras;for(i=0,n=a.length;i<n;++i)switch("string"==typeof a[i].since&&(r=h(a[i].since).startOf("day"),a[i].since=r.valueOf()),typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":r=h(a[i].until).startOf("day").valueOf(),a[i].until=r.valueOf()}return a},t1.erasParse=function(e,t,i){var n,r,a,s,l,o=this.eras();for(e=e.toUpperCase(),n=0,r=o.length;n<r;++n)if(a=o[n].name.toUpperCase(),s=o[n].abbr.toUpperCase(),l=o[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[n];break;case"NNNN":if(a===e)return o[n];break;case"NNNNN":if(l===e)return o[n]}else if([a,s,l].indexOf(e)>=0)return o[n]},t1.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?h(e.since).year():h(e.since).year()+(t-e.offset)*i},t1.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||tR.call(this),e?this._erasAbbrRegex:this._erasRegex},t1.erasNameRegex=function(e){return f(this,"_erasNameRegex")||tR.call(this),e?this._erasNameRegex:this._erasRegex},t1.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||tR.call(this),e?this._erasNarrowRegex:this._erasRegex},t1.months=function(e,t){return e?m(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eI).test(t)?"format":"standalone"][e.month()]:m(this._months)?this._months:this._months.standalone},t1.monthsShort=function(e,t){return e?m(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eI.test(t)?"format":"standalone"][e.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},t1.monthsParse=function(e,t,i){var n,r,a;if(this._monthsParseExact)return eD.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=_([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e)||i&&"MMM"===t&&this._shortMonthsParse[n].test(e)||!i&&this._monthsParse[n].test(e))return n},t1.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||eB.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},t1.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||eB.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=ef),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},t1.week=function(e){return eV(e,this._week.dow,this._week.doy).week},t1.firstDayOfYear=function(){return this._week.doy},t1.firstDayOfWeek=function(){return this._week.dow},t1.weekdays=function(e,t){var i=m(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eR(i,this._week.dow):e?i[e.day()]:i},t1.weekdaysMin=function(e){return!0===e?eR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},t1.weekdaysShort=function(e){return!0===e?eR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},t1.weekdaysParse=function(e,t,i){var n,r,a;if(this._weekdaysParseExact)return eF.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=_([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e)||i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e)||i&&"dd"===t&&this._minWeekdaysParse[n].test(e)||!i&&this._weekdaysParse[n].test(e))return n},t1.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||eU.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=ef),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},t1.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||eU.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ef),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},t1.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||eU.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ef),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},t1.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},t1.meridiem=function(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"},e3("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===eb(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),h.lang=j("moment.lang is deprecated. Use moment.locale instead.",e3),h.langData=j("moment.langData is deprecated. Use moment.localeData instead.",e7);var t5=Math.abs;function t3(e,t,i,n){var r=tM(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function t4(e){return e<0?Math.floor(e):Math.ceil(e)}function t7(e){return 4800*e/146097}function t8(e){return 146097*e/4800}function t9(e){return function(){return this.as(e)}}var ie=t9("ms"),it=t9("s"),ii=t9("m"),ir=t9("h"),ia=t9("d"),is=t9("w"),il=t9("M"),io=t9("Q"),ic=t9("y");function id(e){return function(){return this.isValid()?this._data[e]:NaN}}var iu=id("milliseconds"),ih=id("seconds"),im=id("minutes"),ip=id("hours"),iv=id("days"),ig=id("months"),iA=id("years"),iy=Math.round,iw={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ib(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}var i_=Math.abs;function ix(e){return(e>0)-(e<0)||+e}function iE(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,a,s,l,o=i_(this._milliseconds)/1e3,c=i_(this._days),d=i_(this._months),u=this.asSeconds();return u?(e=ew(o/60),t=ew(e/60),o%=60,e%=60,i=ew(d/12),d%=12,n=o?o.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",a=ix(this._months)!==ix(u)?"-":"",s=ix(this._days)!==ix(u)?"-":"",l=ix(this._milliseconds)!==ix(u)?"-":"",r+"P"+(i?a+i+"Y":"")+(d?a+d+"M":"")+(c?s+c+"D":"")+(t||e||o?"T":"")+(t?l
506+t+"H":"")+(e?l+e+"M":"")+(o?l+n+"S":"")):"P0D"}var iC=tA.prototype;iC.isValid=function(){return this._isValid},iC.abs=function(){var e=this._data;return this._milliseconds=t5(this._milliseconds),this._days=t5(this._days),this._months=t5(this._months),e.milliseconds=t5(e.milliseconds),e.seconds=t5(e.seconds),e.minutes=t5(e.minutes),e.hours=t5(e.hours),e.months=t5(e.months),e.years=t5(e.years),this},iC.add=function(e,t){return t3(this,e,t,1)},iC.subtract=function(e,t){return t3(this,e,t,-1)},iC.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+t7(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(t8(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},iC.asMilliseconds=ie,iC.asSeconds=it,iC.asMinutes=ii,iC.asHours=ir,iC.asDays=ia,iC.asWeeks=is,iC.asMonths=il,iC.asQuarters=io,iC.asYears=ic,iC.valueOf=ie,iC._bubble=function(){var e,t,i,n,r,a=this._milliseconds,s=this._days,l=this._months,o=this._data;return a>=0&&s>=0&&l>=0||a<=0&&s<=0&&l<=0||(a+=864e5*t4(t8(l)+s),s=0,l=0),o.milliseconds=a%1e3,o.seconds=(e=ew(a/1e3))%60,o.minutes=(t=ew(e/60))%60,o.hours=(i=ew(t/60))%24,s+=ew(i/24),l+=r=ew(t7(s)),s-=t4(t8(r)),n=ew(l/12),l%=12,o.days=s,o.months=l,o.years=n,this},iC.clone=function(){return tM(this)},iC.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},iC.milliseconds=iu,iC.seconds=ih,iC.minutes=im,iC.hours=ip,iC.days=iv,iC.weeks=function(){return ew(this.days()/7)},iC.months=ig,iC.years=iA,iC.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,r,a,s,l,o,c,d,u,h,m,p,f=!1,v=iw;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(v=Object.assign({},iw,t),null!=t.s&&null==t.ss&&(v.ss=t.s-1)),m=this.localeData(),i=!f,n=v,r=tM(this).abs(),a=iy(r.as("s")),s=iy(r.as("m")),l=iy(r.as("h")),o=iy(r.as("d")),c=iy(r.as("M")),d=iy(r.as("w")),u=iy(r.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||o<=1&&["d"]||o<n.d&&["dd",o],null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=i,h[3]=+this>0,h[4]=m,p=ib.apply(null,h),f&&(p=m.pastFuture(+this,p)),m.postformat(p)},iC.toISOString=iE,iC.toString=iE,iC.toJSON=iE,iC.locale=tH,iC.localeData=tz,iC.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iE),iC.lang=t$,W("X",0,0,"unix"),W("x",0,0,"valueOf"),eA("x",eh),eA("X",/[+-]?\d+(\.\d{1,3})?/),ex("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),ex("x",function(e,t,i){i._d=new Date(eb(e))}),h.version="2.30.1",G=tm,h.fn=tJ,h.min=function(){var e=[].slice.call(arguments,0);return tv("isBefore",e)},h.max=function(){var e=[].slice.call(arguments,0);return tv("isAfter",e)},h.now=function(){return Date.now?Date.now():+new Date},h.utc=_,h.unix=function(e){return tm(1e3*e)},h.months=function(e,t){return t2(e,t,"months")},h.isDate=y,h.locale=e3,h.invalid=C,h.duration=tM,h.isMoment=N,h.weekdays=function(e,t,i){return t6(e,t,i,"weekdays")},h.parseZone=function(){return tm.apply(null,arguments).parseZone()},h.localeData=e7,h.isDuration=ty,h.monthsShort=function(e,t){return t2(e,t,"monthsShort")},h.weekdaysMin=function(e,t,i){return t6(e,t,i,"weekdaysMin")},h.defineLocale=e4,h.updateLocale=function(e,t){if(null!=t){var i,n,r=e1;null!=e0[e]&&null!=e0[e].parentLocale?e0[e].set(O(e0[e]._config,t)):(null!=(n=e5(e))&&(r=n._config),t=O(r,t),null==n&&(t.abbr=e),(i=new B(t)).parentLocale=e0[e],e0[e]=i),e3(e)}else null!=e0[e]&&(null!=e0[e].parentLocale?(e0[e]=e0[e].parentLocale,e===e3()&&e3(e)):null!=e0[e]&&delete e0[e]);return e0[e]},h.locales=function(){return K(e0)},h.weekdaysShort=function(e,t,i){return t6(e,t,i,"weekdaysShort")},h.normalizeUnits=U,h.relativeTimeRounding=function(e){return void 0===e?iy:"function"==typeof e&&(iy=e,!0)},h.relativeTimeThreshold=function(e,t){return void 0!==iw[e]&&(void 0===t?iw[e]:(iw[e]=t,"
506s"===e&&(iw.ss=t-1),!0))},h.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},h.prototype=tJ,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},(0,s.createContext)({});let ik=({iconName:e,mode:t=!1,isSecondary:i})=>{let n={GenericIcon:{light:"#0c0d0e",dark:"#e3e7e7"},LogoIcon:{light:"#2a2522",dark:"#e3e7e7",secondary:{light:"#14b6d1",dark:"#e3e7e7"}},GiftIcon:{light:"#0ec8e3",dark:"#0ec8e3",secondary:{light:"#0c0d0e",dark:"#e3e7e7"}},ScrollArrowIcon:{light:"#0c0d0e",dark:"#7a888b4d",secondary:{light:"#e3e7e7",dark:"#f1f3f3"}},GenericArrowIcon:{light:"rgba(122, 136, 139, 0.08)",dark:"rgba(122, 136, 139, 0.20)",secondary:{light:"#0C0D0E",dark:"#F1F3F3"}},PlayerIcon:{light:"#4b5254",dark:"#f1f3f3"}},r=t?"dark":"light";return i&&n[e].secondary?n[e].secondary[r]:n[e][r]};var iS=(e=>(e[e.Email=1]="Email",e[e.Login=2]="Login",e[e.Registration=3]="Registration",e[e.Result=4]="Result",e))(iS||{});function iL({titleEmail:e,titleResult:t,emailAddress:i,onCheckEmailHandler:n,onLoginHandler:r,onRegistrationHandler:c,onAuthSuccessHandler:d,onCloseModalHandler:h,isDarkMode:m,regData:p,extraData:f}){let[v,g]=(0,s.useState)(1),[A,y]=(0,s.useState)(i||""),[w,b]=(0,s.useState)(""),[_,x]=(0,s.use
506State)(!1),[E,C]=(0,s.useState)(!1),[k,S]=(0,s.useState)(""),[L,M]=(0,s.useState)(!1),[N,T]=(0,s.useState)(!1),j=()=>{g(1),y(i||""),b(""),M(!1),x(!1),C(!1)},I=()=>{h(),j()};return(0,s.useEffect)(()=>{window?._sendToGA&&3===v&&window._sendToGA("submit_newsletter_email",p?.banner_id??"",p?.banner_name??""),S(""),T(!1)},[v]),(0,a.jsx)("div",{className:l.IlPostUserModal,onClick:()=>I(),children:(0,a.jsxs)("div",{onClick:e=>{e.stopPropagation()},children:[v&&1===v&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:e}),(0,a.jsxs)("form",{className:l.checkemail,onSubmit:e=>{e.preventDefault(),T(!0),n(A).then(e=>{g(e?2:3)}).catch(e=>{S(e.message)}).finally(()=>{T(!1)})},children:[(0,a.jsxs)("label",{children:["Accedi o registrati con la tua email ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsx)("input",{type:"email",name:"email",value:A,onChange:e=>y(e.target.value),required:!0}),N&&(0,a.jsx)(u,{}),(0,a.jsx)("input",{"data-ga-event":"submit_newsletter_email","data-ga":"click",disabled:N,type:"submit",value:"Continua"})]})]}),v&&2===v&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:"Inserisci la tua password per fare login"}),(0,a.jsxs)("form",{className:l.login,onSubmit:e=>{e.preventDefault(),S(""),T(!0),r(A,w).then(e=>{d(2,e),I()}).catch(e=>{S(e.message)}).finally(()=>{T(!1)})},children:[(0,a.jsxs)("label",{children:["Indirizzo email ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsx)("input",{type:"email",name:"email",value:A,onChange:e=>y(e.target.value),readOnly:!0}),(0,a.jsxs)("label",{children:["Password ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:l.passwordBox,children:[(0,a.jsx)("input",{type:L?"text":"password",name:"password",value:w,onChange:e=>b(e.target.value),autoComplete:"off",required:!0}),(0,a.jsx)("div",{className:l.icon,onClick:()=>{M(!L)},children:(0,a.jsx)(o,{height:14,width:22,color:ik({iconName:"GenericIcon",mode:m})})})]}),N&&(0,a.jsx)(u,{}),(0,a.jsx)("input",{type:"submit",disabled:N,value:"Accedi"}),(0,a.jsx)("p",{className:l.link,children:(0,a.jsx)("a",{href:"https://abbonati.ilpost.it/mio-account/lost-password/",children:"Hai perso la password?"})})]})]}),v&&3===v&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:"Per completare la registrazione, scegli una password per il tuo account."}),(0,a.jsxs)("form",{className:l.register,onSubmit:e=>{if(window?._sendToGA&&window._sendToGA("submit_newsletter_registrazione",p?.banner_id??"",p?.banner_name??""),e.preventDefault(),S(""),_&&E)T(!0),c(A,w,f).then(e=>{d(3,e),g(4)}).catch(e=>{S(e.message)}).finally(()=>{T(!1)});else{let e="Devi accettare la privacy e TOS";console.error(e),S(e)}},children:[(0,a.jsxs)("label",{children:["Indirizzo email ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsx)("input",{type:"email",name:"email",value:A,onChange:e=>y(e.target.value),readOnly:!0}),(0,a.jsxs)("label",{children:["Password ",(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)("div",{className:l.passwordBox,children:[(0,a.jsx)("input",{type:L?"text":"password",name:"password",value:w,onChange:e=>b(e.target.value),pattern:"(?=.*[A-Z])(?=.*[a-z])(?=.*\\d).{8,}",autoComplete:"off",required:!0}),(0,a.jsx)("div",{className:l.icon,onClick:()=>{M(!L)},children:(0,a.jsx)(o,{height:14,width:22,color:ik({iconName:"GenericIcon",mode:m})})})]}),(0,a.jsx)("p",{className:l["password-info"],children:"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola e una lettera minuscola."}),(0,a.jsxs)("label",{className:l.checkbox,children:["Dichiaro di aver preso visione dell'",(0,a.jsx)("a",{href:"https://www.ilpost.it/privacy/",target:"_blank",children:"informativa"})," ","riguardante il trattamento dei dati ed acconsento al trattamento degli stessi per la gestione della registrazione e dei servizi collegati.",(0,a.jsx)("span",{children:"*"}),(0,a.jsx)("input",{type:"checkbox",name:"privacy",checked:_,onChange:()=>x(!_)}),(0,a.jsx)("span",{className:l.checkmark})]}),(0,a.jsxs)("label",{className:l.checkbox,children:["Dichiaro di aver preso visione e di accettare le"," ",(0,a.jsx)("a",{href:"https://www.ilpost.it/condizioni-generali/",target:"_blank",children:"condizioni di registrazione"}),".",(0,a.jsx)("span",{children:"*"}),(0,a.jsx)("input",{type:"checkbox",name:"tos",checked:E,onChange:()=>C(!E)}),(0,a.jsx)("span",{className:l.checkmark})]}),N&&(0,a.jsx)(u,{}),(0,a.jsx)("input",{"data-ga-event":"submit_newsletter_registrazione","data-ga":"click",type:"submit",disabled:N,value:"Registrati"}),(0,a.jsx)("p",{className:l.link,children:(0,a.jsx)("a",{className:l.showlogin,onClick:()=>j(),children:"Hai gi\xe0 un account?"})})]})]}),v&&4===v&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{children:t}),(0,a.jsx)("form",{className:l.confirm,onSubmit:e=>{window?._sendToGA&&window._sendToGA("newsletter_registrazione_completata"),e.preventDefault(),h()},children:(0,a.jsx)("input",{type:"submit",value:"OK"})})]}
506),k&&(0,a.jsx)("div",{className:l.error,children:k})]})})}},8891:(e,t,i)=>{"use strict";i.d(t,{Q:()=>A});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,color:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function d({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:c["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:c["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let u={"label-live":"_label-live_y66gb_1"};function h({title:e="Live"}){return(0,n.jsx)("h3",{className:u["label-live"],children:e})}let m={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function p({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:m["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:m["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let f={"single-live-item":"_single-live-item_j9dqo_1"};function v({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:f["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:f["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let g={rullo:"_rullo_jip6l_1","article-live":"_article-live_jip6l_1","article-content-link":"_article-content-link_jip6l_23","article-content":"_article-content_jip6l_23","article-image":"_article-image_jip6l_59","article-image-link":"_article-image-link_jip6l_87","article-relateds":"_article-relateds_jip6l_97","article-live-items":"_article-live-items_jip6l_113","with-relateds":"_with-relateds_jip6l_151"};function A({title:e,text:t,image:i,caption:r,url:a,relatedsItems:l,template_related:c,isLive:u=!0,derivedInfo:m}){let f="live_items"===c&&m?.live_status!=="close",A=f?g["article-live-items"]:g["article-relateds"],y=m?.live_breadcrumb_logo||m?.live_breadcrumb_titolo||m?.live_breadcrumb_background_color||m?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${g.rullo} ${g["article-live"]} ${l&&l.length>0?g["with-relateds"]:""}`,children:[(0,n.jsxs)("div",{className:g["article-content"],children:[u&&(y?(0,n.jsx)(d,{logo:m?.live_breadcrumb_logo,backgroundColor:m?.live_breadcrumb_background_color,title:m?.live_breadcrumb_titolo,titleColor:m?.live_breadcrumb_title_color,url:a}):(0,n.jsx)(h,{})),(0,n.jsxs)("a",{href:a,className:g["article-content-link"],"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]}),(0,n.jsx)("div",{className:g["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:a,className:g["article-image-link"],"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:r||e,loading:"lazy",decoding:"async"})})})}),c&&""!==c&&!!l?.length&&(0,n.jsxs)("div",{className:A,children:[f&&(0,n.jsx)(s,{titleTag:"h2",fontSize:16,fontWeight:600,text:"Gli ultimi aggiornamenti"}),m?.live_status==="close"&&(0,n.jsx)(s,{titleTag:"h2",fontSize:16,fontWeight:600,text:"Aggiornamenti importanti"}),l?.map(e=>f?(0,n.jsx)(v,{title:e.title,url:e.link,date:e.date??""},e.link):(0,n.jsx)(p,{title:e.title,summary:e?.summary||"",url:e.link},e.link))]})]})}},9278:(e,t,i)=>{"use strict";i.d(t,{D:()=>d,N:()=>u});var n=i(5729),r=(e,t,i,n,r,a,s,l)=>{let o=document.documentElement,c=["light","dark"];function d(t){var i;
506(Array.isArray(e)?e:[e]).forEach(e=>{let i="class"===e,n=i&&a?r.map(e=>a[e]||e):r;i?(o.classList.remove(...n),o.classList.add(a&&a[t]?a[t]:t)):o.setAttribute(e,t)}),i=t,l&&c.includes(i)&&(o.style.colorScheme=i)}if(n)d(n);else try{let e=localStorage.getItem(t)||i,n=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(n)}catch(e){}},a=["light","dark"],s="(prefers-color-scheme: dark)",l="undefined"==typeof window,o=n.createContext(void 0),c={setTheme:e=>{},themes:[]},d=()=>{var e;return null!=(e=n.useContext(o))?e:c},u=e=>n.useContext(o)?n.createElement(n.Fragment,null,e.children):n.createElement(m,{...e}),h=["light","dark"],m=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:i=!0,enableColorScheme:r=!0,storageKey:l="theme",themes:c=h,defaultTheme:d=i?"system":"light",attribute:u="data-theme",value:m,children:A,nonce:y,scriptProps:w})=>{let[b,_]=n.useState(()=>f(l,d)),[x,E]=n.useState(()=>"system"===b?g():b),C=m?Object.values(m):c,k=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&i&&(n=g());let s=m?m[n]:n,l=t?v(y):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...C),s&&o.classList.add(s)):e.startsWith("data-")&&(s?o.setAttribute(e,s):o.removeAttribute(e))};if(Array.isArray(u)?u.forEach(c):c(u),r){let e=a.includes(d)?d:null,t=a.includes(n)?n:e;o.style.colorScheme=t}null==l||l()},[y]),S=n.useCallback(e=>{let t="function"==typeof e?e(b):e;_(t);try{localStorage.setItem(l,t)}catch(e){}},[b]),L=n.useCallback(t=>{E(g(t)),"system"===b&&i&&!e&&k("system")},[b,e]);n.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(L),L(e),()=>e.removeListener(L)},[L]),n.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?_(e.newValue):S(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),n.useEffect(()=>{k(null!=e?e:b)},[e,b]);let M=n.useMemo(()=>({theme:b,setTheme:S,forcedTheme:e,resolvedTheme:"system"===b?x:b,themes:i?[...c,"system"]:c,systemTheme:i?x:void 0}),[b,S,e,x,i,c]);return n.createElement(o.Provider,{value:M},n.createElement(p,{forcedTheme:e,storageKey:l,attribute:u,enableSystem:i,enableColorScheme:r,defaultTheme:d,value:m,themes:c,nonce:y,scriptProps:w}),A)},p=n.memo(({forcedTheme:e,storageKey:t,attribute:i,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:o,themes:c,nonce:d,scriptProps:u})=>{let h=JSON.stringify([i,t,l,e,c,o,a,s]).slice(1,-1);return n.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${h}
506)`}})}),f=(e,t)=>{let i;if(!l){try{i=localStorage.getItem(e)||void 0}catch(e){}return i||t}},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},9337:(e,t,i)=>{"use strict";i.d(t,{G:()=>d});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
506olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"article-blog":"_article-blog_h17j7_1","article-image":"_article-image_h17j7_29","article-content":"_article-content_h17j7_43","article-author":"_article-author_h17j7_46"};function d({author:e,image:t,url:i,title:a,text:l}){let[d,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992?u(!0):u(!1)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[l,a,d]),(0,n.jsx)("article",{className:c["article-blog"],children:(0,n.jsxs)("a",{href:i,"aria-label":`Leggi l'articolo di ${e}: ${a}`,children:[(0,n.jsx)("div",{className:c["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:t,width:"103",height:"103",alt:e,loading:"lazy",decoding:"async"})})}),(0,n.jsxs)("div",{className:c["article-content"],children:[(0,n.jsx)("div",{className:c["article-author"],children:e}),(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontMobileSize:22,fontWeight:d?400:700,text:a}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:l})]})]})})}},9375:(e,t,i)=>{"use strict";i.d(t,{m:()=>f});var n=i(6029),r=i(5729);let a={"article-podcast":"_article-podcast_4s2va_1","article-image":"_article-image_4s2va_23","article-content":"_article-content_4s2va_43","article-play":"_article-play_4s2va_63","article-play__button":"_article-play__button_4s2va_72","article-podcast-embedded":"_article-podcast-embedded_4s2va_106"},s={"section-title-16":"_section-title-16_uyojx_1",subtitle:"_subtitle_uyojx_13"};function l({title:e,subtitle:t}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:s["section-title-16"],children:e}),t&&(0,n.jsx)("span",{className:s.subtitle,children:t})]})}let o={"article-title":"_article-title_tdzen_7"};function c({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:s=400}){let[l,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:o["article-title"],style:{fontSize:l?a:i,fontWeight:s},children:t})}let d={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function u({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
506olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:d["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${d["article-paragraph"]} ${a&&d[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}function h({size:e=50,color:t="#000"}){return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 50 50",children:(0,n.jsx)("path",{fill:t,d:"M24 0C10.8 0 0 10.8 0 24s10.8 24 24 24 24-10.8 24-24S37.2 0 24 0zm-4.667 34.667V13.333L34 24 19.333 34.667z"})})}let m={"marker-video":"_marker-video_7jv25_1","marker-video--center":"_marker-video--center_7jv25_7","marker-video__pill":"_marker-video__pill_7jv25_10","marker-video__title":"_marker-video__title_7jv25_28"};function p({title:e,align:t="start"}){return(0,n.jsxs)("div",{className:`${m["marker-video"]} ${"center"===t?m["marker-video--center"]:""}`,children:[(0,n.jsxs)("span",{className:m["marker-video__pill"],children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 50 50","aria-hidden":"true",focusable:"false",children:(0,n.jsx)("path",{fill:"#323839",d:"M24 0C10.8 0 0 10.8 0 24s10.8 24 24 24 24-10.8 24-24S37.2 0 24 0zm-4.667 34.667V13.333L34 24 19.333 34.667z"})}),"video"]}),e&&(0,n.jsx)("p",{className:m["marker-video__title"],children:e})]})}function f({title:e,summary:t,image:i,timing:r,url:s,isEmbeddedOnly:o,hasVideo:d}){return(0,n.jsxs)("article",{className:`${a["article-podcast"]} ${o?a["article-podcast-embedded"]:""}`,children:[!o&&(0,n.jsx)("a",{href:"/podcasts/",children:(0,n.jsx)(l,{title:"Podcast"})}),(0,n.jsxs)("a",{href:s,"aria-label":`Ascolta il podcast: ${e}`,children:[(0,n.jsxs)("div",{className:a["article-image"],children:[(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:i,alt:`Ascolta ${e}`,loading:"lazy",decoding:"async"})}),d&&(0,n.jsx)(p,{align:"center"})]}),(0,n.jsxs)("div",{className:a["article-content"],children:[(0,n.jsx)(c,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),t&&(0,n.jsx)(u,{text:t,fontSize:14,lineHeight:20,fontWeight:400,classLimitText:"limit-text3"})]}),(0,n.jsx)("div",{className:a["article-play"],children:(0,n.jsxs)("button",{className:a["article-play__button"],"aria-label":`Ascolta ${e}`,children:[(0,n.jsx)(h,{size:24})," ",r]})})]})]})}},9388:()=>{},9445:()=>{},9497:e=>{"use strict";e.exports=SyntaxError},9512:()=>{},9536:()=>{},9659:(e,t,i)=>{"use strict";i.d(t,{F:()=>l});var n=i(6029);let r={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function a({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:a=400,classLimitText:s,color:l="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:r["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:a,color:l}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${r["article-paragraph"]} ${s&&r[`article-paragraph-${s}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:a,color:l},children:e})})}let s={"article-storie-idee":"_article-storie-idee_1ydor_1","article-content":"_article-content_1ydor_31","article-section":"_article-section_1ydor_47","article-author":"_article-author_1ydor_120","article-image":"_article-image_1ydor_153"};function l({title:e,text:t,image:i,caption:r,url:l,author:o,authorImg:c}){return(0,n.jsxs)("article",{className:s["article-storie-idee"],children:[(0,n.jsxs)("div",{className:s["article-content"],children:[(0,n.jsx)("div",{className:s["article-section"],children:(0,n.jsx)("a",{href:"/storie-idee/","aria-label":"Vai all'archivio di Storie/Idee",children:(0,n.jsxs)("h3",{children:["Storie ",(0,n.jsx)("span",{children:"/"})," Idee"]})})}),(0,n.jsxs)("a",{href:l,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)("h2",{children:e}),(0,n.jsx)(a,{fontSize:14,lineHeight:20,fontWeight:400,color:"#323839",text:t}),o&&(0,n.jsxs)("div",{className:s["article-author"],children:[c&&(0,n.jsx)("figure",{children:(0,n.jsx)("img",{src:c,alt:`Immagine per ${o}`})}),(0,n.jsx)(a,{fontSize:14,lineHeight:16,fontWeight:400,color:"#323839",text:`di <strong>${o}</strong>`})]})]})]}),(0,n.jsx)("div",{className:s["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:l,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:r||e,loading:"lazy",decoding:"async"})})})})]})}},9713:()=>{},9782:(e,t,i)=>{"use strict";var n=i(6526),r=i(2206),a=function(e,t,i){for(var n,r=e;null!=(n=r.next);r=n)if(n.key===t)return r.next=n.next,i||(n.next=e.next,e.next=n),n},s=function(e,t){if(e){var i=a(e,t);return i&&i.value}},l=function(e,t,i){var n=a(e,t);n?n.value=i:e.next={key:t,next:e.next,value:i}},o=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){var i=o(e,t);return i&&e&&!e.next&&(e=void 0),!!i},get:function(t){return s(e,t)},has:function(t){var i;return!!(i=e)&&!!a(i,t)}
506,set:function(t,i){e||(e={next:void 0}),l(e,t,i)}};return t}},9788:()=>{},9819:()=>{},9848:(e,t,i)=>{"use strict";i.d(t,{Y:()=>ei});var n=i(6029),r=i(5729),a=i(9143);let s={"article-title":"_article-title_tdzen_7"};function l({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:s["article-title"],style:{fontSize:o?a:i,fontWeight:l},children:t})}let o={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function c({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,color:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:o["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${o["article-paragraph"]} ${a&&o[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let d={"label-red":"_label-red_jovg7_1"};function u({title:e,color:t="#ff0000"}){return(0,n.jsx)("h3",{className:d["label-red"],style:{color:t},children:e})}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m={exports:{}};m.exports=(function(){if(y)return A;y=1;var e=g?v:(g=1,v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function i(){}return i.resetWarningCache=t,A=function(){function n(t,i,n,r,a,s){if(s!==e){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function r(){return n}n.isRequired=n;var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a}})()();let p=h(m.exports),f=h(function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=i.length)return!1;for(r=n;0!=r--;)if(!e(t[r],i[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,a[r]))return!1;for(r=n;0!=r--;){var n,r,a,s=a[r];if(!e(t[s],i[s]))return!1}return!0}return t!=t&&i!=i});var v,g,A,y,w={exports:{}},b=function(){var e={},t={};return e.on=function(e,i){var n={name:e,handler:i};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var i=t[e.name].indexOf(e);-1!==i&&t[e.name].splice(i,1)},e.trigger=function(e,i){var n,r=t[e];if(r)for(n=r.length;n--;)r[n].handler(i)},e},_={exports:{}},x=function(e,t,i){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");"function"==typeof t&&(i=t,t={}),i=i||function(){},r.type=(t=t||{}).type||"text/javascript",r.charset=t.charset||"utf8",r.async=!("async"in t)||!!t.async,r.src=e,t.attrs&&function(e,t){for(var i in t)e.setAttribute(i,t[i])}(r,t.attrs),t.text&&(r.text=""+t.text),("onload"in r?E:function(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}})(r,i),r.onload||E(r,i),n.appendChild(r)};function E(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}
506!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,n=(i=x)&&i.__esModule?i:{default:i};t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var i="http:"===window.location.protocol?"http:":"https:";(0,n.default)(i+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){r&&r(),t(window.YT)}})},e.exports=t.default}(_,_.exports);var C=_.exports,k={exports:{}},S={exports:{}},L={exports:{}},M=function(e,t){t=t||{};var i,n,r=typeof e;if("string"===r&&e.length>0){var a=e;if(!((a=String(a)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===r&&!1===isNaN(e)){return t.long?N(i=e,864e5,"day")||N(i,36e5,"hour")||N(i,6e4,"minute")||N(i,1e3,"second")||i+" ms":(n=e)>=864e5?Math.round(n/864e5)+"d":n>=36e5?Math.round(n/36e5)+"h":n>=6e4?Math.round(n/6e4)+"m":n>=1e3?Math.round(n/1e3)+"s":n+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function N(e,t,i){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+i:Math.ceil(e/t)+" "+i+"s"}!function(e,t){var i;function n(e){function n(){if(n.enabled){var e=+new Date;n.diff=e-(i||e),n.prev=i,n.curr=e,i=e;for(var r=Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var s=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,i){if("%%"===e)return e;s++;var a=t.formatters[i];if("function"==typeof a){var l=r[s];e=a.call(n,l),r.splice(s,1),s--}return e}),t.formatArgs.call(n,r),(n.log||t.log||console.log.bind(console)).apply(n,r)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i)|0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,r=0;r<n;r++)i[r]&&("-"===(e=i[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var i,n;for(i=0,n=t.skips.length;i<n;i++)if(t.skips[i].test(e))return!1;for(i=0,n=t.names.length;i<n;i++)if(t.names[i].test(e))return!0;return!1},t.humanize=M,t.names=[],t.skips=[],t.formatters={}}(L,L.exports);var T=L.exports;!function(e,t){function i(){var e;try{e=t.storage.debug}catch{}return!e&&"u">typeof a&&"env"in a&&(e=a.env.DEBUG),e}(t=e.exports=T).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+t.humanize(this.diff),i){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))}),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch{}},t.load=i,t.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="u">typeof chrome&&"u">typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}
506(S,S.exports);var j=S.exports,I={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default}(I,I.exports);var D=I.exports,P={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default}(P,P.exports);var O=P.exports,B={exports:{}},H={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default}(H,H.exports);var $=H.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,n=(i=$)&&i.__esModule?i:{default:i};t.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default}(B,B.exports);var z=B.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=s(j),n=s(D),r=s(O),a=s(z);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)("youtube-player"),o={};o.proxyEvents=function(e){var t={},i=function(i){var n="on"+i.slice(0,1).toUpperCase()+i.slice(1);t[n]=function(t){l('event "%s"',n,t),e.trigger(i,t)}},n=!0,a=!1,s=void 0;try{for(var o,c=r.default[Symbol.iterator]();!(n=(o=c.next()).done);n=!0){var d=o.value;i(d)}}catch(e){a=!0,s=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw s}}return t},o.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={},r=function(n){t&&a.default[n]?i[n]=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.then(function(e){var t=a.default[n],r=e.getPlayerState(),s=e[n].apply(e,i);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(r)?new Promise(function(i){e.addEventListener("onStateChange",function n(){var r=e.getPlayerState(),a=void 0;"number"==typeof t.timeout&&(a=setTimeout(function(){e.removeEventListener("onStateChange",n),i()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(r)&&(e.removeEventListener("onStateChange",n),clearTimeout(a),i())})}).then(function(){return s}):s})}:i[n]=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.then(function(e){return e[n].apply(e,i)})}},s=!0,l=!1,o=void 0;try{for(var c,d=n.default[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var u=c.value;r(u)}}catch(e){l=!0,o=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw o}}return i},t.default=o,e.exports=t.default}(k,k.exports);var Y=k.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i="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},n=s(b),r=s(C),a=s(Y);function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,n.default)();if(l||(l=(0,r.default)(o)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=a.default.proxyEvents(o);var c=new Promise(function(n){(typeof e>"u"?"undefined":i(e))==="object"&&e.playVideo instanceof Function?n(e):l.then(function(i){var r=new i.Player(e,t);return o.on("ready",function(){n(r)}),null})}),d=a.default.promisifyPlayer(c,s);return d.on=o.on,d.off=o.off,d},e.exports=t.default}
506(w,w.exports);let V=h(w.exports);var W=Object.defineProperty,R=Object.defineProperties,q=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,G=(e,t,i)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Z=(e,t)=>{for(var i in t||(t={}))U.call(t,i)&&G(e,i,t[i]);if(F)for(var i of F(t))Q.call(t,i)&&G(e,i,t[i]);return e},X=(e,t)=>R(e,q(t));function J(e={}){return X(Z({},e),{height:0,width:0,playerVars:X(Z({},e.playerVars),{autoplay:0,start:0,end:0})})}var K={videoId:p.string,id:p.string,className:p.string,iframeClassName:p.string,style:p.object,title:p.string,loading:p.oneOf(["lazy","eager"]),opts:p.objectOf(p.any),onReady:p.func,onError:p.func,onPlay:p.func,onPause:p.func,onEnd:p.func,onStateChange:p.func,onPlaybackRateChange:p.func,onPlaybackQualityChange:p.func},ee=class extends r.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,i;return null==(i=(t=this.props).onReady)?void 0:i.call(t,e)},this.onPlayerError=e=>{var t,i;return null==(i=(t=this.props).onError)?void 0:i.call(t,e)},this.onPlayerStateChange=e=>{var t,i,n,r,a,s,l,o;switch(null==(i=(t=this.props).onStateChange)||i.call(t,e),e.data){case ee.PlayerState.ENDED:null==(r=(n=this.props).onEnd)||r.call(n,e);break;case ee.PlayerState.PLAYING:null==(s=(a=this.props).onPlay)||s.call(a,e);break;case ee.PlayerState.PAUSED:null==(o=(l=this.props).onPause)||o.call(l,e)}},this.onPlayerPlaybackRateChange=e=>{var t,i;return null==(i=(t=this.props).onPlaybackRateChange)?void 0:i.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,i;return null==(i=(t=this.props).onPlaybackQualityChange)?void 0:i.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if(typeof document>"u")return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=X(Z({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=V(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,i,n;if(typeof this.props.videoId>"u"||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let r=!1,a={videoId:this.props.videoId};if(null!=(t=this.props.opts)&&t.playerVars&&(r=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),r){null==(i=this.internalPlayer)||i.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,i;return t=this,i=function*(){var t,i,n,r,a,s;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(i=e.opts)?void 0:i.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(r=e.opts)?void 0:r.height)!==(null==(a=t.opts)?void 0:a.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),s=this.props,e.videoId===s.videoId&&f(J(e.opts),J(s.opts))||(yield this.resetPlayer()),function(e,t){var i,n;if(e.videoId!==t.videoId)return!0;let r=(null==(i=e.opts)?void 0:i.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return r.start!==a.start||r.end!==a.end}(e,this.props)&&this.updateVideo()}
506,new Promise((e,n)=>{var r=e=>{try{s(i.next(e))}catch(e){n(e)}},a=e=>{try{s(i.throw(e))}catch(e){n(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,a);s((i=i.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return r.createElement("div",{className:this.props.className,style:this.props.style},r.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};ee.propTypes=K,ee.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},ee.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};let et={"article-live-streaming":"_article-live-streaming_1uzcz_1","article-content":"_article-content_1uzcz_25","article-video":"_article-video_1uzcz_55",livestreaming:"_livestreaming_1uzcz_66","livestreaming-no-subscriber":"_livestreaming-no-subscriber_1uzcz_67"};function ei({title:e,text:t,image:i,url:r,isLive:a=!0,livestreaming:s,livestreaming_id:o,livestreaming_subscriber:d,livestreaming_id_subscriber:h,subscriber:m}){let p={height:"390",width:"640",playerVars:{autoplay:1,showinfo:0,enablejsapi:1,playsinline:1,mute:1}},f=e=>{e.target.playVideo()};return(0,n.jsxs)("article",{className:et["article-live-streaming"],children:[(0,n.jsxs)("div",{className:et["article-content"],children:[(0,n.jsx)(u,{title:"IN DIRETTA"}),(0,n.jsxs)("a",{href:r,"aria-label":e,children:[(0,n.jsx)(l,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),(0,n.jsx)(c,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]}),(0,n.jsxs)("div",{className:et["article-video"],children:[s&&!d&&""!=o?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:et.livestreaming,children:(0,n.jsx)(ee,{videoId:o,opts:p,onReady:e=>f(e)})})}):null,s&&d&&""!=h&&m?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:et.livestreaming,children:(0,n.jsx)(ee,{videoId:h,opts:p,onReady:e=>f(e)})})}):null,s&&d&&""!=h&&!m?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:et["livestreaming-no-subscriber"],children:(0,n.jsx)(ee,{videoId:o,opts:p,onReady:e=>f(e)})})}):null]})]})}},9875:(e,t,i)=>{"use strict";i.d(t,{K:()=>G});var n=i(6029),r=i(5729);let a={"article-open-standard-big":"_article-open-standard-big_n1zbf_1","with-relateds":"_with-relateds_n1zbf_17","article-image":"_article-image_n1zbf_34","article-container":"_article-container_n1zbf_44","article-content":"_article-content_n1zbf_47","article-link":"_article-link_n1zbf_80","breaking-news":"_breaking-news_n1zbf_83","video-container":"_video-container_n1zbf_106","video-loader":"_video-loader_n1zbf_127","article-relateds":"_article-relateds_n1zbf_149","article-live-items":"_article-live-items_n1zbf_150"},s={"article-title":"_article-title_tdzen_7"};function l({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:a=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:s["article-title"],style:{fontSize:o?a:i,fontWeight:l},children:t})}let o={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function c({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
506olor:s="var(--Greyscale-Text-Summary)"}){let l={};return l.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:l.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...l,className:o["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${o["article-paragraph"]} ${a&&o[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let d={"label-special":"_label-special_44qb7_1","label-special-link":"_label-special-link_44qb7_5"};function u({logo:e,backgroundColor:t="#12638b",title:i,titleColor:r="#a7f0fb",liveText:a="Live",liveTextColor:s="#fff",url:l}){return(0,n.jsx)("div",{className:d["label-special"],style:{backgroundColor:t},children:(0,n.jsxs)("a",{href:l??"#",className:d["label-special-link"],"aria-label":"Vai al Live",children:[e&&(0,n.jsx)("img",{src:e,alt:i&&i}),i&&(0,n.jsxs)("h3",{style:{color:r},children:[a&&(0,n.jsx)("strong",{style:{color:s},children:a}),i]})]})})}let h={"label-live":"_label-live_y66gb_1"};function m({title:e="Live"}){return(0,n.jsx)("h3",{className:h["label-live"],children:e})}let p={"single-related":"_single-related_ro9qy_1","single-related-title":"_single-related-title_ro9qy_9"};function f({title:e,summary:t,url:i,titleTag:r="h3"}){return(0,n.jsx)("article",{className:p["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(r,{className:p["single-related-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let v={"single-live-item":"_single-live-item_j9dqo_1"};function g({title:e,summary:t,url:i,date:r,titleTag:a="h3"}){return(0,n.jsx)("article",{className:v["single-live-item"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)(a,{className:v["single-live-item-title"],children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let A={"breaking-news":"_breaking-news_6kvlp_1"},y=({date:e,expired:t=50})=>{let[i,a]=(0,r.useState)("");if((0,r.useEffect)(()=>{if(!e)return;let i=e=>`${e} ${1===e?"minuto":"minuti"}`,n=e=>`${e} ${1===e?"ora":"ore"}`,r=()=>{let r=new Date,s=new Date(e);if(isNaN(s.getTime()))return;let l=Math.floor((r.getTime()-s.getTime())/6e4);if(l<0||l>t)return void a("");let o=Math.floor(l/60),c=l%60;a(0===o?`${i(c)} fa`:c<=0?`${n(o)} fa`:`${n(o)} e ${i(c)} fa`)};r();let s=setInterval(r,6e4);return()=>clearInterval(s)},[e,t]),!i)return null;let s=new Date(e),l=isNaN(s.getTime())?void 0:s.toISOString();return(0,n.jsx)("time",{className:A["breaking-news"],dateTime:l,children:i})},w=(e=40,t="#fff")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 40 40" fill="none">
507  <path fill-rule="evenodd" clip-rule="evenodd" d="M14.2197 35.1651C13.3957 35.7832 12.2197 35.1952 12.2197 34.1651V5.83178C12.2197 4.80173 13.3957 4.21375 14.2197 4.83179L33.1086 18.9985C33.7753 19.4985 33.7753 20.4985 33.1086 20.9985L14.2197 35.1651Z" fill="${t}" />
508</svg>`,b=(e,t)=>{let i=document.createElement("button");return i.className="video-player-default-button",i.innerHTML=e,i.title=t,i},_=(e=32)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
509      <path fill="#f1f1f3" fill-rule="evenodd" d="M11.998.001c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12M10.558 16.681a.6.6 0 0 1-.96-.48v-8.4a.6.6 0 0 1 .96-.48l5.6 4.2a.6.6 0 0 1 0 .96z" clip-rule="evenodd"/>
510    </svg>`,x="DISCONNECTED",E=new Set;async function C(e){let t=window;if("CONNECTING"!==x){if(t.Android?.startCast)return void t.Android.startCast(e);if(t.webkit?.messageHandlers?.cast)return void t.webkit.messageHandlers.cast.postMessage({streamUrl:e});if(t.cast?.framework){let i=t.cast.framework.CastContext.getInstance(),n=i.getCurrentSession();if(!n){k("CONNECTING");try{await i.requestSession(),n=i.getCurrentSession()}catch{k("DISCONNECTED");return}if(!n)return void k("DISCONNECTED")}let r=new window.chrome.cast.media.MediaInfo(e,"application/x-mpegURL");r.streamType=window.chrome.cast.media.StreamType.BUFFERED;let a=new window.chrome.cast.media.LoadRequest(r);await n.loadMedia(a);return}console.warn("Cast not supported in this environment")}}
510function k(e){x!==e&&(x=e,E.forEach(t=>t(e)))}function S(e){return E.add(e),e(x),()=>{E.delete(e)}}function L(){return window.cast?.framework?.CastContext?.getInstance()?.getCurrentSession?.()}function M(e){let t=L();if(!t)return;let i=t.getMediaSession?.();i&&(e?i.play(null):i.pause(null))}let N=!1,T=!1,j=null;S(e=>{"CONNECTED"===e&&function(){if(N)return;N=!0;let e=L();if(!e)return;let t=e.getMediaSession?.();t&&t.addUpdateListener(()=>{let e=j;e&&t&&(T=!0,e.currentTime=t.currentTime,"PLAYING"===t.playerState&&e.play().catch(()=>{}),"PAUSED"===t.playerState&&e.pause(),T=!1)})}(),"DISCONNECTED"===e&&(N=!1)});let I=e=>{e&&(e.remove(),e=null)},D=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
511    <path stroke="${t}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" d="M5 9.375V5h4.375M19 9.375V5h-4.375m-5.25 14H5v-4.375M14.625 19H19v-4.375"/>
512  </svg>`,P=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
513    <path fill="${t}" d="M12.625 4.148a.65.65 0 0 1 1.023.533v14.641a.65.65 0 0 1-1.023.533L7.563 16.31H5.677c-.473 0-.892-.23-1.179-.517s-.517-.705-.518-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.886zm2.465.85a.65.65 0 0 1 .821-.411l-.137.411.138-.411h.003l.005.002.015.006.05.017c.04.016.1.038.171.068.144.06.345.15.584.273a8.7 8.7 0 0 1 1.751 1.202c1.285 1.142 2.572 3.008 2.572 5.846s-1.287 4.704-2.572 5.846a8.7 8.7 0 0 1-2.335 1.475q-.108.044-.172.068l-.05.017-.014.005-.005.002-.002.001s-.01-.023-.207-.616l.205.616a.65.65 0 0 1-.411-1.233l.004-.001.03-.011.126-.05a6 6 0 0 0 .483-.226c.405-.21.945-.54 1.484-1.019 1.069-.95 2.135-2.483 2.135-4.874s-1.066-3.924-2.135-4.874a7.4 7.4 0 0 0-1.484-1.02 6 6 0 0 0-.64-.286L15.5 5.82h.002a.65.65 0 0 1-.411-.82M8.14 8.873a.65.65 0 0 1-.371.118H5.677c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.092l.098.008a.65.65 0 0 1 .274.109l4.207 2.944V5.928zm7-.387a.68.68 0 0 1 .943-.188l-.169.254.17-.254h.002l.002.003.008.006.021.014.069.051a4.691 4.691 0 0 1 .849.868c.457.61.92 1.535.92 2.761a4.55 4.55 0 0 1-.92 2.76 4.7 4.7 0 0 1-.85.869l-.068.05-.021.015-.008.005-.002.002-.002.001-.001.001a.68.68 0 0 1-.758-1.129l.003-.002h.002l.031-.024a3.334 3.334 0 0 0 .585-.602c.327-.436.649-1.08.649-1.946s-.322-1.51-.649-1.945a3.4 3.4 0 0 0-.446-.489 2 2 0 0 0-.17-.137v-.002a.68.68 0 0 1-.19-.942"/>
514  </svg>`,O=()=>/Apple/i.test(navigator.vendor||""),B=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${i}:${n.toString().padStart(2,"0")}`},H=(e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24"><path fill="${t}" d="M10.432 13c1.239 0 2.276.851 2.566 2h5.347a.65.65 0 0 1 0 1.3h-5.347a2.65 2.65 0 0 1-2.566 2 2.65 2.65 0 0 1-2.567-2H5.65a.65.65 0 0 1 0-1.3h2.215c.29-1.149 1.328-2 2.567-2m0 1.3a1.35 1.35 0 1 0 0 2.7 1.35 1.35 0 0 0 0-2.7"/><path fill="${t}" fillRule="evenodd" d="M13.871 6a2.65 2.65 0 0 0-2.566 2H5.652a.65.65 0 0 0 0 1.3h5.653c.29 1.15 1.327 2 2.566 2a2.65 2.65 0 0 0 2.565-2h1.925a.65.65 0 0 0 0-1.3h-1.925a2.65 2.65 0 0 0-2.565-2m0 1.3a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7" clipRule="evenodd"/></svg>`,$=e=>{let t=e.split(":").map(e=>parseFloat(e)),[i,n,r]=3===t.length?t:[0,t[0],t[1]];return 3600*i+60*n+r},z={top:10,middle:50,bottom:null},Y=(e,t)=>{let i=()=>{e.cues&&Array.from(e.cues).forEach(e=>((e,t)=>{let i=z[t];if(null!==i)try{e.snapToLines=!1,e.line=i,e.align="center"}catch{}})(e,t))};i(),e.addEventListener("cuechange",i)},V=async e=>{try{let t=(await fetch(e,{cache:"force-cache"}).then(e=>e.text())).split(`
515`).find(e=>e.endsWith(".m3u8"));if(!t)return;let i=new URL(t,e).href,n=(await fetch(i,{cache:"force-cache"}).then(e=>e.text())).split(`
516`).find(e=>e.includes(".ts")||e.includes(".m4s")||e.includes(".mp4"));if(!n)return;let r=new URL(n,i).href;fetch(r,{cache:"force-cache"}).catch(e=>{console.warn("HLS segment preload failed:",e)})}catch(e){console.warn("HLS preload failed:",e)}};function W({show:e=!0,size:t,color:i}){return e?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,n.jsx)("path",{fill:i,d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661-10.875 0-19.681-8.796-19.681-19.661V51.364c0-10.885 8.806-19.661 19.681-19.661 10.844 0 19.682 8.776 19.682 19.661v96.635zm0 312.616c0 10.865-8.837 19.682-19.682 19.682-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681 10.844 0 19.682 8.796 19.682 19.682v96.604zM147.978 236.339c10.885 0 19.681 8.755 19.681 19.641 0 10.885-8.796 19.702-19.681 19.702H51.354c-10.864 0-19.661-8.817-19.661-19.702 0-10.885 8.796-19.641 19.661-19.641h96.624zm312.637 0c10.865 0 19.682 8.755 19.682 19.641 0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702 0-10.885 8.837-19.641 19.722-19.641h96.584zm-267.069-70.636c7.69 7.66 7.68 20.142 0 27.822-7.701 7.701-20.162 7.701-27.853.02l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863 7.68-7.68 20.121-7.68 27.822 0l68.342 68.342zm221.051 221.072c7.7 7.68 7.7 20.163.021 27.863-7.7 7.659-20.142 7.659-27.843-.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863 7.68-7.7 20.163-7.7 27.842 0l68.291 68.322zm-248.903-68.311c7.69-7.7 20.153-7.7 27.853 0 7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-.062-7.68-7.68-7.68-20.122 0-27.801l68.3
51611-68.322zM386.775 97.362c7.7-7.68 20.142-7.68 27.822 0 7.7 7.68 7.7 20.183.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-.02-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})}):(0,n.jsx)(n.Fragment,{})}let R=null,q=()=>R||(R=new Promise((e,t)=>{if(window.cast)return void e();let i=document.createElement("script");i.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",i.onload=()=>e(),i.onerror=t,document.head.appendChild(i)})),F=({videoId:e,baseUrl:t,enablePipButton:i=!0,enableQualityButton:a=!0,enableCastButton:s=!0,enableSubtitlesButton:l=!0,subtitlesToggleMode:o=!0,subtitlesPosition:c="bottom",accessLevel:d="all",user:u,handleLock:h,forceHls:m=!1,autoplayPreview:p=!1,link:f,onPlayerEvent:v,customPosterUrl:g,previewVideoUrl:A})=>{let y=(0,r.useRef)(null),E=(0,r.useRef)(v);E.current=v;let[N,z]=(0,r.useState)(()=>"all"===d),R=i&&!p,F=a&&!p,U=s&&!p,Q=l&&!p,G="registered"===d||"subscriber"===d,Z="all"!==d&&null==u;if((0,r.useEffect)(()=>{Z||z(!!("all"===d||"registered"===d&&u?.logged||"subscriber"===d&&(u?.issubscriber||u?.admin)))},[u,d,Z]),(0,r.useEffect)(()=>{U&&q().then(async()=>{await new Promise(e=>{let t=()=>{window.cast?.framework?e():setTimeout(t,50)};t()}),function(){let e=window;if(!e.cast?.framework?.CastContext)return console.warn("Cast framework not ready");e.cast.framework.CastContext.getInstance().setOptions({receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped"})}(),function(){let e=window,t=e.cast?.framework?.CastContext,i=e.cast?.framework?.CastContextEventType,n=e.cast?.framework?.SessionState;if(!t||!i||!n)return console.warn("Cast SDK not ready for state sync");t.getInstance().addEventListener(i.SESSION_STATE_CHANGED,e=>{switch(e.sessionState){case n.SESSION_STARTING:k("CONNECTING");break;case n.SESSION_STARTED:case n.SESSION_RESUMED:k("CONNECTED");break;case n.SESSION_ENDING:k("DISCONNECTING");break;case n.SESSION_ENDED:case n.NO_SESSION:k("DISCONNECTED")}})}()}).catch(e=>{console.warn("Cast SDK not available:",e)})},[U]),(0,r.useEffect)(()=>{if(Z)return;let i=!N&&G,n=y.current;if(!n||!e)return;n.replaceChildren();let r=A||`${t}/${e}/master.m3u8`,a=!!A&&/\.m3u8(\?|$)/i.test(A),s=g||`${t}/${e}/poster.jpg`,l=`${t}/${e}/thumbs.vtt`,u=null,f=!1,v=!1,k,z,W={enablePipButton:R,enableQualityButton:F,enableCastButton:U,enableSubtitlesButton:Q,minimal:p,onSeek:(e,t)=>E.current?.({type:"seek",from:e,to:t}),onFullscreenEnter:e=>E.current?.({type:"fullscreenenter",currentTime:e}),onSkip:(e,t,i)=>E.current?.({type:"skip",direction:e,from:t,to:i}),onMuteToggle:e=>E.current?.({type:"mutetoggle",muted:e}),onPipActivate:()=>E.current?.({type:"pipactivate"}),onCastActivate:()=>E.current?.({type:"castactivate"})},X=e=>{let{video:t,playerWrapper:i}=u=((e,t,i,n,r={})=>{let{enablePipButton:a,enableQualityButton:s,enableCastButton:l,enableSubtitlesButton:o=!0,minimal:c,onSeek:d,onFullscreenEnter:u,onSkip:h,onMuteToggle:m,onPipActivate:p,onCastActivate:f}=r,v=document.createElement("div");v.id="video-player-container",v.className="video-player-container";let g=document.createElement("div");g.className="video-player-wrapper";let A=document.createElement("video");A.id="video-player",A.controls=!1,A.playsInline=!0,A.poster=t,A.className="video-player-element",c&&(A.muted=!0,A.loop=!0,A.autoplay=!0);let y=document.createElement("div");y.className="controls-bar";let x=document.createElement("div");x.className="controls-row";let{bigPlayButton:E}=(e=>{let t=document.createElement("div");return t.className="big-play-button",t.innerHTML=w(40),t.onclick=()=>{e.play(),t.classList.remove("visible")},{bigPlayButton:t}})(A),{playButton:k,rewindButton:S,forwardButton:L}=((e,t)=>{let i=b(_(32),"Play");i.classList.add("play-button"),i.onclick=()=>{e.paused?e.play():e.pause()};let n=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 106 106">
517    <g fill="${t}">
518      <path d="M43.95 0h3.64c3.8 4.94-2.9 8.5-5.44 12.13 10.68.68 21.8 1.19 31.53 6.17 16.65 8.19 26.83 27.26 24.9 45.65-1.53 20.84-18.62 38.28-38.89 42.05h-15.3c-13.91-2.69-26.85-11.09-33.65-23.71-7.28-12.94-7.86-29.58-1.24-42.9 1.71-4.18 8.49-.77 5.92 3.11-4.95 10.86-5.11 23.89.35 34.6 6.74 14.22 22.5 23.42 38.19 22.4 16.99-.67 32.62-13.36 36.71-29.87 4.55-16.11-2.72-34.54-16.85-43.43-9.32-6.07-20.8-6.7-31.58-7.2 2.17 2.72 4.8 5.14 6.5 8.2 1.44 3.46-3.82 6.04-5.87 3.08
518-3.77-4.33-7.61-8.64-10.98-13.29-1.68-1.9.34-4.03 1.59-5.48C36.98 7.68 40.34 3.73 43.95 0"/><path d="M35.3 42.23c2.14-1.54 5.6.16 5.19 2.92.08 11.97-.08 23.94.07 35.91-2.26.2-4.52.24-6.78.18-.07-9.79-.01-19.59-.02-29.38-1.95 1.43-3.9 2.85-5.85 4.28-1.39-1.76-2.76-3.53-4.11-5.32 3.77-2.94 7.52-5.94 11.5-8.59M57.36 42.44c6.02-2.05 13.34-.12 16.9 5.33 5.59 8.2 5.53 20.13-.23 28.23-5.14 7.4-17.21 7.78-22.78.7-7.93-9.98-6.61-28.84 6.11-34.26m4.86 5.93c-9.94 1.32-10.87 15.08-6.88 22.28 2.73 6.22 12.44 5.5 14.52-.88 3.43-7.18 2.17-20.62-7.64-21.4"/>
519    </g>
520  </svg>`)(24,"#f1f1f3"),"Rewind 10s");n.classList.add("rewind-button"),n.onclick=()=>{let i=e.currentTime;e.currentTime=Math.max(0,e.currentTime-10),t?.("rewind",i,e.currentTime)};let r=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 107 107">
521    <g fill="${t}">
522      <path d="M56.69 0h4.14c4.27 5 9.64 9.39 12.75 15.19-2.36 5.57-7.47 9.55-11.01 14.42-1.54 3.16-7.16 2.21-6.6-1.59 1.04-3.59 4.41-6.02 6.56-9.01-9.56.43-19.5.93-28.21 5.3-13.05 6.65-21.8 21.02-21.38 35.71-.12 15.91 10.53 31.07 25.34 36.72 12.79 5.19 28.15 3.02 39.04-5.43C90.2 81.75 96.21 63.94 91.5 48.57c-.8-2.86-2.37-5.51-2.67-8.49.6-3.18 5.48-3.59 6.52-.5 6.99 14.35 5.73 32.36-3.15 45.64-9.1 14.23-26.42 22.53-43.21 20.91-17.95-1.26-34.43-13.9-40.22-30.94-7.54-20.42 1.39-45.37 20.52-55.92 10.1-5.8 22-6.48 33.34-7.11-2.71-3.65-8.44-6.9-5.94-12.16"/>
523      <path d="M37.28 42.2c2.02-1.4 5.47.15 5.12 2.81.23 12.07.07 24.16.07 36.23h-6.69c-.09-9.83.03-19.65-.06-29.48-1.97 1.47-3.98 2.89-5.94 4.37-1.39-1.78-2.78-3.56-4.14-5.37 3.9-2.83 7.6-
5235.94 11.64-8.56M59.35 42.4c6.25-2.13 13.79.25 17.18 6.03 5.44 8.95 4.98 21.91-2.5 29.59-6.44 6.29-18.25 4.45-22.51-3.48-5.99-10.25-4.32-27.24 7.83-32.14m4.87 5.99c-7.6.23-9.89 9.5-9.12 15.68.25 5.78 5.02 12.96 11.61 10.57 9.78-4.72 9.16-24.65-2.49-26.25"/>
524    </g>
525  </svg>`)(24),"Forward 10s");return r.classList.add("forward-button"),r.onclick=()=>{let i=e.currentTime;e.currentTime=Math.min(e.duration,e.currentTime+10),t?.("forward",i,e.currentTime)},{playButton:i,rewindButton:n,forwardButton:r}})(A,h),{volumeContainer:M}=((e,t={})=>{let{hideSlider:i,onMuteToggle:n}=t,r=document.createElement("div");r.className="volume-container";let a=b(P(24),"Volume");a.classList.add("volume-button"),r.appendChild(a);let s=null,l=null,o=null,c=null;if(!i){(s=document.createElement("div")).className="volume-slider-container",(l=document.createElement("div")).className="volume-slider-track",(o=document.createElement("div")).className="volume-slider-fill",(c=document.createElement("div")).className="volume-slider-thumb",l.appendChild(o),l.appendChild(c),s.appendChild(l),r.appendChild(s);let e=s;r.onmouseenter=()=>e.classList.add("active"),r.onmouseleave=()=>e.classList.remove("active")}let d=()=>{let t=e.muted?0:e.volume,i=100*t;o&&(o.style.width=i+"%"),c&&(c.style.left=i+"%"),0===t?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
526    <path fill="${t}" d="M12.629 4.15a.65.65 0 0 1 1.022.532v14.641a.65.65 0 0 1-1.022.532l-5.063-3.543H5.681c-.473 0-.892-.23-1.18-.517-.286-.287-.516-.705-.517-1.178v-5.23c0-.472.23-.89.518-1.178.287-.287.706-.517 1.179-.517h1.885zM8.145 8.873a.65.65 0 0 1-.373.118H5.681c-.05 0-.155.031-.26.136s-.136.21-.136.26v5.23c0 .05.032.154.136.258s.21.137.26.137h2.091l.1.008a.65.65 0 0 1 .273.109l4.207 2.944V5.93zm12.762-.47a.651.651 0 0 1 .92.92l-2.416 2.415 2.416 2.416a.651.651 0 0 1-.92.92l-2.416-2.416-2.416 2.416a.65.65 0 0 1-.92-.92l2.416-2.416-2.416-2.416a.651.651 0 0 1 .92-.92l2.416 2.416z"/>
527  </svg>`)(24):t<.5?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" viewBox="0 0 100 100">
528    <path fill="${t}
528" d="M52.45 17.29c1.87-1.66 5.09.24 4.53 2.69.03 20.02.04 40.05 0 60.07.59 2.48-2.65 4.29-4.53 2.67-7.31-4.62-14.01-10.27-21.47-14.61-5.01-.25-12.39 1.19-14.22-5.16-.43-8.6-.49-17.33.04-25.92 1.85-6.27 9.18-4.92 14.17-5.14 7.47-4.33 14.16-9.99 21.48-14.6M33.46 37.31c-3.68.49-7.44-.14-11.11.57-.17 8.08-.16 16.16 0 24.23 3.66.73 7.4.08 11.07.58 6.14 3.73 11.79 8.24 17.79 12.21.07-16.6.07-33.19 0-49.79-5.97 3.98-11.63 8.48-17.75 12.2"/>
529  </svg>`)(24):a.innerHTML=P(24)};if(a.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.muted||0===e.volume?(e.muted=!1,e.volume=1):e.muted=!0,d(),n?.(e.muted)},l){let t=l,i=!1,n=i=>{let n=t.getBoundingClientRect();e.volume=Math.max(0,Math.min(1,(("touches"in i?i.touches[0].clientX:i.clientX)-n.left)/n.width)),e.muted=!1,d()},r=e=>{i&&n(e)},a=()=>{i=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};t.onmousedown=e=>{i=!0,n(e),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)};let s=e=>{i&&n(e)},o=()=>{i=!1,document.removeEventListener("touchmove",s),document.removeEventListener("touchend",o)};t.addEventListener("touchstart",e=>{i=!0,n(e),document.addEventListener("touchmove",s),document.addEventListener("touchend",o)},{passive:!0})}return d(),{volumeContainer:r}})(A,{hideSlider:c,onMuteToggle:m}),{timeDisplay:N}=(e=>{let t=document.createElement("div");return t.className="time-display",t.textContent="0:00 / 0:00",e.addEventListener("timeupdate",()=>{if(e.duration>0){let i=B(e.currentTime),n=B(e.duration);t.textContent=`${i} / ${n}`}}),{timeDisplay:t}})(A),{qualityMenu:T,qualityButton:j}=(()=>{let e=document.createElement("div");e.className="quality-menu";let t=b(H(24),"Quality");return t.id="video-player-quality-button",t.classList.add("quality-button"),{qualityMenu:e,qualityButton:t}})(),{subtitlesMenu:I,subtitlesButton:O}=(()=>{let e=document.createElement("div");e.className="quality-menu subtitles-menu";let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
530    <path stroke="${t}" stroke-width="1.3" d="M4.5 6.5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1z"/>
531    <path fill="${t}" d="M6.75 10.5a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm6.75-2.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm0 2.25a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"/>
532  </svg>`)(24),"Sottotitoli");return t.id="video-player-subtitles-button",t.classList.add("quality-button","subtitles-button"),t.style.display="none",{subtitlesMenu:e,subtitlesButton:t}})(),{pipButton:z}=((e,t)=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
533    <path stroke="${t}" stroke-linecap="square" stroke-linejoin="round" stroke-width="1.3" d="M16 10.5V6.263C16 5.566 15.449 5 14.77 5H5.23C4.5 5 4 5.5 4 6.263v7.474C4 14.434 4.551 15 5.23 15H9m10.18-2c.453 0 .82.34.82.758v4.484c0 .419-.367.758-.82.758h-6.36c-.453 0-.82-.34-.82-.758v-4.484c0-.458.333-.758.82-.758z"/>
534  </svg>`)(24),"Picture in Picture");return i.classList.add("pip-button"),document.pictureInPictureEnabled?(i.classList.add("visible"),i.onclick=async()=>{try{document.pictureInPictureElement?await document.exitPictureInPicture():await e.requestPictureInPicture()}catch(e){console.error("PiP error:",e)}},e.addEventListener("enterpictureinpicture",()=>{i.classList.add("active"),t?.()}),e.addEventListener("leavepictureinpicture",()=>{i.classList.remove("active")})):(i.classList.remove("visible"),console.warn("Picture-in-Picture not supported")),{pipButton:i}})(A,p),{airplayButton:Y}=(e=>{let t=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}" viewBox="0 0 24 24">
535    <path fill="${t}" d="m7.616 18.18 4-4.18a.5.5 0 0 1 .769 0l4 4.18A.5.5 0 0 1 16 19H8a.5.5 0 0 1-.384-.82"/>
536    <path stroke="${t}" stroke-width="1.3" d="M7 15c-2 0-2-2-2-2V7c0-2 2.286-2 2.286-2h9.428S19 5 19 7v6s0 2-2 2m-5.384-1-4 4.18A.5.5 0 0 0 8 19h8a.5.5 0 0 0 .384-.82l-4-4.18a.5.5 0 0 0-.768 0Z"/>
537  </svg>`)(24),"AirPlay");return t.classList.add("airplay-button"),window.WebKitPlaybackTargetAvailabilityEvent||(t.classList.add("hidden"),console.warn("AirPlay not supported")),e.setAttribute("x-webkit-airplay","allow"),t.onclick=()=>{e.webkitShowPlaybackTargetPicker&&e.webkitShowPlaybackTargetPicker()},e.addEventListener("webkitplaybacktargetavailabilitychanged",e=>{"available"===e.availability?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",()=>{e.webkitCurrentPlaybackTargetIsWireless?t.classList.add("connected"):t.classList.remove("connected")}),{airplayButton:t}})(A),{fullscreenButton:V}=((e,t,i)=>{let n=document,r=()=>!!(document.fullscreenElement||n.webkitFullscreenElement),a=b(D(24),"Fullscreen");a.classList.add("fullscreen-button"),a.onclick=()=>{r()?document.exitFullscreen?document.exitFullscreen():n.webkitExitFullscreen&&n.webkitExitFullscreen():(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),i?.(t.currentTime))};let s=()=>{r()?a.innerHTML=((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 24 24">
538    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
539      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
540    </g>
541    <g stroke="${t}" stroke-linecap="round" stroke-linejoin="round">
542      <path d="m5.5 18.5 4-4M6 14.5h3.5V18M18.5 18.5l-4-4M18 14.5h-3.5V18M5.5 5.5l4 4M6 9.5h3.5V6M18.5 5.5l-4 4M18 9.5h-3.5V6"/>
543    </g>
544  </svg>`)(24):a.innerHTML=D(24)};return document.addEventListener("fullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),{fullscreenButton:a}})(g,A,u),{castButton:W}=(({videoUrl:e,onCastActivate:t})=>{let i=b(((e=24,t="#f1f1f3")=>`<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="${e}" height="${e}
544" viewBox="0 0 24 24"><path fill="${t}" d="M17.4 4.5a2.65 2.65 0 0 1 2.65 2.65V17a2.65 2.65 0 0 1-2.65 2.65h-3.766v-1.3H17.4A1.35 1.35 0 0 0 18.75 17V7.15A1.35 1.35 0 0 0 17.4 5.8H6.65A1.35 1.35 0 0 0 5.3 7.15v2.943H4V7.15a2.65 2.65 0 0 1 2.65-2.649zM4 16.5a2.65 2.65 0 0 1 2.65 2.65h-1.3A1.35 1.35 0 0 0 4 17.8zM4 14a5.15 5.15 0 0 1 5.15 5.15h-1.3A3.85 3.85 0 0 0 4 15.3zm0-2.5a7.65 7.65 0 0 1 7.65 7.65h-1.3A6.35 6.35 0 0 0 4 12.8z"/></svg>`)(24),"Cast");return i.id="video-player-cast-button",i.type="button",i.onclick=async()=>{let i=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if(i)return void function(e){let t=document.querySelector(".cast-overlay");t&&t.remove();let i=document.createElement("div");i.className="cast-overlay";let n=e.getCastDevice?.()?.friendlyName??"TV";i.innerHTML=`
545    <div class="cast-modal">
546      <div class="cast-title">Casting to</div>
547      <div class="cast-device">${n}</div>
548
549      <div class="cast-actions">
550        <button class="cast-stop">Interrompi trasmissione</button>
551        <button class="cast-cancel">Annulla</button>
552      </div>
553    </div>
554  `;let r=i.querySelector(".cast-stop"),a=i.querySelector(".cast-cancel");r?.addEventListener("click",async()=>{await e.endSession(!0),i.remove()}),a?.addEventListener("click",()=>{i.remove()}),i.addEventListener("click",e=>{e.target===i&&i.remove()}),document.body.appendChild(i)}(i);t?.(),C(e)},{castButton:i}})({videoUrl:e,onCastActivate:f}),R=document.createElement("div");R.className="control-spacer",x.appendChild(k),x.appendChild(S),x.appendChild(L),x.appendChild(M),x.appendChild(N),x.appendChild(R),a&&x.appendChild(z),x.appendChild(Y),o&&x.appendChild(O),s&&x.appendChild(j),x.appendChild(V),l&&x.appendChild(W),y.appendChild(x);let{progressContainer:q}=((e,t)=>{let i=document.createElement("div");i.className="progress-container";let n=document.createElement("div");n.className="video-progress-bar";let r=document.createElement("div");r.className="video-progress-thumb";let a=!1,s=0,l=e=>{n.style.width=e+"%",r.style.left=e+"%"};e.addEventListener("timeupdate",()=>{!a&&e.duration>0&&l(e.currentTime/e.duration*100)});let o=document.createElement("div");o.className="video-progress-buffer",e.addEventListener("progress",()=>{if(e.buffered.length>0&&e.duration>0){let t=e.buffered.end(e.buffered.length-1)/e.duration*100;o.style.width=t+"%"}});let c=(t,i)=>{let n=i.getBoundingClientRect(),r=Math.max(0,Math.min(1,(("touches"in t?t.touches[0].clientX:t.clientX)-n.left)/n.width));e.currentTime=r*e.duration,l(100*r)};i.addEventListener("click",e=>{a||c(e,i)});let d=e=>{a&&c(e,i)},u=()=>{a&&(a=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),t?.(s,e.currentTime))};i.addEventListener("mousedown",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)});let h=e=>{a&&c(e,i)},m=()=>{a&&(a=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",m),t?.(s,e.currentTime))};return i.addEventListener("touchstart",t=>{s=e.currentTime,a=!0,c(t,i),document.addEventListener("touchmove",h),document.addEventListener("touchend",m)},{passive:!0}),i.appendChild(o),i.appendChild(n),i.appendChild(r),{progressContainer:i}})(A,d);y.appendChild(q);let{thumbnailPreview:F}=((e,t,i,n)=>{let r=document.createElement("div");r.className="thumbnail-preview";let a=document.createElement("div");a.className="thumbnail-image";let s=document.createElement("div");return s.className="thumbnail-time",r.appendChild(a),r.appendChild(s),((e,t,i,n,r,a,s)=>{let l=[],o=i=>{let n=t.getBoundingClientRect(),r=(i.clientX-n.left)/n.width,a=e.duration*r;if(isNaN(a)||a<0)return;let s=l.find(e=>a>=e.startTime&&a<=e.endTime);s?c(s,i.clientX,i.clientY,a):d()},c=(e,t,l,o)=>{let c=i.getBoundingClientRect(),d,u=0,h=0,m=120,p=67,f=e.text.match(/(.+)#xywh=(\d+),(\d+),(\d+),(\d+)/);f?(d=s.replace("thumbs.vtt",f[1]),u=parseInt(f[2]),h=parseInt(f[3]),m=parseInt(f[4]),p=parseInt(f[5])):d=s.replace("thumbs.vtt",e.text),n.style.backgroundImage=`url(${d})`,n.style.backgroundPosition=`${-u}px ${-h}px`,n.style.width=`${m}px`,n.style.height=`${p}px`,r.textContent=B(o),a.style.left=`${t-c.left}px`,a.style.top=`${l-c.top-100}px`,a.classList.add("visible")},d=()=>{a.classList.remove("visible")};fetch(s).then(e=>e.text()).then(e=>{l=(e=>{let t=[],i=e.split(`
555`);for(let e=0;e<i.length;e++){let n=i[e].trim();if(n.includes("--\x3e")){let[r,a]=n.split("--\x3e").map(e=>e.trim()),s=$(r),l=$(a);if(e+1<i.length){let n=i[e+1].trim();
555n&&t.push({startTime:s,endTime:l,text:n})}}}return t})(e),t.addEventListener("mousemove",o),t.addEventListener("mouseleave",d)}).catch(e=>console.warn("Could not load thumbnails:",e))})(e,t,i,a,s,r,n),{thumbnailPreview:r}})(A,q,g,i);g.appendChild(A),c?g.appendChild(M):(E.classList.add("visible"),g.appendChild(E),g.appendChild(y),g.appendChild(T),g.appendChild(I),g.appendChild(F)),v.appendChild(g);let U=()=>{g.hideControlsTimeout&&clearTimeout(g.hideControlsTimeout),A.paused||(g.hideControlsTimeout=window.setTimeout(()=>{y.classList.remove("visible")},1e3))};if(!c){g.onmouseenter=()=>{y.classList.add("visible"),U()},g.onmouseleave=()=>{A.paused?y.classList.add("visible"):y.classList.remove("visible")},g.onmousemove=()=>{y.classList.add("visible"),U()};let e=0,t=0,i=!1,n=!1;g.addEventListener("touchstart",r=>{let a=r.touches[0];e=a.clientX,t=a.clientY,i=!1,(n=!y.classList.contains("visible"))&&y.classList.add("visible"),U()},{passive:!0}),g.addEventListener("touchmove",n=>{let r=n.touches[0];(Math.abs(r.clientX-e)>10||Math.abs(r.clientY-t)>10)&&(i=!0)},{passive:!0}),g.addEventListener("touchend",e=>{!i&&n&&e.preventDefault()},{passive:!1})}return n.appendChild(v),c||(A.addEventListener("play",()=>{k.innerHTML=((e=32,t="#f1f1f3")=>`<svg
556  xmlns="http://www.w3.org/2000/svg"
557  width="${e}"
558  height="${e}"
559  fill="none"
560  viewBox="0 0 32 32"
561>
562    <path
563      fill="${t}"
564      fill-rule="evenodd"
565      d="M16.005 0c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16m-1.6 21.333c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067zm6.4 0c0 .59-.477 1.067-1.066 1.067h-1.067c-.59 0-1.067-.478-1.067-1.067V10.667c0-.59.478-1.067 1.067-1.067h1.067c.589 0 1.066.478 1.066 1.067z"
566      clip-rule="evenodd"
567    />
568</svg>`)(32),y.classList.add("visible"),E.classList.remove("visible"),U()}),A.addEventListener("pause",()=>{k.innerHTML=_(32),y.classList.add("visible")}),A.onclick=()=>{A.paused?A.play():A.pause()}),{video:A,playerWrapper:g,qualityButton:j,qualityMenu:T,subtitlesButton:O,subtitlesMenu:I}})(r,s,l,n,W);j=t,U&&q().then(()=>{let e=n.querySelector("#video-player-cast-button");!window.cast?.framework&&e&&e.remove()}),t.classList.remove("visible"),t.addEventListener("loadeddata",async()=>{e.addEventListener("transitionend",()=>e.remove(),{once:!0}),e.classList.add("fade-out"),t.classList.add("visible"),t.playsInline=!0,t.webkitPlaysInline=!0;try{await t.play()}catch(e){console.warn("Autoplay prevented:",e),p||(t.controls=!0)}},{once:!0}),t.addEventListener("play",()=>{T||M(!0)}),t.addEventListener("pause",()=>{T||M(!1)}),t.addEventListener("seeked",()=>{"CONNECTED"===x&&function(e){let t=L();if(!t)return;let i=t.getMediaSession?.();if(!i)return;let n=new window.chrome.cast.media.SeekRequest;n.currentTime=e,i.seek(n)}(t.currentTime)}),t.addEventListener("play",()=>E.current?.({type:"play"})),t.addEventListener("pause",()=>E.current?.({type:"pause"})),t.addEventListener("timeupdate",()=>{t.duration>0&&E.current?.({type:"timeupdate",currentTime:t.currentTime,duration:t.duration})}),t.addEventListener("ended",()=>E.current?.({type:"ended"}));let a=!1;(z=new IntersectionObserver(([e])=>{e.isIntersecting?e.intersectionRatio>=.7&&a&&(a=!1,t.play().catch(e=>console.warn("Autoplay prevented:",e))):t.paused||(t.pause(),a=!0)},{threshold:[0,.7]})).observe(t),k=S(e=>{let n=window.cast?.framework?.CastContext?.getInstance?.()?.getCurrentSession?.();if("CONNECTED"===e&&n){if(v)return;v=!0,((e,t,i,n,r)=>{t||(i.pause(),(t=document.createElement("div")).className="cast-player-overlay",t.innerHTML=`
569    <div class="cast-box">
570      <div class="cast-text">
571        In riproduzione su<br/>
572        <strong>${n}</strong>
573      </div>
574
575      <button class="cast-disconnect">DISCONNETTI</button>
576    </div>
577  `,t.querySelector(".cast-disconnect")?.addEventListener("click",async()=>{await r.endSession(!0),I(t)}),e.appendChild(t))})(i,null,t,n.getCastDevice?.()?.friendlyName??"TV",n)}"DISCONNECTED"===e&&(v=!1,I(null))}),J()},J=()=>{if(A&&!a){u.video.src=r;return}let e=()=>{let{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a}=u;((e,t,i,n=-1,r,a=!1,s="bottom")=>{let{video:l,qualityMenu:o,qualityButton:c,subtitlesMenu:d,subtitlesButton:u}=i,h=O()&&!!l.canPlayType("application/vnd.apple.mpegurl"),m=e=>"subtitles"===e.kind||"captions"===e.kind;
577if(Array.from(l.textTracks).filter(m).forEach(e=>Y(e,s)),l.textTracks.addEventListener("addtrack",e=>{e.track&&m(e.track)&&Y(e.track,s)}),typeof Hls>"u"&&!h)return console.error('HLS.js not loaded. Include: <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"><\/script>');let p=(e,t)=>{let i=document.createElement("div");return i.className="quality-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{w(0===t?-1:t-1),r?.(e)},i},f=()=>{-1===n?c.innerHTML=`${H(24)} Auto`:c.innerHTML=`${H(24)} ${e.levels[n].height}p`},v=()=>{o.querySelectorAll(".quality-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===n||t-1===n)})},g=(e,t)=>{let i=document.createElement("div");return i.className="quality-option subtitles-option",i.innerHTML=`${e} <span class="checkmark">✓</span>`,i.onclick=()=>{t(),d.classList.remove("active")},i},A=e=>{d.innerHTML="",d.classList.remove("active"),u.classList.remove("active"),u.style.display="inline-flex";let t=!1;u.onclick=()=>{t=!t,u.classList.toggle("active",t),e(t)}},y=()=>{let e=Array.from(l.textTracks).filter(e=>"subtitles"===e.kind||"captions"===e.kind);if(d.innerHTML="",u.style.display=e.length?"inline-flex":"none",!e.length)return;if(a&&1===e.length){let[t]=e;A(e=>{t.mode=e?"showing":"disabled"});return}let t=()=>{d.querySelectorAll(".subtitles-option").forEach((t,i)=>{let n=0===i?null:e[i-1];t.classList.toggle("active",n?"showing"===n.mode:e.every(e=>"showing"!==e.mode))})};d.appendChild(g("Off",()=>{e.forEach(e=>e.mode="disabled"),t()})),e.forEach(i=>{d.appendChild(g(i.label||i.language||"Sottotitoli",()=>{e.forEach(e=>e.mode=e===i?"showing":"disabled"),t()}))}),e.forEach(e=>e.mode="disabled"),t(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}},w=t=>{e&&(e.currentLevel=t,n=t,f(),o.classList.remove("visible"),o.classList.remove("active"),v())};if("u">typeof Hls&&Hls.isSupported())(e=new Hls({enableWorker:!0,lowLatencyMode:!1})).loadSource(t),e.attachMedia(l),e.on(Hls.Events.MANIFEST_PARSED,()=>{var t;t=e.levels,o.innerHTML="",o.classList.add("quality-menu"),o.appendChild(p("Auto",0)),t.forEach((e,t)=>{o.appendChild(p(`${e.height}p`,t+1))}),c.classList.add("quality-button"),c.onclick=()=>{d.classList.remove("active"),o.classList.toggle("active")}}),e.on(Hls.Events.LEVEL_SWITCHED,(e,t)=>{n=t.level,f(),v()}),e.on(Hls.Events.SUBTITLE_TRACKS_UPDATED,(t,i)=>{(t=>{if(d.innerHTML="",u.style.display=t.length?"inline-flex":"none",!t.length)return;if(a&&1===t.length)return A(t=>{e.subtitleTrack=t?0:-1});let i=e.subtitleTrack??-1,n=()=>{d.querySelectorAll(".subtitles-option").forEach((e,t)=>{e.classList.toggle("active",0===t&&-1===i||t-1===i)})};d.appendChild(g("Off",()=>{e.subtitleTrack=-1,i=-1,n()})),t.forEach((t,r)=>{d.appendChild(g(t.name||t.lang||`Sottotitoli ${r+1}`,()=>{e.subtitleTrack=r,i=r,n()}))}),n(),u.onclick=()=>{o.classList.remove("active"),d.classList.toggle("active")}})(i.subtitleTracks||[])});else if(h){let e=document.getElementById("video-player-quality-button");e&&(e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)),l.src=t,l.textTracks.addEventListener("addtrack",y),y()}})(null,r,{video:e,qualityMenu:t,qualityButton:i,subtitlesMenu:n,subtitlesButton:a},-1,e=>E.current?.({type:"qualitychange",quality:e}),o,c)},t=()=>{if(typeof window?.Hls>"u"){let t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/hls.js@latest",t.onload=e,document.head.appendChild(t)}else e()};m?t():O()&&u.video.canPlayType("application/vnd.apple.mpegurl")?e():t()},K=e=>{let t=document.createElement("div");if(t.className="video-placeholder",t.style.backgroundImage=`url(${s})`,e){let e=document.createElement("div");e.className="video-play-button",e.innerHTML=w(40),t.appendChild(e)}return t};if(i)(()=>{let e=document.createElement("div");e.className="video-placeholder lock",e.style.backgroundImage=`url(${s})`;let t=document.createElement("div");t.className="video-play-button lock",t.innerHTML=((e=80)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${e}" fill="none" viewBox="0 0 100 100"><path fill="#0C0D0E" fill-opacity=".6" d="M50 0C22.5 0 0 22.5 0 50s22.5 50 50 50 50-22.5 50-50S77.5 0 50 0m-6.8 70.1c-1.319.989-3.2.048-3.2-1.6v-37c0-1.648 1.882-2.589 3.2-1.6l24.667 18.5a2 2 0 0 1 0 3.2z"/>
577<path fill="#fff" d="M40 31.5v37c0 1.648 1.882 2.589 3.2 1.6l24.667-18.5a2 2 0 0 0 0-3.2L43.2 29.9c-1.319-.989-3.2-.048-3.2 1.6"/><path fill="#0C0D0E" fill-opacity=".8" d="M60 80c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20"/><path fill="#f1f3f3" fill-opacity="0.8" d="M80 73.354c1.026 0 2.082.23 2.888.926.829.716 1.258 1.803 1.258 3.219v.861c1 .076 1.667.988 1.667 1.893v5.36c0 .98-.758 1.865-1.8 1.865h-8.025c-1.042 0-1.8-.884-1.8-1.865v-5.36c0-.906.666-1.817 1.666-1.893V77.5c0-1.416.43-2.503 1.258-3.219.806-.696 1.861-.926 2.888-.927m-4.012 6.624c-.012 0-.048.006-.094.056a.33.33 0 0 0-.081.219v5.36c0 .083.031.148.07.189.037.04.074.051.105.051h8.025c.031 0 .069-.012.106-.051a.28.28 0 0 0 .069-.189v-5.36a.33.33 0 0 0-.081-.219c-.045-.05-.081-.055-.094-.056zM80 81.272c.449 0 .813.364.813.812v1.666h-1.625v-1.666c0-.449.364-.812.813-.812M80 74.977c-.814 0-1.426.187-1.826.532-.377.326-.694.906-.694 1.989v.855h5.042v-.855c0-1.083-.318-1.663-.695-1.99-.4-.344-1.012-.53-1.826-.53"/></svg>`)(80),e.appendChild(t),h&&t.addEventListener("click",()=>h(d)),n.appendChild(e)})();else if(p){(!A||a)&&V(r);let e=K(!1);n.appendChild(e),X(e)}else(!A||a)&&V(r),(()=>{let e=K(!0);e.addEventListener("click",()=>{f||(f=!0,e.classList.add("wait"),(e=>{n.style.minHeight=`${e.offsetHeight}px`,X(e)})(e))}),n.appendChild(e)})();return()=>{k?.(),j=null,z?.disconnect(),y.current&&y.current.replaceChildren()}},[e,t,R,F,U,Q,o,c,p,N,g,A]),Z)return(0,n.jsx)("div",{className:"loader-container",children:(0,n.jsx)("div",{className:"loader",children:(0,n.jsx)(W,{show:!0,color:"#4ce0f7",size:32})})});let X=(0,n.jsx)("div",{ref:y,className:"video-player-embed","data-video-id":e});return p&&f?(0,n.jsx)("a",{href:f,className:"video-player-embed-link",children:X}):X},U={"loading-container":"_loading-container_shx50_1"};function Q(e){return(0,n.jsx)("div",{className:U["loading-container"],children:(0,n.jsx)(W,{size:24,color:e?.color})})}function G({title:e,text:t,image:i,caption:s,url:o,relatedsItems:d,template_related:h="all",isLive:p=!1,breakingTime:v=null,expireBreakingTime:A=null,video:w,videoUrl:b,derivedInfo:_}){let{showVideo:x,videoContainerRef:E,isCheckingVideo:C}=(e=>{let[t,i]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),s=e=>e?.shortVideoUrl||(e?.id&&e?.baseUrl?`${e.baseUrl}/${e.id}/master.m3u8`:void 0),[l,o]=(0,r.useState)(()=>!!s(e)),c=(0,r.useRef)(null),d=n&&!t;return(0,r.useEffect)(()=>{i(!1),a(!1);let t=s(e);if(!t)return void o(!1);let n=!1;return o(!0),fetch(t).then(e=>{n||a(e.ok)}).catch(()=>{n||a(!1)}).finally(()=>{n||o(!1)}),()=>{n=!0}},[e?.id,e?.baseUrl,e?.shortVideoUrl]),(0,r.useEffect)(()=>{let e=c.current;if(!e||!d)return;let t=()=>i(!0);return e.addEventListener("error",t,!0),()=>e.removeEventListener("error",t,!0)},[d,e?.id]),{showVideo:d,videoContainerRef:c,isCheckingVideo:l}})(w),k="live_items"===h&&_?.live_status!=="close",S=k?a["article-live-items"]:a["article-relateds"],L=_?.live_breadcrumb_logo||_?.live_breadcrumb_titolo||_?.live_breadcrumb_background_color||_?.live_breadcrumb_title_color;return(0,n.jsxs)("article",{className:`${a["article-open-standard-big"]} ${d?.length?a["with-relateds"]:""}`,children:[(0,n.jsxs)("div",{className:a["article-content"],children:[p&&(L?(0,n.jsx)(u,{logo:_?.live_breadcrumb_logo,backgroundColor:_?.live_breadcrumb_background_color,title:_?.live_breadcrumb_titolo,titleColor:_?.live_breadcrumb_title_color,url:o}):(0,n.jsx)(m,{})),v&&(0,n.jsx)("div",{className:a["breaking-news"],children:(0,n.jsx)(y,{date:v,expired:A})}),(0,n.jsx)("a",{href:o,className:a["article-link"],"aria-label":`Leggi l'articolo: ${e}`,children:(0,n.jsx)(l,{titleTag:"h1",fontSize:32,fontWeight:700,text:e})})]}),(0,n.jsx)("div",{className:a["article-image"],children:x?(0,n.jsx)("div",{ref:E,className:a["video-container"],children:(0,n.jsx)(F,{videoId:w?.id||"",baseUrl:w?.baseUrl||"",autoplayPreview:!0,link:b,previewVideoUrl:w?.shortVideoUrl,customPosterUrl:w?.customPosterUrl})}):C?(0,n.jsx)("figure",{className:a["video-loader"],children:(0,n.jsx)(Q,{color:"var(--Greyscale-Text-Summary)"})}):(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:o,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:s||e})})})}),(0,n.jsx)("div",{className:a["article-container"],children:(0,n.jsx)("a",{href:o,children:(0,n.jsx)(c,{fontSize:14,lineHeight:20,fontWeight:400,text:t})})}),h&&""!==h&&!!d?.length&&(0,n.jsxs)("section",{className:S,role:"region","aria-label":"live_items"===h?"Ultimi aggiornamenti":"Articoli correlati",children:[k&&(0,n.jsx)(l,{titleTag:"h2",fontSize:15,fontWeight:700,text:"Gli ultimi aggiornamenti"}),_?.live_status==="close"&&(0,n.jsx)(l,{titleTag:"h2",fontSize:15,fontWeight:700,text:"Aggiornamenti importanti"}),d?.map(e=>{let t="";return null!=h&&"live_items"!==h&&(t="all"===h&&e?.summary||""),k?(0,n.jsx)(g,{title:e.title,url:e.link,date:e.date??"",titleTag:"h3"},e.link):(0,n.jsx)(f,{title:e.title,summary:t,url:e.link,titleTag:_?.live_status==="close"?"h3":"h2"},e.link)})]})]})}},9916:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var n=i(6029),r=i(5729);let a={"article-title":"_article-title_tdzen_7"};function s({titleTag:e="h2",text:t,fontSize:i=16,fontMobileSize:s=i,fontWeight:l=400}){let[o,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{function e(){window.outerWidth<992&&c(!0)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),(0,n.jsx)(e,{className:a["article-title"],style:{fontSize:o?s:i,fontWeight:l},children:t})}let l={"article-paragraph":"_article-paragraph_1caru_1","article-paragraph-limit-text3":"_article-paragraph-limit-text3_1caru_6","article-paragraph-limit-text5":"_article-paragraph-limit-text5_1caru_14"};function o({text:e,fontSize:t=14,lineHeight:i=18,fontWeight:r=400,classLimitText:a,c
577olor:s="var(--Greyscale-Text-Summary)"}){let o={};return o.dangerouslySetInnerHTML={__html:e&&/<[a-z][\s\S]*>/i.test(e)?e:""},(0,n.jsx)(n.Fragment,{children:o.dangerouslySetInnerHTML.__html?(0,n.jsx)("p",{suppressHydrationWarning:!0,...o,className:l["article-paragraph"],style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s}}):(0,n.jsx)("p",{suppressHydrationWarning:!0,className:`${l["article-paragraph"]} ${a&&l[`article-paragraph-${a}`]}`,style:{fontSize:t,lineHeight:i+"px",fontWeight:r,color:s},children:e})})}let c={"label-live":"_label-live_y66gb_1"};function d({title:e="Live"}){return(0,n.jsx)("h3",{className:c["label-live"],children:e})}let u={"single-related":"_single-related_1gul4_1"};function h({title:e,summary:t,url:i}){return(0,n.jsx)("article",{className:u["single-related"],children:(0,n.jsxs)("a",{href:i,"aria-label":e,children:[(0,n.jsx)("h3",{children:e}),t&&(0,n.jsx)("p",{children:t})]})})}let m={"article-standard-2":"_article-standard-2_jef8x_1","article-content":"_article-content_jef8x_25","article-image":"_article-image_jef8x_55","article-relateds":"_article-relateds_jef8x_87"};function p({title:e,text:t,image:i,caption:r,url:a,relatedsItems:l,isLive:c=!1}){let u=!1;return Array.isArray(l)&&l.length&&(u=!0),(0,n.jsxs)("article",{className:m["article-standard-2"],children:[(0,n.jsxs)("div",{className:m["article-content"],children:[c&&(0,n.jsx)(d,{}),(0,n.jsxs)("a",{href:a,"aria-label":`Leggi l'articolo: ${e}`,children:[(0,n.jsx)(s,{titleTag:"h2",fontSize:20,fontWeight:700,text:e}),(0,n.jsx)(o,{fontSize:14,lineHeight:20,fontWeight:400,text:t})]})]}),(0,n.jsx)("div",{className:m["article-image"],children:(0,n.jsx)("figure",{children:(0,n.jsx)("a",{href:a,"aria-label":`Immagine per: ${e}`,children:(0,n.jsx)("img",{src:i,alt:r||e,loading:"lazy",decoding:"async"})})})}),u&&(0,n.jsx)("div",{className:m["article-relateds"],"aria-label":"Articoli correlati",children:l?.map((e,t)=>(0,n.jsx)(h,{title:e.title,summary:e.summary,url:e.url},t))})]})}}}]);

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.