import{_ as R}from"./CtUkI56o.js";import{b as X,r as S,G as L,aW as U,aX as V,x as ee,aY as te,a as ae,d as oe,ab as re,h as $,u as ie,O as se,y as ne,j as c,k as le,B as I,l as t,C as q,z as j,aZ as ue,aB as de,m as p,q as k,n as ce,p as me,aJ as pe,a_ as ge,ao as fe,v as he}from"./CdnR8bhP.js";import{_ as ve}from"./CnAgUhgq.js";import{_ as ye}from"./D3ri1tt9.js";import{_ as be}from"./B_ASbKPd.js";import{_ as _e}from"./GQc2Hhr6.js";import{_ as De}from"./CJKMVqce.js";import{u as we}from"./BYPPd0c0.js";/* empty css */import"./CD0xfAYy.js";import"./CzmuiYdA.js";import"./CR7dhpmg.js";import"./DwKZRb6b.js";import"./BKsYEF44.js";import"./C4ooOTwP.js";import"./DNru3smf.js";import"./ry8JMtD5.js";import"./Dy-g3K2w.js";import"./By0_uH59.js";import"./D-vZtoh8.js";import"./BjrT07tw.js";import"./D2C83RAY.js";import"./DONOg56V.js";import"./CPfO20CH.js";import"./DMMjVHYg.js";function Ie(s,l){const d=l/s*100;return 2/Math.PI*100*Math.atan(d/50)}function ke(s={}){const{duration:l=2e3,throttle:d=200,hideDelay:g=500,resetDelay:b=400}=s,e=s.estimatedProgress||Ie,m=X(),i=S(0),n=S(!1),u=S(!1);let a,f,B,F,_=!1;const T=()=>{u.value=!1,x(0)};function x(o=0){if(!m.isHydrating){if(o>=100)return h();v(),i.value=o<0?0:o,d?f=setTimeout(()=>{n.value=!0,A()},d):(n.value=!0,A())}}function h(o={}){i.value=100,_=!0,v(),clearTimeout(B),clearTimeout(F),o.error&&(u.value=!0),o.force?(i.value=0,n.value=!1):B=setTimeout(()=>{n.value=!1,F=setTimeout(()=>{i.value=0},b)},g)}function v(){clearTimeout(f),cancelAnimationFrame(a)}function A(){let o;_=!1,a=requestAnimationFrame(function D(r){if(_)return;o??(o=r);const O=r-o;i.value=Math.max(0,Math.min(100,e(l,O))),a=requestAnimationFrame(D)})}let M=()=>{};{const o=m.hook("page:loading:start",()=>{T()}),D=m.hook("page:loading:end",()=>{h()}),r=m.hook("vue:error",()=>h());M=()=>{r(),o(),D(),v()}}return{_cleanup:M,progress:L(()=>i.value),isLoading:L(()=>n.value),error:L(()=>u.value),start:T,set:x,finish:h,clear:v}}const Fe=ee({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(s,{slots:l,expose:d}){const{progress:g,isLoading:b,error:e,start:m,finish:i,clear:n}=function(u={}){const a=X(),f=a._loadingIndicator=a._loadingIndicator||ke(u);return U()&&(a._loadingIndicatorDeps=a._loadingIndicatorDeps||0,a._loadingIndicatorDeps++,V(()=>{a._loadingIndicatorDeps--,a._loadingIndicatorDeps===0&&(f._cleanup(),delete a._loadingIndicator)})),f}({duration:s.duration,throttle:s.throttle,estimatedProgress:s.estimatedProgress});return d({progress:g,isLoading:b,error:e,start:m,finish:i,clear:n}),()=>te("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${s.height}px`,opacity:b.value?1:0,background:e.value?s.errorColor:s.color||void 0,backgroundSize:100/g.value*100+"% auto",transform:`scaleX(${g.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},l)}}),Te={50:"#DBE1FF",100:"#B3BEFF",200:"#6B81FF",300:"#1F40FF",400:"#0020D6",500:"#001489",600:"#001170",700:"#000C52",800:"#000838",900:"#000419",950:"#00020F"},Ue={__name:"default",setup(s){var _,T,x,h,v,A,M,o,D;const l=ae(),d=oe(),g=re(),b=we();$({script:[{children:"if (global === undefined) {var global = window;}"}]});const e=ie(),m=(T=(_=e.public.club)==null?void 0:_.features)==null?void 0:T["streaming-site"],i={advertID:(v=(h=(x=e.public)==null?void 0:x.club)==null?void 0:h.managedAds)==null?void 0:v.splash,mobileAdvertID:(o=(M=(A=e.public)==null?void 0:A.club)==null?void 0:M.managedAds)==null?void 0:o.splash,adsLength:1};$({titleTemplate:r=>r?`${r} ${e.public.seo.metaPageTitleAfter}`:`${e.public.seo.metaPageTitleAfter.replace("-","").trim()}`,meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"}]});const n=S(),u=S(),a=Te[800];u.value=e.public.menus.footer;const f="Footer"+((D=u.value)==null?void 0:D.footerType);n.value=se(f),ne(()=>{var r;(r=d.query)!=null&&r.method&&(l.showSSO=!0)});const B=``;$({link:[{rel:"canonical",href:d.fullPath}]});const F=L(()=>{let r=!1;return e.public.firstTeamFixtures.forEach(O=>{const P=new Date(O.kickOff);if(!isNaN(P)){const w=new Date;w.setHours("0"),w.setMinutes("0");const y=new Date(w);y.setHours("0"),y.setMinutes("0"),y.setDate(y.getDate()+1),P>=w&&P{var N;const P=R,w=Fe,y=ue,G=ve,C=ye,J=be,Y=pe,Z=ge,W=_e,K=De,Q=fe;return c(),le("div",{id:"page",class:he(["relative overflow-hidden page",{"show-sso":t(l).showSSO}])},[I(P,{mode:t(g).mode,class:"z-[100] relative"},null,8,["mode"]),I(C,null,{default:q(()=>[j("main",null,[I(w,{color:t(a)},null,8,["color"]),I(y),I(de,{appear:"",name:"audio-transition"},{default:q(()=>[t(b).modalIsOpen?(c(),p(G,{key:0})):k("",!0)]),_:1})])]),_:1}),t(n)!==void 0?(c(),p(me(t(n)),{key:0,data:{attributes:t(u)},style:ce((N=t(u))==null?void 0:N.style)},null,8,["data","style"])):k("",!0),I(C,null,{default:q(()=>{var z,H,E;return[i.advertID!==void 0?(c(),p(J,{key:0,"ad-length":i.adsLength,"advert-i-d":i.advertID,"mobile-advert-i-d":i.mobileAdvertID,"is-splash":!0,seed:"101"},null,8,["ad-length","advert-i-d","mobile-advert-i-d"])):k("",!0),((H=(z=t(e).public.club)==null?void 0:z.ssoOptions)==null?void 0:H.provider)!=="OIDC"?(c(),p(Y,{key:1})):k("",!0),t(l).showSearch?k("",!0):(c(),p(Z,{key:2})),t(F)&&!t(m)?(c(),p(W,{key:3,match:t(F)},null,8,["match"])):(c(),p(K,{key:4,config:t(e)},null,8,["config"])),(E=t(l))!=null&&E.showMenu?(c(),p(Q,{key:5})):k("",!0),j("div",{innerHTML:B})]}),_:1})],2)}}};export{Ue as default};